@introspection-ai/recipes 0.35.0 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp-chunks/{auth-command-SDTBVC2R.js → auth-command-GMMLBU24.js} +23 -23
- package/dist/mcp-chunks/call-arguments-WSURHOLV.js +16 -0
- package/dist/mcp-chunks/{call-command-WOZT2DLX.js → call-command-2VF6IKAZ.js} +33 -33
- package/dist/mcp-chunks/{chunk-WQBESOWG.js → chunk-22WCLO4D.js} +7 -6
- package/dist/mcp-chunks/{chunk-2IO3FXZJ.js → chunk-2JTXIMGE.js} +1 -1
- package/dist/mcp-chunks/{chunk-SVCKS5MW.js → chunk-347GOMV4.js} +5 -5
- package/dist/mcp-chunks/{chunk-IR5SMKTP.js → chunk-35LLRCRA.js} +303 -128
- package/dist/mcp-chunks/{chunk-EIXFNLU6.js → chunk-3AAF3FSI.js} +1 -1
- package/dist/mcp-chunks/{chunk-TKZA4MPW.js → chunk-4PN2J74H.js} +4 -4
- package/dist/mcp-chunks/{chunk-FWWPRZ37.js → chunk-4U4BUXQD.js} +16 -16
- package/dist/mcp-chunks/{chunk-XDARNDP3.js → chunk-5OO6WVPL.js} +1 -1
- package/dist/mcp-chunks/{chunk-4IXQQER3.js → chunk-5UK2JLTN.js} +5 -5
- package/dist/mcp-chunks/{chunk-M7VINGHY.js → chunk-6TIU2CDB.js} +7 -7
- package/dist/mcp-chunks/{chunk-VRTH73R5.js → chunk-6XC5JJWD.js} +73 -36
- package/dist/mcp-chunks/{chunk-OURSGEZX.js → chunk-7BVYBZ4J.js} +8 -8
- package/dist/mcp-chunks/{chunk-HM26TIPK.js → chunk-7IVXKYTI.js} +42 -22
- package/dist/mcp-chunks/{chunk-CO4CYU5W.js → chunk-ANNJGB6F.js} +62 -32
- package/dist/mcp-chunks/{chunk-TL7V3OBY.js → chunk-BIVX2WFX.js} +3 -3
- package/dist/mcp-chunks/{chunk-JRU5LZJQ.js → chunk-C4TJGC4F.js} +1 -1
- package/dist/mcp-chunks/{chunk-7X3JHUMH.js → chunk-CN5KSNWG.js} +1 -1
- package/dist/mcp-chunks/{chunk-UXI26V4F.js → chunk-D2SZ7KRY.js} +1 -1
- package/dist/mcp-chunks/{chunk-VWNF5PIF.js → chunk-D65GOMYV.js} +2 -2
- package/dist/mcp-chunks/{chunk-27XDYSXJ.js → chunk-DBNBEWRX.js} +4 -1
- package/dist/mcp-chunks/{chunk-P3S4OJPI.js → chunk-DUBQHYW4.js} +9 -9
- package/dist/mcp-chunks/{chunk-FMYP6JXX.js → chunk-ENBJFQ6H.js} +1 -1
- package/dist/mcp-chunks/{chunk-YTO7DITJ.js → chunk-FLUF2FRN.js} +3 -3
- package/dist/mcp-chunks/{chunk-IJTZ2ZRM.js → chunk-HFHIY5TO.js} +4 -4
- package/dist/mcp-chunks/{chunk-35JUFDQI.js → chunk-HI6VG5LR.js} +2 -2
- package/dist/mcp-chunks/{chunk-7OQUF6V6.js → chunk-IHOU2BEL.js} +2 -2
- package/dist/mcp-chunks/{chunk-7CI6DKEP.js → chunk-IMXPLUKE.js} +20 -20
- package/dist/mcp-chunks/{chunk-UHXTAPEC.js → chunk-LISNXOIQ.js} +1 -1
- package/dist/mcp-chunks/{chunk-ASFI5AJK.js → chunk-LRGMFF5S.js} +7 -7
- package/dist/mcp-chunks/{chunk-ALLS7CUV.js → chunk-LUVLTUKR.js} +1 -1
- package/dist/mcp-chunks/{chunk-SONMFI3S.js → chunk-LZUKBEQZ.js} +12 -12
- package/dist/mcp-chunks/{chunk-FQAJT6U2.js → chunk-O2C3HXGS.js} +1 -1
- package/dist/mcp-chunks/{chunk-EIF7GALA.js → chunk-OI3RTQXY.js} +1 -1
- package/dist/mcp-chunks/{chunk-CRX2G22W.js → chunk-OSTHIELS.js} +1 -1
- package/dist/mcp-chunks/{chunk-R636HUNL.js → chunk-P5YLK5G2.js} +17 -12
- package/dist/mcp-chunks/{chunk-YGRORKGT.js → chunk-QDFL757K.js} +99 -74
- package/dist/mcp-chunks/{chunk-DUJ5WAHC.js → chunk-QNZGFUKC.js} +2 -2
- package/dist/mcp-chunks/{chunk-GJ7DWMRT.js → chunk-R4OYHQ4V.js} +1 -1
- package/dist/mcp-chunks/{chunk-7ZZZ7MR2.js → chunk-RHXZKYM7.js} +1 -1
- package/dist/mcp-chunks/{chunk-POYT6GCW.js → chunk-RKQC2EE6.js} +2 -2
- package/dist/mcp-chunks/{chunk-43QNQO5C.js → chunk-RZZO3ZD4.js} +4 -4
- package/dist/mcp-chunks/{chunk-FUKRLUU7.js → chunk-SS7V7GVT.js} +4 -4
- package/dist/mcp-chunks/{chunk-FVZKQMZS.js → chunk-TYL2NVXI.js} +2 -2
- package/dist/mcp-chunks/{chunk-TDBM2UIR.js → chunk-U5QZHPCC.js} +10 -1
- package/dist/mcp-chunks/{chunk-6XBQDCGX.js → chunk-UQUM7ICD.js} +36 -17
- package/dist/mcp-chunks/{chunk-JQCSGX6E.js → chunk-VWPKJFK4.js} +2 -5
- package/dist/mcp-chunks/{chunk-AHDUZPNI.js → chunk-WXNGATQ7.js} +1 -1
- package/dist/mcp-chunks/{chunk-VCPUZFU7.js → chunk-YFCNRWLV.js} +2 -2
- package/dist/mcp-chunks/{chunk-IWXEOLJL.js → chunk-YPSODIQX.js} +18 -18
- package/dist/mcp-chunks/{chunk-CMDB57MS.js → chunk-YWFQPA4D.js} +2 -2
- package/dist/mcp-chunks/{chunk-YM7ZVYI2.js → chunk-ZI5XYM4C.js} +23 -7
- package/dist/mcp-chunks/{chunk-UYG7PAN2.js → chunk-ZJWZY54X.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZLV5S5UP.js → chunk-ZXIF7MKN.js} +2 -2
- package/dist/mcp-chunks/{cli-67GWFF4R.js → cli-4OQD3H4N.js} +77 -70
- package/dist/mcp-chunks/client-LXKCCVMT.js +31 -0
- package/dist/mcp-chunks/{config-command-3IKIRWMW.js → config-command-72TCIWPV.js} +63 -36
- package/dist/mcp-chunks/daemon-command-QHS3ACBM.js +31 -0
- package/dist/mcp-chunks/{dist-YL3LFKVP.js → dist-74UCKZK5.js} +95 -69
- package/dist/mcp-chunks/{emit-ts-command-YWKROLL2.js → emit-ts-command-KD4ON2SE.js} +34 -22
- package/dist/mcp-chunks/{generate-cli-runner-CZEVY2Y7.js → generate-cli-runner-HWGI6HPL.js} +55 -49
- package/dist/mcp-chunks/generated-daemon-runtime-7ORS5KBR.js +31 -0
- package/dist/mcp-chunks/{inspect-cli-command-5Y2LORK5.js → inspect-cli-command-FT5JSB7V.js} +9 -9
- package/dist/mcp-chunks/{launch-43TA3HYF.js → launch-AHLKP2VM.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-BY2ILXTB.js → lifecycle-BJDITFWN.js} +1 -1
- package/dist/mcp-chunks/{list-command-7RU7NNAV.js → list-command-YKF7RN6Y.js} +30 -30
- package/dist/mcp-chunks/{output-utils-2R3SA6KR.js → output-utils-LYB5IJRD.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-GKQOEUY4.js → prompt-CH6TK0bC-B3USYOND.js} +1 -1
- package/dist/mcp-chunks/{record-command-ROIRRNFS.js → record-command-MJW3Z5E5.js} +5 -5
- package/dist/mcp-chunks/{replay-command-Y2MYVQTL.js → replay-command-5ZHBUOLE.js} +6 -6
- package/dist/mcp-chunks/{resource-command-VUV7AYYQ.js → resource-command-L4I24AX5.js} +9 -9
- package/dist/mcp-chunks/{result-utils-5U7NVXDZ.js → result-utils-5WRI66KV.js} +3 -3
- package/dist/mcp-chunks/runtime-IKWDQLZF.js +38 -0
- package/dist/mcp-chunks/{runtime-wrapper-3BVFTSWJ.js → runtime-wrapper-WFMNIHD5.js} +3 -3
- package/dist/mcp-chunks/{serve-command-BXLQWHFW.js → serve-command-KNCSJUXS.js} +185 -78
- package/dist/mcp-chunks/{timeouts-6GL2F44N.js → timeouts-2ZHGSB3R.js} +3 -3
- package/dist/mcp-chunks/{vault-command-JCMW3DQA.js → vault-command-7EDL45AA.js} +4 -4
- package/dist/mcp-chunks/{webapi-UMWFGMQV.js → webapi-NNCZGUMZ.js} +46 -46
- package/dist/mcp-daemon.js +27 -27
- package/dist/mcp-run-worker.js +27 -27
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +8 -1
- package/dist/pi-extension.js.map +1 -1
- package/docs/slack.md +6 -0
- package/package.json +12 -12
- package/dist/mcp-chunks/call-arguments-ER7NWEPS.js +0 -16
- package/dist/mcp-chunks/client-MQMNAYYW.js +0 -31
- package/dist/mcp-chunks/daemon-command-OMOZ5MP7.js +0 -31
- package/dist/mcp-chunks/generated-daemon-runtime-SRFULTIT.js +0 -31
- package/dist/mcp-chunks/runtime-Q4SCCOQE.js +0 -38
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__export
|
|
4
4
|
} from "./chunk-LRKZP7DJ.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs
|
|
7
7
|
var __create = Object.create;
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
9
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -43,7 +43,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
43
43
|
enumerable: true
|
|
44
44
|
}) : target, mod));
|
|
45
45
|
|
|
46
|
-
// node_modules/.pnpm/mcporter@0.
|
|
46
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/@modelcontextprotocol/client/dist/dialects-BOhdv1Fc.mjs
|
|
47
47
|
var DRAFT_2020_12_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft/2020-12/schema", "http://json-schema.org/draft/2020-12/schema"]);
|
|
48
48
|
var DRAFT_2019_09_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft/2019-09/schema", "http://json-schema.org/draft/2019-09/schema"]);
|
|
49
49
|
var DRAFT_07_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft-07/schema", "http://json-schema.org/draft-07/schema"]);
|
|
@@ -60,7 +60,7 @@ function declaredDialect(schema, remedy) {
|
|
|
60
60
|
throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${schema.$schema.slice(0, 200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${remedy}`);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
// node_modules/.pnpm/mcporter@0.
|
|
63
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/external.js
|
|
64
64
|
var external_exports = {};
|
|
65
65
|
__export(external_exports, {
|
|
66
66
|
$brand: () => $brand,
|
|
@@ -323,7 +323,7 @@ __export(external_exports, {
|
|
|
323
323
|
xor: () => xor
|
|
324
324
|
});
|
|
325
325
|
|
|
326
|
-
// node_modules/.pnpm/mcporter@0.
|
|
326
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/index.js
|
|
327
327
|
var core_exports2 = {};
|
|
328
328
|
__export(core_exports2, {
|
|
329
329
|
$ZodAny: () => $ZodAny,
|
|
@@ -640,7 +640,7 @@ __export(core_exports2, {
|
|
|
640
640
|
withParser: () => withParser
|
|
641
641
|
});
|
|
642
642
|
|
|
643
|
-
// node_modules/.pnpm/mcporter@0.
|
|
643
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/util.js
|
|
644
644
|
var util_exports = {};
|
|
645
645
|
__export(util_exports, {
|
|
646
646
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -711,6 +711,7 @@ __export(util_exports, {
|
|
|
711
711
|
required: () => required,
|
|
712
712
|
safeExtend: () => safeExtend,
|
|
713
713
|
shallowClone: () => shallowClone,
|
|
714
|
+
sizeCaps: () => sizeCaps,
|
|
714
715
|
slugify: () => slugify,
|
|
715
716
|
stringifyPrimitive: () => stringifyPrimitive,
|
|
716
717
|
toZod: () => toZod,
|
|
@@ -1230,6 +1231,18 @@ function prefixIssues(path, issues) {
|
|
|
1230
1231
|
function unwrapMessage(message) {
|
|
1231
1232
|
return typeof message === "string" ? message : message?.message;
|
|
1232
1233
|
}
|
|
1234
|
+
function sizeCaps(defChecks) {
|
|
1235
|
+
const caps = [];
|
|
1236
|
+
for (const ch of defChecks ?? []) {
|
|
1237
|
+
const d = ch._zod.def;
|
|
1238
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
1239
|
+
break;
|
|
1240
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
1241
|
+
if (max >= 0)
|
|
1242
|
+
caps.push([max, ch]);
|
|
1243
|
+
}
|
|
1244
|
+
return caps;
|
|
1245
|
+
}
|
|
1233
1246
|
function attachSchema(issues, start, inst) {
|
|
1234
1247
|
var _a3;
|
|
1235
1248
|
for (let i = start; i < issues.length; i++) {
|
|
@@ -1483,7 +1496,7 @@ function constantCatch(value) {
|
|
|
1483
1496
|
return fn;
|
|
1484
1497
|
}
|
|
1485
1498
|
|
|
1486
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1499
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/core.js
|
|
1487
1500
|
var _a;
|
|
1488
1501
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
1489
1502
|
status: "aborted"
|
|
@@ -1605,7 +1618,7 @@ function config(newConfig) {
|
|
|
1605
1618
|
return globalConfig;
|
|
1606
1619
|
}
|
|
1607
1620
|
|
|
1608
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1621
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/errors.js
|
|
1609
1622
|
function _getMessage() {
|
|
1610
1623
|
const internals = this._zod;
|
|
1611
1624
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -1797,7 +1810,7 @@ function prettifyError(error62) {
|
|
|
1797
1810
|
return lines.join("\n");
|
|
1798
1811
|
}
|
|
1799
1812
|
|
|
1800
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1813
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/parse.js
|
|
1801
1814
|
function finalizeParams(callee, params) {
|
|
1802
1815
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
1803
1816
|
}
|
|
@@ -1957,7 +1970,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1957
1970
|
};
|
|
1958
1971
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1959
1972
|
|
|
1960
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1973
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/regexes.js
|
|
1961
1974
|
var regexes_exports = {};
|
|
1962
1975
|
__export(regexes_exports, {
|
|
1963
1976
|
anyString: () => anyString,
|
|
@@ -2129,7 +2142,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
2129
2142
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
2130
2143
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
2131
2144
|
|
|
2132
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2145
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/checks.js
|
|
2133
2146
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
2134
2147
|
var _a3;
|
|
2135
2148
|
inst._zod ?? (inst._zod = {});
|
|
@@ -2605,7 +2618,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2605
2618
|
};
|
|
2606
2619
|
});
|
|
2607
2620
|
|
|
2608
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2621
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/doc.js
|
|
2609
2622
|
var Doc = class {
|
|
2610
2623
|
constructor(args = [], closed = {}) {
|
|
2611
2624
|
this.content = [];
|
|
@@ -2646,14 +2659,14 @@ ${content.join("\n")}
|
|
|
2646
2659
|
}
|
|
2647
2660
|
};
|
|
2648
2661
|
|
|
2649
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2662
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/versions.js
|
|
2650
2663
|
var version = {
|
|
2651
2664
|
major: 4,
|
|
2652
2665
|
minor: 6,
|
|
2653
|
-
patch:
|
|
2666
|
+
patch: 7
|
|
2654
2667
|
};
|
|
2655
2668
|
|
|
2656
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2669
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/schemas.js
|
|
2657
2670
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2658
2671
|
var _a3;
|
|
2659
2672
|
inst ?? (inst = {});
|
|
@@ -3406,6 +3419,31 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
|
|
|
3406
3419
|
return payload;
|
|
3407
3420
|
};
|
|
3408
3421
|
});
|
|
3422
|
+
function capSize(inst, size) {
|
|
3423
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
3424
|
+
if (!caps.length)
|
|
3425
|
+
return;
|
|
3426
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
3427
|
+
const parse3 = inst._zod.parse;
|
|
3428
|
+
inst._zod.parse = (payload, ctx) => {
|
|
3429
|
+
const n = size(payload.value);
|
|
3430
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
3431
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
3432
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
3433
|
+
const start = payload.issues.length;
|
|
3434
|
+
ch._zod.check(payload);
|
|
3435
|
+
payload.issues[start].continue = false;
|
|
3436
|
+
attachSchema(payload.issues, start, inst);
|
|
3437
|
+
return payload;
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
return parse3(payload, ctx);
|
|
3442
|
+
};
|
|
3443
|
+
}
|
|
3444
|
+
var arraySize = (input2) => Array.isArray(input2) ? input2.length : -1;
|
|
3445
|
+
var mapSize = (input2) => input2 instanceof Map ? input2.size : -1;
|
|
3446
|
+
var setSize = (input2) => input2 instanceof Set ? input2.size : -1;
|
|
3409
3447
|
function handleArrayResult(result, final, index) {
|
|
3410
3448
|
if (result.issues.length) {
|
|
3411
3449
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -3449,6 +3487,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
3449
3487
|
}
|
|
3450
3488
|
return payload;
|
|
3451
3489
|
};
|
|
3490
|
+
capSize(inst, arraySize);
|
|
3452
3491
|
});
|
|
3453
3492
|
function handlePropertyResult(result, final, key, input2, optin, optout) {
|
|
3454
3493
|
const isPresent = key in input2;
|
|
@@ -4405,6 +4444,7 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
|
|
|
4405
4444
|
return Promise.all(proms).then(() => payload);
|
|
4406
4445
|
return payload;
|
|
4407
4446
|
};
|
|
4447
|
+
capSize(inst, mapSize);
|
|
4408
4448
|
});
|
|
4409
4449
|
function handleMapResult(keyResult, valueResult, final, key, input2, inst, ctx) {
|
|
4410
4450
|
if (keyResult.issues.length) {
|
|
@@ -4471,6 +4511,7 @@ var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
|
|
|
4471
4511
|
return Promise.all(proms).then(() => payload);
|
|
4472
4512
|
return payload;
|
|
4473
4513
|
};
|
|
4514
|
+
capSize(inst, setSize);
|
|
4474
4515
|
});
|
|
4475
4516
|
function handleSetResult(result, final) {
|
|
4476
4517
|
if (result.issues.length) {
|
|
@@ -5067,7 +5108,7 @@ function handleRefineResult(result, payload, input2, inst) {
|
|
|
5067
5108
|
}
|
|
5068
5109
|
}
|
|
5069
5110
|
|
|
5070
|
-
// node_modules/.pnpm/mcporter@0.
|
|
5111
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/memoizer.js
|
|
5071
5112
|
var $ZodCyclicError = class extends Error {
|
|
5072
5113
|
constructor() {
|
|
5073
5114
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -5344,7 +5385,7 @@ function isBackEdge(ctx, value) {
|
|
|
5344
5385
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
5345
5386
|
}
|
|
5346
5387
|
|
|
5347
|
-
// node_modules/.pnpm/mcporter@0.
|
|
5388
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/index.js
|
|
5348
5389
|
var locales_exports = {};
|
|
5349
5390
|
__export(locales_exports, {
|
|
5350
5391
|
ar: () => ar_default,
|
|
@@ -5412,7 +5453,7 @@ __export(locales_exports, {
|
|
|
5412
5453
|
zhTW: () => zh_TW_default
|
|
5413
5454
|
});
|
|
5414
5455
|
|
|
5415
|
-
// node_modules/.pnpm/mcporter@0.
|
|
5456
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ar.js
|
|
5416
5457
|
var error = () => {
|
|
5417
5458
|
const Sizable = {
|
|
5418
5459
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -5524,7 +5565,7 @@ function ar_default() {
|
|
|
5524
5565
|
};
|
|
5525
5566
|
}
|
|
5526
5567
|
|
|
5527
|
-
// node_modules/.pnpm/mcporter@0.
|
|
5568
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/az.js
|
|
5528
5569
|
var error2 = () => {
|
|
5529
5570
|
const Sizable = {
|
|
5530
5571
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -5635,7 +5676,7 @@ function az_default() {
|
|
|
5635
5676
|
};
|
|
5636
5677
|
}
|
|
5637
5678
|
|
|
5638
|
-
// node_modules/.pnpm/mcporter@0.
|
|
5679
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/be.js
|
|
5639
5680
|
function getBelarusianPlural(count, one, few, many) {
|
|
5640
5681
|
const absCount = Math.abs(count);
|
|
5641
5682
|
const lastDigit = absCount % 10;
|
|
@@ -5804,7 +5845,7 @@ function be_default() {
|
|
|
5804
5845
|
};
|
|
5805
5846
|
}
|
|
5806
5847
|
|
|
5807
|
-
// node_modules/.pnpm/mcporter@0.
|
|
5848
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/bg.js
|
|
5808
5849
|
var error4 = () => {
|
|
5809
5850
|
const Sizable = {
|
|
5810
5851
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -5930,7 +5971,7 @@ function bg_default() {
|
|
|
5930
5971
|
};
|
|
5931
5972
|
}
|
|
5932
5973
|
|
|
5933
|
-
// node_modules/.pnpm/mcporter@0.
|
|
5974
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/bn.js
|
|
5934
5975
|
var error5 = () => {
|
|
5935
5976
|
const Sizable = {
|
|
5936
5977
|
string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
|
|
@@ -6044,7 +6085,7 @@ function bn_default() {
|
|
|
6044
6085
|
};
|
|
6045
6086
|
}
|
|
6046
6087
|
|
|
6047
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6088
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ca.js
|
|
6048
6089
|
var error6 = () => {
|
|
6049
6090
|
const Sizable = {
|
|
6050
6091
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -6158,7 +6199,7 @@ function ca_default() {
|
|
|
6158
6199
|
};
|
|
6159
6200
|
}
|
|
6160
6201
|
|
|
6161
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6202
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ckb.js
|
|
6162
6203
|
var error7 = () => {
|
|
6163
6204
|
const Sizable = {
|
|
6164
6205
|
string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
|
|
@@ -6291,7 +6332,7 @@ function ckb_default() {
|
|
|
6291
6332
|
};
|
|
6292
6333
|
}
|
|
6293
6334
|
|
|
6294
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6335
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/cs.js
|
|
6295
6336
|
var error8 = () => {
|
|
6296
6337
|
const Sizable = {
|
|
6297
6338
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -6408,7 +6449,7 @@ function cs_default() {
|
|
|
6408
6449
|
};
|
|
6409
6450
|
}
|
|
6410
6451
|
|
|
6411
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6452
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/da.js
|
|
6412
6453
|
var error9 = () => {
|
|
6413
6454
|
const Sizable = {
|
|
6414
6455
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -6529,7 +6570,7 @@ function da_default() {
|
|
|
6529
6570
|
};
|
|
6530
6571
|
}
|
|
6531
6572
|
|
|
6532
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6573
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/de.js
|
|
6533
6574
|
var error10 = () => {
|
|
6534
6575
|
const Sizable = {
|
|
6535
6576
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -6643,7 +6684,7 @@ function de_default() {
|
|
|
6643
6684
|
};
|
|
6644
6685
|
}
|
|
6645
6686
|
|
|
6646
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6687
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/el.js
|
|
6647
6688
|
var error11 = () => {
|
|
6648
6689
|
const Sizable = {
|
|
6649
6690
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -6756,7 +6797,7 @@ function el_default() {
|
|
|
6756
6797
|
};
|
|
6757
6798
|
}
|
|
6758
6799
|
|
|
6759
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6800
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/en.js
|
|
6760
6801
|
var error12 = () => {
|
|
6761
6802
|
const Sizable = {
|
|
6762
6803
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -6881,7 +6922,7 @@ function en_default() {
|
|
|
6881
6922
|
};
|
|
6882
6923
|
}
|
|
6883
6924
|
|
|
6884
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6925
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/eo.js
|
|
6885
6926
|
var error13 = () => {
|
|
6886
6927
|
const Sizable = {
|
|
6887
6928
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -6996,7 +7037,7 @@ function eo_default() {
|
|
|
6996
7037
|
};
|
|
6997
7038
|
}
|
|
6998
7039
|
|
|
6999
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7040
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/es.js
|
|
7000
7041
|
var error14 = () => {
|
|
7001
7042
|
const Sizable = {
|
|
7002
7043
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -7133,7 +7174,7 @@ function es_default() {
|
|
|
7133
7174
|
};
|
|
7134
7175
|
}
|
|
7135
7176
|
|
|
7136
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7177
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/fa.js
|
|
7137
7178
|
var error15 = () => {
|
|
7138
7179
|
const Sizable = {
|
|
7139
7180
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -7253,7 +7294,7 @@ function fa_default() {
|
|
|
7253
7294
|
};
|
|
7254
7295
|
}
|
|
7255
7296
|
|
|
7256
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7297
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/fi.js
|
|
7257
7298
|
var error16 = () => {
|
|
7258
7299
|
const Sizable = {
|
|
7259
7300
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -7371,7 +7412,7 @@ function fi_default() {
|
|
|
7371
7412
|
};
|
|
7372
7413
|
}
|
|
7373
7414
|
|
|
7374
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7415
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/fr.js
|
|
7375
7416
|
var error17 = () => {
|
|
7376
7417
|
const Sizable = {
|
|
7377
7418
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -7501,7 +7542,7 @@ function fr_default() {
|
|
|
7501
7542
|
};
|
|
7502
7543
|
}
|
|
7503
7544
|
|
|
7504
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7545
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/fr-CA.js
|
|
7505
7546
|
var error18 = () => {
|
|
7506
7547
|
const Sizable = {
|
|
7507
7548
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -7614,7 +7655,7 @@ function fr_CA_default() {
|
|
|
7614
7655
|
};
|
|
7615
7656
|
}
|
|
7616
7657
|
|
|
7617
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7658
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/gu.js
|
|
7618
7659
|
var error19 = () => {
|
|
7619
7660
|
const Sizable = {
|
|
7620
7661
|
string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
|
|
@@ -7728,7 +7769,7 @@ function gu_default() {
|
|
|
7728
7769
|
};
|
|
7729
7770
|
}
|
|
7730
7771
|
|
|
7731
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7772
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/he.js
|
|
7732
7773
|
var error20 = () => {
|
|
7733
7774
|
const TypeNames = {
|
|
7734
7775
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -7930,7 +7971,7 @@ function he_default() {
|
|
|
7930
7971
|
};
|
|
7931
7972
|
}
|
|
7932
7973
|
|
|
7933
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7974
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/hi.js
|
|
7934
7975
|
var error21 = () => {
|
|
7935
7976
|
const Sizable = {
|
|
7936
7977
|
string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
|
|
@@ -8042,7 +8083,7 @@ function hi_default() {
|
|
|
8042
8083
|
};
|
|
8043
8084
|
}
|
|
8044
8085
|
|
|
8045
|
-
// node_modules/.pnpm/mcporter@0.
|
|
8086
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/hr.js
|
|
8046
8087
|
var error22 = () => {
|
|
8047
8088
|
const Sizable = {
|
|
8048
8089
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -8169,7 +8210,7 @@ function hr_default() {
|
|
|
8169
8210
|
};
|
|
8170
8211
|
}
|
|
8171
8212
|
|
|
8172
|
-
// node_modules/.pnpm/mcporter@0.
|
|
8213
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/hu.js
|
|
8173
8214
|
var error23 = () => {
|
|
8174
8215
|
const Sizable = {
|
|
8175
8216
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -8283,7 +8324,7 @@ function hu_default() {
|
|
|
8283
8324
|
};
|
|
8284
8325
|
}
|
|
8285
8326
|
|
|
8286
|
-
// node_modules/.pnpm/mcporter@0.
|
|
8327
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/hy.js
|
|
8287
8328
|
function getArmenianPlural(count, one, many) {
|
|
8288
8329
|
return Math.abs(count) === 1 ? one : many;
|
|
8289
8330
|
}
|
|
@@ -8442,7 +8483,7 @@ function hy_default() {
|
|
|
8442
8483
|
};
|
|
8443
8484
|
}
|
|
8444
8485
|
|
|
8445
|
-
// node_modules/.pnpm/mcporter@0.
|
|
8486
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/id.js
|
|
8446
8487
|
var error25 = () => {
|
|
8447
8488
|
const Sizable = {
|
|
8448
8489
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -8554,7 +8595,7 @@ function id_default() {
|
|
|
8554
8595
|
};
|
|
8555
8596
|
}
|
|
8556
8597
|
|
|
8557
|
-
// node_modules/.pnpm/mcporter@0.
|
|
8598
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/is.js
|
|
8558
8599
|
var error26 = () => {
|
|
8559
8600
|
const Sizable = {
|
|
8560
8601
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -8669,7 +8710,7 @@ function is_default() {
|
|
|
8669
8710
|
};
|
|
8670
8711
|
}
|
|
8671
8712
|
|
|
8672
|
-
// node_modules/.pnpm/mcporter@0.
|
|
8713
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/it.js
|
|
8673
8714
|
var error27 = () => {
|
|
8674
8715
|
const Sizable = {
|
|
8675
8716
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -8783,7 +8824,7 @@ function it_default() {
|
|
|
8783
8824
|
};
|
|
8784
8825
|
}
|
|
8785
8826
|
|
|
8786
|
-
// node_modules/.pnpm/mcporter@0.
|
|
8827
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ja.js
|
|
8787
8828
|
var error28 = () => {
|
|
8788
8829
|
const Sizable = {
|
|
8789
8830
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -8896,7 +8937,7 @@ function ja_default() {
|
|
|
8896
8937
|
};
|
|
8897
8938
|
}
|
|
8898
8939
|
|
|
8899
|
-
// node_modules/.pnpm/mcporter@0.
|
|
8940
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ka.js
|
|
8900
8941
|
var error29 = () => {
|
|
8901
8942
|
const Sizable = {
|
|
8902
8943
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -9014,7 +9055,7 @@ function ka_default() {
|
|
|
9014
9055
|
};
|
|
9015
9056
|
}
|
|
9016
9057
|
|
|
9017
|
-
// node_modules/.pnpm/mcporter@0.
|
|
9058
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/km.js
|
|
9018
9059
|
var error30 = () => {
|
|
9019
9060
|
const Sizable = {
|
|
9020
9061
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -9130,12 +9171,12 @@ function km_default() {
|
|
|
9130
9171
|
};
|
|
9131
9172
|
}
|
|
9132
9173
|
|
|
9133
|
-
// node_modules/.pnpm/mcporter@0.
|
|
9174
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/kh.js
|
|
9134
9175
|
function kh_default() {
|
|
9135
9176
|
return km_default();
|
|
9136
9177
|
}
|
|
9137
9178
|
|
|
9138
|
-
// node_modules/.pnpm/mcporter@0.
|
|
9179
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/kn.js
|
|
9139
9180
|
var error31 = () => {
|
|
9140
9181
|
const Sizable = {
|
|
9141
9182
|
string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
|
|
@@ -9251,7 +9292,7 @@ function kn_default() {
|
|
|
9251
9292
|
};
|
|
9252
9293
|
}
|
|
9253
9294
|
|
|
9254
|
-
// node_modules/.pnpm/mcporter@0.
|
|
9295
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ko.js
|
|
9255
9296
|
var error32 = () => {
|
|
9256
9297
|
const Sizable = {
|
|
9257
9298
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -9368,7 +9409,7 @@ function ko_default() {
|
|
|
9368
9409
|
};
|
|
9369
9410
|
}
|
|
9370
9411
|
|
|
9371
|
-
// node_modules/.pnpm/mcporter@0.
|
|
9412
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/lt.js
|
|
9372
9413
|
var capitalizeFirstCharacter = (text) => {
|
|
9373
9414
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
9374
9415
|
};
|
|
@@ -9576,7 +9617,7 @@ function lt_default() {
|
|
|
9576
9617
|
};
|
|
9577
9618
|
}
|
|
9578
9619
|
|
|
9579
|
-
// node_modules/.pnpm/mcporter@0.
|
|
9620
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/mk.js
|
|
9580
9621
|
var error34 = () => {
|
|
9581
9622
|
const Sizable = {
|
|
9582
9623
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -9691,7 +9732,7 @@ function mk_default() {
|
|
|
9691
9732
|
};
|
|
9692
9733
|
}
|
|
9693
9734
|
|
|
9694
|
-
// node_modules/.pnpm/mcporter@0.
|
|
9735
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ms.js
|
|
9695
9736
|
var error35 = () => {
|
|
9696
9737
|
const Sizable = {
|
|
9697
9738
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -9804,7 +9845,7 @@ function ms_default() {
|
|
|
9804
9845
|
};
|
|
9805
9846
|
}
|
|
9806
9847
|
|
|
9807
|
-
// node_modules/.pnpm/mcporter@0.
|
|
9848
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ne.js
|
|
9808
9849
|
var error36 = () => {
|
|
9809
9850
|
const Sizable = {
|
|
9810
9851
|
string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
|
|
@@ -9916,7 +9957,7 @@ function ne_default() {
|
|
|
9916
9957
|
};
|
|
9917
9958
|
}
|
|
9918
9959
|
|
|
9919
|
-
// node_modules/.pnpm/mcporter@0.
|
|
9960
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/nl.js
|
|
9920
9961
|
var error37 = () => {
|
|
9921
9962
|
const Sizable = {
|
|
9922
9963
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -10032,7 +10073,7 @@ function nl_default() {
|
|
|
10032
10073
|
};
|
|
10033
10074
|
}
|
|
10034
10075
|
|
|
10035
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10076
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/nn.js
|
|
10036
10077
|
var error38 = () => {
|
|
10037
10078
|
const Sizable = {
|
|
10038
10079
|
string: { unit: "teikn", verb: "\xE5 ha" },
|
|
@@ -10146,7 +10187,7 @@ function nn_default() {
|
|
|
10146
10187
|
};
|
|
10147
10188
|
}
|
|
10148
10189
|
|
|
10149
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10190
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/no.js
|
|
10150
10191
|
var error39 = () => {
|
|
10151
10192
|
const Sizable = {
|
|
10152
10193
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -10260,7 +10301,7 @@ function no_default() {
|
|
|
10260
10301
|
};
|
|
10261
10302
|
}
|
|
10262
10303
|
|
|
10263
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10304
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ota.js
|
|
10264
10305
|
var error40 = () => {
|
|
10265
10306
|
const Sizable = {
|
|
10266
10307
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -10375,7 +10416,7 @@ function ota_default() {
|
|
|
10375
10416
|
};
|
|
10376
10417
|
}
|
|
10377
10418
|
|
|
10378
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10419
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ps.js
|
|
10379
10420
|
var error41 = () => {
|
|
10380
10421
|
const Sizable = {
|
|
10381
10422
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -10495,7 +10536,7 @@ function ps_default() {
|
|
|
10495
10536
|
};
|
|
10496
10537
|
}
|
|
10497
10538
|
|
|
10498
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10539
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/pl.js
|
|
10499
10540
|
var error42 = () => {
|
|
10500
10541
|
const Sizable = {
|
|
10501
10542
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -10610,7 +10651,7 @@ function pl_default() {
|
|
|
10610
10651
|
};
|
|
10611
10652
|
}
|
|
10612
10653
|
|
|
10613
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10654
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/pt.js
|
|
10614
10655
|
var error43 = () => {
|
|
10615
10656
|
const Sizable = {
|
|
10616
10657
|
string: { unit: "caracteres" },
|
|
@@ -10754,7 +10795,7 @@ function pt_default() {
|
|
|
10754
10795
|
};
|
|
10755
10796
|
}
|
|
10756
10797
|
|
|
10757
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10798
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/pt-BR.js
|
|
10758
10799
|
var error44 = () => {
|
|
10759
10800
|
const Sizable = {
|
|
10760
10801
|
string: { unit: "caracteres" },
|
|
@@ -10899,7 +10940,7 @@ function pt_BR_default() {
|
|
|
10899
10940
|
};
|
|
10900
10941
|
}
|
|
10901
10942
|
|
|
10902
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10943
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ro.js
|
|
10903
10944
|
var error45 = () => {
|
|
10904
10945
|
const Sizable = {
|
|
10905
10946
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -11022,7 +11063,7 @@ function ro_default() {
|
|
|
11022
11063
|
};
|
|
11023
11064
|
}
|
|
11024
11065
|
|
|
11025
|
-
// node_modules/.pnpm/mcporter@0.
|
|
11066
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ru.js
|
|
11026
11067
|
function getRussianPlural(count, one, few, many) {
|
|
11027
11068
|
const absCount = Math.abs(count);
|
|
11028
11069
|
const lastDigit = absCount % 10;
|
|
@@ -11191,7 +11232,7 @@ function ru_default() {
|
|
|
11191
11232
|
};
|
|
11192
11233
|
}
|
|
11193
11234
|
|
|
11194
|
-
// node_modules/.pnpm/mcporter@0.
|
|
11235
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/sk.js
|
|
11195
11236
|
var error47 = () => {
|
|
11196
11237
|
const Sizable = {
|
|
11197
11238
|
string: { unit: "znakov", verb: "ma\u0165" },
|
|
@@ -11308,7 +11349,7 @@ function sk_default() {
|
|
|
11308
11349
|
};
|
|
11309
11350
|
}
|
|
11310
11351
|
|
|
11311
|
-
// node_modules/.pnpm/mcporter@0.
|
|
11352
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/sl.js
|
|
11312
11353
|
var error48 = () => {
|
|
11313
11354
|
const Sizable = {
|
|
11314
11355
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -11423,7 +11464,7 @@ function sl_default() {
|
|
|
11423
11464
|
};
|
|
11424
11465
|
}
|
|
11425
11466
|
|
|
11426
|
-
// node_modules/.pnpm/mcporter@0.
|
|
11467
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/sv.js
|
|
11427
11468
|
var error49 = () => {
|
|
11428
11469
|
const Sizable = {
|
|
11429
11470
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -11539,7 +11580,7 @@ function sv_default() {
|
|
|
11539
11580
|
};
|
|
11540
11581
|
}
|
|
11541
11582
|
|
|
11542
|
-
// node_modules/.pnpm/mcporter@0.
|
|
11583
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ta.js
|
|
11543
11584
|
var error50 = () => {
|
|
11544
11585
|
const Sizable = {
|
|
11545
11586
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -11655,7 +11696,7 @@ function ta_default() {
|
|
|
11655
11696
|
};
|
|
11656
11697
|
}
|
|
11657
11698
|
|
|
11658
|
-
// node_modules/.pnpm/mcporter@0.
|
|
11699
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/tg.js
|
|
11659
11700
|
var error51 = () => {
|
|
11660
11701
|
const Sizable = {
|
|
11661
11702
|
string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
|
|
@@ -11772,7 +11813,7 @@ function tg_default() {
|
|
|
11772
11813
|
};
|
|
11773
11814
|
}
|
|
11774
11815
|
|
|
11775
|
-
// node_modules/.pnpm/mcporter@0.
|
|
11816
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/th.js
|
|
11776
11817
|
var error52 = () => {
|
|
11777
11818
|
const Sizable = {
|
|
11778
11819
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -11888,7 +11929,7 @@ function th_default() {
|
|
|
11888
11929
|
};
|
|
11889
11930
|
}
|
|
11890
11931
|
|
|
11891
|
-
// node_modules/.pnpm/mcporter@0.
|
|
11932
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/tk.js
|
|
11892
11933
|
var error53 = () => {
|
|
11893
11934
|
const Sizable = {
|
|
11894
11935
|
string: { unit: "simwol", verb: "bolmaly" },
|
|
@@ -11996,7 +12037,7 @@ function tk_default() {
|
|
|
11996
12037
|
};
|
|
11997
12038
|
}
|
|
11998
12039
|
|
|
11999
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12040
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/tr.js
|
|
12000
12041
|
var error54 = () => {
|
|
12001
12042
|
const Sizable = {
|
|
12002
12043
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -12107,7 +12148,7 @@ function tr_default() {
|
|
|
12107
12148
|
};
|
|
12108
12149
|
}
|
|
12109
12150
|
|
|
12110
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12151
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/uk.js
|
|
12111
12152
|
var error55 = () => {
|
|
12112
12153
|
const Sizable = {
|
|
12113
12154
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -12221,12 +12262,12 @@ function uk_default() {
|
|
|
12221
12262
|
};
|
|
12222
12263
|
}
|
|
12223
12264
|
|
|
12224
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12265
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ua.js
|
|
12225
12266
|
function ua_default() {
|
|
12226
12267
|
return uk_default();
|
|
12227
12268
|
}
|
|
12228
12269
|
|
|
12229
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12270
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/ur.js
|
|
12230
12271
|
var error56 = () => {
|
|
12231
12272
|
const Sizable = {
|
|
12232
12273
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -12342,7 +12383,7 @@ function ur_default() {
|
|
|
12342
12383
|
};
|
|
12343
12384
|
}
|
|
12344
12385
|
|
|
12345
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12386
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/uz.js
|
|
12346
12387
|
var error57 = () => {
|
|
12347
12388
|
const Sizable = {
|
|
12348
12389
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -12456,7 +12497,7 @@ function uz_default() {
|
|
|
12456
12497
|
};
|
|
12457
12498
|
}
|
|
12458
12499
|
|
|
12459
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12500
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/vi.js
|
|
12460
12501
|
var error58 = () => {
|
|
12461
12502
|
const Sizable = {
|
|
12462
12503
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -12570,7 +12611,7 @@ function vi_default() {
|
|
|
12570
12611
|
};
|
|
12571
12612
|
}
|
|
12572
12613
|
|
|
12573
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12614
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/zh-CN.js
|
|
12574
12615
|
var error59 = () => {
|
|
12575
12616
|
const Sizable = {
|
|
12576
12617
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -12685,7 +12726,7 @@ function zh_CN_default() {
|
|
|
12685
12726
|
};
|
|
12686
12727
|
}
|
|
12687
12728
|
|
|
12688
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12729
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/zh-TW.js
|
|
12689
12730
|
var error60 = () => {
|
|
12690
12731
|
const Sizable = {
|
|
12691
12732
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -12798,7 +12839,7 @@ function zh_TW_default() {
|
|
|
12798
12839
|
};
|
|
12799
12840
|
}
|
|
12800
12841
|
|
|
12801
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12842
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/locales/yo.js
|
|
12802
12843
|
var error61 = () => {
|
|
12803
12844
|
const Sizable = {
|
|
12804
12845
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -12911,7 +12952,7 @@ function yo_default() {
|
|
|
12911
12952
|
};
|
|
12912
12953
|
}
|
|
12913
12954
|
|
|
12914
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12955
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/registries.js
|
|
12915
12956
|
var _a2;
|
|
12916
12957
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
12917
12958
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -12961,7 +13002,7 @@ function registry() {
|
|
|
12961
13002
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
12962
13003
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
12963
13004
|
|
|
12964
|
-
// node_modules/.pnpm/mcporter@0.
|
|
13005
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/compile.js
|
|
12965
13006
|
var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
|
|
12966
13007
|
var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
|
|
12967
13008
|
var ZodCompileAsyncError = class extends Error {
|
|
@@ -14001,9 +14042,15 @@ function generateNullableCheck(doc, ctx, schema, accessor, buildsValue = true) {
|
|
|
14001
14042
|
doc.write(`}`);
|
|
14002
14043
|
return outputVar;
|
|
14003
14044
|
}
|
|
14045
|
+
function generateSizeGate(doc, schema, size) {
|
|
14046
|
+
for (const [max, check2] of sizeCaps(schema._zod.def.checks)) {
|
|
14047
|
+
doc.write(`if (${size} > ${numericOperand(max, check2._zod.def.check)}) return INVALID;`);
|
|
14048
|
+
}
|
|
14049
|
+
}
|
|
14004
14050
|
function generateArrayCheck(doc, ctx, schema, accessor, buildsValue = true) {
|
|
14005
14051
|
const def = schema._zod.def;
|
|
14006
14052
|
doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
|
|
14053
|
+
generateSizeGate(doc, schema, `${accessor}.length`);
|
|
14007
14054
|
const outputVar = buildsValue ? newVar(ctx) : null;
|
|
14008
14055
|
const iVar = newVar(ctx);
|
|
14009
14056
|
const elemVar = newVar(ctx);
|
|
@@ -14403,6 +14450,7 @@ function literalPropertyKey(ctx, key) {
|
|
|
14403
14450
|
function generateMapCheck(doc, ctx, schema, accessor) {
|
|
14404
14451
|
const def = schema._zod.def;
|
|
14405
14452
|
doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);
|
|
14453
|
+
generateSizeGate(doc, schema, `${accessor}.size`);
|
|
14406
14454
|
const outputVar = newVar(ctx);
|
|
14407
14455
|
const kVar = newVar(ctx);
|
|
14408
14456
|
const valVar = newVar(ctx);
|
|
@@ -14419,6 +14467,7 @@ function generateMapCheck(doc, ctx, schema, accessor) {
|
|
|
14419
14467
|
function generateSetCheck(doc, ctx, schema, accessor) {
|
|
14420
14468
|
const def = schema._zod.def;
|
|
14421
14469
|
doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);
|
|
14470
|
+
generateSizeGate(doc, schema, `${accessor}.size`);
|
|
14422
14471
|
const outputVar = newVar(ctx);
|
|
14423
14472
|
const valVar = newVar(ctx);
|
|
14424
14473
|
doc.write(`const ${outputVar} = new Set();`);
|
|
@@ -14563,7 +14612,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
|
|
|
14563
14612
|
return accessor;
|
|
14564
14613
|
}
|
|
14565
14614
|
|
|
14566
|
-
// node_modules/.pnpm/mcporter@0.
|
|
14615
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/api.js
|
|
14567
14616
|
function snapshotChecks(def) {
|
|
14568
14617
|
if (def.checks)
|
|
14569
14618
|
def.checks = [...def.checks];
|
|
@@ -15622,7 +15671,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
15622
15671
|
return inst;
|
|
15623
15672
|
}
|
|
15624
15673
|
|
|
15625
|
-
// node_modules/.pnpm/mcporter@0.
|
|
15674
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/to-json-schema.js
|
|
15626
15675
|
function assignProps(target, ...sources) {
|
|
15627
15676
|
for (const source of sources) {
|
|
15628
15677
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -16152,7 +16201,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
16152
16201
|
return finalize(ctx, schema);
|
|
16153
16202
|
};
|
|
16154
16203
|
|
|
16155
|
-
// node_modules/.pnpm/mcporter@0.
|
|
16204
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/json-schema-processors.js
|
|
16156
16205
|
var narrowMin = (agg, key, value) => {
|
|
16157
16206
|
if (agg[key] === void 0 || value > agg[key])
|
|
16158
16207
|
agg[key] = value;
|
|
@@ -16900,7 +16949,7 @@ function toJSONSchema(input2, params) {
|
|
|
16900
16949
|
return finalize(ctx, input2);
|
|
16901
16950
|
}
|
|
16902
16951
|
|
|
16903
|
-
// node_modules/.pnpm/mcporter@0.
|
|
16952
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/json-schema-generator.js
|
|
16904
16953
|
var JSONSchemaGenerator = class {
|
|
16905
16954
|
/** @deprecated Access via ctx instead */
|
|
16906
16955
|
get metadataRegistry() {
|
|
@@ -16978,10 +17027,10 @@ var JSONSchemaGenerator = class {
|
|
|
16978
17027
|
}
|
|
16979
17028
|
};
|
|
16980
17029
|
|
|
16981
|
-
// node_modules/.pnpm/mcporter@0.
|
|
17030
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/json-schema.js
|
|
16982
17031
|
var json_schema_exports = {};
|
|
16983
17032
|
|
|
16984
|
-
// node_modules/.pnpm/mcporter@0.
|
|
17033
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/schemas.js
|
|
16985
17034
|
var schemas_exports2 = {};
|
|
16986
17035
|
__export(schemas_exports2, {
|
|
16987
17036
|
ZodAny: () => ZodAny,
|
|
@@ -17162,7 +17211,7 @@ __export(schemas_exports2, {
|
|
|
17162
17211
|
xor: () => xor
|
|
17163
17212
|
});
|
|
17164
17213
|
|
|
17165
|
-
// node_modules/.pnpm/mcporter@0.
|
|
17214
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/checks.js
|
|
17166
17215
|
var checks_exports2 = {};
|
|
17167
17216
|
__export(checks_exports2, {
|
|
17168
17217
|
endsWith: () => _endsWith,
|
|
@@ -17197,7 +17246,7 @@ __export(checks_exports2, {
|
|
|
17197
17246
|
uppercase: () => _uppercase
|
|
17198
17247
|
});
|
|
17199
17248
|
|
|
17200
|
-
// node_modules/.pnpm/mcporter@0.
|
|
17249
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/errors.js
|
|
17201
17250
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
17202
17251
|
function _lazyMethod(proto, key, make) {
|
|
17203
17252
|
Object.defineProperty(proto, key, {
|
|
@@ -17243,7 +17292,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
|
|
|
17243
17292
|
Parent: Error
|
|
17244
17293
|
});
|
|
17245
17294
|
|
|
17246
|
-
// node_modules/.pnpm/mcporter@0.
|
|
17295
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/parse.js
|
|
17247
17296
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
17248
17297
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
17249
17298
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -17257,7 +17306,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
17257
17306
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
17258
17307
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
17259
17308
|
|
|
17260
|
-
// node_modules/.pnpm/mcporter@0.
|
|
17309
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/schemas.js
|
|
17261
17310
|
function _ensureDefaultLocale() {
|
|
17262
17311
|
if (!globalConfig.localeError)
|
|
17263
17312
|
config(en_default());
|
|
@@ -18722,7 +18771,7 @@ function preprocess(fn, schema) {
|
|
|
18722
18771
|
});
|
|
18723
18772
|
}
|
|
18724
18773
|
|
|
18725
|
-
// node_modules/.pnpm/mcporter@0.
|
|
18774
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/compat.js
|
|
18726
18775
|
var ZodIssueCode = {
|
|
18727
18776
|
invalid_type: "invalid_type",
|
|
18728
18777
|
too_big: "too_big",
|
|
@@ -18748,7 +18797,7 @@ var ZodFirstPartyTypeKind;
|
|
|
18748
18797
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
18749
18798
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
18750
18799
|
|
|
18751
|
-
// node_modules/.pnpm/mcporter@0.
|
|
18800
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/iso.js
|
|
18752
18801
|
var iso_exports = {};
|
|
18753
18802
|
__export(iso_exports, {
|
|
18754
18803
|
ZodISODate: () => ZodISODate,
|
|
@@ -18773,7 +18822,7 @@ function duration2(params) {
|
|
|
18773
18822
|
return _isoDuration(ZodISODuration, params);
|
|
18774
18823
|
}
|
|
18775
18824
|
|
|
18776
|
-
// node_modules/.pnpm/mcporter@0.
|
|
18825
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/from-json-schema.js
|
|
18777
18826
|
var z = {
|
|
18778
18827
|
...schemas_exports2,
|
|
18779
18828
|
...checks_exports2,
|
|
@@ -19506,7 +19555,7 @@ function fromJSONSchema(schema, params) {
|
|
|
19506
19555
|
return convertSchema(normalized, ctx);
|
|
19507
19556
|
}
|
|
19508
19557
|
|
|
19509
|
-
// node_modules/.pnpm/mcporter@0.
|
|
19558
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/core/visit.js
|
|
19510
19559
|
var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
|
|
19511
19560
|
function visit(schema, fnOrHandlers) {
|
|
19512
19561
|
const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
|
|
@@ -19661,7 +19710,7 @@ function visit(schema, fnOrHandlers) {
|
|
|
19661
19710
|
return run(schema);
|
|
19662
19711
|
}
|
|
19663
19712
|
|
|
19664
|
-
// node_modules/.pnpm/mcporter@0.
|
|
19713
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/deep-partial.js
|
|
19665
19714
|
function deepPartial(schema) {
|
|
19666
19715
|
return visit(schema, {
|
|
19667
19716
|
object: (s) => s.partial(),
|
|
@@ -19673,7 +19722,7 @@ function deepPartial(schema) {
|
|
|
19673
19722
|
});
|
|
19674
19723
|
}
|
|
19675
19724
|
|
|
19676
|
-
// node_modules/.pnpm/mcporter@0.
|
|
19725
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/in-out.js
|
|
19677
19726
|
function withChecks(side, checks) {
|
|
19678
19727
|
if (!checks?.length)
|
|
19679
19728
|
return side;
|
|
@@ -19703,7 +19752,7 @@ function output(schema) {
|
|
|
19703
19752
|
});
|
|
19704
19753
|
}
|
|
19705
19754
|
|
|
19706
|
-
// node_modules/.pnpm/mcporter@0.
|
|
19755
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/zod/v4/classic/coerce.js
|
|
19707
19756
|
var coerce_exports = {};
|
|
19708
19757
|
__export(coerce_exports, {
|
|
19709
19758
|
bigint: () => bigint3,
|
|
@@ -19728,7 +19777,7 @@ function date4(params) {
|
|
|
19728
19777
|
return _coercedDate(ZodDate, params);
|
|
19729
19778
|
}
|
|
19730
19779
|
|
|
19731
|
-
// node_modules/.pnpm/mcporter@0.
|
|
19780
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs
|
|
19732
19781
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
19733
19782
|
var SUPPORTED_PROTOCOL_VERSIONS = [
|
|
19734
19783
|
LATEST_PROTOCOL_VERSION,
|
|
@@ -20669,7 +20718,7 @@ var OAuthTokenRevocationRequestSchema = object({
|
|
|
20669
20718
|
token_type_hint: string2().optional()
|
|
20670
20719
|
}).strip();
|
|
20671
20720
|
|
|
20672
|
-
// node_modules/.pnpm/mcporter@0.
|
|
20721
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/@modelcontextprotocol/client/dist/src-WCy6ifGf.mjs
|
|
20673
20722
|
var BRANDS = /* @__PURE__ */ Symbol.for("mcp.sdk.errorBrands");
|
|
20674
20723
|
function stampErrorBrands(instance, ctor) {
|
|
20675
20724
|
const brands = /* @__PURE__ */ new Set();
|
|
@@ -22916,7 +22965,8 @@ function build() {
|
|
|
22916
22965
|
ListResourceTemplatesResultResponseSchema: wireResultResponse(ListResourceTemplatesResultSchema$1),
|
|
22917
22966
|
ReadResourceResultResponseSchema: wireResultResponse(union([ReadResourceResultSchema$1, InputRequiredResultSchema])),
|
|
22918
22967
|
CompleteResultResponseSchema: wireResultResponse(CompleteResultSchema$1),
|
|
22919
|
-
DiscoverResultResponseSchema: wireResultResponse(DiscoverResultSchema$1)
|
|
22968
|
+
DiscoverResultResponseSchema: wireResultResponse(DiscoverResultSchema$1),
|
|
22969
|
+
SubscriptionsListenResultResponseSchema: wireResultResponse(SubscriptionsListenResultSchema$1)
|
|
22920
22970
|
};
|
|
22921
22971
|
}
|
|
22922
22972
|
var memo2;
|
|
@@ -23403,6 +23453,9 @@ function isSpecRequestMethod(method) {
|
|
|
23403
23453
|
function isSpecNotificationMethod(method) {
|
|
23404
23454
|
return ALL_CODECS.some((codec2) => codec2.hasNotificationMethod(method));
|
|
23405
23455
|
}
|
|
23456
|
+
function isExtensionReusedRequestMethod(method) {
|
|
23457
|
+
return method === "tasks/get" || method === "tasks/cancel";
|
|
23458
|
+
}
|
|
23406
23459
|
var ALL_CODECS = [rev2025Codec, rev2026Codec];
|
|
23407
23460
|
var schemas_exports3 = /* @__PURE__ */ __exportAll({
|
|
23408
23461
|
AnnotationsSchema: () => AnnotationsSchema,
|
|
@@ -24441,6 +24494,8 @@ var Protocol = class {
|
|
|
24441
24494
|
_transport;
|
|
24442
24495
|
_requestMessageId = 0;
|
|
24443
24496
|
_requestHandlers = /* @__PURE__ */ new Map();
|
|
24497
|
+
/** Methods registered with an explicit schema; the era gate in `_onrequest` reads it for the Tasks extension names. */
|
|
24498
|
+
_customSchemaRequestMethods = /* @__PURE__ */ new Set();
|
|
24444
24499
|
_requestHandlerAbortControllers = /* @__PURE__ */ new Map();
|
|
24445
24500
|
_notificationHandlers = /* @__PURE__ */ new Map();
|
|
24446
24501
|
_responseHandlers = /* @__PURE__ */ new Map();
|
|
@@ -24724,7 +24779,7 @@ var Protocol = class {
|
|
|
24724
24779
|
return;
|
|
24725
24780
|
}
|
|
24726
24781
|
}
|
|
24727
|
-
if (isSpecRequestMethod(request.method) && !codec2.hasRequestMethod(request.method)) {
|
|
24782
|
+
if (isSpecRequestMethod(request.method) && !codec2.hasRequestMethod(request.method) && !(isExtensionReusedRequestMethod(request.method) && this._customSchemaRequestMethods.has(request.method))) {
|
|
24728
24783
|
sendErrorResponse(ProtocolErrorCode.MethodNotFound, "Method not found");
|
|
24729
24784
|
return;
|
|
24730
24785
|
}
|
|
@@ -24857,8 +24912,11 @@ var Protocol = class {
|
|
|
24857
24912
|
}
|
|
24858
24913
|
request(request, schemaOrOptions, maybeOptions) {
|
|
24859
24914
|
const codec2 = this._resolveOutboundCodec(request.method);
|
|
24915
|
+
if (isStandardSchema(schemaOrOptions)) {
|
|
24916
|
+
if (!isExtensionReusedRequestMethod(request.method)) this._assertOutboundRequestInEra(codec2, request.method);
|
|
24917
|
+
return this._requestWithSchemaViaCodec(codec2, request, schemaOrOptions, maybeOptions);
|
|
24918
|
+
}
|
|
24860
24919
|
this._assertOutboundRequestInEra(codec2, request.method);
|
|
24861
|
-
if (isStandardSchema(schemaOrOptions)) return this._requestWithSchemaViaCodec(codec2, request, schemaOrOptions, maybeOptions);
|
|
24862
24920
|
const validate2 = codecResultValidator(codec2, request.method);
|
|
24863
24921
|
if (validate2 === void 0) throw new TypeError(`'${request.method}' is not a spec method; pass a result schema as the second argument to request().`);
|
|
24864
24922
|
return this._requestWithSchemaViaCodec(codec2, request, validate2, schemaOrOptions);
|
|
@@ -25102,6 +25160,8 @@ var Protocol = class {
|
|
|
25102
25160
|
return maybeHandler(parsed.data, ctx);
|
|
25103
25161
|
};
|
|
25104
25162
|
else throw new TypeError("setRequestHandler: handler is required");
|
|
25163
|
+
if (typeof schemasOrHandler === "function") this._customSchemaRequestMethods.delete(method);
|
|
25164
|
+
else this._customSchemaRequestMethods.add(method);
|
|
25105
25165
|
this._requestHandlers.set(method, this._wrapHandler(method, stored));
|
|
25106
25166
|
}
|
|
25107
25167
|
/**
|
|
@@ -25131,6 +25191,7 @@ var Protocol = class {
|
|
|
25131
25191
|
*/
|
|
25132
25192
|
removeRequestHandler(method) {
|
|
25133
25193
|
this._requestHandlers.delete(method);
|
|
25194
|
+
this._customSchemaRequestMethods.delete(method);
|
|
25134
25195
|
}
|
|
25135
25196
|
/**
|
|
25136
25197
|
* Asserts that a request handler has not already been set for the given method, in preparation for a new one being automatically installed.
|
|
@@ -25399,8 +25460,69 @@ function createFetchWithInit(baseFetch = fetch, baseInit) {
|
|
|
25399
25460
|
});
|
|
25400
25461
|
};
|
|
25401
25462
|
}
|
|
25463
|
+
var REDIRECT_STATUSES = /* @__PURE__ */ new Set([
|
|
25464
|
+
301,
|
|
25465
|
+
302,
|
|
25466
|
+
303,
|
|
25467
|
+
307,
|
|
25468
|
+
308
|
|
25469
|
+
]);
|
|
25470
|
+
var MAX_REDIRECTS = 5;
|
|
25471
|
+
function isWithinOrigin(from, to) {
|
|
25472
|
+
if (from.protocol === to.protocol && from.host === to.host) return true;
|
|
25473
|
+
return from.protocol === "http:" && to.protocol === "https:" && from.hostname === to.hostname && !from.port && !to.port;
|
|
25474
|
+
}
|
|
25475
|
+
function redirectTarget(url2, response) {
|
|
25476
|
+
const location = REDIRECT_STATUSES.has(response.status) ? response.headers?.get("location") : void 0;
|
|
25477
|
+
if (!location) return void 0;
|
|
25478
|
+
try {
|
|
25479
|
+
return new URL(location, url2);
|
|
25480
|
+
} catch {
|
|
25481
|
+
return;
|
|
25482
|
+
}
|
|
25483
|
+
}
|
|
25484
|
+
var leftToFetch = /* @__PURE__ */ new WeakSet();
|
|
25485
|
+
function fetchLeavingRedirects(baseFetch) {
|
|
25486
|
+
const copy = (url2, init) => baseFetch(url2, init);
|
|
25487
|
+
leftToFetch.add(copy);
|
|
25488
|
+
return copy;
|
|
25489
|
+
}
|
|
25490
|
+
function fetchWithinOrigin(baseFetch) {
|
|
25491
|
+
if (leftToFetch.has(baseFetch)) return baseFetch;
|
|
25492
|
+
return async (url2, init) => {
|
|
25493
|
+
if (init?.redirect === "error" || init?.redirect === "manual") return baseFetch(url2, init);
|
|
25494
|
+
const method = (init?.method ?? "GET").toUpperCase();
|
|
25495
|
+
let current = url2;
|
|
25496
|
+
for (let followed = 0; ; followed++) {
|
|
25497
|
+
const response = await baseFetch(current, {
|
|
25498
|
+
...init,
|
|
25499
|
+
redirect: "manual"
|
|
25500
|
+
});
|
|
25501
|
+
const target = redirectTarget(current, response);
|
|
25502
|
+
if (!target || followed === MAX_REDIRECTS) return response;
|
|
25503
|
+
const from = new URL(current);
|
|
25504
|
+
const keepsMethod = method === "GET" || method === "HEAD" || response.status === 307 || response.status === 308 || (response.status === 301 || response.status === 302) && method !== "POST";
|
|
25505
|
+
const keepsUserinfo = !(target.username || target.password) || target.username === from.username && target.password === from.password;
|
|
25506
|
+
if (!keepsMethod || !keepsUserinfo || !isWithinOrigin(from, target)) return response;
|
|
25507
|
+
await response.text?.().catch(() => {
|
|
25508
|
+
});
|
|
25509
|
+
current = target;
|
|
25510
|
+
}
|
|
25511
|
+
};
|
|
25512
|
+
}
|
|
25513
|
+
function unfollowedRedirect(url2, response) {
|
|
25514
|
+
if (response.type === "opaqueredirect") return "Redirect not followed: this runtime does not expose where it points";
|
|
25515
|
+
const target = redirectTarget(response.url || url2, response);
|
|
25516
|
+
if (!target) return void 0;
|
|
25517
|
+
target.username = target.password = target.search = target.hash = "";
|
|
25518
|
+
if (target.protocol === "http:" && new URL(response.url || url2).protocol === "https:") {
|
|
25519
|
+
target.protocol = "https:";
|
|
25520
|
+
return `Redirect from https to plain http not followed; try ${target.href} as the endpoint`;
|
|
25521
|
+
}
|
|
25522
|
+
return `Redirect to ${target.href} not followed; use that URL as the endpoint if it is the intended server`;
|
|
25523
|
+
}
|
|
25402
25524
|
|
|
25403
|
-
// node_modules/.pnpm/mcporter@0.
|
|
25525
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/@modelcontextprotocol/client/dist/ajvProvider-97rDpkRx.mjs
|
|
25404
25526
|
var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
25405
25527
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25406
25528
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -32410,10 +32532,10 @@ var AjvJsonSchemaValidator = class {
|
|
|
32410
32532
|
};
|
|
32411
32533
|
var Ajv = import_ajv.Ajv;
|
|
32412
32534
|
|
|
32413
|
-
// node_modules/.pnpm/mcporter@0.
|
|
32535
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs
|
|
32414
32536
|
var CORS_IS_POSSIBLE = false;
|
|
32415
32537
|
|
|
32416
|
-
// node_modules/.pnpm/mcporter@0.
|
|
32538
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/pkce-challenge/dist/index.node.js
|
|
32417
32539
|
var crypto;
|
|
32418
32540
|
crypto = globalThis.crypto?.webcrypto ?? // Node.js [18-16] REPL
|
|
32419
32541
|
globalThis.crypto ?? // Node.js >18
|
|
@@ -32456,7 +32578,7 @@ async function pkceChallenge(length) {
|
|
|
32456
32578
|
};
|
|
32457
32579
|
}
|
|
32458
32580
|
|
|
32459
|
-
// node_modules/.pnpm/mcporter@0.
|
|
32581
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/eventsource-parser/dist/index.js
|
|
32460
32582
|
var ParseError = class extends Error {
|
|
32461
32583
|
constructor(message, options) {
|
|
32462
32584
|
super(message), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
|
|
@@ -32632,7 +32754,7 @@ function isEventPrefix(chunk, i, firstCharCode) {
|
|
|
32632
32754
|
return firstCharCode === 101 && chunk.charCodeAt(i + 1) === 118 && chunk.charCodeAt(i + 2) === 101 && chunk.charCodeAt(i + 3) === 110 && chunk.charCodeAt(i + 4) === 116 && chunk.charCodeAt(i + 5) === 58;
|
|
32633
32755
|
}
|
|
32634
32756
|
|
|
32635
|
-
// node_modules/.pnpm/mcporter@0.
|
|
32757
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/eventsource/dist/index.js
|
|
32636
32758
|
var ErrorEvent = class extends Event {
|
|
32637
32759
|
/**
|
|
32638
32760
|
* Constructs a new `ErrorEvent` instance. This is typically not called directly,
|
|
@@ -32929,7 +33051,7 @@ function getBaseURL() {
|
|
|
32929
33051
|
return doc && typeof doc == "object" && "baseURI" in doc && typeof doc.baseURI == "string" ? doc.baseURI : void 0;
|
|
32930
33052
|
}
|
|
32931
33053
|
|
|
32932
|
-
// node_modules/.pnpm/mcporter@0.
|
|
33054
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/eventsource-parser/dist/stream.js
|
|
32933
33055
|
var EventSourceParserStream = class extends TransformStream {
|
|
32934
33056
|
constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {
|
|
32935
33057
|
let parser;
|
|
@@ -32954,7 +33076,7 @@ var EventSourceParserStream = class extends TransformStream {
|
|
|
32954
33076
|
}
|
|
32955
33077
|
};
|
|
32956
33078
|
|
|
32957
|
-
// node_modules/.pnpm/mcporter@0.
|
|
33079
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/node_modules/@modelcontextprotocol/client/dist/index.mjs
|
|
32958
33080
|
var OAuthClientFlowError = class extends Error {
|
|
32959
33081
|
static {
|
|
32960
33082
|
Object.defineProperty(this, "mcpBrand", { value: "mcp.OAuthClientFlowError" });
|
|
@@ -33548,12 +33670,13 @@ async function discoverOAuthProtectedResourceMetadata(serverUrl, opts, fetchFn =
|
|
|
33548
33670
|
return OAuthProtectedResourceMetadataSchema.parse(await response.json());
|
|
33549
33671
|
}
|
|
33550
33672
|
async function fetchWithCorsRetry(url2, headers, fetchFn = fetch) {
|
|
33673
|
+
const withinOrigin = fetchWithinOrigin(fetchFn);
|
|
33551
33674
|
try {
|
|
33552
|
-
return await
|
|
33675
|
+
return await withinOrigin(url2, { headers });
|
|
33553
33676
|
} catch (error62) {
|
|
33554
33677
|
if (!(error62 instanceof TypeError) || !CORS_IS_POSSIBLE) throw error62;
|
|
33555
33678
|
if (headers) try {
|
|
33556
|
-
return await
|
|
33679
|
+
return await withinOrigin(url2, {});
|
|
33557
33680
|
} catch (retryError) {
|
|
33558
33681
|
if (!(retryError instanceof TypeError)) throw retryError;
|
|
33559
33682
|
return;
|
|
@@ -33571,7 +33694,7 @@ async function tryMetadataDiscovery(url2, protocolVersion, fetchFn = fetch) {
|
|
|
33571
33694
|
function shouldAttemptFallback(response, pathname) {
|
|
33572
33695
|
if (!response) return true;
|
|
33573
33696
|
if (pathname === "/") return false;
|
|
33574
|
-
return response.
|
|
33697
|
+
return !response.ok && response.status < 500 || response.status === 502;
|
|
33575
33698
|
}
|
|
33576
33699
|
async function discoverMetadataWithFallback(serverUrl, wellKnownType, fetchFn, opts) {
|
|
33577
33700
|
const issuer = new URL(serverUrl);
|
|
@@ -33628,7 +33751,7 @@ async function discoverAuthorizationServerMetadata(authorizationServerUrl, { fet
|
|
|
33628
33751
|
if (!response.ok) {
|
|
33629
33752
|
await response.text?.().catch(() => {
|
|
33630
33753
|
});
|
|
33631
|
-
if (response.status
|
|
33754
|
+
if (response.status < 500 || response.status === 502) continue;
|
|
33632
33755
|
throw new Error(`HTTP ${response.status} trying to load ${type === "oauth" ? "OAuth" : "OpenID provider"} metadata from ${endpointUrl}`);
|
|
33633
33756
|
}
|
|
33634
33757
|
const parsed = type === "oauth" ? OAuthMetadataSchema.parse(await response.json()) : OpenIdProviderDiscoveryMetadataSchema.parse(await response.json());
|
|
@@ -33709,7 +33832,7 @@ async function executeTokenRequest(authorizationServerUrl, { metadata, tokenRequ
|
|
|
33709
33832
|
htm: "POST",
|
|
33710
33833
|
htu: tokenUrl
|
|
33711
33834
|
}));
|
|
33712
|
-
return (fetchFn ?? fetch)(tokenUrl, {
|
|
33835
|
+
return fetchWithinOrigin(fetchFn ?? fetch)(tokenUrl, {
|
|
33713
33836
|
method: "POST",
|
|
33714
33837
|
headers: requestHeaders,
|
|
33715
33838
|
body: tokenRequestParams
|
|
@@ -33793,7 +33916,7 @@ async function registerClient(authorizationServerUrl, { metadata, clientMetadata
|
|
|
33793
33916
|
...clientMetadata,
|
|
33794
33917
|
...scope === void 0 ? {} : { scope }
|
|
33795
33918
|
};
|
|
33796
|
-
const response = await (fetchFn ?? fetch)(registrationUrl, {
|
|
33919
|
+
const response = await fetchWithinOrigin(fetchFn ?? fetch)(registrationUrl, {
|
|
33797
33920
|
method: "POST",
|
|
33798
33921
|
headers: { "Content-Type": "application/json" },
|
|
33799
33922
|
body: JSON.stringify(submittedMetadata)
|
|
@@ -34298,6 +34421,11 @@ function classifyProbeOutcome(outcome, context) {
|
|
|
34298
34421
|
return classifyHttpError(outcome, context);
|
|
34299
34422
|
case "network-error":
|
|
34300
34423
|
return classifyNetworkError(outcome.error, context);
|
|
34424
|
+
case "unusable-reply":
|
|
34425
|
+
return {
|
|
34426
|
+
kind: "error",
|
|
34427
|
+
error: new SdkError(SdkErrorCode.EraNegotiationFailed, `Version negotiation probe failed: the server answered with an unusable reply (${describeError(outcome.error)})`, { cause: outcome.error }, { cause: outcome.error })
|
|
34428
|
+
};
|
|
34301
34429
|
case "auth-required":
|
|
34302
34430
|
return {
|
|
34303
34431
|
kind: "error",
|
|
@@ -34588,6 +34716,10 @@ function buildProbeRequest(id, protocolVersion, clientInfo, capabilities) {
|
|
|
34588
34716
|
}) }
|
|
34589
34717
|
};
|
|
34590
34718
|
}
|
|
34719
|
+
function isUnusableReplyError(error62) {
|
|
34720
|
+
if (error62 instanceof SdkError && error62.code === SdkErrorCode.ClientHttpUnexpectedContent) return true;
|
|
34721
|
+
return error62 instanceof Error && error62.name === "SyntaxError";
|
|
34722
|
+
}
|
|
34591
34723
|
function normalizeReply(reply, timeoutMs) {
|
|
34592
34724
|
switch (reply.kind) {
|
|
34593
34725
|
case "response":
|
|
@@ -34613,6 +34745,10 @@ function normalizeReply(reply, timeoutMs) {
|
|
|
34613
34745
|
statusText: error62.data.statusText
|
|
34614
34746
|
};
|
|
34615
34747
|
}
|
|
34748
|
+
if (isUnusableReplyError(error62)) return {
|
|
34749
|
+
kind: "unusable-reply",
|
|
34750
|
+
error: error62
|
|
34751
|
+
};
|
|
34616
34752
|
return {
|
|
34617
34753
|
kind: "network-error",
|
|
34618
34754
|
error: error62
|
|
@@ -36234,6 +36370,7 @@ var SSEClientTransport = class {
|
|
|
36234
36370
|
_skipIssuerMetadataValidation;
|
|
36235
36371
|
_fetch;
|
|
36236
36372
|
_fetchWithInit;
|
|
36373
|
+
_redirectPolicy;
|
|
36237
36374
|
_dpop;
|
|
36238
36375
|
_protocolVersion;
|
|
36239
36376
|
onclose;
|
|
@@ -36255,10 +36392,22 @@ var SSEClientTransport = class {
|
|
|
36255
36392
|
this._fetch = this._dpop(opts.fetch ?? fetch);
|
|
36256
36393
|
}
|
|
36257
36394
|
} else this._authProvider = opts?.authProvider;
|
|
36395
|
+
this._redirectPolicy = opts?.redirectPolicy;
|
|
36258
36396
|
this._fetchWithInit = createFetchWithInit(opts?.fetch, opts?.requestInit);
|
|
36397
|
+
if (this._redirectPolicy === "follow") this._fetchWithInit = fetchLeavingRedirects(this._fetchWithInit);
|
|
36259
36398
|
}
|
|
36260
36399
|
_last401Response;
|
|
36261
36400
|
_last401PresentedToken;
|
|
36401
|
+
_connectAuthRetried = false;
|
|
36402
|
+
/** `baseFetch` with redirects handled as `redirectPolicy` says. */
|
|
36403
|
+
_redirects(baseFetch) {
|
|
36404
|
+
return this._redirectPolicy === "follow" ? baseFetch : fetchWithinOrigin(baseFetch);
|
|
36405
|
+
}
|
|
36406
|
+
/** Error text for a redirect `response` that was not followed, or `undefined` for any other response. */
|
|
36407
|
+
_unfollowedRedirect(url2, response) {
|
|
36408
|
+
const text = this._redirectPolicy === "follow" ? void 0 : unfollowedRedirect(url2, response);
|
|
36409
|
+
return text && `${text} (redirectPolicy: 'same-origin')`;
|
|
36410
|
+
}
|
|
36262
36411
|
async _commonHeaders() {
|
|
36263
36412
|
const headers = new Headers(this._requestInit?.headers || void 0);
|
|
36264
36413
|
let token;
|
|
@@ -36273,7 +36422,8 @@ var SSEClientTransport = class {
|
|
|
36273
36422
|
}
|
|
36274
36423
|
_startOrAuth() {
|
|
36275
36424
|
const eventSourceFetch = this._eventSourceInit?.fetch;
|
|
36276
|
-
const fetchImpl = eventSourceFetch ? this._dpop?.(eventSourceFetch) ?? eventSourceFetch : this._fetch ?? fetch;
|
|
36425
|
+
const fetchImpl = this._redirects(eventSourceFetch ? this._dpop?.(eventSourceFetch) ?? eventSourceFetch : this._fetch ?? fetch);
|
|
36426
|
+
let redirect;
|
|
36277
36427
|
return new Promise((resolve, reject) => {
|
|
36278
36428
|
this._eventSource = new EventSource(this._url.href, {
|
|
36279
36429
|
...this._eventSourceInit,
|
|
@@ -36284,6 +36434,7 @@ var SSEClientTransport = class {
|
|
|
36284
36434
|
...init,
|
|
36285
36435
|
headers
|
|
36286
36436
|
});
|
|
36437
|
+
redirect = this._unfollowedRedirect(url2, response);
|
|
36287
36438
|
if (response.status === 401) {
|
|
36288
36439
|
this._last401Response = response;
|
|
36289
36440
|
this._last401PresentedToken = presentedBearerToken(headers);
|
|
@@ -36299,11 +36450,12 @@ var SSEClientTransport = class {
|
|
|
36299
36450
|
this._abortController = new AbortController();
|
|
36300
36451
|
this._eventSource.onerror = (event) => {
|
|
36301
36452
|
if (event.code === 401 && this._authProvider) {
|
|
36302
|
-
if (this._authProvider.onUnauthorized && this._last401Response) {
|
|
36453
|
+
if (this._authProvider.onUnauthorized && this._last401Response && !this._connectAuthRetried) {
|
|
36303
36454
|
const response = this._last401Response;
|
|
36304
36455
|
const presentedToken = this._last401PresentedToken;
|
|
36305
36456
|
this._last401Response = void 0;
|
|
36306
36457
|
this._last401PresentedToken = void 0;
|
|
36458
|
+
this._connectAuthRetried = true;
|
|
36307
36459
|
this._eventSource?.close();
|
|
36308
36460
|
this._authProvider.onUnauthorized({
|
|
36309
36461
|
response,
|
|
@@ -36311,22 +36463,31 @@ var SSEClientTransport = class {
|
|
|
36311
36463
|
fetchFn: this._fetchWithInit,
|
|
36312
36464
|
presentedToken
|
|
36313
36465
|
}).then(() => this._startOrAuth().then(resolve, reject), (error$2) => {
|
|
36466
|
+
this._connectAuthRetried = false;
|
|
36314
36467
|
markAuthSeamEscape(error$2);
|
|
36315
36468
|
this.onerror?.(error$2);
|
|
36316
36469
|
reject(error$2);
|
|
36317
36470
|
});
|
|
36318
36471
|
return;
|
|
36319
36472
|
}
|
|
36320
|
-
const
|
|
36473
|
+
const retried = this._connectAuthRetried;
|
|
36474
|
+
this._connectAuthRetried = false;
|
|
36475
|
+
const error$1 = markAuthSeamEscape(retried ? new SdkHttpError(SdkErrorCode.ClientHttpAuthentication, "Server returned 401 after re-authentication", {
|
|
36476
|
+
status: 401,
|
|
36477
|
+
statusText: this._last401Response?.statusText ?? ""
|
|
36478
|
+
}) : new UnauthorizedError());
|
|
36479
|
+
this._last401Response = void 0;
|
|
36321
36480
|
reject(error$1);
|
|
36322
36481
|
this.onerror?.(error$1);
|
|
36323
36482
|
return;
|
|
36324
36483
|
}
|
|
36325
|
-
|
|
36484
|
+
this._connectAuthRetried = false;
|
|
36485
|
+
const error62 = new SseError(event.code, redirect ?? event.message, event);
|
|
36326
36486
|
reject(error62);
|
|
36327
36487
|
this.onerror?.(error62);
|
|
36328
36488
|
};
|
|
36329
36489
|
this._eventSource.onopen = () => {
|
|
36490
|
+
this._connectAuthRetried = false;
|
|
36330
36491
|
};
|
|
36331
36492
|
this._eventSource.addEventListener("endpoint", (event) => {
|
|
36332
36493
|
const messageEvent = event;
|
|
@@ -36394,7 +36555,7 @@ var SSEClientTransport = class {
|
|
|
36394
36555
|
body: JSON.stringify(message),
|
|
36395
36556
|
signal: this._abortController?.signal
|
|
36396
36557
|
};
|
|
36397
|
-
const response = await (this._fetch ?? fetch)(this._endpoint, init);
|
|
36558
|
+
const response = await this._redirects(this._fetch ?? fetch)(this._endpoint, init);
|
|
36398
36559
|
if (!response.ok) {
|
|
36399
36560
|
if (response.status === 401 && this._authProvider) {
|
|
36400
36561
|
if (response.headers.has("www-authenticate")) {
|
|
@@ -36426,7 +36587,7 @@ var SSEClientTransport = class {
|
|
|
36426
36587
|
throw markAuthSeamEscape(new UnauthorizedError());
|
|
36427
36588
|
}
|
|
36428
36589
|
const text = await response.text?.().catch(() => null);
|
|
36429
|
-
throw new Error(`Error POSTing to endpoint (HTTP ${response.status}): ${text}`);
|
|
36590
|
+
throw new Error(`Error POSTing to endpoint (HTTP ${response.status}): ${this._unfollowedRedirect(this._endpoint, response) ?? text}`);
|
|
36430
36591
|
}
|
|
36431
36592
|
await response.text?.().catch(() => {
|
|
36432
36593
|
});
|
|
@@ -36487,6 +36648,7 @@ var StreamableHTTPClientTransport = class {
|
|
|
36487
36648
|
_skipIssuerMetadataValidation;
|
|
36488
36649
|
_fetch;
|
|
36489
36650
|
_fetchWithInit;
|
|
36651
|
+
_redirectPolicy;
|
|
36490
36652
|
_sessionId;
|
|
36491
36653
|
_reconnectionOptions;
|
|
36492
36654
|
_protocolVersion;
|
|
@@ -36517,7 +36679,9 @@ var StreamableHTTPClientTransport = class {
|
|
|
36517
36679
|
this._authProvider = adaptOAuthProvider(opts.authProvider, { skipIssuerMetadataValidation: opts.skipIssuerMetadataValidation });
|
|
36518
36680
|
if (opts.authProvider.dpop) this._fetch = withDpopFromProvider(opts.authProvider)(opts.fetch ?? fetch);
|
|
36519
36681
|
} else this._authProvider = opts?.authProvider;
|
|
36682
|
+
this._redirectPolicy = opts?.redirectPolicy;
|
|
36520
36683
|
this._fetchWithInit = createFetchWithInit(opts?.fetch, opts?.requestInit);
|
|
36684
|
+
if (this._redirectPolicy === "follow") this._fetchWithInit = fetchLeavingRedirects(this._fetchWithInit);
|
|
36521
36685
|
this._sessionId = opts?.sessionId;
|
|
36522
36686
|
this._protocolVersion = opts?.protocolVersion;
|
|
36523
36687
|
this._reconnectionOptions = opts?.reconnectionOptions ?? DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS;
|
|
@@ -36569,6 +36733,15 @@ var StreamableHTTPClientTransport = class {
|
|
|
36569
36733
|
skipIssuerMetadataValidation: this._skipIssuerMetadataValidation
|
|
36570
36734
|
});
|
|
36571
36735
|
}
|
|
36736
|
+
/** `baseFetch` with redirects handled as `redirectPolicy` says. */
|
|
36737
|
+
_redirects(baseFetch) {
|
|
36738
|
+
return this._redirectPolicy === "follow" ? baseFetch : fetchWithinOrigin(baseFetch);
|
|
36739
|
+
}
|
|
36740
|
+
/** Error text for a redirect `response` that was not followed, or `undefined` for any other response. */
|
|
36741
|
+
_unfollowedRedirect(url2, response) {
|
|
36742
|
+
const text = this._redirectPolicy === "follow" ? void 0 : unfollowedRedirect(url2, response);
|
|
36743
|
+
return text && `${text} (redirectPolicy: 'same-origin')`;
|
|
36744
|
+
}
|
|
36572
36745
|
async _commonHeaders() {
|
|
36573
36746
|
const headers = new Headers(this._requestInit?.headers || void 0);
|
|
36574
36747
|
let token;
|
|
@@ -36620,7 +36793,7 @@ var StreamableHTTPClientTransport = class {
|
|
|
36620
36793
|
if (resumptionToken) headers.set("last-event-id", resumptionToken);
|
|
36621
36794
|
const transportSignal = this._abortController?.signal;
|
|
36622
36795
|
const signal = requestSignal !== void 0 && transportSignal !== void 0 ? anySignal(transportSignal, requestSignal) : requestSignal ?? transportSignal;
|
|
36623
|
-
const response = await (this._fetch ?? fetch)(this._url, {
|
|
36796
|
+
const response = await this._redirects(this._fetch ?? fetch)(this._url, {
|
|
36624
36797
|
...this._requestInit,
|
|
36625
36798
|
method: "GET",
|
|
36626
36799
|
headers,
|
|
@@ -36676,7 +36849,8 @@ var StreamableHTTPClientTransport = class {
|
|
|
36676
36849
|
options.onRequestStreamEnd?.();
|
|
36677
36850
|
return;
|
|
36678
36851
|
}
|
|
36679
|
-
|
|
36852
|
+
const reason = this._unfollowedRedirect(this._url, response) ?? response.statusText;
|
|
36853
|
+
throw new SdkHttpError(SdkErrorCode.ClientHttpFailedToOpenStream, `Failed to open SSE stream: ${reason}`, {
|
|
36680
36854
|
status: response.status,
|
|
36681
36855
|
statusText: response.statusText
|
|
36682
36856
|
});
|
|
@@ -36865,7 +37039,7 @@ var StreamableHTTPClientTransport = class {
|
|
|
36865
37039
|
body: JSON.stringify(message),
|
|
36866
37040
|
signal
|
|
36867
37041
|
};
|
|
36868
|
-
const response = await (this._fetch ?? fetch)(this._url, init);
|
|
37042
|
+
const response = await this._redirects(this._fetch ?? fetch)(this._url, init);
|
|
36869
37043
|
if (isHandshake && response.ok) this._sessionId = response.headers.get("mcp-session-id") || void 0;
|
|
36870
37044
|
if (!response.ok) {
|
|
36871
37045
|
if (response.status === 401 && this._authProvider) {
|
|
@@ -36920,7 +37094,8 @@ var StreamableHTTPClientTransport = class {
|
|
|
36920
37094
|
}
|
|
36921
37095
|
} catch {
|
|
36922
37096
|
}
|
|
36923
|
-
|
|
37097
|
+
const reason = this._unfollowedRedirect(this._url, response) ?? text;
|
|
37098
|
+
throw new SdkHttpError(SdkErrorCode.ClientHttpNotImplemented, `Error POSTing to endpoint: ${reason}`, {
|
|
36924
37099
|
status: response.status,
|
|
36925
37100
|
statusText: response.statusText,
|
|
36926
37101
|
text
|
|
@@ -36980,10 +37155,10 @@ var StreamableHTTPClientTransport = class {
|
|
|
36980
37155
|
headers,
|
|
36981
37156
|
signal: this._abortController?.signal
|
|
36982
37157
|
};
|
|
36983
|
-
const response = await (this._fetch ?? fetch)(this._url, init);
|
|
37158
|
+
const response = await this._redirects(this._fetch ?? fetch)(this._url, init);
|
|
36984
37159
|
await response.text?.().catch(() => {
|
|
36985
37160
|
});
|
|
36986
|
-
if (!response.ok && response.status !== 405) throw new SdkHttpError(SdkErrorCode.ClientHttpFailedToTerminateSession, `Failed to terminate session: ${response.statusText}`, {
|
|
37161
|
+
if (!response.ok && response.status !== 405) throw new SdkHttpError(SdkErrorCode.ClientHttpFailedToTerminateSession, `Failed to terminate session: ${this._unfollowedRedirect(this._url, response) ?? response.statusText}`, {
|
|
36987
37162
|
status: response.status,
|
|
36988
37163
|
statusText: response.statusText
|
|
36989
37164
|
});
|