bitfab-cli 0.2.456 → 0.2.458

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.
Files changed (2) hide show
  1. package/dist/index.js +704 -308
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -5093,15 +5093,34 @@ var require_data = __commonJS({
5093
5093
  }
5094
5094
  });
5095
5095
 
5096
- // ../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/utils.js
5096
+ // ../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js
5097
5097
  var require_utils = __commonJS({
5098
- "../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/utils.js"(exports, module) {
5098
+ "../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js"(exports, module) {
5099
5099
  "use strict";
5100
5100
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
5101
5101
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
5102
+ var isPort = RegExp.prototype.test.bind(/^\d*$/u);
5102
5103
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
5103
5104
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
5104
- var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
5105
+ var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
5106
+ var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
5107
+ var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
5108
+ var BYTE_HEX = new Array(256);
5109
+ {
5110
+ const HEX_DIGITS = "0123456789ABCDEF";
5111
+ for (let i = 0; i < 256; i++) {
5112
+ BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
5113
+ }
5114
+ }
5115
+ function percentEncodeNonAscii(cp) {
5116
+ if (cp < 2048) {
5117
+ return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
5118
+ }
5119
+ if (cp < 65536) {
5120
+ return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
5121
+ }
5122
+ return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
5123
+ }
5105
5124
  function stringArrayToHexStripped(input2) {
5106
5125
  let acc = "";
5107
5126
  let code2 = 0;
@@ -5126,91 +5145,105 @@ var require_utils = __commonJS({
5126
5145
  }
5127
5146
  return acc;
5128
5147
  }
5148
+ var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
5149
+ var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
5150
+ var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
5129
5151
  var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
5130
- function consumeIsZone(buffer) {
5131
- buffer.length = 0;
5132
- return true;
5133
- }
5134
- function consumeHextets(buffer, address, output2) {
5135
- if (buffer.length) {
5136
- const hex3 = stringArrayToHexStripped(buffer);
5137
- if (hex3 !== "") {
5138
- address.push(hex3);
5139
- } else {
5140
- output2.error = true;
5141
- return false;
5152
+ function isZoneIdentifier(zone) {
5153
+ if (zone.length === 0) return false;
5154
+ for (let i = 0; i < zone.length; i++) {
5155
+ if (isZoneCharacter(zone[i])) continue;
5156
+ if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
5157
+ i += 2;
5158
+ continue;
5142
5159
  }
5143
- buffer.length = 0;
5160
+ return false;
5144
5161
  }
5145
5162
  return true;
5146
5163
  }
5147
- function getIPV6(input2) {
5148
- let tokenCount = 0;
5149
- const output2 = { error: false, address: "", zone: "" };
5150
- const address = [];
5151
- const buffer = [];
5152
- let endipv6Encountered = false;
5153
- let endIpv6 = false;
5154
- let consume = consumeHextets;
5155
- for (let i = 0; i < input2.length; i++) {
5156
- const cursor = input2[i];
5157
- if (cursor === "[" || cursor === "]") {
5158
- continue;
5159
- }
5160
- if (cursor === ":") {
5161
- if (endipv6Encountered === true) {
5162
- endIpv6 = true;
5163
- }
5164
- if (!consume(buffer, address, output2)) {
5165
- break;
5166
- }
5167
- if (++tokenCount > 7) {
5168
- output2.error = true;
5169
- break;
5170
- }
5171
- if (i > 0 && input2[i - 1] === ":") {
5172
- endipv6Encountered = true;
5173
- }
5174
- address.push(":");
5175
- continue;
5176
- } else if (cursor === "%") {
5177
- if (!consume(buffer, address, output2)) {
5178
- break;
5164
+ function compressIPv6ZeroRun(hextets) {
5165
+ let bestStart = -1;
5166
+ let bestLength = 0;
5167
+ let runStart = -1;
5168
+ let runLength = 0;
5169
+ for (let i = 0; i < hextets.length; i++) {
5170
+ if (hextets[i] === "0") {
5171
+ if (runStart === -1) runStart = i;
5172
+ runLength++;
5173
+ if (runLength > bestLength) {
5174
+ bestLength = runLength;
5175
+ bestStart = runStart;
5179
5176
  }
5180
- consume = consumeIsZone;
5181
5177
  } else {
5182
- buffer.push(cursor);
5178
+ runStart = -1;
5179
+ runLength = 0;
5180
+ }
5181
+ }
5182
+ if (bestLength < 2) return hextets.join(":");
5183
+ const head = hextets.slice(0, bestStart).join(":");
5184
+ const tail = hextets.slice(bestStart + bestLength).join(":");
5185
+ return head + "::" + tail;
5186
+ }
5187
+ function normalizeIPv6Address(input2) {
5188
+ const compression = input2.indexOf("::");
5189
+ if (compression !== -1 && input2.indexOf("::", compression + 1) !== -1) return void 0;
5190
+ const left = compression === -1 ? input2.split(":") : input2.slice(0, compression).split(":");
5191
+ const right = compression === -1 ? [] : input2.slice(compression + 2).split(":");
5192
+ if (compression !== -1) {
5193
+ if (left.length === 1 && left[0] === "") left.length = 0;
5194
+ if (right.length === 1 && right[0] === "") right.length = 0;
5195
+ }
5196
+ const parts = left.concat(right);
5197
+ let hextetCount = 0;
5198
+ for (let i = 0; i < parts.length; i++) {
5199
+ const part = parts[i];
5200
+ if (part === "") return void 0;
5201
+ if (part.indexOf(".") !== -1) {
5202
+ if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part)) return void 0;
5203
+ hextetCount += 2;
5183
5204
  continue;
5184
5205
  }
5206
+ if (!isHextet(part)) return void 0;
5207
+ parts[i] = parseInt(part, 16).toString(16);
5208
+ hextetCount++;
5185
5209
  }
5186
- if (buffer.length) {
5187
- if (consume === consumeIsZone) {
5188
- output2.zone = buffer.join("");
5189
- } else if (endIpv6) {
5190
- address.push(buffer.join(""));
5191
- } else {
5192
- address.push(stringArrayToHexStripped(buffer));
5193
- }
5210
+ if (compression === -1) {
5211
+ if (hextetCount !== 8) return void 0;
5212
+ return compressIPv6ZeroRun(parts);
5194
5213
  }
5195
- output2.address = address.join("");
5196
- return output2;
5214
+ if (hextetCount >= 8) return void 0;
5215
+ const expanded = parts.slice(0, left.length);
5216
+ for (let i = hextetCount; i < 8; i++) expanded.push("0");
5217
+ for (let i = left.length; i < parts.length; i++) expanded.push(parts[i]);
5218
+ return compressIPv6ZeroRun(expanded);
5197
5219
  }
5198
5220
  function normalizeIPv6(host) {
5199
- if (findToken(host, ":") < 2) {
5200
- return { host, isIPV6: false };
5201
- }
5202
- const ipv63 = getIPV6(host);
5203
- if (!ipv63.error) {
5204
- let newHost = ipv63.address;
5205
- let escapedHost = ipv63.address;
5206
- if (ipv63.zone) {
5207
- newHost += "%" + ipv63.zone;
5208
- escapedHost += "%25" + ipv63.zone;
5209
- }
5210
- return { host: newHost, isIPV6: true, escapedHost };
5211
- } else {
5212
- return { host, isIPV6: false };
5213
- }
5221
+ const bracketed = host[0] === "[" && host[host.length - 1] === "]";
5222
+ const hasBracket = host[0] === "[" || host[host.length - 1] === "]";
5223
+ if (hasBracket && !bracketed) return { host, isIPV6: false, error: true };
5224
+ let input2 = bracketed ? host.slice(1, -1) : host;
5225
+ if (bracketed && isIPvFuture(input2)) {
5226
+ input2 = input2.toLowerCase();
5227
+ return { host: `[${input2}]`, escapedHost: input2, isIPV6: false, isIPVFuture: true };
5228
+ }
5229
+ if (findToken(input2, ":") < 2) {
5230
+ return { host, isIPV6: false, error: bracketed };
5231
+ }
5232
+ let zoneIdentifier = "";
5233
+ const zoneSeparator = input2.indexOf("%");
5234
+ if (zoneSeparator !== -1) {
5235
+ const separatorLength = input2.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
5236
+ zoneIdentifier = input2.slice(zoneSeparator + separatorLength);
5237
+ if (!isZoneIdentifier(zoneIdentifier)) return { host, isIPV6: false, error: true };
5238
+ input2 = input2.slice(0, zoneSeparator);
5239
+ }
5240
+ const address = normalizeIPv6Address(input2);
5241
+ if (address === void 0) return { host, isIPV6: false, error: true };
5242
+ return {
5243
+ host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
5244
+ escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
5245
+ isIPV6: true
5246
+ };
5214
5247
  }
5215
5248
  function findToken(str, token) {
5216
5249
  let ind = 0;
@@ -5329,7 +5362,8 @@ var require_utils = __commonJS({
5329
5362
  function normalizePathEncoding(input2) {
5330
5363
  let output2 = "";
5331
5364
  for (let i = 0; i < input2.length; i++) {
5332
- if (input2[i] === "%" && i + 2 < input2.length) {
5365
+ const ch = input2[i];
5366
+ if (ch === "%" && i + 2 < input2.length) {
5333
5367
  const hex3 = input2.slice(i + 1, i + 3);
5334
5368
  if (isHexPair(hex3)) {
5335
5369
  const normalizedHex = hex3.toUpperCase();
@@ -5343,10 +5377,152 @@ var require_utils = __commonJS({
5343
5377
  continue;
5344
5378
  }
5345
5379
  }
5346
- if (isPathCharacter(input2[i])) {
5347
- output2 += input2[i];
5380
+ if (isPathCharacter(ch)) {
5381
+ output2 += ch;
5382
+ } else {
5383
+ const code2 = input2.charCodeAt(i);
5384
+ if (code2 < 128) {
5385
+ output2 += isEscapeSafe(code2) ? ch : BYTE_HEX[code2];
5386
+ } else if (code2 < 55296 || code2 > 57343) {
5387
+ output2 += percentEncodeNonAscii(code2);
5388
+ } else if (code2 <= 56319 && i + 1 < input2.length) {
5389
+ const low = input2.charCodeAt(i + 1);
5390
+ if (low >= 56320 && low <= 57343) {
5391
+ output2 += percentEncodeNonAscii(65536 + (code2 - 55296 << 10) + (low - 56320));
5392
+ i++;
5393
+ } else {
5394
+ output2 += percentEncodeNonAscii(65533);
5395
+ }
5396
+ } else {
5397
+ output2 += percentEncodeNonAscii(65533);
5398
+ }
5399
+ }
5400
+ }
5401
+ return output2;
5402
+ }
5403
+ function serializePathEncoding(input2, pathNoScheme = false) {
5404
+ let output2 = "";
5405
+ let firstSegment = pathNoScheme && input2[0] !== "/";
5406
+ for (let i = 0; i < input2.length; i++) {
5407
+ const ch = input2[i];
5408
+ if (ch === "%" && i + 2 < input2.length) {
5409
+ const hex3 = input2.slice(i + 1, i + 3);
5410
+ if (isHexPair(hex3)) {
5411
+ output2 += "%" + hex3.toUpperCase();
5412
+ i += 2;
5413
+ continue;
5414
+ }
5415
+ }
5416
+ if (ch === "/") {
5417
+ firstSegment = false;
5418
+ }
5419
+ if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) {
5420
+ output2 += ch;
5421
+ } else {
5422
+ const code2 = input2.charCodeAt(i);
5423
+ if (code2 < 128) {
5424
+ output2 += BYTE_HEX[code2];
5425
+ } else if (code2 < 55296 || code2 > 57343) {
5426
+ output2 += percentEncodeNonAscii(code2);
5427
+ } else if (code2 <= 56319 && i + 1 < input2.length) {
5428
+ const low = input2.charCodeAt(i + 1);
5429
+ if (low >= 56320 && low <= 57343) {
5430
+ output2 += percentEncodeNonAscii(65536 + (code2 - 55296 << 10) + (low - 56320));
5431
+ i++;
5432
+ } else {
5433
+ output2 += percentEncodeNonAscii(65533);
5434
+ }
5435
+ } else {
5436
+ output2 += percentEncodeNonAscii(65533);
5437
+ }
5438
+ }
5439
+ }
5440
+ return output2;
5441
+ }
5442
+ function encodeComponent(input2, isAllowed) {
5443
+ let output2 = "";
5444
+ for (let i = 0; i < input2.length; i++) {
5445
+ const ch = input2[i];
5446
+ if (ch === "%" && i + 2 < input2.length) {
5447
+ const hex3 = input2.slice(i + 1, i + 3);
5448
+ if (isHexPair(hex3)) {
5449
+ output2 += "%" + hex3.toUpperCase();
5450
+ i += 2;
5451
+ continue;
5452
+ }
5453
+ }
5454
+ if (isAllowed(ch)) {
5455
+ output2 += ch;
5348
5456
  } else {
5349
- output2 += escape(input2[i]);
5457
+ const code2 = input2.charCodeAt(i);
5458
+ if (code2 < 128) {
5459
+ output2 += BYTE_HEX[code2];
5460
+ } else if (code2 < 55296 || code2 > 57343) {
5461
+ output2 += percentEncodeNonAscii(code2);
5462
+ } else if (code2 <= 56319 && i + 1 < input2.length) {
5463
+ const low = input2.charCodeAt(i + 1);
5464
+ if (low >= 56320 && low <= 57343) {
5465
+ output2 += percentEncodeNonAscii(65536 + (code2 - 55296 << 10) + (low - 56320));
5466
+ i++;
5467
+ } else {
5468
+ output2 += percentEncodeNonAscii(65533);
5469
+ }
5470
+ } else {
5471
+ output2 += percentEncodeNonAscii(65533);
5472
+ }
5473
+ }
5474
+ }
5475
+ return output2;
5476
+ }
5477
+ function encodeUserinfo(input2) {
5478
+ return encodeComponent(input2, isUserinfoCharacter);
5479
+ }
5480
+ function encodeQuery(input2) {
5481
+ return encodeComponent(input2, isQueryFragmentCharacter);
5482
+ }
5483
+ function encodeFragment(input2) {
5484
+ return encodeComponent(input2, isQueryFragmentCharacter);
5485
+ }
5486
+ function isEscapeSafe(cp) {
5487
+ return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
5488
+ }
5489
+ function normalizeQueryFragmentEncoding(input2) {
5490
+ let output2 = "";
5491
+ for (let i = 0; i < input2.length; i++) {
5492
+ const ch = input2[i];
5493
+ if (ch === "%" && i + 2 < input2.length) {
5494
+ const hex3 = input2.slice(i + 1, i + 3);
5495
+ if (isHexPair(hex3)) {
5496
+ const normalizedHex = hex3.toUpperCase();
5497
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
5498
+ if (isUnreserved(decoded)) {
5499
+ output2 += decoded;
5500
+ } else {
5501
+ output2 += "%" + normalizedHex;
5502
+ }
5503
+ i += 2;
5504
+ continue;
5505
+ }
5506
+ }
5507
+ if (isQueryFragmentCharacter(ch)) {
5508
+ output2 += ch;
5509
+ } else {
5510
+ const code2 = input2.charCodeAt(i);
5511
+ if (code2 < 128) {
5512
+ output2 += isEscapeSafe(code2) ? ch : BYTE_HEX[code2];
5513
+ } else if (code2 < 55296 || code2 > 57343) {
5514
+ output2 += percentEncodeNonAscii(code2);
5515
+ } else if (code2 <= 56319 && i + 1 < input2.length) {
5516
+ const low = input2.charCodeAt(i + 1);
5517
+ if (low >= 56320 && low <= 57343) {
5518
+ output2 += percentEncodeNonAscii(65536 + (code2 - 55296 << 10) + (low - 56320));
5519
+ i++;
5520
+ } else {
5521
+ output2 += percentEncodeNonAscii(65533);
5522
+ }
5523
+ } else {
5524
+ output2 += percentEncodeNonAscii(65533);
5525
+ }
5350
5526
  }
5351
5527
  }
5352
5528
  return output2;
@@ -5369,14 +5545,18 @@ var require_utils = __commonJS({
5369
5545
  function recomposeAuthority(component) {
5370
5546
  const uriTokens = [];
5371
5547
  if (component.userinfo !== void 0) {
5372
- uriTokens.push(component.userinfo);
5548
+ uriTokens.push(encodeUserinfo(component.userinfo));
5373
5549
  uriTokens.push("@");
5374
5550
  }
5375
5551
  if (component.host !== void 0) {
5376
- let host = unescape(component.host);
5552
+ let host = component.host;
5377
5553
  if (!isIPv4(host)) {
5378
- const ipV6res = normalizeIPv6(host);
5379
- if (ipV6res.isIPV6 === true) {
5554
+ let ipV6res = normalizeIPv6(host);
5555
+ if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
5556
+ host = normalizePercentEncoding(host, true);
5557
+ ipV6res = normalizeIPv6(host);
5558
+ }
5559
+ if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
5380
5560
  host = `[${ipV6res.escapedHost}]`;
5381
5561
  } else {
5382
5562
  host = reescapeHostDelimiters(host, false);
@@ -5385,8 +5565,12 @@ var require_utils = __commonJS({
5385
5565
  uriTokens.push(host);
5386
5566
  }
5387
5567
  if (typeof component.port === "number" || typeof component.port === "string") {
5568
+ const port = String(component.port);
5569
+ if (!isPort(port)) {
5570
+ throw new TypeError("URI port is malformed.");
5571
+ }
5388
5572
  uriTokens.push(":");
5389
- uriTokens.push(String(component.port));
5573
+ uriTokens.push(port);
5390
5574
  }
5391
5575
  return uriTokens.length ? uriTokens.join("") : void 0;
5392
5576
  }
@@ -5396,6 +5580,11 @@ var require_utils = __commonJS({
5396
5580
  reescapeHostDelimiters,
5397
5581
  normalizePercentEncoding,
5398
5582
  normalizePathEncoding,
5583
+ serializePathEncoding,
5584
+ normalizeQueryFragmentEncoding,
5585
+ encodeUserinfo,
5586
+ encodeQuery,
5587
+ encodeFragment,
5399
5588
  escapePreservingEscapes,
5400
5589
  removeDotSegments,
5401
5590
  isIPv4,
@@ -5406,12 +5595,12 @@ var require_utils = __commonJS({
5406
5595
  }
5407
5596
  });
5408
5597
 
5409
- // ../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/schemes.js
5598
+ // ../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js
5410
5599
  var require_schemes = __commonJS({
5411
- "../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/schemes.js"(exports, module) {
5600
+ "../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js"(exports, module) {
5412
5601
  "use strict";
5413
5602
  var { isUUID } = require_utils();
5414
- var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
5603
+ var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
5415
5604
  var supportedSchemeNames = (
5416
5605
  /** @type {const} */
5417
5606
  [
@@ -5472,9 +5661,10 @@ var require_schemes = __commonJS({
5472
5661
  wsComponent.secure = void 0;
5473
5662
  }
5474
5663
  if (wsComponent.resourceName) {
5475
- const [path15, query] = wsComponent.resourceName.split("?");
5664
+ const queryIndex = wsComponent.resourceName.indexOf("?");
5665
+ const path15 = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
5476
5666
  wsComponent.path = path15 && path15 !== "/" ? path15 : void 0;
5477
- wsComponent.query = query;
5667
+ wsComponent.query = queryIndex === -1 ? void 0 : wsComponent.resourceName.slice(queryIndex + 1);
5478
5668
  wsComponent.resourceName = void 0;
5479
5669
  }
5480
5670
  wsComponent.fragment = void 0;
@@ -5486,7 +5676,7 @@ var require_schemes = __commonJS({
5486
5676
  return urnComponent;
5487
5677
  }
5488
5678
  const matches = urnComponent.path.match(URN_REG);
5489
- if (matches) {
5679
+ if (matches && matches[0] === urnComponent.path) {
5490
5680
  const scheme = options.scheme || urnComponent.scheme || "urn";
5491
5681
  urnComponent.nid = matches[1].toLowerCase();
5492
5682
  urnComponent.nss = matches[2];
@@ -5616,12 +5806,21 @@ var require_schemes = __commonJS({
5616
5806
  }
5617
5807
  });
5618
5808
 
5619
- // ../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/index.js
5809
+ // ../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js
5620
5810
  var require_fast_uri = __commonJS({
5621
- "../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/index.js"(exports, module) {
5811
+ "../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js"(exports, module) {
5622
5812
  "use strict";
5623
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
5813
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
5624
5814
  var { SCHEMES, getSchemeHandler } = require_schemes();
5815
+ var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
5816
+ var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
5817
+ function decodeValidScheme(scheme) {
5818
+ const decodedScheme = unescape(String(scheme));
5819
+ if (!VALID_SCHEME.test(decodedScheme)) {
5820
+ throw new TypeError(MALFORMED_SCHEME_ERROR);
5821
+ }
5822
+ return decodedScheme;
5823
+ }
5625
5824
  function normalize(uri, options) {
5626
5825
  if (typeof uri === "string") {
5627
5826
  uri = /** @type {T} */
@@ -5634,12 +5833,34 @@ var require_fast_uri = __commonJS({
5634
5833
  }
5635
5834
  function resolve6(baseURI, relativeURI, options) {
5636
5835
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
5637
- const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
5638
- const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
5639
- if (baseMalformed || relativeMalformed) {
5836
+ const {
5837
+ parsed: baseParsed,
5838
+ malformedAuthorityOrPort: baseMalformed,
5839
+ malformedPercentEncoding: baseMalformedPercentEncoding,
5840
+ malformedSchemeSpecific: baseMalformedSchemeSpecific,
5841
+ malformedHost: baseMalformedHost,
5842
+ malformedScheme: baseMalformedScheme
5843
+ } = parseWithStatus(baseURI, schemelessOptions);
5844
+ const {
5845
+ parsed: relativeParsed,
5846
+ malformedAuthorityOrPort: relativeMalformed,
5847
+ malformedPercentEncoding: relativeMalformedPercentEncoding,
5848
+ malformedSchemeSpecific: relativeMalformedSchemeSpecific,
5849
+ malformedHost: relativeMalformedHost,
5850
+ malformedScheme: relativeMalformedScheme
5851
+ } = parseWithStatus(relativeURI, schemelessOptions);
5852
+ if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
5640
5853
  throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
5641
5854
  }
5642
5855
  const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
5856
+ const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
5857
+ const resolvedHost = resolved.host;
5858
+ const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
5859
+ canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
5860
+ const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(resolvedHost);
5861
+ if (resolved.error && !encodedASCIIHost) {
5862
+ throw new Error(resolved.error);
5863
+ }
5643
5864
  schemelessOptions.skipEscape = true;
5644
5865
  return serialize(resolved, schemelessOptions);
5645
5866
  }
@@ -5699,7 +5920,7 @@ var require_fast_uri = __commonJS({
5699
5920
  function equal(uriA, uriB, options) {
5700
5921
  const normalizedA = normalizeComparableURI(uriA, options);
5701
5922
  const normalizedB = normalizeComparableURI(uriB, options);
5702
- return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
5923
+ return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA === normalizedB;
5703
5924
  }
5704
5925
  function serialize(cmpts, opts) {
5705
5926
  const component = {
@@ -5720,19 +5941,22 @@ var require_fast_uri = __commonJS({
5720
5941
  };
5721
5942
  const options = Object.assign({}, opts);
5722
5943
  const uriTokens = [];
5944
+ if (component.scheme) {
5945
+ component.scheme = decodeValidScheme(component.scheme);
5946
+ }
5723
5947
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
5724
5948
  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
5949
+ const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
5950
+ const pathNoScheme = !options.skipEscape && component.scheme === void 0 && !hasAuthority;
5725
5951
  if (component.path !== void 0) {
5726
5952
  if (!options.skipEscape) {
5727
- component.path = escapePreservingEscapes(component.path);
5728
- if (component.scheme !== void 0) {
5729
- component.path = component.path.split("%3A").join(":");
5730
- }
5953
+ component.path = serializePathEncoding(component.path, pathNoScheme);
5731
5954
  } else {
5732
5955
  component.path = normalizePercentEncoding(component.path);
5733
5956
  }
5734
5957
  }
5735
5958
  if (options.reference !== "suffix" && component.scheme) {
5959
+ component.scheme = decodeValidScheme(component.scheme);
5736
5960
  uriTokens.push(component.scheme, ":");
5737
5961
  }
5738
5962
  const authority = recomposeAuthority(component);
@@ -5750,16 +5974,19 @@ var require_fast_uri = __commonJS({
5750
5974
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
5751
5975
  s2 = removeDotSegments(s2);
5752
5976
  }
5977
+ if (pathNoScheme) {
5978
+ s2 = serializePathEncoding(s2, true);
5979
+ }
5753
5980
  if (authority === void 0 && s2[0] === "/" && s2[1] === "/") {
5754
5981
  s2 = "/%2F" + s2.slice(2);
5755
5982
  }
5756
5983
  uriTokens.push(s2);
5757
5984
  }
5758
5985
  if (component.query !== void 0) {
5759
- uriTokens.push("?", component.query);
5986
+ uriTokens.push("?", encodeQuery(component.query));
5760
5987
  }
5761
5988
  if (component.fragment !== void 0) {
5762
- uriTokens.push("#", component.fragment);
5989
+ uriTokens.push("#", encodeFragment(component.fragment));
5763
5990
  }
5764
5991
  return uriTokens.join("");
5765
5992
  }
@@ -5775,6 +6002,35 @@ var require_fast_uri = __commonJS({
5775
6002
  }
5776
6003
  return void 0;
5777
6004
  }
6005
+ function hasMalformedPercentEncoding(component) {
6006
+ if (component === void 0) return false;
6007
+ let percent = component.indexOf("%");
6008
+ while (percent !== -1) {
6009
+ if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {
6010
+ return true;
6011
+ }
6012
+ percent = component.indexOf("%", percent + 3);
6013
+ }
6014
+ return false;
6015
+ }
6016
+ function isIPLiteral(host) {
6017
+ return host[0] === "[" && host[host.length - 1] === "]";
6018
+ }
6019
+ function hasMalformedComponentPercentEncoding(matches) {
6020
+ const host = matches[4];
6021
+ return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
6022
+ }
6023
+ function canonicalizeHost(parsed, options, schemeHandler, isIP) {
6024
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
6025
+ try {
6026
+ parsed.host = new URL("http://" + parsed.host).hostname;
6027
+ } catch (e) {
6028
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
6029
+ return true;
6030
+ }
6031
+ }
6032
+ return false;
6033
+ }
5778
6034
  function parseWithStatus(uri, opts) {
5779
6035
  const options = Object.assign({}, opts);
5780
6036
  const parsed = {
@@ -5787,6 +6043,11 @@ var require_fast_uri = __commonJS({
5787
6043
  fragment: void 0
5788
6044
  };
5789
6045
  let malformedAuthorityOrPort = false;
6046
+ let malformedPercentEncoding = false;
6047
+ let malformedSchemeSpecific = false;
6048
+ let malformedHost = false;
6049
+ let malformedIPLiteral = false;
6050
+ let malformedScheme = false;
5790
6051
  let isIP = false;
5791
6052
  if (options.reference === "suffix") {
5792
6053
  if (options.scheme) {
@@ -5823,6 +6084,19 @@ var require_fast_uri = __commonJS({
5823
6084
  parsed.path = matches[6] || "";
5824
6085
  parsed.query = matches[7];
5825
6086
  parsed.fragment = matches[8];
6087
+ if (parsed.scheme !== void 0) {
6088
+ const decodedScheme = unescape(parsed.scheme);
6089
+ if (VALID_SCHEME.test(decodedScheme)) {
6090
+ parsed.scheme = decodedScheme.toLowerCase();
6091
+ } else {
6092
+ parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
6093
+ malformedScheme = true;
6094
+ }
6095
+ }
6096
+ malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
6097
+ if (malformedPercentEncoding) {
6098
+ parsed.error = parsed.error || "URI contains malformed percent-encoding.";
6099
+ }
5826
6100
  if (isNaN(parsed.port)) {
5827
6101
  parsed.port = matches[5];
5828
6102
  }
@@ -5834,9 +6108,16 @@ var require_fast_uri = __commonJS({
5834
6108
  if (parsed.host) {
5835
6109
  const ipv4result = isIPv4(parsed.host);
5836
6110
  if (ipv4result === false) {
6111
+ const bracketedIPLiteral = isIPLiteral(parsed.host);
6112
+ const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
5837
6113
  const ipv6result = normalizeIPv6(parsed.host);
5838
- parsed.host = ipv6result.host.toLowerCase();
5839
- isIP = ipv6result.isIPV6;
6114
+ isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
6115
+ malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
6116
+ parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
6117
+ if (malformedIPLiteral) {
6118
+ parsed.error = parsed.error || "URI host is malformed.";
6119
+ malformedAuthorityOrPort = true;
6120
+ }
5840
6121
  } else {
5841
6122
  isIP = true;
5842
6123
  }
@@ -5854,42 +6135,37 @@ var require_fast_uri = __commonJS({
5854
6135
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
5855
6136
  }
5856
6137
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
5857
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
5858
- if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
5859
- try {
5860
- parsed.host = new URL("http://" + parsed.host).hostname;
5861
- } catch (e) {
5862
- parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
5863
- }
6138
+ if (!malformedIPLiteral) {
6139
+ malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
6140
+ }
6141
+ if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
6142
+ let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
6143
+ if (!isIP) {
6144
+ host = normalizePercentEncoding(host.toLowerCase());
5864
6145
  }
6146
+ parsed.host = reescapeHostDelimiters(host, isIP);
5865
6147
  }
5866
6148
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
5867
- if (uri.indexOf("%") !== -1) {
5868
- if (parsed.scheme !== void 0) {
5869
- parsed.scheme = unescape(parsed.scheme);
5870
- }
5871
- if (parsed.host !== void 0) {
5872
- parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
5873
- }
5874
- }
5875
6149
  if (parsed.path) {
5876
6150
  parsed.path = normalizePathEncoding(parsed.path);
5877
6151
  }
6152
+ if (parsed.query) {
6153
+ parsed.query = normalizeQueryFragmentEncoding(parsed.query);
6154
+ }
5878
6155
  if (parsed.fragment) {
5879
- try {
5880
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
5881
- } catch {
5882
- parsed.error = parsed.error || "URI malformed";
5883
- }
6156
+ parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
5884
6157
  }
5885
6158
  }
5886
6159
  if (schemeHandler && schemeHandler.parse) {
5887
6160
  schemeHandler.parse(parsed, options);
6161
+ if (schemeHandler === SCHEMES.urn && parsed.nid === void 0) {
6162
+ malformedSchemeSpecific = true;
6163
+ }
5888
6164
  }
5889
6165
  } else {
5890
6166
  parsed.error = parsed.error || "URI can not be parsed.";
5891
6167
  }
5892
- return { parsed, malformedAuthorityOrPort };
6168
+ return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
5893
6169
  }
5894
6170
  function parse3(uri, opts) {
5895
6171
  return parseWithStatus(uri, opts).parsed;
@@ -5898,20 +6174,28 @@ var require_fast_uri = __commonJS({
5898
6174
  return normalizeStringWithStatus(uri, opts).normalized;
5899
6175
  }
5900
6176
  function normalizeStringWithStatus(uri, opts) {
5901
- const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
6177
+ const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
5902
6178
  return {
5903
- normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
5904
- malformedAuthorityOrPort
6179
+ normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
6180
+ malformedAuthorityOrPort,
6181
+ malformedPercentEncoding,
6182
+ malformedSchemeSpecific,
6183
+ malformedHost,
6184
+ malformedScheme
5905
6185
  };
5906
6186
  }
5907
6187
  function normalizeComparableURI(uri, opts) {
5908
- if (typeof uri === "string") {
5909
- const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
5910
- return malformedAuthorityOrPort ? void 0 : normalized;
6188
+ if (typeof uri !== "string" && typeof uri !== "object") {
6189
+ return void 0;
5911
6190
  }
5912
- if (typeof uri === "object") {
5913
- return serialize(uri, opts);
6191
+ let value;
6192
+ try {
6193
+ value = typeof uri === "string" ? uri : serialize(uri, opts);
6194
+ } catch {
6195
+ return void 0;
5914
6196
  }
6197
+ const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
6198
+ return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? void 0 : normalized;
5915
6199
  }
5916
6200
  var fastUri = {
5917
6201
  SCHEMES,
@@ -8918,7 +9202,7 @@ import * as p7 from "@clack/prompts";
8918
9202
  import { readFile } from "fs/promises";
8919
9203
  import { resolve } from "path";
8920
9204
 
8921
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
9205
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/external.js
8922
9206
  var external_exports = {};
8923
9207
  __export(external_exports, {
8924
9208
  $brand: () => $brand,
@@ -9181,7 +9465,7 @@ __export(external_exports, {
9181
9465
  xor: () => xor
9182
9466
  });
9183
9467
 
9184
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/index.js
9468
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/index.js
9185
9469
  var core_exports2 = {};
9186
9470
  __export(core_exports2, {
9187
9471
  $ZodAny: () => $ZodAny,
@@ -9498,7 +9782,7 @@ __export(core_exports2, {
9498
9782
  withParser: () => withParser
9499
9783
  });
9500
9784
 
9501
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
9785
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js
9502
9786
  var util_exports = {};
9503
9787
  __export(util_exports, {
9504
9788
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -9569,6 +9853,7 @@ __export(util_exports, {
9569
9853
  required: () => required,
9570
9854
  safeExtend: () => safeExtend,
9571
9855
  shallowClone: () => shallowClone,
9856
+ sizeCaps: () => sizeCaps,
9572
9857
  slugify: () => slugify,
9573
9858
  stringifyPrimitive: () => stringifyPrimitive,
9574
9859
  toZod: () => toZod,
@@ -10088,6 +10373,18 @@ function prefixIssues(path15, issues) {
10088
10373
  function unwrapMessage(message) {
10089
10374
  return typeof message === "string" ? message : message?.message;
10090
10375
  }
10376
+ function sizeCaps(defChecks) {
10377
+ const caps = [];
10378
+ for (const ch of defChecks ?? []) {
10379
+ const d = ch._zod.def;
10380
+ if (!/_(length|size)$|_equals$/.test(d.check))
10381
+ break;
10382
+ const max = d.maximum ?? d.length ?? d.size;
10383
+ if (max >= 0)
10384
+ caps.push([max, ch]);
10385
+ }
10386
+ return caps;
10387
+ }
10091
10388
  function attachSchema(issues, start, inst) {
10092
10389
  var _a3;
10093
10390
  for (let i = start; i < issues.length; i++) {
@@ -10341,7 +10638,7 @@ function constantCatch(value) {
10341
10638
  return fn;
10342
10639
  }
10343
10640
 
10344
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
10641
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.js
10345
10642
  var _a;
10346
10643
  var NEVER = /* @__PURE__ */ Object.freeze({
10347
10644
  status: "aborted"
@@ -10463,7 +10760,7 @@ function config(newConfig) {
10463
10760
  return globalConfig;
10464
10761
  }
10465
10762
 
10466
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
10763
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.js
10467
10764
  function _getMessage() {
10468
10765
  const internals = this._zod;
10469
10766
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -10655,7 +10952,7 @@ function prettifyError(error62) {
10655
10952
  return lines.join("\n");
10656
10953
  }
10657
10954
 
10658
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
10955
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/parse.js
10659
10956
  function finalizeParams(callee, params) {
10660
10957
  return { callee: params?.callee ?? callee, Err: params?.Err };
10661
10958
  }
@@ -10815,7 +11112,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
10815
11112
  };
10816
11113
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
10817
11114
 
10818
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
11115
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/regexes.js
10819
11116
  var regexes_exports = {};
10820
11117
  __export(regexes_exports, {
10821
11118
  anyString: () => anyString,
@@ -10987,7 +11284,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
10987
11284
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
10988
11285
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
10989
11286
 
10990
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
11287
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/checks.js
10991
11288
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
10992
11289
  var _a3;
10993
11290
  inst._zod ?? (inst._zod = {});
@@ -11463,7 +11760,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
11463
11760
  };
11464
11761
  });
11465
11762
 
11466
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
11763
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/doc.js
11467
11764
  var Doc = class {
11468
11765
  constructor(args = [], closed = {}) {
11469
11766
  this.content = [];
@@ -11504,14 +11801,14 @@ ${content.join("\n")}
11504
11801
  }
11505
11802
  };
11506
11803
 
11507
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
11804
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/versions.js
11508
11805
  var version = {
11509
11806
  major: 4,
11510
11807
  minor: 6,
11511
- patch: 5
11808
+ patch: 7
11512
11809
  };
11513
11810
 
11514
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
11811
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/schemas.js
11515
11812
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
11516
11813
  var _a3;
11517
11814
  inst ?? (inst = {});
@@ -12264,6 +12561,31 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
12264
12561
  return payload;
12265
12562
  };
12266
12563
  });
12564
+ function capSize(inst, size) {
12565
+ const caps = sizeCaps(inst._zod.def.checks);
12566
+ if (!caps.length)
12567
+ return;
12568
+ const cap = Math.min(...caps.map((c) => c[0]));
12569
+ const parse3 = inst._zod.parse;
12570
+ inst._zod.parse = (payload, ctx) => {
12571
+ const n = size(payload.value);
12572
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
12573
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
12574
+ if (n > max && ch._zod.def.when(payload)) {
12575
+ const start = payload.issues.length;
12576
+ ch._zod.check(payload);
12577
+ payload.issues[start].continue = false;
12578
+ attachSchema(payload.issues, start, inst);
12579
+ return payload;
12580
+ }
12581
+ }
12582
+ }
12583
+ return parse3(payload, ctx);
12584
+ };
12585
+ }
12586
+ var arraySize = (input2) => Array.isArray(input2) ? input2.length : -1;
12587
+ var mapSize = (input2) => input2 instanceof Map ? input2.size : -1;
12588
+ var setSize = (input2) => input2 instanceof Set ? input2.size : -1;
12267
12589
  function handleArrayResult(result, final, index) {
12268
12590
  if (result.issues.length) {
12269
12591
  final.issues.push(...prefixIssues(index, result.issues));
@@ -12307,6 +12629,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
12307
12629
  }
12308
12630
  return payload;
12309
12631
  };
12632
+ capSize(inst, arraySize);
12310
12633
  });
12311
12634
  function handlePropertyResult(result, final, key, input2, optin, optout) {
12312
12635
  const isPresent = key in input2;
@@ -13263,6 +13586,7 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
13263
13586
  return Promise.all(proms).then(() => payload);
13264
13587
  return payload;
13265
13588
  };
13589
+ capSize(inst, mapSize);
13266
13590
  });
13267
13591
  function handleMapResult(keyResult, valueResult, final, key, input2, inst, ctx) {
13268
13592
  if (keyResult.issues.length) {
@@ -13329,6 +13653,7 @@ var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
13329
13653
  return Promise.all(proms).then(() => payload);
13330
13654
  return payload;
13331
13655
  };
13656
+ capSize(inst, setSize);
13332
13657
  });
13333
13658
  function handleSetResult(result, final) {
13334
13659
  if (result.issues.length) {
@@ -13925,7 +14250,7 @@ function handleRefineResult(result, payload, input2, inst) {
13925
14250
  }
13926
14251
  }
13927
14252
 
13928
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
14253
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
13929
14254
  var $ZodCyclicError = class extends Error {
13930
14255
  constructor() {
13931
14256
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -14202,7 +14527,7 @@ function isBackEdge(ctx, value) {
14202
14527
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
14203
14528
  }
14204
14529
 
14205
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/index.js
14530
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/index.js
14206
14531
  var locales_exports = {};
14207
14532
  __export(locales_exports, {
14208
14533
  ar: () => ar_default,
@@ -14270,7 +14595,7 @@ __export(locales_exports, {
14270
14595
  zhTW: () => zh_TW_default
14271
14596
  });
14272
14597
 
14273
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ar.js
14598
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ar.js
14274
14599
  var error = () => {
14275
14600
  const Sizable = {
14276
14601
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -14382,7 +14707,7 @@ function ar_default() {
14382
14707
  };
14383
14708
  }
14384
14709
 
14385
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/az.js
14710
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/az.js
14386
14711
  var error2 = () => {
14387
14712
  const Sizable = {
14388
14713
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -14493,7 +14818,7 @@ function az_default() {
14493
14818
  };
14494
14819
  }
14495
14820
 
14496
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/be.js
14821
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/be.js
14497
14822
  function getBelarusianPlural(count, one, few, many) {
14498
14823
  const absCount = Math.abs(count);
14499
14824
  const lastDigit = absCount % 10;
@@ -14662,7 +14987,7 @@ function be_default() {
14662
14987
  };
14663
14988
  }
14664
14989
 
14665
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bg.js
14990
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/bg.js
14666
14991
  var error4 = () => {
14667
14992
  const Sizable = {
14668
14993
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -14788,7 +15113,7 @@ function bg_default() {
14788
15113
  };
14789
15114
  }
14790
15115
 
14791
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bn.js
15116
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/bn.js
14792
15117
  var error5 = () => {
14793
15118
  const Sizable = {
14794
15119
  string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
@@ -14902,7 +15227,7 @@ function bn_default() {
14902
15227
  };
14903
15228
  }
14904
15229
 
14905
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ca.js
15230
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ca.js
14906
15231
  var error6 = () => {
14907
15232
  const Sizable = {
14908
15233
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -15016,7 +15341,7 @@ function ca_default() {
15016
15341
  };
15017
15342
  }
15018
15343
 
15019
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ckb.js
15344
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ckb.js
15020
15345
  var error7 = () => {
15021
15346
  const Sizable = {
15022
15347
  string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
@@ -15149,7 +15474,7 @@ function ckb_default() {
15149
15474
  };
15150
15475
  }
15151
15476
 
15152
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/cs.js
15477
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/cs.js
15153
15478
  var error8 = () => {
15154
15479
  const Sizable = {
15155
15480
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -15266,7 +15591,7 @@ function cs_default() {
15266
15591
  };
15267
15592
  }
15268
15593
 
15269
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/da.js
15594
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/da.js
15270
15595
  var error9 = () => {
15271
15596
  const Sizable = {
15272
15597
  string: { unit: "tegn", verb: "havde" },
@@ -15387,7 +15712,7 @@ function da_default() {
15387
15712
  };
15388
15713
  }
15389
15714
 
15390
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/de.js
15715
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/de.js
15391
15716
  var error10 = () => {
15392
15717
  const Sizable = {
15393
15718
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -15501,7 +15826,7 @@ function de_default() {
15501
15826
  };
15502
15827
  }
15503
15828
 
15504
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/el.js
15829
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/el.js
15505
15830
  var error11 = () => {
15506
15831
  const Sizable = {
15507
15832
  string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
@@ -15614,7 +15939,7 @@ function el_default() {
15614
15939
  };
15615
15940
  }
15616
15941
 
15617
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
15942
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/en.js
15618
15943
  var error12 = () => {
15619
15944
  const Sizable = {
15620
15945
  string: { unit: "characters", verb: "to have" },
@@ -15739,7 +16064,7 @@ function en_default() {
15739
16064
  };
15740
16065
  }
15741
16066
 
15742
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/eo.js
16067
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/eo.js
15743
16068
  var error13 = () => {
15744
16069
  const Sizable = {
15745
16070
  string: { unit: "karaktrojn", verb: "havi" },
@@ -15854,7 +16179,7 @@ function eo_default() {
15854
16179
  };
15855
16180
  }
15856
16181
 
15857
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/es.js
16182
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/es.js
15858
16183
  var error14 = () => {
15859
16184
  const Sizable = {
15860
16185
  string: { unit: "caracteres", verb: "tener" },
@@ -15991,7 +16316,7 @@ function es_default() {
15991
16316
  };
15992
16317
  }
15993
16318
 
15994
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fa.js
16319
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/fa.js
15995
16320
  var error15 = () => {
15996
16321
  const Sizable = {
15997
16322
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -16111,7 +16436,7 @@ function fa_default() {
16111
16436
  };
16112
16437
  }
16113
16438
 
16114
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fi.js
16439
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/fi.js
16115
16440
  var error16 = () => {
16116
16441
  const Sizable = {
16117
16442
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -16229,7 +16554,7 @@ function fi_default() {
16229
16554
  };
16230
16555
  }
16231
16556
 
16232
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr.js
16557
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/fr.js
16233
16558
  var error17 = () => {
16234
16559
  const Sizable = {
16235
16560
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -16359,7 +16684,7 @@ function fr_default() {
16359
16684
  };
16360
16685
  }
16361
16686
 
16362
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr-CA.js
16687
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/fr-CA.js
16363
16688
  var error18 = () => {
16364
16689
  const Sizable = {
16365
16690
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -16472,7 +16797,7 @@ function fr_CA_default() {
16472
16797
  };
16473
16798
  }
16474
16799
 
16475
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/gu.js
16800
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/gu.js
16476
16801
  var error19 = () => {
16477
16802
  const Sizable = {
16478
16803
  string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
@@ -16586,7 +16911,7 @@ function gu_default() {
16586
16911
  };
16587
16912
  }
16588
16913
 
16589
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/he.js
16914
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/he.js
16590
16915
  var error20 = () => {
16591
16916
  const TypeNames = {
16592
16917
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -16788,7 +17113,7 @@ function he_default() {
16788
17113
  };
16789
17114
  }
16790
17115
 
16791
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hi.js
17116
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/hi.js
16792
17117
  var error21 = () => {
16793
17118
  const Sizable = {
16794
17119
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
@@ -16900,7 +17225,7 @@ function hi_default() {
16900
17225
  };
16901
17226
  }
16902
17227
 
16903
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hr.js
17228
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/hr.js
16904
17229
  var error22 = () => {
16905
17230
  const Sizable = {
16906
17231
  string: { unit: "znakova", verb: "imati" },
@@ -17027,7 +17352,7 @@ function hr_default() {
17027
17352
  };
17028
17353
  }
17029
17354
 
17030
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hu.js
17355
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/hu.js
17031
17356
  var error23 = () => {
17032
17357
  const Sizable = {
17033
17358
  string: { unit: "karakter", verb: "legyen" },
@@ -17141,7 +17466,7 @@ function hu_default() {
17141
17466
  };
17142
17467
  }
17143
17468
 
17144
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hy.js
17469
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/hy.js
17145
17470
  function getArmenianPlural(count, one, many) {
17146
17471
  return Math.abs(count) === 1 ? one : many;
17147
17472
  }
@@ -17300,7 +17625,7 @@ function hy_default() {
17300
17625
  };
17301
17626
  }
17302
17627
 
17303
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/id.js
17628
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/id.js
17304
17629
  var error25 = () => {
17305
17630
  const Sizable = {
17306
17631
  string: { unit: "karakter", verb: "memiliki" },
@@ -17412,7 +17737,7 @@ function id_default() {
17412
17737
  };
17413
17738
  }
17414
17739
 
17415
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/is.js
17740
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/is.js
17416
17741
  var error26 = () => {
17417
17742
  const Sizable = {
17418
17743
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -17527,7 +17852,7 @@ function is_default() {
17527
17852
  };
17528
17853
  }
17529
17854
 
17530
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/it.js
17855
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/it.js
17531
17856
  var error27 = () => {
17532
17857
  const Sizable = {
17533
17858
  string: { unit: "caratteri", verb: "avere" },
@@ -17641,7 +17966,7 @@ function it_default() {
17641
17966
  };
17642
17967
  }
17643
17968
 
17644
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ja.js
17969
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ja.js
17645
17970
  var error28 = () => {
17646
17971
  const Sizable = {
17647
17972
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -17754,7 +18079,7 @@ function ja_default() {
17754
18079
  };
17755
18080
  }
17756
18081
 
17757
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ka.js
18082
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ka.js
17758
18083
  var error29 = () => {
17759
18084
  const Sizable = {
17760
18085
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -17872,7 +18197,7 @@ function ka_default() {
17872
18197
  };
17873
18198
  }
17874
18199
 
17875
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/km.js
18200
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/km.js
17876
18201
  var error30 = () => {
17877
18202
  const Sizable = {
17878
18203
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -17988,12 +18313,12 @@ function km_default() {
17988
18313
  };
17989
18314
  }
17990
18315
 
17991
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kh.js
18316
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/kh.js
17992
18317
  function kh_default() {
17993
18318
  return km_default();
17994
18319
  }
17995
18320
 
17996
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kn.js
18321
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/kn.js
17997
18322
  var error31 = () => {
17998
18323
  const Sizable = {
17999
18324
  string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
@@ -18109,7 +18434,7 @@ function kn_default() {
18109
18434
  };
18110
18435
  }
18111
18436
 
18112
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ko.js
18437
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ko.js
18113
18438
  var error32 = () => {
18114
18439
  const Sizable = {
18115
18440
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -18226,7 +18551,7 @@ function ko_default() {
18226
18551
  };
18227
18552
  }
18228
18553
 
18229
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/lt.js
18554
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/lt.js
18230
18555
  var capitalizeFirstCharacter = (text2) => {
18231
18556
  return text2.charAt(0).toUpperCase() + text2.slice(1);
18232
18557
  };
@@ -18434,7 +18759,7 @@ function lt_default() {
18434
18759
  };
18435
18760
  }
18436
18761
 
18437
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/mk.js
18762
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/mk.js
18438
18763
  var error34 = () => {
18439
18764
  const Sizable = {
18440
18765
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -18549,7 +18874,7 @@ function mk_default() {
18549
18874
  };
18550
18875
  }
18551
18876
 
18552
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ms.js
18877
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ms.js
18553
18878
  var error35 = () => {
18554
18879
  const Sizable = {
18555
18880
  string: { unit: "aksara", verb: "mempunyai" },
@@ -18662,7 +18987,7 @@ function ms_default() {
18662
18987
  };
18663
18988
  }
18664
18989
 
18665
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ne.js
18990
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ne.js
18666
18991
  var error36 = () => {
18667
18992
  const Sizable = {
18668
18993
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
@@ -18774,7 +19099,7 @@ function ne_default() {
18774
19099
  };
18775
19100
  }
18776
19101
 
18777
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nl.js
19102
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/nl.js
18778
19103
  var error37 = () => {
18779
19104
  const Sizable = {
18780
19105
  string: { unit: "tekens", verb: "heeft" },
@@ -18890,7 +19215,7 @@ function nl_default() {
18890
19215
  };
18891
19216
  }
18892
19217
 
18893
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nn.js
19218
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/nn.js
18894
19219
  var error38 = () => {
18895
19220
  const Sizable = {
18896
19221
  string: { unit: "teikn", verb: "\xE5 ha" },
@@ -19004,7 +19329,7 @@ function nn_default() {
19004
19329
  };
19005
19330
  }
19006
19331
 
19007
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/no.js
19332
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/no.js
19008
19333
  var error39 = () => {
19009
19334
  const Sizable = {
19010
19335
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -19118,7 +19443,7 @@ function no_default() {
19118
19443
  };
19119
19444
  }
19120
19445
 
19121
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ota.js
19446
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ota.js
19122
19447
  var error40 = () => {
19123
19448
  const Sizable = {
19124
19449
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -19233,7 +19558,7 @@ function ota_default() {
19233
19558
  };
19234
19559
  }
19235
19560
 
19236
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ps.js
19561
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ps.js
19237
19562
  var error41 = () => {
19238
19563
  const Sizable = {
19239
19564
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -19353,7 +19678,7 @@ function ps_default() {
19353
19678
  };
19354
19679
  }
19355
19680
 
19356
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pl.js
19681
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/pl.js
19357
19682
  var error42 = () => {
19358
19683
  const Sizable = {
19359
19684
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -19468,7 +19793,7 @@ function pl_default() {
19468
19793
  };
19469
19794
  }
19470
19795
 
19471
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt.js
19796
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/pt.js
19472
19797
  var error43 = () => {
19473
19798
  const Sizable = {
19474
19799
  string: { unit: "caracteres" },
@@ -19612,7 +19937,7 @@ function pt_default() {
19612
19937
  };
19613
19938
  }
19614
19939
 
19615
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt-BR.js
19940
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/pt-BR.js
19616
19941
  var error44 = () => {
19617
19942
  const Sizable = {
19618
19943
  string: { unit: "caracteres" },
@@ -19757,7 +20082,7 @@ function pt_BR_default() {
19757
20082
  };
19758
20083
  }
19759
20084
 
19760
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ro.js
20085
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ro.js
19761
20086
  var error45 = () => {
19762
20087
  const Sizable = {
19763
20088
  string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
@@ -19880,7 +20205,7 @@ function ro_default() {
19880
20205
  };
19881
20206
  }
19882
20207
 
19883
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ru.js
20208
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ru.js
19884
20209
  function getRussianPlural(count, one, few, many) {
19885
20210
  const absCount = Math.abs(count);
19886
20211
  const lastDigit = absCount % 10;
@@ -20049,7 +20374,7 @@ function ru_default() {
20049
20374
  };
20050
20375
  }
20051
20376
 
20052
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sk.js
20377
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/sk.js
20053
20378
  var error47 = () => {
20054
20379
  const Sizable = {
20055
20380
  string: { unit: "znakov", verb: "ma\u0165" },
@@ -20166,7 +20491,7 @@ function sk_default() {
20166
20491
  };
20167
20492
  }
20168
20493
 
20169
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sl.js
20494
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/sl.js
20170
20495
  var error48 = () => {
20171
20496
  const Sizable = {
20172
20497
  string: { unit: "znakov", verb: "imeti" },
@@ -20281,7 +20606,7 @@ function sl_default() {
20281
20606
  };
20282
20607
  }
20283
20608
 
20284
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sv.js
20609
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/sv.js
20285
20610
  var error49 = () => {
20286
20611
  const Sizable = {
20287
20612
  string: { unit: "tecken", verb: "att ha" },
@@ -20397,7 +20722,7 @@ function sv_default() {
20397
20722
  };
20398
20723
  }
20399
20724
 
20400
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ta.js
20725
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ta.js
20401
20726
  var error50 = () => {
20402
20727
  const Sizable = {
20403
20728
  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" },
@@ -20513,7 +20838,7 @@ function ta_default() {
20513
20838
  };
20514
20839
  }
20515
20840
 
20516
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tg.js
20841
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/tg.js
20517
20842
  var error51 = () => {
20518
20843
  const Sizable = {
20519
20844
  string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
@@ -20630,7 +20955,7 @@ function tg_default() {
20630
20955
  };
20631
20956
  }
20632
20957
 
20633
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/th.js
20958
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/th.js
20634
20959
  var error52 = () => {
20635
20960
  const Sizable = {
20636
20961
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -20746,7 +21071,7 @@ function th_default() {
20746
21071
  };
20747
21072
  }
20748
21073
 
20749
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tk.js
21074
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/tk.js
20750
21075
  var error53 = () => {
20751
21076
  const Sizable = {
20752
21077
  string: { unit: "simwol", verb: "bolmaly" },
@@ -20854,7 +21179,7 @@ function tk_default() {
20854
21179
  };
20855
21180
  }
20856
21181
 
20857
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tr.js
21182
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/tr.js
20858
21183
  var error54 = () => {
20859
21184
  const Sizable = {
20860
21185
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -20965,7 +21290,7 @@ function tr_default() {
20965
21290
  };
20966
21291
  }
20967
21292
 
20968
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uk.js
21293
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/uk.js
20969
21294
  var error55 = () => {
20970
21295
  const Sizable = {
20971
21296
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -21079,12 +21404,12 @@ function uk_default() {
21079
21404
  };
21080
21405
  }
21081
21406
 
21082
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ua.js
21407
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ua.js
21083
21408
  function ua_default() {
21084
21409
  return uk_default();
21085
21410
  }
21086
21411
 
21087
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ur.js
21412
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/ur.js
21088
21413
  var error56 = () => {
21089
21414
  const Sizable = {
21090
21415
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -21200,7 +21525,7 @@ function ur_default() {
21200
21525
  };
21201
21526
  }
21202
21527
 
21203
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uz.js
21528
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/uz.js
21204
21529
  var error57 = () => {
21205
21530
  const Sizable = {
21206
21531
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -21314,7 +21639,7 @@ function uz_default() {
21314
21639
  };
21315
21640
  }
21316
21641
 
21317
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/vi.js
21642
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/vi.js
21318
21643
  var error58 = () => {
21319
21644
  const Sizable = {
21320
21645
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -21428,7 +21753,7 @@ function vi_default() {
21428
21753
  };
21429
21754
  }
21430
21755
 
21431
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-CN.js
21756
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/zh-CN.js
21432
21757
  var error59 = () => {
21433
21758
  const Sizable = {
21434
21759
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -21543,7 +21868,7 @@ function zh_CN_default() {
21543
21868
  };
21544
21869
  }
21545
21870
 
21546
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-TW.js
21871
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/zh-TW.js
21547
21872
  var error60 = () => {
21548
21873
  const Sizable = {
21549
21874
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -21656,7 +21981,7 @@ function zh_TW_default() {
21656
21981
  };
21657
21982
  }
21658
21983
 
21659
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/yo.js
21984
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/yo.js
21660
21985
  var error61 = () => {
21661
21986
  const Sizable = {
21662
21987
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -21769,7 +22094,7 @@ function yo_default() {
21769
22094
  };
21770
22095
  }
21771
22096
 
21772
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
22097
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.js
21773
22098
  var _a2;
21774
22099
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
21775
22100
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -21819,7 +22144,7 @@ function registry() {
21819
22144
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
21820
22145
  var globalRegistry = globalThis.__zod_globalRegistry;
21821
22146
 
21822
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/compile.js
22147
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/compile.js
21823
22148
  var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
21824
22149
  var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
21825
22150
  var ZodCompileAsyncError = class extends Error {
@@ -22859,9 +23184,15 @@ function generateNullableCheck(doc, ctx, schema, accessor, buildsValue = true) {
22859
23184
  doc.write(`}`);
22860
23185
  return outputVar;
22861
23186
  }
23187
+ function generateSizeGate(doc, schema, size) {
23188
+ for (const [max, check2] of sizeCaps(schema._zod.def.checks)) {
23189
+ doc.write(`if (${size} > ${numericOperand(max, check2._zod.def.check)}) return INVALID;`);
23190
+ }
23191
+ }
22862
23192
  function generateArrayCheck(doc, ctx, schema, accessor, buildsValue = true) {
22863
23193
  const def = schema._zod.def;
22864
23194
  doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
23195
+ generateSizeGate(doc, schema, `${accessor}.length`);
22865
23196
  const outputVar = buildsValue ? newVar(ctx) : null;
22866
23197
  const iVar = newVar(ctx);
22867
23198
  const elemVar = newVar(ctx);
@@ -23261,6 +23592,7 @@ function literalPropertyKey(ctx, key) {
23261
23592
  function generateMapCheck(doc, ctx, schema, accessor) {
23262
23593
  const def = schema._zod.def;
23263
23594
  doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);
23595
+ generateSizeGate(doc, schema, `${accessor}.size`);
23264
23596
  const outputVar = newVar(ctx);
23265
23597
  const kVar = newVar(ctx);
23266
23598
  const valVar = newVar(ctx);
@@ -23277,6 +23609,7 @@ function generateMapCheck(doc, ctx, schema, accessor) {
23277
23609
  function generateSetCheck(doc, ctx, schema, accessor) {
23278
23610
  const def = schema._zod.def;
23279
23611
  doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);
23612
+ generateSizeGate(doc, schema, `${accessor}.size`);
23280
23613
  const outputVar = newVar(ctx);
23281
23614
  const valVar = newVar(ctx);
23282
23615
  doc.write(`const ${outputVar} = new Set();`);
@@ -23421,7 +23754,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
23421
23754
  return accessor;
23422
23755
  }
23423
23756
 
23424
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
23757
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.js
23425
23758
  function snapshotChecks(def) {
23426
23759
  if (def.checks)
23427
23760
  def.checks = [...def.checks];
@@ -24480,7 +24813,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
24480
24813
  return inst;
24481
24814
  }
24482
24815
 
24483
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
24816
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
24484
24817
  function assignProps(target, ...sources) {
24485
24818
  for (const source of sources) {
24486
24819
  for (const key of Reflect.ownKeys(source)) {
@@ -25010,7 +25343,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
25010
25343
  return finalize(ctx, schema);
25011
25344
  };
25012
25345
 
25013
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
25346
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
25014
25347
  var narrowMin = (agg, key, value) => {
25015
25348
  if (agg[key] === void 0 || value > agg[key])
25016
25349
  agg[key] = value;
@@ -25758,7 +26091,7 @@ function toJSONSchema(input2, params) {
25758
26091
  return finalize(ctx, input2);
25759
26092
  }
25760
26093
 
25761
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-generator.js
26094
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema-generator.js
25762
26095
  var JSONSchemaGenerator = class {
25763
26096
  /** @deprecated Access via ctx instead */
25764
26097
  get metadataRegistry() {
@@ -25836,10 +26169,10 @@ var JSONSchemaGenerator = class {
25836
26169
  }
25837
26170
  };
25838
26171
 
25839
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema.js
26172
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema.js
25840
26173
  var json_schema_exports = {};
25841
26174
 
25842
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
26175
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
25843
26176
  var schemas_exports2 = {};
25844
26177
  __export(schemas_exports2, {
25845
26178
  ZodAny: () => ZodAny,
@@ -26020,7 +26353,7 @@ __export(schemas_exports2, {
26020
26353
  xor: () => xor
26021
26354
  });
26022
26355
 
26023
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/checks.js
26356
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/checks.js
26024
26357
  var checks_exports2 = {};
26025
26358
  __export(checks_exports2, {
26026
26359
  endsWith: () => _endsWith,
@@ -26055,7 +26388,7 @@ __export(checks_exports2, {
26055
26388
  uppercase: () => _uppercase
26056
26389
  });
26057
26390
 
26058
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
26391
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/errors.js
26059
26392
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
26060
26393
  function _lazyMethod(proto, key, make) {
26061
26394
  Object.defineProperty(proto, key, {
@@ -26101,7 +26434,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
26101
26434
  Parent: Error
26102
26435
  });
26103
26436
 
26104
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
26437
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/parse.js
26105
26438
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
26106
26439
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
26107
26440
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -26115,7 +26448,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
26115
26448
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
26116
26449
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
26117
26450
 
26118
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
26451
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
26119
26452
  function _ensureDefaultLocale() {
26120
26453
  if (!globalConfig.localeError)
26121
26454
  config(en_default());
@@ -27580,7 +27913,7 @@ function preprocess(fn, schema) {
27580
27913
  });
27581
27914
  }
27582
27915
 
27583
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/compat.js
27916
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/compat.js
27584
27917
  var ZodIssueCode = {
27585
27918
  invalid_type: "invalid_type",
27586
27919
  too_big: "too_big",
@@ -27606,7 +27939,7 @@ var ZodFirstPartyTypeKind;
27606
27939
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind3) {
27607
27940
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
27608
27941
 
27609
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/iso.js
27942
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/iso.js
27610
27943
  var iso_exports = {};
27611
27944
  __export(iso_exports, {
27612
27945
  ZodISODate: () => ZodISODate,
@@ -27631,7 +27964,7 @@ function duration2(params) {
27631
27964
  return _isoDuration(ZodISODuration, params);
27632
27965
  }
27633
27966
 
27634
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/from-json-schema.js
27967
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/from-json-schema.js
27635
27968
  var z = {
27636
27969
  ...schemas_exports2,
27637
27970
  ...checks_exports2,
@@ -28364,7 +28697,7 @@ function fromJSONSchema(schema, params) {
28364
28697
  return convertSchema(normalized, ctx);
28365
28698
  }
28366
28699
 
28367
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/visit.js
28700
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/visit.js
28368
28701
  var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
28369
28702
  function visit(schema, fnOrHandlers) {
28370
28703
  const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
@@ -28519,7 +28852,7 @@ function visit(schema, fnOrHandlers) {
28519
28852
  return run(schema);
28520
28853
  }
28521
28854
 
28522
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/deep-partial.js
28855
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/deep-partial.js
28523
28856
  function deepPartial(schema) {
28524
28857
  return visit(schema, {
28525
28858
  object: (s2) => s2.partial(),
@@ -28531,7 +28864,7 @@ function deepPartial(schema) {
28531
28864
  });
28532
28865
  }
28533
28866
 
28534
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/in-out.js
28867
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/in-out.js
28535
28868
  function withChecks(side, checks) {
28536
28869
  if (!checks?.length)
28537
28870
  return side;
@@ -28561,7 +28894,7 @@ function output(schema) {
28561
28894
  });
28562
28895
  }
28563
28896
 
28564
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/coerce.js
28897
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/coerce.js
28565
28898
  var coerce_exports = {};
28566
28899
  __export(coerce_exports, {
28567
28900
  bigint: () => bigint3,
@@ -30045,10 +30378,10 @@ var semver3 = __toESM(require_semver2(), 1);
30045
30378
 
30046
30379
  // ../bitfab-plugin-lib/dist/bakedSdkVersions.js
30047
30380
  var BAKED_SDK_VERSIONS = {
30048
- typescript: "0.65.1",
30049
- python: "0.65.1",
30050
- ruby: "0.65.1",
30051
- go: "0.65.1"
30381
+ typescript: "0.65.2",
30382
+ python: "0.65.2",
30383
+ ruby: "0.65.2",
30384
+ go: "0.65.2"
30052
30385
  };
30053
30386
 
30054
30387
  // ../bitfab-plugin-lib/dist/installedSdk.js
@@ -36799,7 +37132,7 @@ Never modify existing code on a refactor path without completing this three-step
36799
37132
  toolCalls: ["bash", "read", "glob", "grep", "ask"],
36800
37133
  body: `Cloud replay is the user's normal replay plus --cloud: every replay option works the same, the runner replays a snapshot of their working tree (changed files, plus new files git does not ignore) from the same directory, and the command prints the replay's progress and a short summary of its result (experiment ID and URL, replayed, same, changed, and errored counts, and each errored trace with its error), then exits with its exit code. Every trace's input and output are in the experiment in Bitfab; read them through the Bitfab MCP tools, as after a local replay. --cloud-full-output prints the whole result instead, and is refused on a public repository. The code ships inside the SDK, and the repository keeps one file: .github/workflows/bitfab-replay.yml, which holds only settings.
36801
37134
 
36802
- Run the installed SDK's bitfab-replay --cloud --help; if it does not list --cloud-preview, upgrade the SDK through bitfab:update first. Check that the git origin is github.com and that Python 3.10+ exists (macOS or Linux). GitHub access needs no GitHub CLI: the SDK uses gh when it is logged in, otherwise GH_TOKEN or GITHUB_TOKEN, otherwise the github.com credential git stores. When the repository still has .bitfab/cloud.json from an older SDK, the SDK says to delete it and the old workflow and run --cloud-init again; show the user the old file's settings first.
37135
+ Run the installed SDK's bitfab-replay --cloud --help; if it does not list --cloud-preview, upgrade the SDK through bitfab:update first. Check that the git origin is github.com and that Python 3.10+ exists (macOS or Linux). GitHub access needs no GitHub CLI: the SDK uses gh when it is logged in, otherwise GH_TOKEN or GITHUB_TOKEN, otherwise the github.com credential git stores. Without any of them, or when that account cannot read or push to the repository, a replay still runs as long as git can push and the workflow also starts on a push to a bitfab-replay/ branch (--cloud-init writes that trigger and --cloud-update adds it): the command warns that it gets no updates, prints the Actions page to watch, and returns once the branch is pushed. That run uses the workflow's BITFAB_API_KEY secret, and the user deletes the snapshot branch once it finishes. --cloud-full-output, --cloud-allow-file, and --cloud-ref still need GitHub access. When the repository still has .bitfab/cloud.json from an older SDK, the SDK says to delete it and the old workflow and run --cloud-init again; show the user the old file's settings first.
36803
37136
 
36804
37137
  Read the existing GitHub Actions, lockfiles, replay registry, and environment-variable NAMES; never read or print secret values. Note what the replay needs beyond an install (build or code-generation steps, services, the working directory) and which environment variables it reads from secrets. For database reads, prefer database branching: it needs no database secret, but only works when every registry entry that reads the database sets dbBranch and the application takes its connection per call from the replay branch URL (getCurrentReplayBranch().databaseUrl, or the Python, Ruby, or Go equivalent); offer db-snapshot mode when either piece is missing. Do not silently give replay production side effects.
36805
37138
 
@@ -36817,7 +37150,7 @@ State who can start a replay: once GitHub registers the workflow, anyone with wr
36817
37150
 
36818
37151
  Edit the workflow directly for anything detection missed, such as a build step, code generation, a monorepo install filter, or a service, and pin any added action to a commit SHA. When the user normally starts replay through a wrapper that sets environment variables, add them to the replay step's env. Every variable read from a secret stays in that env as a GitHub expression reading secrets.<name>, which is how --cloud-secrets and the runner's empty-secret check find them; a secret stored under another name is mapped directly, such as OPENAI_API_KEY reading secrets.EVAL_OPENAI_API_KEY, and a non-secret value reads vars.<name>. When a setup step needs a credential file, write it under $RUNNER_TEMP with umask 077 and export its path through $GITHUB_ENV; do not use google-github-actions/auth or similar actions that write the key into the checked-out workspace. Do not copy deployment steps or secret values into the workflow.
36819
37152
 
36820
- For BITFAB_API_KEY, have the user create a dedicated key for the runner on the Bitfab dashboard's API keys page, in the organization that holds the registry's traces, named for what it is (such as "GitHub cloud replay"), and set it by hand. Each replay started with bitfab-replay --cloud runs as whoever started it, through a one-time token in the key_id input that only a run of that workflow, on that replay's branch, in that repository can trade for a short-lived key, which it proves with GitHub's OIDC token for the run. This secret is the key a run falls back to when no token can be passed, such as a dispatch from another workflow. Keep the key_id input and the id-token: write permission --cloud-init writes. When a workflow already exists, run --cloud-update (the same command as --cloud-init) anyway: it adds a missing key_id input and id-token: write permission, removes the BITFAB_REPLAY_BITFAB_API_KEY line older SDKs wrote (it made GitHub hand the runner every secret in the repository), leaves the rest alone, and lists anything it could not place for you to add by hand. Its result also lists in oldKeySecrets any BITFAB_REPLAY_KEY_* secrets an older SDK left in the repository, each a copy of the Bitfab API key of whoever started that replay. Name them to the user and ask once whether to delete them; on yes, run --cloud-update --remove-old-key-secrets, which returns removedOldKeySecrets and lists any it could not delete with the page to delete them on. For the other secrets, when local environment files define them, ask once whether to copy them, then run bitfab-replay --cloud-secrets --env-file <file> --dry-run, then without --dry-run. It pipes values to gh on standard input, creates a missing Environment, and without the GitHub CLI returns createByHand with the page to create them on; relay that list instead of treating it as a failure. Never hand-extract a value with grep, cut, or a shell variable. Warn before copying a value a runner cannot use, such as a localhost URL. Setting secrets needs the same explicit authorization as any other remote write.
37153
+ For BITFAB_API_KEY, have the user create a dedicated key for the runner on the Bitfab dashboard's API keys page, in the organization that holds the registry's traces, named for what it is (such as "GitHub cloud replay"), and set it by hand. Each replay started with bitfab-replay --cloud runs as whoever started it, through a one-time token in the key_id input that only a run of that workflow, on that replay's branch, in that repository can trade for a short-lived key, which it proves with GitHub's OIDC token for the run. This secret is the key a run falls back to when no token can be passed, such as a dispatch from another workflow. Keep the key_id input, the id-token: write permission, and the push trigger with the replay job's if: condition that --cloud-init writes; a replay started through the GitHub API marks its snapshot commit [skip actions] so the push starts nothing, and the condition skips the push run an older SDK's snapshot would start, so each replay runs once. When a workflow already exists, run --cloud-update (the same command as --cloud-init) anyway: it adds a missing key_id input and id-token: write permission, removes the BITFAB_REPLAY_BITFAB_API_KEY line older SDKs wrote (it made GitHub hand the runner every secret in the repository), leaves the rest alone, and lists anything it could not place for you to add by hand. Its result also lists in oldKeySecrets any BITFAB_REPLAY_KEY_* secrets an older SDK left in the repository, each a copy of the Bitfab API key of whoever started that replay. Name them to the user and ask once whether to delete them; on yes, run --cloud-update --remove-old-key-secrets, which returns removedOldKeySecrets and lists any it could not delete with the page to delete them on. For the other secrets, when local environment files define them, ask once whether to copy them, then run bitfab-replay --cloud-secrets --env-file <file> --dry-run, then without --dry-run. It pipes values to gh on standard input, creates a missing Environment, and without the GitHub CLI returns createByHand with the page to create them on; relay that list instead of treating it as a failure. Never hand-extract a value with grep, cut, or a shell variable. Warn before copying a value a runner cannot use, such as a localhost URL. Setting secrets needs the same explicit authorization as any other remote write.
36821
37154
 
36822
37155
  Each replay pushes a temporary bitfab-replay/<UUID> branch. For each push-triggered workflow or deployment in reviewPushTriggers, offer to exclude those branches: branches-ignore: [bitfab-replay/**] on a push trigger (or a last !bitfab-replay/** entry when it already lists branches), and git.deploymentEnabled {"bitfab-replay/**": false} in vercel.json. Ask before changing existing CI or deployments.`,
36823
37156
  next: "cloud/verify"
@@ -38908,7 +39241,7 @@ function canonicalPath(target) {
38908
39241
  }
38909
39242
  }
38910
39243
 
38911
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/helpers/util.js
39244
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/helpers/util.js
38912
39245
  var util;
38913
39246
  (function(util2) {
38914
39247
  util2.assertEqual = (_) => {
@@ -39042,7 +39375,7 @@ var getParsedType2 = (data) => {
39042
39375
  }
39043
39376
  };
39044
39377
 
39045
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/ZodError.js
39378
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/ZodError.js
39046
39379
  var ZodIssueCode2 = util.arrayToEnum([
39047
39380
  "invalid_type",
39048
39381
  "invalid_literal",
@@ -39171,7 +39504,7 @@ ZodError2.create = (issues) => {
39171
39504
  return error62;
39172
39505
  };
39173
39506
 
39174
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/locales/en.js
39507
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/locales/en.js
39175
39508
  var errorMap = (issue2, _ctx) => {
39176
39509
  let message;
39177
39510
  switch (issue2.code) {
@@ -39274,13 +39607,13 @@ var errorMap = (issue2, _ctx) => {
39274
39607
  };
39275
39608
  var en_default2 = errorMap;
39276
39609
 
39277
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/errors.js
39610
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/errors.js
39278
39611
  var overrideErrorMap = en_default2;
39279
39612
  function getErrorMap2() {
39280
39613
  return overrideErrorMap;
39281
39614
  }
39282
39615
 
39283
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/helpers/parseUtil.js
39616
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/helpers/parseUtil.js
39284
39617
  var makeIssue = (params) => {
39285
39618
  const { data, path: path15, errorMaps, issueData } = params;
39286
39619
  const fullPath = [...path15, ...issueData.path || []];
@@ -39389,14 +39722,14 @@ var isDirty = (x) => x.status === "dirty";
39389
39722
  var isValid = (x) => x.status === "valid";
39390
39723
  var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
39391
39724
 
39392
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/helpers/errorUtil.js
39725
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/helpers/errorUtil.js
39393
39726
  var errorUtil;
39394
39727
  (function(errorUtil2) {
39395
39728
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
39396
39729
  errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
39397
39730
  })(errorUtil || (errorUtil = {}));
39398
39731
 
39399
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/types.js
39732
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/types.js
39400
39733
  var ParseInputLazyPath = class {
39401
39734
  constructor(parent, value, path15, key) {
39402
39735
  this._cachedPath = [];
@@ -42803,7 +43136,7 @@ var nullableType = ZodNullable2.create;
42803
43136
  var preprocessType = ZodEffects.createWithPreprocess;
42804
43137
  var pipelineType = ZodPipeline.create;
42805
43138
 
42806
- // ../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/mini/schemas.js
43139
+ // ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/mini/schemas.js
42807
43140
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
42808
43141
  if (!inst._zod)
42809
43142
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -42869,7 +43202,7 @@ function object2(shape, params) {
42869
43202
  return new ZodMiniObject(def);
42870
43203
  }
42871
43204
 
42872
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
43205
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
42873
43206
  function isZ4Schema(s2) {
42874
43207
  const schema = s2;
42875
43208
  return !!schema._zod;
@@ -43029,7 +43362,7 @@ function getLiteralValue(schema) {
43029
43362
  return void 0;
43030
43363
  }
43031
43364
 
43032
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
43365
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
43033
43366
  var LATEST_PROTOCOL_VERSION = "2025-11-25";
43034
43367
  var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
43035
43368
  var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
@@ -44560,12 +44893,12 @@ var UrlElicitationRequiredError = class extends McpError {
44560
44893
  }
44561
44894
  };
44562
44895
 
44563
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
44896
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
44564
44897
  function isTerminal(status) {
44565
44898
  return status === "completed" || status === "failed" || status === "cancelled";
44566
44899
  }
44567
44900
 
44568
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/Options.js
44901
+ // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/Options.js
44569
44902
  var ignoreOverride = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use");
44570
44903
  var defaultOptions = {
44571
44904
  name: void 0,
@@ -44599,7 +44932,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
44599
44932
  ...options
44600
44933
  };
44601
44934
 
44602
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/Refs.js
44935
+ // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/Refs.js
44603
44936
  var getRefs = (options) => {
44604
44937
  const _options = getDefaultOptions(options);
44605
44938
  const currentPath = _options.name !== void 0 ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
@@ -44620,7 +44953,7 @@ var getRefs = (options) => {
44620
44953
  };
44621
44954
  };
44622
44955
 
44623
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
44956
+ // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
44624
44957
  function addErrorMessage(res, key, errorMessage, refs) {
44625
44958
  if (!refs?.errorMessages)
44626
44959
  return;
@@ -44636,7 +44969,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
44636
44969
  addErrorMessage(res, key, errorMessage, refs);
44637
44970
  }
44638
44971
 
44639
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
44972
+ // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
44640
44973
  var getRelativePath = (pathA, pathB) => {
44641
44974
  let i = 0;
44642
44975
  for (; i < pathA.length && i < pathB.length; i++) {
@@ -44646,7 +44979,7 @@ var getRelativePath = (pathA, pathB) => {
44646
44979
  return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
44647
44980
  };
44648
44981
 
44649
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
44982
+ // ../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
44650
44983
  function parseAnyDef(refs) {
44651
44984
  if (refs.target !== "openAi") {
44652
44985
  return {};
@@ -44662,7 +44995,7 @@ function parseAnyDef(refs) {
44662
44995
  };
44663
44996
  }
44664
44997
 
44665
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
44998
+ // ../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
44666
44999
  function parseArrayDef(def, refs) {
44667
45000
  const res = {
44668
45001
  type: "array"
@@ -44686,7 +45019,7 @@ function parseArrayDef(def, refs) {
44686
45019
  return res;
44687
45020
  }
44688
45021
 
44689
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
45022
+ // ../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
44690
45023
  function parseBigintDef(def, refs) {
44691
45024
  const res = {
44692
45025
  type: "integer",
@@ -44732,24 +45065,24 @@ function parseBigintDef(def, refs) {
44732
45065
  return res;
44733
45066
  }
44734
45067
 
44735
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
45068
+ // ../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
44736
45069
  function parseBooleanDef() {
44737
45070
  return {
44738
45071
  type: "boolean"
44739
45072
  };
44740
45073
  }
44741
45074
 
44742
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
45075
+ // ../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
44743
45076
  function parseBrandedDef(_def, refs) {
44744
45077
  return parseDef(_def.type._def, refs);
44745
45078
  }
44746
45079
 
44747
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
45080
+ // ../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
44748
45081
  var parseCatchDef = (def, refs) => {
44749
45082
  return parseDef(def.innerType._def, refs);
44750
45083
  };
44751
45084
 
44752
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
45085
+ // ../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
44753
45086
  function parseDateDef(def, refs, overrideDateStrategy) {
44754
45087
  const strategy = overrideDateStrategy ?? refs.dateStrategy;
44755
45088
  if (Array.isArray(strategy)) {
@@ -44808,7 +45141,7 @@ var integerDateParser = (def, refs) => {
44808
45141
  return res;
44809
45142
  };
44810
45143
 
44811
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
45144
+ // ../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
44812
45145
  function parseDefaultDef(_def, refs) {
44813
45146
  return {
44814
45147
  ...parseDef(_def.innerType._def, refs),
@@ -44816,12 +45149,12 @@ function parseDefaultDef(_def, refs) {
44816
45149
  };
44817
45150
  }
44818
45151
 
44819
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
45152
+ // ../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
44820
45153
  function parseEffectsDef(_def, refs) {
44821
45154
  return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
44822
45155
  }
44823
45156
 
44824
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
45157
+ // ../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
44825
45158
  function parseEnumDef(def) {
44826
45159
  return {
44827
45160
  type: "string",
@@ -44829,7 +45162,7 @@ function parseEnumDef(def) {
44829
45162
  };
44830
45163
  }
44831
45164
 
44832
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
45165
+ // ../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
44833
45166
  var isJsonSchema7AllOfType = (type) => {
44834
45167
  if ("type" in type && type.type === "string")
44835
45168
  return false;
@@ -44871,7 +45204,7 @@ function parseIntersectionDef(def, refs) {
44871
45204
  } : void 0;
44872
45205
  }
44873
45206
 
44874
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
45207
+ // ../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
44875
45208
  function parseLiteralDef(def, refs) {
44876
45209
  const parsedType2 = typeof def.value;
44877
45210
  if (parsedType2 !== "bigint" && parsedType2 !== "number" && parsedType2 !== "boolean" && parsedType2 !== "string") {
@@ -44891,7 +45224,7 @@ function parseLiteralDef(def, refs) {
44891
45224
  };
44892
45225
  }
44893
45226
 
44894
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
45227
+ // ../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
44895
45228
  var emojiRegex2 = void 0;
44896
45229
  var zodPatterns = {
44897
45230
  /**
@@ -45216,7 +45549,7 @@ function stringifyRegExpWithFlags(regex, refs) {
45216
45549
  return pattern;
45217
45550
  }
45218
45551
 
45219
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
45552
+ // ../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
45220
45553
  function parseRecordDef(def, refs) {
45221
45554
  if (refs.target === "openAi") {
45222
45555
  console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
@@ -45268,7 +45601,7 @@ function parseRecordDef(def, refs) {
45268
45601
  return schema;
45269
45602
  }
45270
45603
 
45271
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
45604
+ // ../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
45272
45605
  function parseMapDef(def, refs) {
45273
45606
  if (refs.mapStrategy === "record") {
45274
45607
  return parseRecordDef(def, refs);
@@ -45293,7 +45626,7 @@ function parseMapDef(def, refs) {
45293
45626
  };
45294
45627
  }
45295
45628
 
45296
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
45629
+ // ../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
45297
45630
  function parseNativeEnumDef(def) {
45298
45631
  const object3 = def.values;
45299
45632
  const actualKeys = Object.keys(def.values).filter((key) => {
@@ -45307,7 +45640,7 @@ function parseNativeEnumDef(def) {
45307
45640
  };
45308
45641
  }
45309
45642
 
45310
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
45643
+ // ../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
45311
45644
  function parseNeverDef(refs) {
45312
45645
  return refs.target === "openAi" ? void 0 : {
45313
45646
  not: parseAnyDef({
@@ -45317,7 +45650,7 @@ function parseNeverDef(refs) {
45317
45650
  };
45318
45651
  }
45319
45652
 
45320
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
45653
+ // ../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
45321
45654
  function parseNullDef(refs) {
45322
45655
  return refs.target === "openApi3" ? {
45323
45656
  enum: ["null"],
@@ -45327,7 +45660,7 @@ function parseNullDef(refs) {
45327
45660
  };
45328
45661
  }
45329
45662
 
45330
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
45663
+ // ../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
45331
45664
  var primitiveMappings = {
45332
45665
  ZodString: "string",
45333
45666
  ZodNumber: "number",
@@ -45395,7 +45728,7 @@ var asAnyOf = (def, refs) => {
45395
45728
  return anyOf.length ? { anyOf } : void 0;
45396
45729
  };
45397
45730
 
45398
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
45731
+ // ../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
45399
45732
  function parseNullableDef(def, refs) {
45400
45733
  if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
45401
45734
  if (refs.target === "openApi3") {
@@ -45427,7 +45760,7 @@ function parseNullableDef(def, refs) {
45427
45760
  return base && { anyOf: [base, { type: "null" }] };
45428
45761
  }
45429
45762
 
45430
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
45763
+ // ../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
45431
45764
  function parseNumberDef(def, refs) {
45432
45765
  const res = {
45433
45766
  type: "number"
@@ -45476,7 +45809,7 @@ function parseNumberDef(def, refs) {
45476
45809
  return res;
45477
45810
  }
45478
45811
 
45479
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
45812
+ // ../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
45480
45813
  function parseObjectDef(def, refs) {
45481
45814
  const forceOptionalIntoNullable = refs.target === "openAi";
45482
45815
  const result = {
@@ -45546,7 +45879,7 @@ function safeIsOptional(schema) {
45546
45879
  }
45547
45880
  }
45548
45881
 
45549
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
45882
+ // ../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
45550
45883
  var parseOptionalDef = (def, refs) => {
45551
45884
  if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
45552
45885
  return parseDef(def.innerType._def, refs);
@@ -45565,7 +45898,7 @@ var parseOptionalDef = (def, refs) => {
45565
45898
  } : parseAnyDef(refs);
45566
45899
  };
45567
45900
 
45568
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
45901
+ // ../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
45569
45902
  var parsePipelineDef = (def, refs) => {
45570
45903
  if (refs.pipeStrategy === "input") {
45571
45904
  return parseDef(def.in._def, refs);
@@ -45585,12 +45918,12 @@ var parsePipelineDef = (def, refs) => {
45585
45918
  };
45586
45919
  };
45587
45920
 
45588
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
45921
+ // ../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
45589
45922
  function parsePromiseDef(def, refs) {
45590
45923
  return parseDef(def.type._def, refs);
45591
45924
  }
45592
45925
 
45593
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
45926
+ // ../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
45594
45927
  function parseSetDef(def, refs) {
45595
45928
  const items = parseDef(def.valueType._def, {
45596
45929
  ...refs,
@@ -45610,7 +45943,7 @@ function parseSetDef(def, refs) {
45610
45943
  return schema;
45611
45944
  }
45612
45945
 
45613
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
45946
+ // ../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
45614
45947
  function parseTupleDef(def, refs) {
45615
45948
  if (def.rest) {
45616
45949
  return {
@@ -45638,24 +45971,24 @@ function parseTupleDef(def, refs) {
45638
45971
  }
45639
45972
  }
45640
45973
 
45641
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
45974
+ // ../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
45642
45975
  function parseUndefinedDef(refs) {
45643
45976
  return {
45644
45977
  not: parseAnyDef(refs)
45645
45978
  };
45646
45979
  }
45647
45980
 
45648
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
45981
+ // ../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
45649
45982
  function parseUnknownDef(refs) {
45650
45983
  return parseAnyDef(refs);
45651
45984
  }
45652
45985
 
45653
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
45986
+ // ../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
45654
45987
  var parseReadonlyDef = (def, refs) => {
45655
45988
  return parseDef(def.innerType._def, refs);
45656
45989
  };
45657
45990
 
45658
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/selectParser.js
45991
+ // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/selectParser.js
45659
45992
  var selectParser = (def, typeName, refs) => {
45660
45993
  switch (typeName) {
45661
45994
  case ZodFirstPartyTypeKind2.ZodString:
@@ -45731,7 +46064,7 @@ var selectParser = (def, typeName, refs) => {
45731
46064
  }
45732
46065
  };
45733
46066
 
45734
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parseDef.js
46067
+ // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/parseDef.js
45735
46068
  function parseDef(def, refs, forceResolution = false) {
45736
46069
  const seenItem = refs.seen.get(def);
45737
46070
  if (refs.override) {
@@ -45787,7 +46120,7 @@ var addMeta = (def, refs, jsonSchema) => {
45787
46120
  return jsonSchema;
45788
46121
  };
45789
46122
 
45790
- // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
46123
+ // ../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@4.6.7/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
45791
46124
  var zodToJsonSchema = (schema, options) => {
45792
46125
  const refs = getRefs(options);
45793
46126
  let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
@@ -45849,7 +46182,7 @@ var zodToJsonSchema = (schema, options) => {
45849
46182
  return combined;
45850
46183
  };
45851
46184
 
45852
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
46185
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
45853
46186
  function mapMiniTarget(t) {
45854
46187
  if (!t)
45855
46188
  return "draft-7";
@@ -45891,7 +46224,7 @@ function parseWithCompat(schema, data) {
45891
46224
  return result.data;
45892
46225
  }
45893
46226
 
45894
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
46227
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
45895
46228
  var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
45896
46229
  var Protocol = class {
45897
46230
  constructor(_options) {
@@ -45932,6 +46265,9 @@ var Protocol = class {
45932
46265
  this.setRequestHandler(GetTaskPayloadRequestSchema, async (request, extra) => {
45933
46266
  const handleTaskResult = async () => {
45934
46267
  const taskId = request.params.taskId;
46268
+ if (!await this._taskStore.getTask(taskId, extra.sessionId)) {
46269
+ throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`);
46270
+ }
45935
46271
  if (this._taskMessageQueue) {
45936
46272
  let queuedMessage;
45937
46273
  while (queuedMessage = await this._taskMessageQueue.dequeue(taskId, extra.sessionId)) {
@@ -45962,12 +46298,12 @@ var Protocol = class {
45962
46298
  throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`);
45963
46299
  }
45964
46300
  if (!isTerminal(task.status)) {
45965
- await this._waitForTaskUpdate(taskId, extra.signal);
46301
+ await this._waitForTaskUpdate(taskId, extra.signal, extra.sessionId);
45966
46302
  return await handleTaskResult();
45967
46303
  }
45968
46304
  if (isTerminal(task.status)) {
45969
46305
  const result = await this._taskStore.getTaskResult(taskId, extra.sessionId);
45970
- this._clearTaskQueue(taskId);
46306
+ this._clearTaskQueue(taskId, extra.sessionId);
45971
46307
  return {
45972
46308
  ...result,
45973
46309
  _meta: {
@@ -46004,7 +46340,7 @@ var Protocol = class {
46004
46340
  throw new McpError(ErrorCode.InvalidParams, `Cannot cancel task in terminal status: ${task.status}`);
46005
46341
  }
46006
46342
  await this._taskStore.updateTaskStatus(request.params.taskId, "cancelled", "Client cancelled task execution.", extra.sessionId);
46007
- this._clearTaskQueue(request.params.taskId);
46343
+ this._clearTaskQueue(request.params.taskId, extra.sessionId);
46008
46344
  const cancelledTask = await this._taskStore.getTask(request.params.taskId, extra.sessionId);
46009
46345
  if (!cancelledTask) {
46010
46346
  throw new McpError(ErrorCode.InvalidParams, `Task not found after cancellation: ${request.params.taskId}`);
@@ -46132,6 +46468,19 @@ var Protocol = class {
46132
46468
  const handler = this._requestHandlers.get(request.method) ?? this.fallbackRequestHandler;
46133
46469
  const capturedTransport = this._transport;
46134
46470
  const relatedTaskId = request.params?._meta?.[RELATED_TASK_META_KEY]?.taskId;
46471
+ const sessionId = capturedTransport?.sessionId;
46472
+ const store = this._taskStore;
46473
+ let relatedTaskFound = true;
46474
+ let relatedTaskLookup;
46475
+ if (relatedTaskId && store && this._taskMessageQueue && sessionId !== void 0) {
46476
+ relatedTaskFound = false;
46477
+ relatedTaskLookup = (async () => {
46478
+ if (!await store.getTask(relatedTaskId, sessionId)) {
46479
+ throw new McpError(ErrorCode.InvalidParams, `Task not found: ${relatedTaskId}`);
46480
+ }
46481
+ relatedTaskFound = true;
46482
+ })();
46483
+ }
46135
46484
  if (handler === void 0) {
46136
46485
  const errorResponse = {
46137
46486
  jsonrpc: "2.0",
@@ -46141,7 +46490,10 @@ var Protocol = class {
46141
46490
  message: "Method not found"
46142
46491
  }
46143
46492
  };
46144
- if (relatedTaskId && this._taskMessageQueue) {
46493
+ if (relatedTaskId && relatedTaskLookup) {
46494
+ const queuedError = { type: "error", message: errorResponse, timestamp: Date.now() };
46495
+ relatedTaskLookup.then(() => this._enqueueTaskMessage(relatedTaskId, queuedError, sessionId), () => capturedTransport?.send(errorResponse)).catch((error62) => this._onerror(new Error(`Failed to send an error response: ${error62}`)));
46496
+ } else if (relatedTaskId && this._taskMessageQueue) {
46145
46497
  this._enqueueTaskMessage(relatedTaskId, {
46146
46498
  type: "error",
46147
46499
  message: errorResponse,
@@ -46192,7 +46544,10 @@ var Protocol = class {
46192
46544
  closeSSEStream: extra?.closeSSEStream,
46193
46545
  closeStandaloneSSEStream: extra?.closeStandaloneSSEStream
46194
46546
  };
46195
- Promise.resolve().then(() => {
46547
+ (relatedTaskLookup ?? Promise.resolve()).then(() => {
46548
+ if (relatedTaskLookup && abortController.signal.aborted) {
46549
+ throw new McpError(ErrorCode.ConnectionClosed, "Request was cancelled");
46550
+ }
46196
46551
  if (taskCreationParams) {
46197
46552
  this.assertTaskHandlerCapability(request.method);
46198
46553
  }
@@ -46227,7 +46582,7 @@ var Protocol = class {
46227
46582
  ...error62["data"] !== void 0 && { data: error62["data"] }
46228
46583
  }
46229
46584
  };
46230
- if (relatedTaskId && this._taskMessageQueue) {
46585
+ if (relatedTaskId && this._taskMessageQueue && relatedTaskFound) {
46231
46586
  await this._enqueueTaskMessage(relatedTaskId, {
46232
46587
  type: "error",
46233
46588
  message: errorResponse,
@@ -46707,7 +47062,7 @@ var Protocol = class {
46707
47062
  throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");
46708
47063
  }
46709
47064
  const maxQueueSize = this._options?.maxTaskQueueSize;
46710
- await this._taskMessageQueue.enqueue(taskId, message, sessionId, maxQueueSize);
47065
+ await this._taskMessageQueue.enqueue(taskId, message, sessionId ?? this._transport?.sessionId, maxQueueSize);
46711
47066
  }
46712
47067
  /**
46713
47068
  * Clears the message queue for a task and rejects any pending request resolvers.
@@ -46736,12 +47091,13 @@ var Protocol = class {
46736
47091
  * Uses polling to check for updates at the task's configured poll interval.
46737
47092
  * @param taskId The task ID to wait for
46738
47093
  * @param signal Abort signal to cancel the wait
47094
+ * @param sessionId Session of the request that waits, passed to the task store
46739
47095
  * @returns Promise that resolves when an update occurs or rejects if aborted
46740
47096
  */
46741
- async _waitForTaskUpdate(taskId, signal) {
47097
+ async _waitForTaskUpdate(taskId, signal, sessionId) {
46742
47098
  let interval = this._options?.defaultTaskPollInterval ?? 1e3;
46743
47099
  try {
46744
- const task = await this._taskStore?.getTask(taskId);
47100
+ const task = await this._taskStore?.getTask(taskId, sessionId);
46745
47101
  if (task?.pollInterval) {
46746
47102
  interval = task.pollInterval;
46747
47103
  }
@@ -46845,7 +47201,7 @@ function mergeCapabilities(base, additional) {
46845
47201
  return result;
46846
47202
  }
46847
47203
 
46848
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
47204
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
46849
47205
  var import_ajv = __toESM(require_ajv(), 1);
46850
47206
  var import_ajv_formats = __toESM(require_dist(), 1);
46851
47207
  function createDefaultAjvInstance() {
@@ -46913,7 +47269,7 @@ var AjvJsonSchemaValidator = class {
46913
47269
  }
46914
47270
  };
46915
47271
 
46916
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
47272
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
46917
47273
  var ExperimentalServerTasks = class {
46918
47274
  constructor(_server) {
46919
47275
  this._server = _server;
@@ -47126,7 +47482,7 @@ var ExperimentalServerTasks = class {
47126
47482
  }
47127
47483
  };
47128
47484
 
47129
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
47485
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
47130
47486
  function assertToolsCallTaskCapability(requests, method, entityName) {
47131
47487
  if (!requests) {
47132
47488
  throw new Error(`${entityName} does not support task creation (required for ${method})`);
@@ -47161,7 +47517,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
47161
47517
  }
47162
47518
  }
47163
47519
 
47164
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
47520
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
47165
47521
  var Server = class extends Protocol {
47166
47522
  /**
47167
47523
  * Initializes this server with the given name and version information.
@@ -47532,7 +47888,7 @@ var Server = class extends Protocol {
47532
47888
  }
47533
47889
  };
47534
47890
 
47535
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
47891
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
47536
47892
  var COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
47537
47893
  function isCompletable(schema) {
47538
47894
  return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
@@ -47546,7 +47902,7 @@ var McpZodTypeKind;
47546
47902
  McpZodTypeKind2["Completable"] = "McpCompletable";
47547
47903
  })(McpZodTypeKind || (McpZodTypeKind = {}));
47548
47904
 
47549
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
47905
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
47550
47906
  var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
47551
47907
  function validateToolName(name) {
47552
47908
  const warnings = [];
@@ -47604,7 +47960,7 @@ function validateAndWarnToolName(name) {
47604
47960
  return result.isValid;
47605
47961
  }
47606
47962
 
47607
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
47963
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
47608
47964
  var ExperimentalMcpServerTasks = class {
47609
47965
  constructor(_mcpServer) {
47610
47966
  this._mcpServer = _mcpServer;
@@ -47619,7 +47975,43 @@ var ExperimentalMcpServerTasks = class {
47619
47975
  }
47620
47976
  };
47621
47977
 
47622
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
47978
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
47979
+ function toolInputElementCount(value, max) {
47980
+ let count = 0;
47981
+ const stack = [value];
47982
+ while (stack.length > 0) {
47983
+ const node2 = stack.pop();
47984
+ if (node2 === null || typeof node2 !== "object")
47985
+ continue;
47986
+ if (Array.isArray(node2)) {
47987
+ for (const child of node2) {
47988
+ if (++count > max)
47989
+ return count;
47990
+ if (child !== null && typeof child === "object")
47991
+ stack.push(child);
47992
+ }
47993
+ } else {
47994
+ for (const key in node2) {
47995
+ if (!Object.prototype.hasOwnProperty.call(node2, key))
47996
+ continue;
47997
+ if (++count > max)
47998
+ return count;
47999
+ const child = node2[key];
48000
+ if (child !== null && typeof child === "object")
48001
+ stack.push(child);
48002
+ }
48003
+ }
48004
+ }
48005
+ return count;
48006
+ }
48007
+ function resolveMaxToolInputElements(value) {
48008
+ if (value === void 0 || value === Infinity)
48009
+ return void 0;
48010
+ if (typeof value !== "number" || Number.isNaN(value) || value < 1) {
48011
+ throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(value)}`);
48012
+ }
48013
+ return value;
48014
+ }
47623
48015
  var McpServer = class {
47624
48016
  constructor(serverInfo, options) {
47625
48017
  this._registeredResources = {};
@@ -47631,6 +48023,7 @@ var McpServer = class {
47631
48023
  this._resourceHandlersInitialized = false;
47632
48024
  this._promptHandlersInitialized = false;
47633
48025
  this.server = new Server(serverInfo, options);
48026
+ this._maxToolInputElements = resolveMaxToolInputElements(options?.maxToolInputElements);
47634
48027
  }
47635
48028
  /**
47636
48029
  * Access experimental features.
@@ -47761,12 +48154,15 @@ var McpServer = class {
47761
48154
  * Validates tool input arguments against the tool's input schema.
47762
48155
  */
47763
48156
  async validateToolInput(tool, args, toolName) {
48157
+ if (this._maxToolInputElements !== void 0 && toolInputElementCount(args, this._maxToolInputElements) > this._maxToolInputElements) {
48158
+ throw new McpError(ErrorCode.InvalidParams, `Invalid arguments for tool ${toolName}: arguments contain more than the maximum of ${this._maxToolInputElements} elements`);
48159
+ }
47764
48160
  if (!tool.inputSchema) {
47765
48161
  return void 0;
47766
48162
  }
47767
48163
  const inputObj = normalizeObjectSchema(tool.inputSchema);
47768
48164
  const schemaToParse = inputObj ?? tool.inputSchema;
47769
- const parseResult = await safeParseAsync3(schemaToParse, args);
48165
+ const parseResult = await safeParseAsync3(schemaToParse, args ?? {});
47770
48166
  if (!parseResult.success) {
47771
48167
  const error62 = "error" in parseResult ? parseResult.error : "Unknown error";
47772
48168
  const errorMessage = getParseErrorMessage(error62);
@@ -48004,7 +48400,7 @@ var McpServer = class {
48004
48400
  }
48005
48401
  if (prompt.argsSchema) {
48006
48402
  const argsObj = normalizeObjectSchema(prompt.argsSchema);
48007
- const parseResult = await safeParseAsync3(argsObj, request.params.arguments);
48403
+ const parseResult = await safeParseAsync3(argsObj, request.params.arguments ?? {});
48008
48404
  if (!parseResult.success) {
48009
48405
  const error62 = "error" in parseResult ? parseResult.error : "Unknown error";
48010
48406
  const errorMessage = getParseErrorMessage(error62);
@@ -48411,10 +48807,10 @@ var EMPTY_COMPLETION_RESULT = {
48411
48807
  }
48412
48808
  };
48413
48809
 
48414
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
48810
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
48415
48811
  import process2 from "process";
48416
48812
 
48417
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
48813
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
48418
48814
  var STDIO_DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
48419
48815
  var ReadBuffer = class {
48420
48816
  constructor(options) {
@@ -48451,7 +48847,7 @@ function serializeMessage(message) {
48451
48847
  return JSON.stringify(message) + "\n";
48452
48848
  }
48453
48849
 
48454
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_@cfworker+json-schema@4.1.1_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
48850
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_@cfworker+json-schema@4.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
48455
48851
  var StdioServerTransport = class {
48456
48852
  constructor(_stdin = process2.stdin, _stdout = process2.stdout, options) {
48457
48853
  this._stdin = _stdin;