@gbozee/ultimate 0.0.2-next.7 → 0.0.2-next.71

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.
@@ -4,39 +4,60 @@ var __defProp = Object.defineProperty;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
7
12
  var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
8
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
9
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
22
  for (let key of __getOwnPropNames(mod))
11
23
  if (!__hasOwnProp.call(to, key))
12
24
  __defProp(to, key, {
13
- get: () => mod[key],
25
+ get: __accessProp.bind(mod, key),
14
26
  enumerable: true
15
27
  });
28
+ if (canCache)
29
+ cache.set(mod, to);
16
30
  return to;
17
31
  };
18
- var __moduleCache = /* @__PURE__ */ new WeakMap;
19
32
  var __toCommonJS = (from) => {
20
- var entry = __moduleCache.get(from), desc;
33
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
21
34
  if (entry)
22
35
  return entry;
23
36
  entry = __defProp({}, "__esModule", { value: true });
24
- if (from && typeof from === "object" || typeof from === "function")
25
- __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
26
- get: () => from[key],
27
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
28
- }));
37
+ if (from && typeof from === "object" || typeof from === "function") {
38
+ for (var key of __getOwnPropNames(from))
39
+ if (!__hasOwnProp.call(entry, key))
40
+ __defProp(entry, key, {
41
+ get: __accessProp.bind(from, key),
42
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
43
+ });
44
+ }
29
45
  __moduleCache.set(from, entry);
30
46
  return entry;
31
47
  };
48
+ var __moduleCache;
32
49
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
50
+ var __returnValue = (v) => v;
51
+ function __exportSetter(name, newValue) {
52
+ this[name] = __returnValue.bind(null, newValue);
53
+ }
33
54
  var __export = (target, all) => {
34
55
  for (var name in all)
35
56
  __defProp(target, name, {
36
57
  get: all[name],
37
58
  enumerable: true,
38
59
  configurable: true,
39
- set: (newValue) => all[name] = () => newValue
60
+ set: __exportSetter.bind(all, name)
40
61
  });
41
62
  };
42
63
 
@@ -210,10 +231,10 @@ var require_uri_all = __commonJS((exports2, module2) => {
210
231
  }
211
232
  return output;
212
233
  }
213
- var ucs2encode = function ucs2encode(array) {
234
+ var ucs2encode = function ucs2encode2(array) {
214
235
  return String.fromCodePoint.apply(String, toConsumableArray(array));
215
236
  };
216
- var basicToDigit = function basicToDigit(codePoint) {
237
+ var basicToDigit = function basicToDigit2(codePoint) {
217
238
  if (codePoint - 48 < 10) {
218
239
  return codePoint - 22;
219
240
  }
@@ -225,10 +246,10 @@ var require_uri_all = __commonJS((exports2, module2) => {
225
246
  }
226
247
  return base;
227
248
  };
228
- var digitToBasic = function digitToBasic(digit, flag) {
249
+ var digitToBasic = function digitToBasic2(digit, flag) {
229
250
  return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
230
251
  };
231
- var adapt = function adapt(delta, numPoints, firstTime) {
252
+ var adapt = function adapt2(delta, numPoints, firstTime) {
232
253
  var k = 0;
233
254
  delta = firstTime ? floor(delta / damp) : delta >> 1;
234
255
  delta += floor(delta / numPoints);
@@ -237,7 +258,7 @@ var require_uri_all = __commonJS((exports2, module2) => {
237
258
  }
238
259
  return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
239
260
  };
240
- var decode = function decode(input) {
261
+ var decode = function decode2(input) {
241
262
  var output = [];
242
263
  var inputLength = input.length;
243
264
  var i = 0;
@@ -285,7 +306,7 @@ var require_uri_all = __commonJS((exports2, module2) => {
285
306
  }
286
307
  return String.fromCodePoint.apply(String, output);
287
308
  };
288
- var encode = function encode(input) {
309
+ var encode = function encode2(input) {
289
310
  var output = [];
290
311
  input = ucs2decode(input);
291
312
  var inputLength = input.length;
@@ -399,12 +420,12 @@ var require_uri_all = __commonJS((exports2, module2) => {
399
420
  }
400
421
  return output.join("");
401
422
  };
402
- var toUnicode = function toUnicode(input) {
423
+ var toUnicode = function toUnicode2(input) {
403
424
  return mapDomain(input, function(string) {
404
425
  return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
405
426
  });
406
427
  };
407
- var toASCII = function toASCII(input) {
428
+ var toASCII = function toASCII2(input) {
408
429
  return mapDomain(input, function(string) {
409
430
  return regexNonASCII.test(string) ? "xn--" + encode(string) : string;
410
431
  });
@@ -801,13 +822,13 @@ var require_uri_all = __commonJS((exports2, module2) => {
801
822
  var handler = {
802
823
  scheme: "http",
803
824
  domainHost: true,
804
- parse: function parse(components, options) {
825
+ parse: function parse2(components, options) {
805
826
  if (!components.host) {
806
827
  components.error = components.error || "HTTP URIs must have a host.";
807
828
  }
808
829
  return components;
809
830
  },
810
- serialize: function serialize(components, options) {
831
+ serialize: function serialize2(components, options) {
811
832
  var secure = String(components.scheme).toLowerCase() === "https";
812
833
  if (components.port === (secure ? 443 : 80) || components.port === "") {
813
834
  components.port = undefined;
@@ -830,7 +851,7 @@ var require_uri_all = __commonJS((exports2, module2) => {
830
851
  var handler$2 = {
831
852
  scheme: "ws",
832
853
  domainHost: true,
833
- parse: function parse(components, options) {
854
+ parse: function parse2(components, options) {
834
855
  var wsComponents = components;
835
856
  wsComponents.secure = isSecure(wsComponents);
836
857
  wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
@@ -838,7 +859,7 @@ var require_uri_all = __commonJS((exports2, module2) => {
838
859
  wsComponents.query = undefined;
839
860
  return wsComponents;
840
861
  },
841
- serialize: function serialize(wsComponents, options) {
862
+ serialize: function serialize2(wsComponents, options) {
842
863
  if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
843
864
  wsComponents.port = undefined;
844
865
  }
@@ -1006,7 +1027,7 @@ var require_uri_all = __commonJS((exports2, module2) => {
1006
1027
  var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
1007
1028
  var handler$6 = {
1008
1029
  scheme: "urn:uuid",
1009
- parse: function parse(urnComponents, options) {
1030
+ parse: function parse2(urnComponents, options) {
1010
1031
  var uuidComponents = urnComponents;
1011
1032
  uuidComponents.uuid = uuidComponents.nss;
1012
1033
  uuidComponents.nss = undefined;
@@ -1015,7 +1036,7 @@ var require_uri_all = __commonJS((exports2, module2) => {
1015
1036
  }
1016
1037
  return uuidComponents;
1017
1038
  },
1018
- serialize: function serialize(uuidComponents, options) {
1039
+ serialize: function serialize2(uuidComponents, options) {
1019
1040
  var urnComponents = uuidComponents;
1020
1041
  urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
1021
1042
  return urnComponents;
@@ -2461,7 +2482,7 @@ var require_compile = __commonJS((exports2, module2) => {
2461
2482
 
2462
2483
  // node_modules/ajv/lib/cache.js
2463
2484
  var require_cache = __commonJS((exports2, module2) => {
2464
- var Cache = module2.exports = function Cache() {
2485
+ var Cache = module2.exports = function Cache2() {
2465
2486
  this._cache = {};
2466
2487
  };
2467
2488
  Cache.prototype.put = function Cache_put(key, value) {
@@ -7827,13 +7848,13 @@ var createPathTagFunction = (pathEncoder = encodeURIPath) => function path(stati
7827
7848
  if (statics.length === 1)
7828
7849
  return statics[0];
7829
7850
  let postPath = false;
7830
- const path = statics.reduce((previousValue, currentValue, index) => {
7851
+ const path2 = statics.reduce((previousValue, currentValue, index) => {
7831
7852
  if (/[?#]/.test(currentValue)) {
7832
7853
  postPath = true;
7833
7854
  }
7834
7855
  return previousValue + currentValue + (index === params.length ? "" : (postPath ? encodeURIComponent : pathEncoder)(String(params[index])));
7835
7856
  }, "");
7836
- const pathOnly = path.split(/[?#]/, 1)[0];
7857
+ const pathOnly = path2.split(/[?#]/, 1)[0];
7837
7858
  const invalidSegments = [];
7838
7859
  const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
7839
7860
  let match;
@@ -7852,10 +7873,10 @@ var createPathTagFunction = (pathEncoder = encodeURIPath) => function path(stati
7852
7873
  return acc + spaces + arrows;
7853
7874
  }, "");
7854
7875
  throw new AnthropicError(`Path parameters result in path with invalid segments:
7855
- ${path}
7876
+ ${path2}
7856
7877
  ${underline}`);
7857
7878
  }
7858
- return path;
7879
+ return path2;
7859
7880
  };
7860
7881
  var path = createPathTagFunction(encodeURIPath);
7861
7882
 
@@ -8465,12 +8486,12 @@ class BetaMessageStream {
8465
8486
  }
8466
8487
  __classPrivateFieldGet(this, _BetaMessageStream_instances, "m", _BetaMessageStream_endRequest).call(this);
8467
8488
  }
8468
- [(_BetaMessageStream_currentMessageSnapshot = new WeakMap, _BetaMessageStream_connectedPromise = new WeakMap, _BetaMessageStream_resolveConnectedPromise = new WeakMap, _BetaMessageStream_rejectConnectedPromise = new WeakMap, _BetaMessageStream_endPromise = new WeakMap, _BetaMessageStream_resolveEndPromise = new WeakMap, _BetaMessageStream_rejectEndPromise = new WeakMap, _BetaMessageStream_listeners = new WeakMap, _BetaMessageStream_ended = new WeakMap, _BetaMessageStream_errored = new WeakMap, _BetaMessageStream_aborted = new WeakMap, _BetaMessageStream_catchingPromiseCreated = new WeakMap, _BetaMessageStream_response = new WeakMap, _BetaMessageStream_request_id = new WeakMap, _BetaMessageStream_handleError = new WeakMap, _BetaMessageStream_instances = new WeakSet, _BetaMessageStream_getFinalMessage = function _BetaMessageStream_getFinalMessage() {
8489
+ [(_BetaMessageStream_currentMessageSnapshot = new WeakMap, _BetaMessageStream_connectedPromise = new WeakMap, _BetaMessageStream_resolveConnectedPromise = new WeakMap, _BetaMessageStream_rejectConnectedPromise = new WeakMap, _BetaMessageStream_endPromise = new WeakMap, _BetaMessageStream_resolveEndPromise = new WeakMap, _BetaMessageStream_rejectEndPromise = new WeakMap, _BetaMessageStream_listeners = new WeakMap, _BetaMessageStream_ended = new WeakMap, _BetaMessageStream_errored = new WeakMap, _BetaMessageStream_aborted = new WeakMap, _BetaMessageStream_catchingPromiseCreated = new WeakMap, _BetaMessageStream_response = new WeakMap, _BetaMessageStream_request_id = new WeakMap, _BetaMessageStream_handleError = new WeakMap, _BetaMessageStream_instances = new WeakSet, _BetaMessageStream_getFinalMessage = function _BetaMessageStream_getFinalMessage2() {
8469
8490
  if (this.receivedMessages.length === 0) {
8470
8491
  throw new AnthropicError("stream ended without producing a Message with role=assistant");
8471
8492
  }
8472
8493
  return this.receivedMessages.at(-1);
8473
- }, _BetaMessageStream_getFinalText = function _BetaMessageStream_getFinalText() {
8494
+ }, _BetaMessageStream_getFinalText = function _BetaMessageStream_getFinalText2() {
8474
8495
  if (this.receivedMessages.length === 0) {
8475
8496
  throw new AnthropicError("stream ended without producing a Message with role=assistant");
8476
8497
  }
@@ -8479,11 +8500,11 @@ class BetaMessageStream {
8479
8500
  throw new AnthropicError("stream ended without producing a content block with type=text");
8480
8501
  }
8481
8502
  return textBlocks.join(" ");
8482
- }, _BetaMessageStream_beginRequest = function _BetaMessageStream_beginRequest() {
8503
+ }, _BetaMessageStream_beginRequest = function _BetaMessageStream_beginRequest2() {
8483
8504
  if (this.ended)
8484
8505
  return;
8485
8506
  __classPrivateFieldSet(this, _BetaMessageStream_currentMessageSnapshot, undefined, "f");
8486
- }, _BetaMessageStream_addStreamEvent = function _BetaMessageStream_addStreamEvent(event) {
8507
+ }, _BetaMessageStream_addStreamEvent = function _BetaMessageStream_addStreamEvent2(event) {
8487
8508
  if (this.ended)
8488
8509
  return;
8489
8510
  const messageSnapshot = __classPrivateFieldGet(this, _BetaMessageStream_instances, "m", _BetaMessageStream_accumulateMessage).call(this, event);
@@ -8544,7 +8565,7 @@ class BetaMessageStream {
8544
8565
  case "message_delta":
8545
8566
  break;
8546
8567
  }
8547
- }, _BetaMessageStream_endRequest = function _BetaMessageStream_endRequest() {
8568
+ }, _BetaMessageStream_endRequest = function _BetaMessageStream_endRequest2() {
8548
8569
  if (this.ended) {
8549
8570
  throw new AnthropicError(`stream has ended, this shouldn't happen`);
8550
8571
  }
@@ -8554,7 +8575,7 @@ class BetaMessageStream {
8554
8575
  }
8555
8576
  __classPrivateFieldSet(this, _BetaMessageStream_currentMessageSnapshot, undefined, "f");
8556
8577
  return snapshot;
8557
- }, _BetaMessageStream_accumulateMessage = function _BetaMessageStream_accumulateMessage(event) {
8578
+ }, _BetaMessageStream_accumulateMessage = function _BetaMessageStream_accumulateMessage2(event) {
8558
8579
  let snapshot = __classPrivateFieldGet(this, _BetaMessageStream_currentMessageSnapshot, "f");
8559
8580
  if (event.type === "message_start") {
8560
8581
  if (snapshot) {
@@ -9060,12 +9081,12 @@ class MessageStream {
9060
9081
  }
9061
9082
  __classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_endRequest).call(this);
9062
9083
  }
9063
- [(_MessageStream_currentMessageSnapshot = new WeakMap, _MessageStream_connectedPromise = new WeakMap, _MessageStream_resolveConnectedPromise = new WeakMap, _MessageStream_rejectConnectedPromise = new WeakMap, _MessageStream_endPromise = new WeakMap, _MessageStream_resolveEndPromise = new WeakMap, _MessageStream_rejectEndPromise = new WeakMap, _MessageStream_listeners = new WeakMap, _MessageStream_ended = new WeakMap, _MessageStream_errored = new WeakMap, _MessageStream_aborted = new WeakMap, _MessageStream_catchingPromiseCreated = new WeakMap, _MessageStream_response = new WeakMap, _MessageStream_request_id = new WeakMap, _MessageStream_handleError = new WeakMap, _MessageStream_instances = new WeakSet, _MessageStream_getFinalMessage = function _MessageStream_getFinalMessage() {
9084
+ [(_MessageStream_currentMessageSnapshot = new WeakMap, _MessageStream_connectedPromise = new WeakMap, _MessageStream_resolveConnectedPromise = new WeakMap, _MessageStream_rejectConnectedPromise = new WeakMap, _MessageStream_endPromise = new WeakMap, _MessageStream_resolveEndPromise = new WeakMap, _MessageStream_rejectEndPromise = new WeakMap, _MessageStream_listeners = new WeakMap, _MessageStream_ended = new WeakMap, _MessageStream_errored = new WeakMap, _MessageStream_aborted = new WeakMap, _MessageStream_catchingPromiseCreated = new WeakMap, _MessageStream_response = new WeakMap, _MessageStream_request_id = new WeakMap, _MessageStream_handleError = new WeakMap, _MessageStream_instances = new WeakSet, _MessageStream_getFinalMessage = function _MessageStream_getFinalMessage2() {
9064
9085
  if (this.receivedMessages.length === 0) {
9065
9086
  throw new AnthropicError("stream ended without producing a Message with role=assistant");
9066
9087
  }
9067
9088
  return this.receivedMessages.at(-1);
9068
- }, _MessageStream_getFinalText = function _MessageStream_getFinalText() {
9089
+ }, _MessageStream_getFinalText = function _MessageStream_getFinalText2() {
9069
9090
  if (this.receivedMessages.length === 0) {
9070
9091
  throw new AnthropicError("stream ended without producing a Message with role=assistant");
9071
9092
  }
@@ -9074,11 +9095,11 @@ class MessageStream {
9074
9095
  throw new AnthropicError("stream ended without producing a content block with type=text");
9075
9096
  }
9076
9097
  return textBlocks.join(" ");
9077
- }, _MessageStream_beginRequest = function _MessageStream_beginRequest() {
9098
+ }, _MessageStream_beginRequest = function _MessageStream_beginRequest2() {
9078
9099
  if (this.ended)
9079
9100
  return;
9080
9101
  __classPrivateFieldSet(this, _MessageStream_currentMessageSnapshot, undefined, "f");
9081
- }, _MessageStream_addStreamEvent = function _MessageStream_addStreamEvent(event) {
9102
+ }, _MessageStream_addStreamEvent = function _MessageStream_addStreamEvent2(event) {
9082
9103
  if (this.ended)
9083
9104
  return;
9084
9105
  const messageSnapshot = __classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_accumulateMessage).call(this, event);
@@ -9139,7 +9160,7 @@ class MessageStream {
9139
9160
  case "message_delta":
9140
9161
  break;
9141
9162
  }
9142
- }, _MessageStream_endRequest = function _MessageStream_endRequest() {
9163
+ }, _MessageStream_endRequest = function _MessageStream_endRequest2() {
9143
9164
  if (this.ended) {
9144
9165
  throw new AnthropicError(`stream has ended, this shouldn't happen`);
9145
9166
  }
@@ -9149,7 +9170,7 @@ class MessageStream {
9149
9170
  }
9150
9171
  __classPrivateFieldSet(this, _MessageStream_currentMessageSnapshot, undefined, "f");
9151
9172
  return snapshot;
9152
- }, _MessageStream_accumulateMessage = function _MessageStream_accumulateMessage(event) {
9173
+ }, _MessageStream_accumulateMessage = function _MessageStream_accumulateMessage2(event) {
9153
9174
  let snapshot = __classPrivateFieldGet(this, _MessageStream_currentMessageSnapshot, "f");
9154
9175
  if (event.type === "message_start") {
9155
9176
  if (snapshot) {
@@ -14644,7 +14665,7 @@ function mergeCapabilities(base, additional) {
14644
14665
  }
14645
14666
 
14646
14667
  // node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js
14647
- var import_ajv = __toESM(require_ajv());
14668
+ var import_ajv = __toESM(require_ajv(), 1);
14648
14669
 
14649
14670
  class Client extends Protocol {
14650
14671
  constructor(_clientInfo, options) {
@@ -14868,7 +14889,7 @@ class Client extends Protocol {
14868
14889
  }
14869
14890
 
14870
14891
  // node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js
14871
- var import_cross_spawn = __toESM(require_cross_spawn());
14892
+ var import_cross_spawn = __toESM(require_cross_spawn(), 1);
14872
14893
  var import_node_process = __toESM(require("node:process"));
14873
14894
  var import_node_stream = require("node:stream");
14874
14895
 
@@ -4,25 +4,43 @@ var __getProtoOf = Object.getPrototypeOf;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
7
12
  var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
8
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
9
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
22
  for (let key of __getOwnPropNames(mod))
11
23
  if (!__hasOwnProp.call(to, key))
12
24
  __defProp(to, key, {
13
- get: () => mod[key],
25
+ get: __accessProp.bind(mod, key),
14
26
  enumerable: true
15
27
  });
28
+ if (canCache)
29
+ cache.set(mod, to);
16
30
  return to;
17
31
  };
18
32
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
+ var __returnValue = (v) => v;
34
+ function __exportSetter(name, newValue) {
35
+ this[name] = __returnValue.bind(null, newValue);
36
+ }
19
37
  var __export = (target, all) => {
20
38
  for (var name in all)
21
39
  __defProp(target, name, {
22
40
  get: all[name],
23
41
  enumerable: true,
24
42
  configurable: true,
25
- set: (newValue) => all[name] = () => newValue
43
+ set: __exportSetter.bind(all, name)
26
44
  });
27
45
  };
28
46
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
@@ -197,10 +215,10 @@ var require_uri_all = __commonJS((exports, module) => {
197
215
  }
198
216
  return output;
199
217
  }
200
- var ucs2encode = function ucs2encode(array) {
218
+ var ucs2encode = function ucs2encode2(array) {
201
219
  return String.fromCodePoint.apply(String, toConsumableArray(array));
202
220
  };
203
- var basicToDigit = function basicToDigit(codePoint) {
221
+ var basicToDigit = function basicToDigit2(codePoint) {
204
222
  if (codePoint - 48 < 10) {
205
223
  return codePoint - 22;
206
224
  }
@@ -212,10 +230,10 @@ var require_uri_all = __commonJS((exports, module) => {
212
230
  }
213
231
  return base;
214
232
  };
215
- var digitToBasic = function digitToBasic(digit, flag) {
233
+ var digitToBasic = function digitToBasic2(digit, flag) {
216
234
  return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
217
235
  };
218
- var adapt = function adapt(delta, numPoints, firstTime) {
236
+ var adapt = function adapt2(delta, numPoints, firstTime) {
219
237
  var k = 0;
220
238
  delta = firstTime ? floor(delta / damp) : delta >> 1;
221
239
  delta += floor(delta / numPoints);
@@ -224,7 +242,7 @@ var require_uri_all = __commonJS((exports, module) => {
224
242
  }
225
243
  return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
226
244
  };
227
- var decode = function decode(input) {
245
+ var decode = function decode2(input) {
228
246
  var output = [];
229
247
  var inputLength = input.length;
230
248
  var i = 0;
@@ -272,7 +290,7 @@ var require_uri_all = __commonJS((exports, module) => {
272
290
  }
273
291
  return String.fromCodePoint.apply(String, output);
274
292
  };
275
- var encode = function encode(input) {
293
+ var encode = function encode2(input) {
276
294
  var output = [];
277
295
  input = ucs2decode(input);
278
296
  var inputLength = input.length;
@@ -386,12 +404,12 @@ var require_uri_all = __commonJS((exports, module) => {
386
404
  }
387
405
  return output.join("");
388
406
  };
389
- var toUnicode = function toUnicode(input) {
407
+ var toUnicode = function toUnicode2(input) {
390
408
  return mapDomain(input, function(string) {
391
409
  return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
392
410
  });
393
411
  };
394
- var toASCII = function toASCII(input) {
412
+ var toASCII = function toASCII2(input) {
395
413
  return mapDomain(input, function(string) {
396
414
  return regexNonASCII.test(string) ? "xn--" + encode(string) : string;
397
415
  });
@@ -788,13 +806,13 @@ var require_uri_all = __commonJS((exports, module) => {
788
806
  var handler = {
789
807
  scheme: "http",
790
808
  domainHost: true,
791
- parse: function parse(components, options) {
809
+ parse: function parse2(components, options) {
792
810
  if (!components.host) {
793
811
  components.error = components.error || "HTTP URIs must have a host.";
794
812
  }
795
813
  return components;
796
814
  },
797
- serialize: function serialize(components, options) {
815
+ serialize: function serialize2(components, options) {
798
816
  var secure = String(components.scheme).toLowerCase() === "https";
799
817
  if (components.port === (secure ? 443 : 80) || components.port === "") {
800
818
  components.port = undefined;
@@ -817,7 +835,7 @@ var require_uri_all = __commonJS((exports, module) => {
817
835
  var handler$2 = {
818
836
  scheme: "ws",
819
837
  domainHost: true,
820
- parse: function parse(components, options) {
838
+ parse: function parse2(components, options) {
821
839
  var wsComponents = components;
822
840
  wsComponents.secure = isSecure(wsComponents);
823
841
  wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
@@ -825,7 +843,7 @@ var require_uri_all = __commonJS((exports, module) => {
825
843
  wsComponents.query = undefined;
826
844
  return wsComponents;
827
845
  },
828
- serialize: function serialize(wsComponents, options) {
846
+ serialize: function serialize2(wsComponents, options) {
829
847
  if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
830
848
  wsComponents.port = undefined;
831
849
  }
@@ -993,7 +1011,7 @@ var require_uri_all = __commonJS((exports, module) => {
993
1011
  var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
994
1012
  var handler$6 = {
995
1013
  scheme: "urn:uuid",
996
- parse: function parse(urnComponents, options) {
1014
+ parse: function parse2(urnComponents, options) {
997
1015
  var uuidComponents = urnComponents;
998
1016
  uuidComponents.uuid = uuidComponents.nss;
999
1017
  uuidComponents.nss = undefined;
@@ -1002,7 +1020,7 @@ var require_uri_all = __commonJS((exports, module) => {
1002
1020
  }
1003
1021
  return uuidComponents;
1004
1022
  },
1005
- serialize: function serialize(uuidComponents, options) {
1023
+ serialize: function serialize2(uuidComponents, options) {
1006
1024
  var urnComponents = uuidComponents;
1007
1025
  urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
1008
1026
  return urnComponents;
@@ -2448,7 +2466,7 @@ var require_compile = __commonJS((exports, module) => {
2448
2466
 
2449
2467
  // node_modules/ajv/lib/cache.js
2450
2468
  var require_cache = __commonJS((exports, module) => {
2451
- var Cache = module.exports = function Cache() {
2469
+ var Cache = module.exports = function Cache2() {
2452
2470
  this._cache = {};
2453
2471
  };
2454
2472
  Cache.prototype.put = function Cache_put(key, value) {
@@ -7807,13 +7825,13 @@ var createPathTagFunction = (pathEncoder = encodeURIPath) => function path(stati
7807
7825
  if (statics.length === 1)
7808
7826
  return statics[0];
7809
7827
  let postPath = false;
7810
- const path = statics.reduce((previousValue, currentValue, index) => {
7828
+ const path2 = statics.reduce((previousValue, currentValue, index) => {
7811
7829
  if (/[?#]/.test(currentValue)) {
7812
7830
  postPath = true;
7813
7831
  }
7814
7832
  return previousValue + currentValue + (index === params.length ? "" : (postPath ? encodeURIComponent : pathEncoder)(String(params[index])));
7815
7833
  }, "");
7816
- const pathOnly = path.split(/[?#]/, 1)[0];
7834
+ const pathOnly = path2.split(/[?#]/, 1)[0];
7817
7835
  const invalidSegments = [];
7818
7836
  const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
7819
7837
  let match;
@@ -7832,10 +7850,10 @@ var createPathTagFunction = (pathEncoder = encodeURIPath) => function path(stati
7832
7850
  return acc + spaces + arrows;
7833
7851
  }, "");
7834
7852
  throw new AnthropicError(`Path parameters result in path with invalid segments:
7835
- ${path}
7853
+ ${path2}
7836
7854
  ${underline}`);
7837
7855
  }
7838
- return path;
7856
+ return path2;
7839
7857
  };
7840
7858
  var path = createPathTagFunction(encodeURIPath);
7841
7859
 
@@ -8445,12 +8463,12 @@ class BetaMessageStream {
8445
8463
  }
8446
8464
  __classPrivateFieldGet(this, _BetaMessageStream_instances, "m", _BetaMessageStream_endRequest).call(this);
8447
8465
  }
8448
- [(_BetaMessageStream_currentMessageSnapshot = new WeakMap, _BetaMessageStream_connectedPromise = new WeakMap, _BetaMessageStream_resolveConnectedPromise = new WeakMap, _BetaMessageStream_rejectConnectedPromise = new WeakMap, _BetaMessageStream_endPromise = new WeakMap, _BetaMessageStream_resolveEndPromise = new WeakMap, _BetaMessageStream_rejectEndPromise = new WeakMap, _BetaMessageStream_listeners = new WeakMap, _BetaMessageStream_ended = new WeakMap, _BetaMessageStream_errored = new WeakMap, _BetaMessageStream_aborted = new WeakMap, _BetaMessageStream_catchingPromiseCreated = new WeakMap, _BetaMessageStream_response = new WeakMap, _BetaMessageStream_request_id = new WeakMap, _BetaMessageStream_handleError = new WeakMap, _BetaMessageStream_instances = new WeakSet, _BetaMessageStream_getFinalMessage = function _BetaMessageStream_getFinalMessage() {
8466
+ [(_BetaMessageStream_currentMessageSnapshot = new WeakMap, _BetaMessageStream_connectedPromise = new WeakMap, _BetaMessageStream_resolveConnectedPromise = new WeakMap, _BetaMessageStream_rejectConnectedPromise = new WeakMap, _BetaMessageStream_endPromise = new WeakMap, _BetaMessageStream_resolveEndPromise = new WeakMap, _BetaMessageStream_rejectEndPromise = new WeakMap, _BetaMessageStream_listeners = new WeakMap, _BetaMessageStream_ended = new WeakMap, _BetaMessageStream_errored = new WeakMap, _BetaMessageStream_aborted = new WeakMap, _BetaMessageStream_catchingPromiseCreated = new WeakMap, _BetaMessageStream_response = new WeakMap, _BetaMessageStream_request_id = new WeakMap, _BetaMessageStream_handleError = new WeakMap, _BetaMessageStream_instances = new WeakSet, _BetaMessageStream_getFinalMessage = function _BetaMessageStream_getFinalMessage2() {
8449
8467
  if (this.receivedMessages.length === 0) {
8450
8468
  throw new AnthropicError("stream ended without producing a Message with role=assistant");
8451
8469
  }
8452
8470
  return this.receivedMessages.at(-1);
8453
- }, _BetaMessageStream_getFinalText = function _BetaMessageStream_getFinalText() {
8471
+ }, _BetaMessageStream_getFinalText = function _BetaMessageStream_getFinalText2() {
8454
8472
  if (this.receivedMessages.length === 0) {
8455
8473
  throw new AnthropicError("stream ended without producing a Message with role=assistant");
8456
8474
  }
@@ -8459,11 +8477,11 @@ class BetaMessageStream {
8459
8477
  throw new AnthropicError("stream ended without producing a content block with type=text");
8460
8478
  }
8461
8479
  return textBlocks.join(" ");
8462
- }, _BetaMessageStream_beginRequest = function _BetaMessageStream_beginRequest() {
8480
+ }, _BetaMessageStream_beginRequest = function _BetaMessageStream_beginRequest2() {
8463
8481
  if (this.ended)
8464
8482
  return;
8465
8483
  __classPrivateFieldSet(this, _BetaMessageStream_currentMessageSnapshot, undefined, "f");
8466
- }, _BetaMessageStream_addStreamEvent = function _BetaMessageStream_addStreamEvent(event) {
8484
+ }, _BetaMessageStream_addStreamEvent = function _BetaMessageStream_addStreamEvent2(event) {
8467
8485
  if (this.ended)
8468
8486
  return;
8469
8487
  const messageSnapshot = __classPrivateFieldGet(this, _BetaMessageStream_instances, "m", _BetaMessageStream_accumulateMessage).call(this, event);
@@ -8524,7 +8542,7 @@ class BetaMessageStream {
8524
8542
  case "message_delta":
8525
8543
  break;
8526
8544
  }
8527
- }, _BetaMessageStream_endRequest = function _BetaMessageStream_endRequest() {
8545
+ }, _BetaMessageStream_endRequest = function _BetaMessageStream_endRequest2() {
8528
8546
  if (this.ended) {
8529
8547
  throw new AnthropicError(`stream has ended, this shouldn't happen`);
8530
8548
  }
@@ -8534,7 +8552,7 @@ class BetaMessageStream {
8534
8552
  }
8535
8553
  __classPrivateFieldSet(this, _BetaMessageStream_currentMessageSnapshot, undefined, "f");
8536
8554
  return snapshot;
8537
- }, _BetaMessageStream_accumulateMessage = function _BetaMessageStream_accumulateMessage(event) {
8555
+ }, _BetaMessageStream_accumulateMessage = function _BetaMessageStream_accumulateMessage2(event) {
8538
8556
  let snapshot = __classPrivateFieldGet(this, _BetaMessageStream_currentMessageSnapshot, "f");
8539
8557
  if (event.type === "message_start") {
8540
8558
  if (snapshot) {
@@ -9040,12 +9058,12 @@ class MessageStream {
9040
9058
  }
9041
9059
  __classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_endRequest).call(this);
9042
9060
  }
9043
- [(_MessageStream_currentMessageSnapshot = new WeakMap, _MessageStream_connectedPromise = new WeakMap, _MessageStream_resolveConnectedPromise = new WeakMap, _MessageStream_rejectConnectedPromise = new WeakMap, _MessageStream_endPromise = new WeakMap, _MessageStream_resolveEndPromise = new WeakMap, _MessageStream_rejectEndPromise = new WeakMap, _MessageStream_listeners = new WeakMap, _MessageStream_ended = new WeakMap, _MessageStream_errored = new WeakMap, _MessageStream_aborted = new WeakMap, _MessageStream_catchingPromiseCreated = new WeakMap, _MessageStream_response = new WeakMap, _MessageStream_request_id = new WeakMap, _MessageStream_handleError = new WeakMap, _MessageStream_instances = new WeakSet, _MessageStream_getFinalMessage = function _MessageStream_getFinalMessage() {
9061
+ [(_MessageStream_currentMessageSnapshot = new WeakMap, _MessageStream_connectedPromise = new WeakMap, _MessageStream_resolveConnectedPromise = new WeakMap, _MessageStream_rejectConnectedPromise = new WeakMap, _MessageStream_endPromise = new WeakMap, _MessageStream_resolveEndPromise = new WeakMap, _MessageStream_rejectEndPromise = new WeakMap, _MessageStream_listeners = new WeakMap, _MessageStream_ended = new WeakMap, _MessageStream_errored = new WeakMap, _MessageStream_aborted = new WeakMap, _MessageStream_catchingPromiseCreated = new WeakMap, _MessageStream_response = new WeakMap, _MessageStream_request_id = new WeakMap, _MessageStream_handleError = new WeakMap, _MessageStream_instances = new WeakSet, _MessageStream_getFinalMessage = function _MessageStream_getFinalMessage2() {
9044
9062
  if (this.receivedMessages.length === 0) {
9045
9063
  throw new AnthropicError("stream ended without producing a Message with role=assistant");
9046
9064
  }
9047
9065
  return this.receivedMessages.at(-1);
9048
- }, _MessageStream_getFinalText = function _MessageStream_getFinalText() {
9066
+ }, _MessageStream_getFinalText = function _MessageStream_getFinalText2() {
9049
9067
  if (this.receivedMessages.length === 0) {
9050
9068
  throw new AnthropicError("stream ended without producing a Message with role=assistant");
9051
9069
  }
@@ -9054,11 +9072,11 @@ class MessageStream {
9054
9072
  throw new AnthropicError("stream ended without producing a content block with type=text");
9055
9073
  }
9056
9074
  return textBlocks.join(" ");
9057
- }, _MessageStream_beginRequest = function _MessageStream_beginRequest() {
9075
+ }, _MessageStream_beginRequest = function _MessageStream_beginRequest2() {
9058
9076
  if (this.ended)
9059
9077
  return;
9060
9078
  __classPrivateFieldSet(this, _MessageStream_currentMessageSnapshot, undefined, "f");
9061
- }, _MessageStream_addStreamEvent = function _MessageStream_addStreamEvent(event) {
9079
+ }, _MessageStream_addStreamEvent = function _MessageStream_addStreamEvent2(event) {
9062
9080
  if (this.ended)
9063
9081
  return;
9064
9082
  const messageSnapshot = __classPrivateFieldGet(this, _MessageStream_instances, "m", _MessageStream_accumulateMessage).call(this, event);
@@ -9119,7 +9137,7 @@ class MessageStream {
9119
9137
  case "message_delta":
9120
9138
  break;
9121
9139
  }
9122
- }, _MessageStream_endRequest = function _MessageStream_endRequest() {
9140
+ }, _MessageStream_endRequest = function _MessageStream_endRequest2() {
9123
9141
  if (this.ended) {
9124
9142
  throw new AnthropicError(`stream has ended, this shouldn't happen`);
9125
9143
  }
@@ -9129,7 +9147,7 @@ class MessageStream {
9129
9147
  }
9130
9148
  __classPrivateFieldSet(this, _MessageStream_currentMessageSnapshot, undefined, "f");
9131
9149
  return snapshot;
9132
- }, _MessageStream_accumulateMessage = function _MessageStream_accumulateMessage(event) {
9150
+ }, _MessageStream_accumulateMessage = function _MessageStream_accumulateMessage2(event) {
9133
9151
  let snapshot = __classPrivateFieldGet(this, _MessageStream_currentMessageSnapshot, "f");
9134
9152
  if (event.type === "message_start") {
9135
9153
  if (snapshot) {