@millstone/synapse-context-mcp 0.3.0 → 0.4.0

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.
@@ -26117,7 +26117,7 @@ var require_form_data = __commonJS({
26117
26117
  FormData4.prototype.toString = function() {
26118
26118
  return "[object FormData]";
26119
26119
  };
26120
- setToStringTag(FormData4, "FormData");
26120
+ setToStringTag(FormData4.prototype, "FormData");
26121
26121
  module2.exports = FormData4;
26122
26122
  }
26123
26123
  });
@@ -27478,10 +27478,10 @@ var require_axios = __commonJS({
27478
27478
  var FormData$1 = require_form_data();
27479
27479
  var crypto2 = __require("crypto");
27480
27480
  var url = __require("url");
27481
- var http22 = __require("http2");
27482
27481
  var proxyFromEnv = require_proxy_from_env();
27483
27482
  var http3 = __require("http");
27484
27483
  var https2 = __require("https");
27484
+ var http22 = __require("http2");
27485
27485
  var util = __require("util");
27486
27486
  var followRedirects = require_follow_redirects();
27487
27487
  var zlib2 = __require("zlib");
@@ -27496,6 +27496,7 @@ var require_axios = __commonJS({
27496
27496
  var proxyFromEnv__default = /* @__PURE__ */ _interopDefaultLegacy(proxyFromEnv);
27497
27497
  var http__default = /* @__PURE__ */ _interopDefaultLegacy(http3);
27498
27498
  var https__default = /* @__PURE__ */ _interopDefaultLegacy(https2);
27499
+ var http2__default = /* @__PURE__ */ _interopDefaultLegacy(http22);
27499
27500
  var util__default = /* @__PURE__ */ _interopDefaultLegacy(util);
27500
27501
  var followRedirects__default = /* @__PURE__ */ _interopDefaultLegacy(followRedirects);
27501
27502
  var zlib__default = /* @__PURE__ */ _interopDefaultLegacy(zlib2);
@@ -27565,7 +27566,12 @@ var require_axios = __commonJS({
27565
27566
  kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
27566
27567
  };
27567
27568
  var isURLSearchParams = kindOfTest("URLSearchParams");
27568
- var [isReadableStream, isRequest2, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
27569
+ var [isReadableStream, isRequest2, isResponse, isHeaders] = [
27570
+ "ReadableStream",
27571
+ "Request",
27572
+ "Response",
27573
+ "Headers"
27574
+ ].map(kindOfTest);
27569
27575
  var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
27570
27576
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
27571
27577
  if (obj === null || typeof obj === "undefined") {
@@ -27618,6 +27624,9 @@ var require_axios = __commonJS({
27618
27624
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
27619
27625
  const result = {};
27620
27626
  const assignValue = (val, key) => {
27627
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
27628
+ return;
27629
+ }
27621
27630
  const targetKey = caseless && findKey(result, key) || key;
27622
27631
  if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
27623
27632
  result[targetKey] = merge(result[targetKey], val);
@@ -27635,13 +27644,27 @@ var require_axios = __commonJS({
27635
27644
  return result;
27636
27645
  }
27637
27646
  var extend = (a, b, thisArg, { allOwnKeys } = {}) => {
27638
- forEach(b, (val, key) => {
27639
- if (thisArg && isFunction$1(val)) {
27640
- a[key] = bind(val, thisArg);
27641
- } else {
27642
- a[key] = val;
27643
- }
27644
- }, { allOwnKeys });
27647
+ forEach(
27648
+ b,
27649
+ (val, key) => {
27650
+ if (thisArg && isFunction$1(val)) {
27651
+ Object.defineProperty(a, key, {
27652
+ value: bind(val, thisArg),
27653
+ writable: true,
27654
+ enumerable: true,
27655
+ configurable: true
27656
+ });
27657
+ } else {
27658
+ Object.defineProperty(a, key, {
27659
+ value: val,
27660
+ writable: true,
27661
+ enumerable: true,
27662
+ configurable: true
27663
+ });
27664
+ }
27665
+ },
27666
+ { allOwnKeys }
27667
+ );
27645
27668
  return a;
27646
27669
  };
27647
27670
  var stripBOM = (content) => {
@@ -27650,9 +27673,17 @@ var require_axios = __commonJS({
27650
27673
  }
27651
27674
  return content;
27652
27675
  };
27653
- var inherits = (constructor, superConstructor, props, descriptors2) => {
27654
- constructor.prototype = Object.create(superConstructor.prototype, descriptors2);
27655
- constructor.prototype.constructor = constructor;
27676
+ var inherits = (constructor, superConstructor, props, descriptors) => {
27677
+ constructor.prototype = Object.create(
27678
+ superConstructor.prototype,
27679
+ descriptors
27680
+ );
27681
+ Object.defineProperty(constructor.prototype, "constructor", {
27682
+ value: constructor,
27683
+ writable: true,
27684
+ enumerable: false,
27685
+ configurable: true
27686
+ });
27656
27687
  Object.defineProperty(constructor, "super", {
27657
27688
  value: superConstructor.prototype
27658
27689
  });
@@ -27723,19 +27754,16 @@ var require_axios = __commonJS({
27723
27754
  };
27724
27755
  var isHTMLForm = kindOfTest("HTMLFormElement");
27725
27756
  var toCamelCase = (str) => {
27726
- return str.toLowerCase().replace(
27727
- /[-_\s]([a-z\d])(\w*)/g,
27728
- function replacer(m2, p1, p2) {
27729
- return p1.toUpperCase() + p2;
27730
- }
27731
- );
27757
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m2, p1, p2) {
27758
+ return p1.toUpperCase() + p2;
27759
+ });
27732
27760
  };
27733
27761
  var hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
27734
27762
  var isRegExp = kindOfTest("RegExp");
27735
27763
  var reduceDescriptors = (obj, reducer) => {
27736
- const descriptors2 = Object.getOwnPropertyDescriptors(obj);
27764
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
27737
27765
  const reducedDescriptors = {};
27738
- forEach(descriptors2, (descriptor, name) => {
27766
+ forEach(descriptors, (descriptor, name) => {
27739
27767
  let ret;
27740
27768
  if ((ret = reducer(descriptor, name, obj)) !== false) {
27741
27769
  reducedDescriptors[name] = ret || descriptor;
@@ -27812,20 +27840,21 @@ var require_axios = __commonJS({
27812
27840
  return setImmediate;
27813
27841
  }
27814
27842
  return postMessageSupported ? ((token, callbacks) => {
27815
- _global.addEventListener("message", ({ source, data }) => {
27816
- if (source === _global && data === token) {
27817
- callbacks.length && callbacks.shift()();
27818
- }
27819
- }, false);
27843
+ _global.addEventListener(
27844
+ "message",
27845
+ ({ source, data }) => {
27846
+ if (source === _global && data === token) {
27847
+ callbacks.length && callbacks.shift()();
27848
+ }
27849
+ },
27850
+ false
27851
+ );
27820
27852
  return (cb) => {
27821
27853
  callbacks.push(cb);
27822
27854
  _global.postMessage(token, "*");
27823
27855
  };
27824
27856
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
27825
- })(
27826
- typeof setImmediate === "function",
27827
- isFunction$1(_global.postMessage)
27828
- );
27857
+ })(typeof setImmediate === "function", isFunction$1(_global.postMessage));
27829
27858
  var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
27830
27859
  var isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
27831
27860
  var utils$1 = {
@@ -27888,25 +27917,38 @@ var require_axios = __commonJS({
27888
27917
  asap,
27889
27918
  isIterable
27890
27919
  };
27891
- function AxiosError(message, code, config, request, response) {
27892
- Error.call(this);
27893
- if (Error.captureStackTrace) {
27894
- Error.captureStackTrace(this, this.constructor);
27895
- } else {
27896
- this.stack = new Error().stack;
27920
+ var AxiosError = class _AxiosError extends Error {
27921
+ static from(error, code, config, request, response, customProps) {
27922
+ const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
27923
+ axiosError.cause = error;
27924
+ axiosError.name = error.name;
27925
+ customProps && Object.assign(axiosError, customProps);
27926
+ return axiosError;
27897
27927
  }
27898
- this.message = message;
27899
- this.name = "AxiosError";
27900
- code && (this.code = code);
27901
- config && (this.config = config);
27902
- request && (this.request = request);
27903
- if (response) {
27904
- this.response = response;
27905
- this.status = response.status ? response.status : null;
27906
- }
27907
- }
27908
- utils$1.inherits(AxiosError, Error, {
27909
- toJSON: function toJSON() {
27928
+ /**
27929
+ * Create an Error with the specified message, config, error code, request and response.
27930
+ *
27931
+ * @param {string} message The error message.
27932
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
27933
+ * @param {Object} [config] The config.
27934
+ * @param {Object} [request] The request.
27935
+ * @param {Object} [response] The response.
27936
+ *
27937
+ * @returns {Error} The created error.
27938
+ */
27939
+ constructor(message, code, config, request, response) {
27940
+ super(message);
27941
+ this.name = "AxiosError";
27942
+ this.isAxiosError = true;
27943
+ code && (this.code = code);
27944
+ config && (this.config = config);
27945
+ request && (this.request = request);
27946
+ if (response) {
27947
+ this.response = response;
27948
+ this.status = response.status;
27949
+ }
27950
+ }
27951
+ toJSON() {
27910
27952
  return {
27911
27953
  // Standard
27912
27954
  message: this.message,
@@ -27925,45 +27967,20 @@ var require_axios = __commonJS({
27925
27967
  status: this.status
27926
27968
  };
27927
27969
  }
27928
- });
27929
- var prototype$1 = AxiosError.prototype;
27930
- var descriptors = {};
27931
- [
27932
- "ERR_BAD_OPTION_VALUE",
27933
- "ERR_BAD_OPTION",
27934
- "ECONNABORTED",
27935
- "ETIMEDOUT",
27936
- "ERR_NETWORK",
27937
- "ERR_FR_TOO_MANY_REDIRECTS",
27938
- "ERR_DEPRECATED",
27939
- "ERR_BAD_RESPONSE",
27940
- "ERR_BAD_REQUEST",
27941
- "ERR_CANCELED",
27942
- "ERR_NOT_SUPPORT",
27943
- "ERR_INVALID_URL"
27944
- // eslint-disable-next-line func-names
27945
- ].forEach((code) => {
27946
- descriptors[code] = { value: code };
27947
- });
27948
- Object.defineProperties(AxiosError, descriptors);
27949
- Object.defineProperty(prototype$1, "isAxiosError", { value: true });
27950
- AxiosError.from = (error, code, config, request, response, customProps) => {
27951
- const axiosError = Object.create(prototype$1);
27952
- utils$1.toFlatObject(error, axiosError, function filter(obj) {
27953
- return obj !== Error.prototype;
27954
- }, (prop) => {
27955
- return prop !== "isAxiosError";
27956
- });
27957
- const msg = error && error.message ? error.message : "Error";
27958
- const errCode = code == null && error ? error.code : code;
27959
- AxiosError.call(axiosError, msg, errCode, config, request, response);
27960
- if (error && axiosError.cause == null) {
27961
- Object.defineProperty(axiosError, "cause", { value: error, configurable: true });
27962
- }
27963
- axiosError.name = error && error.name || "Error";
27964
- customProps && Object.assign(axiosError, customProps);
27965
- return axiosError;
27966
27970
  };
27971
+ AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
27972
+ AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
27973
+ AxiosError.ECONNABORTED = "ECONNABORTED";
27974
+ AxiosError.ETIMEDOUT = "ETIMEDOUT";
27975
+ AxiosError.ERR_NETWORK = "ERR_NETWORK";
27976
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
27977
+ AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
27978
+ AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
27979
+ AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
27980
+ AxiosError.ERR_CANCELED = "ERR_CANCELED";
27981
+ AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
27982
+ AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
27983
+ var AxiosError$1 = AxiosError;
27967
27984
  function isVisitable(thing) {
27968
27985
  return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
27969
27986
  }
@@ -28013,7 +28030,7 @@ var require_axios = __commonJS({
28013
28030
  return value.toString();
28014
28031
  }
28015
28032
  if (!useBlob && utils$1.isBlob(value)) {
28016
- throw new AxiosError("Blob is not supported. Use a Buffer instead.");
28033
+ throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
28017
28034
  }
28018
28035
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
28019
28036
  return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
@@ -28114,17 +28131,15 @@ var require_axios = __commonJS({
28114
28131
  return url2;
28115
28132
  }
28116
28133
  const _encode = options && options.encode || encode;
28117
- if (utils$1.isFunction(options)) {
28118
- options = {
28119
- serialize: options
28120
- };
28121
- }
28122
- const serializeFn = options && options.serialize;
28134
+ const _options = utils$1.isFunction(options) ? {
28135
+ serialize: options
28136
+ } : options;
28137
+ const serializeFn = _options && _options.serialize;
28123
28138
  let serializedParams;
28124
28139
  if (serializeFn) {
28125
- serializedParams = serializeFn(params, options);
28140
+ serializedParams = serializeFn(params, _options);
28126
28141
  } else {
28127
- serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
28142
+ serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
28128
28143
  }
28129
28144
  if (serializedParams) {
28130
28145
  const hashmarkIndex = url2.indexOf("#");
@@ -28144,6 +28159,7 @@ var require_axios = __commonJS({
28144
28159
  *
28145
28160
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
28146
28161
  * @param {Function} rejected The function to handle `reject` for a `Promise`
28162
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
28147
28163
  *
28148
28164
  * @return {Number} An ID used to remove interceptor later
28149
28165
  */
@@ -28200,7 +28216,8 @@ var require_axios = __commonJS({
28200
28216
  var transitionalDefaults = {
28201
28217
  silentJSONParsing: true,
28202
28218
  forcedJSONParsing: true,
28203
- clarifyTimeoutError: false
28219
+ clarifyTimeoutError: false,
28220
+ legacyInterceptorReqResOrdering: true
28204
28221
  };
28205
28222
  var URLSearchParams2 = url__default["default"].URLSearchParams;
28206
28223
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
@@ -28385,7 +28402,7 @@ var require_axios = __commonJS({
28385
28402
  } catch (e2) {
28386
28403
  if (strictJSONParsing) {
28387
28404
  if (e2.name === "SyntaxError") {
28388
- throw AxiosError.from(e2, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
28405
+ throw AxiosError$1.from(e2, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
28389
28406
  }
28390
28407
  throw e2;
28391
28408
  }
@@ -28704,21 +28721,31 @@ var require_axios = __commonJS({
28704
28721
  function isCancel(value) {
28705
28722
  return !!(value && value.__CANCEL__);
28706
28723
  }
28707
- function CanceledError(message, config, request) {
28708
- AxiosError.call(this, message == null ? "canceled" : message, AxiosError.ERR_CANCELED, config, request);
28709
- this.name = "CanceledError";
28710
- }
28711
- utils$1.inherits(CanceledError, AxiosError, {
28712
- __CANCEL__: true
28713
- });
28724
+ var CanceledError = class extends AxiosError$1 {
28725
+ /**
28726
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
28727
+ *
28728
+ * @param {string=} message The message.
28729
+ * @param {Object=} config The config.
28730
+ * @param {Object=} request The request.
28731
+ *
28732
+ * @returns {CanceledError} The created error.
28733
+ */
28734
+ constructor(message, config, request) {
28735
+ super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config, request);
28736
+ this.name = "CanceledError";
28737
+ this.__CANCEL__ = true;
28738
+ }
28739
+ };
28740
+ var CanceledError$1 = CanceledError;
28714
28741
  function settle(resolve2, reject, response) {
28715
28742
  const validateStatus = response.config.validateStatus;
28716
28743
  if (!response.status || !validateStatus || validateStatus(response.status)) {
28717
28744
  resolve2(response);
28718
28745
  } else {
28719
- reject(new AxiosError(
28746
+ reject(new AxiosError$1(
28720
28747
  "Request failed with status code " + response.status,
28721
- [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
28748
+ [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
28722
28749
  response.config,
28723
28750
  response.request,
28724
28751
  response
@@ -28726,6 +28753,9 @@ var require_axios = __commonJS({
28726
28753
  }
28727
28754
  }
28728
28755
  function isAbsoluteURL(url2) {
28756
+ if (typeof url2 !== "string") {
28757
+ return false;
28758
+ }
28729
28759
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
28730
28760
  }
28731
28761
  function combineURLs(baseURL, relativeURL) {
@@ -28738,7 +28768,7 @@ var require_axios = __commonJS({
28738
28768
  }
28739
28769
  return requestedURL;
28740
28770
  }
28741
- var VERSION2 = "1.13.1";
28771
+ var VERSION2 = "1.13.5";
28742
28772
  function parseProtocol(url2) {
28743
28773
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
28744
28774
  return match && match[1] || "";
@@ -28754,7 +28784,7 @@ var require_axios = __commonJS({
28754
28784
  uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
28755
28785
  const match = DATA_URL_PATTERN.exec(uri);
28756
28786
  if (!match) {
28757
- throw new AxiosError("Invalid URL", AxiosError.ERR_INVALID_URL);
28787
+ throw new AxiosError$1("Invalid URL", AxiosError$1.ERR_INVALID_URL);
28758
28788
  }
28759
28789
  const mime = match[1];
28760
28790
  const isBase64 = match[2];
@@ -28762,13 +28792,13 @@ var require_axios = __commonJS({
28762
28792
  const buffer = Buffer.from(decodeURIComponent(body2), isBase64 ? "base64" : "utf8");
28763
28793
  if (asBlob) {
28764
28794
  if (!_Blob2) {
28765
- throw new AxiosError("Blob is not supported", AxiosError.ERR_NOT_SUPPORT);
28795
+ throw new AxiosError$1("Blob is not supported", AxiosError$1.ERR_NOT_SUPPORT);
28766
28796
  }
28767
28797
  return new _Blob2([buffer], { type: mime });
28768
28798
  }
28769
28799
  return buffer;
28770
28800
  }
28771
- throw new AxiosError("Unsupported protocol " + protocol, AxiosError.ERR_NOT_SUPPORT);
28801
+ throw new AxiosError$1("Unsupported protocol " + protocol, AxiosError$1.ERR_NOT_SUPPORT);
28772
28802
  }
28773
28803
  var kInternals = Symbol("internals");
28774
28804
  var AxiosTransformStream = class extends stream__default["default"].Transform {
@@ -29159,12 +29189,6 @@ var require_axios = __commonJS({
29159
29189
  flush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH,
29160
29190
  finishFlush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH
29161
29191
  };
29162
- var {
29163
- HTTP2_HEADER_SCHEME,
29164
- HTTP2_HEADER_METHOD,
29165
- HTTP2_HEADER_PATH,
29166
- HTTP2_HEADER_STATUS
29167
- } = http22.constants;
29168
29192
  var isBrotliSupported = utils$1.isFunction(zlib__default["default"].createBrotliDecompress);
29169
29193
  var { http: httpFollow, https: httpsFollow } = followRedirects__default["default"];
29170
29194
  var isHttps = /https:?/;
@@ -29183,8 +29207,8 @@ var require_axios = __commonJS({
29183
29207
  options = Object.assign({
29184
29208
  sessionTimeout: 1e3
29185
29209
  }, options);
29186
- let authoritySessions;
29187
- if (authoritySessions = this.sessions[authority]) {
29210
+ let authoritySessions = this.sessions[authority];
29211
+ if (authoritySessions) {
29188
29212
  let len = authoritySessions.length;
29189
29213
  for (let i2 = 0; i2 < len; i2++) {
29190
29214
  const [sessionHandle, sessionOptions] = authoritySessions[i2];
@@ -29193,21 +29217,22 @@ var require_axios = __commonJS({
29193
29217
  }
29194
29218
  }
29195
29219
  }
29196
- const session = http22.connect(authority, options);
29220
+ const session = http2__default["default"].connect(authority, options);
29197
29221
  let removed;
29198
29222
  const removeSession = () => {
29199
29223
  if (removed) {
29200
29224
  return;
29201
29225
  }
29202
29226
  removed = true;
29203
- let entries2 = authoritySessions, len = entries2.length, i2 = len;
29227
+ let entries = authoritySessions, len = entries.length, i2 = len;
29204
29228
  while (i2--) {
29205
- if (entries2[i2][0] === session) {
29206
- entries2.splice(i2, 1);
29229
+ if (entries[i2][0] === session) {
29207
29230
  if (len === 1) {
29208
29231
  delete this.sessions[authority];
29209
- return;
29232
+ } else {
29233
+ entries.splice(i2, 1);
29210
29234
  }
29235
+ return;
29211
29236
  }
29212
29237
  }
29213
29238
  };
@@ -29235,11 +29260,11 @@ var require_axios = __commonJS({
29235
29260
  };
29236
29261
  }
29237
29262
  session.once("close", removeSession);
29238
- let entries = this.sessions[authority], entry = [
29263
+ let entry = [
29239
29264
  session,
29240
29265
  options
29241
29266
  ];
29242
- entries ? this.sessions[authority].push(entry) : authoritySessions = this.sessions[authority] = [entry];
29267
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
29243
29268
  return session;
29244
29269
  }
29245
29270
  };
@@ -29265,8 +29290,11 @@ var require_axios = __commonJS({
29265
29290
  proxy2.auth = (proxy2.username || "") + ":" + (proxy2.password || "");
29266
29291
  }
29267
29292
  if (proxy2.auth) {
29268
- if (proxy2.auth.username || proxy2.auth.password) {
29293
+ const validProxyAuth = Boolean(proxy2.auth.username || proxy2.auth.password);
29294
+ if (validProxyAuth) {
29269
29295
  proxy2.auth = (proxy2.auth.username || "") + ":" + (proxy2.auth.password || "");
29296
+ } else if (typeof proxy2.auth === "object") {
29297
+ throw new AxiosError$1("Invalid proxy authorization", AxiosError$1.ERR_BAD_OPTION, { proxy: proxy2 });
29270
29298
  }
29271
29299
  const base642 = Buffer.from(proxy2.auth, "utf8").toString("base64");
29272
29300
  options.headers["Proxy-Authorization"] = "Basic " + base642;
@@ -29318,9 +29346,15 @@ var require_axios = __commonJS({
29318
29346
  var buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : { address, family });
29319
29347
  var http2Transport = {
29320
29348
  request(options, cb) {
29321
- const authority = options.protocol + "//" + options.hostname + ":" + (options.port || 80);
29349
+ const authority = options.protocol + "//" + options.hostname + ":" + (options.port || (options.protocol === "https:" ? 443 : 80));
29322
29350
  const { http2Options, headers } = options;
29323
29351
  const session = http2Sessions.getSession(authority, http2Options);
29352
+ const {
29353
+ HTTP2_HEADER_SCHEME,
29354
+ HTTP2_HEADER_METHOD,
29355
+ HTTP2_HEADER_PATH,
29356
+ HTTP2_HEADER_STATUS
29357
+ } = http2__default["default"].constants;
29324
29358
  const http2Headers = {
29325
29359
  [HTTP2_HEADER_SCHEME]: options.protocol.replace(":", ""),
29326
29360
  [HTTP2_HEADER_METHOD]: options.method,
@@ -29373,7 +29407,7 @@ var require_axios = __commonJS({
29373
29407
  const abortEmitter = new events.EventEmitter();
29374
29408
  function abort2(reason) {
29375
29409
  try {
29376
- abortEmitter.emit("abort", !reason || reason.type ? new CanceledError(null, config, req) : reason);
29410
+ abortEmitter.emit("abort", !reason || reason.type ? new CanceledError$1(null, config, req) : reason);
29377
29411
  } catch (err2) {
29378
29412
  console.warn("emit error", err2);
29379
29413
  }
@@ -29419,9 +29453,9 @@ var require_axios = __commonJS({
29419
29453
  const dataUrl = String(config.url || fullPath || "");
29420
29454
  const estimated = estimateDataURLDecodedBytes(dataUrl);
29421
29455
  if (estimated > config.maxContentLength) {
29422
- return reject(new AxiosError(
29456
+ return reject(new AxiosError$1(
29423
29457
  "maxContentLength size of " + config.maxContentLength + " exceeded",
29424
- AxiosError.ERR_BAD_RESPONSE,
29458
+ AxiosError$1.ERR_BAD_RESPONSE,
29425
29459
  config
29426
29460
  ));
29427
29461
  }
@@ -29440,7 +29474,7 @@ var require_axios = __commonJS({
29440
29474
  Blob: config.env && config.env.Blob
29441
29475
  });
29442
29476
  } catch (err2) {
29443
- throw AxiosError.from(err2, AxiosError.ERR_BAD_REQUEST, config);
29477
+ throw AxiosError$1.from(err2, AxiosError$1.ERR_BAD_REQUEST, config);
29444
29478
  }
29445
29479
  if (responseType === "text") {
29446
29480
  convertedData = convertedData.toString(responseEncoding);
@@ -29459,9 +29493,9 @@ var require_axios = __commonJS({
29459
29493
  });
29460
29494
  }
29461
29495
  if (supportedProtocols.indexOf(protocol) === -1) {
29462
- return reject(new AxiosError(
29496
+ return reject(new AxiosError$1(
29463
29497
  "Unsupported protocol " + protocol,
29464
- AxiosError.ERR_BAD_REQUEST,
29498
+ AxiosError$1.ERR_BAD_REQUEST,
29465
29499
  config
29466
29500
  ));
29467
29501
  }
@@ -29499,17 +29533,17 @@ var require_axios = __commonJS({
29499
29533
  } else if (utils$1.isString(data)) {
29500
29534
  data = Buffer.from(data, "utf-8");
29501
29535
  } else {
29502
- return reject(new AxiosError(
29536
+ return reject(new AxiosError$1(
29503
29537
  "Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",
29504
- AxiosError.ERR_BAD_REQUEST,
29538
+ AxiosError$1.ERR_BAD_REQUEST,
29505
29539
  config
29506
29540
  ));
29507
29541
  }
29508
29542
  headers.setContentLength(data.length, false);
29509
29543
  if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
29510
- return reject(new AxiosError(
29544
+ return reject(new AxiosError$1(
29511
29545
  "Request body larger than maxBodyLength limit",
29512
- AxiosError.ERR_BAD_REQUEST,
29546
+ AxiosError$1.ERR_BAD_REQUEST,
29513
29547
  config
29514
29548
  ));
29515
29549
  }
@@ -29679,9 +29713,9 @@ var require_axios = __commonJS({
29679
29713
  if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
29680
29714
  rejected = true;
29681
29715
  responseStream.destroy();
29682
- abort2(new AxiosError(
29716
+ abort2(new AxiosError$1(
29683
29717
  "maxContentLength size of " + config.maxContentLength + " exceeded",
29684
- AxiosError.ERR_BAD_RESPONSE,
29718
+ AxiosError$1.ERR_BAD_RESPONSE,
29685
29719
  config,
29686
29720
  lastRequest
29687
29721
  ));
@@ -29691,9 +29725,9 @@ var require_axios = __commonJS({
29691
29725
  if (rejected) {
29692
29726
  return;
29693
29727
  }
29694
- const err2 = new AxiosError(
29728
+ const err2 = new AxiosError$1(
29695
29729
  "stream has been aborted",
29696
- AxiosError.ERR_BAD_RESPONSE,
29730
+ AxiosError$1.ERR_BAD_RESPONSE,
29697
29731
  config,
29698
29732
  lastRequest
29699
29733
  );
@@ -29702,7 +29736,7 @@ var require_axios = __commonJS({
29702
29736
  });
29703
29737
  responseStream.on("error", function handleStreamError(err2) {
29704
29738
  if (req.destroyed) return;
29705
- reject(AxiosError.from(err2, null, config, lastRequest));
29739
+ reject(AxiosError$1.from(err2, null, config, lastRequest));
29706
29740
  });
29707
29741
  responseStream.on("end", function handleStreamEnd() {
29708
29742
  try {
@@ -29715,7 +29749,7 @@ var require_axios = __commonJS({
29715
29749
  }
29716
29750
  response.data = responseData;
29717
29751
  } catch (err2) {
29718
- return reject(AxiosError.from(err2, null, config, response.request, response));
29752
+ return reject(AxiosError$1.from(err2, null, config, response.request, response));
29719
29753
  }
29720
29754
  settle(resolve2, reject, response);
29721
29755
  });
@@ -29735,7 +29769,7 @@ var require_axios = __commonJS({
29735
29769
  }
29736
29770
  });
29737
29771
  req.on("error", function handleRequestError(err2) {
29738
- reject(AxiosError.from(err2, null, config, req));
29772
+ reject(AxiosError$1.from(err2, null, config, req));
29739
29773
  });
29740
29774
  req.on("socket", function handleRequestSocket(socket) {
29741
29775
  socket.setKeepAlive(true, 1e3 * 60);
@@ -29743,9 +29777,9 @@ var require_axios = __commonJS({
29743
29777
  if (config.timeout) {
29744
29778
  const timeout = parseInt(config.timeout, 10);
29745
29779
  if (Number.isNaN(timeout)) {
29746
- abort2(new AxiosError(
29780
+ abort2(new AxiosError$1(
29747
29781
  "error trying to parse `config.timeout` to int",
29748
- AxiosError.ERR_BAD_OPTION_VALUE,
29782
+ AxiosError$1.ERR_BAD_OPTION_VALUE,
29749
29783
  config,
29750
29784
  req
29751
29785
  ));
@@ -29758,13 +29792,15 @@ var require_axios = __commonJS({
29758
29792
  if (config.timeoutErrorMessage) {
29759
29793
  timeoutErrorMessage = config.timeoutErrorMessage;
29760
29794
  }
29761
- abort2(new AxiosError(
29795
+ abort2(new AxiosError$1(
29762
29796
  timeoutErrorMessage,
29763
- transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
29797
+ transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
29764
29798
  config,
29765
29799
  req
29766
29800
  ));
29767
29801
  });
29802
+ } else {
29803
+ req.setTimeout(0);
29768
29804
  }
29769
29805
  if (utils$1.isStream(data)) {
29770
29806
  let ended = false;
@@ -29778,7 +29814,7 @@ var require_axios = __commonJS({
29778
29814
  });
29779
29815
  data.on("close", () => {
29780
29816
  if (!ended && !errored) {
29781
- abort2(new CanceledError("Request stream has been aborted", config, req));
29817
+ abort2(new CanceledError$1("Request stream has been aborted", config, req));
29782
29818
  }
29783
29819
  });
29784
29820
  data.pipe(req);
@@ -29910,11 +29946,16 @@ var require_axios = __commonJS({
29910
29946
  validateStatus: mergeDirectKeys,
29911
29947
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
29912
29948
  };
29913
- utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
29914
- const merge2 = mergeMap[prop] || mergeDeepProperties;
29915
- const configValue = merge2(config1[prop], config2[prop], prop);
29916
- utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
29917
- });
29949
+ utils$1.forEach(
29950
+ Object.keys({ ...config1, ...config2 }),
29951
+ function computeConfigValue(prop) {
29952
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
29953
+ return;
29954
+ const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
29955
+ const configValue = merge2(config1[prop], config2[prop], prop);
29956
+ utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
29957
+ }
29958
+ );
29918
29959
  return config;
29919
29960
  }
29920
29961
  var resolveConfig = (config) => {
@@ -30013,12 +30054,12 @@ var require_axios = __commonJS({
30013
30054
  if (!request) {
30014
30055
  return;
30015
30056
  }
30016
- reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
30057
+ reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config, request));
30017
30058
  request = null;
30018
30059
  };
30019
30060
  request.onerror = function handleError(event) {
30020
30061
  const msg = event && event.message ? event.message : "Network Error";
30021
- const err2 = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
30062
+ const err2 = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
30022
30063
  err2.event = event || null;
30023
30064
  reject(err2);
30024
30065
  request = null;
@@ -30029,9 +30070,9 @@ var require_axios = __commonJS({
30029
30070
  if (_config.timeoutErrorMessage) {
30030
30071
  timeoutErrorMessage = _config.timeoutErrorMessage;
30031
30072
  }
30032
- reject(new AxiosError(
30073
+ reject(new AxiosError$1(
30033
30074
  timeoutErrorMessage,
30034
- transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
30075
+ transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
30035
30076
  config,
30036
30077
  request
30037
30078
  ));
@@ -30063,7 +30104,7 @@ var require_axios = __commonJS({
30063
30104
  if (!request) {
30064
30105
  return;
30065
30106
  }
30066
- reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
30107
+ reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
30067
30108
  request.abort();
30068
30109
  request = null;
30069
30110
  };
@@ -30074,7 +30115,7 @@ var require_axios = __commonJS({
30074
30115
  }
30075
30116
  const protocol = parseProtocol(_config.url);
30076
30117
  if (protocol && platform.protocols.indexOf(protocol) === -1) {
30077
- reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
30118
+ reject(new AxiosError$1("Unsupported protocol " + protocol + ":", AxiosError$1.ERR_BAD_REQUEST, config));
30078
30119
  return;
30079
30120
  }
30080
30121
  request.send(requestData || null);
@@ -30090,12 +30131,12 @@ var require_axios = __commonJS({
30090
30131
  aborted = true;
30091
30132
  unsubscribe();
30092
30133
  const err2 = reason instanceof Error ? reason : this.reason;
30093
- controller.abort(err2 instanceof AxiosError ? err2 : new CanceledError(err2 instanceof Error ? err2.message : err2));
30134
+ controller.abort(err2 instanceof AxiosError$1 ? err2 : new CanceledError$1(err2 instanceof Error ? err2.message : err2));
30094
30135
  }
30095
30136
  };
30096
30137
  let timer = timeout && setTimeout(() => {
30097
30138
  timer = null;
30098
- onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
30139
+ onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
30099
30140
  }, timeout);
30100
30141
  const unsubscribe = () => {
30101
30142
  if (signals) {
@@ -30242,7 +30283,7 @@ var require_axios = __commonJS({
30242
30283
  if (method) {
30243
30284
  return method.call(res);
30244
30285
  }
30245
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
30286
+ throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
30246
30287
  });
30247
30288
  });
30248
30289
  })();
@@ -30367,13 +30408,13 @@ var require_axios = __commonJS({
30367
30408
  unsubscribe && unsubscribe();
30368
30409
  if (err2 && err2.name === "TypeError" && /Load failed|fetch/i.test(err2.message)) {
30369
30410
  throw Object.assign(
30370
- new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request),
30411
+ new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, config, request, err2 && err2.response),
30371
30412
  {
30372
30413
  cause: err2.cause || err2
30373
30414
  }
30374
30415
  );
30375
30416
  }
30376
- throw AxiosError.from(err2, err2 && err2.code, config, request);
30417
+ throw AxiosError$1.from(err2, err2 && err2.code, config, request, err2 && err2.response);
30377
30418
  }
30378
30419
  };
30379
30420
  };
@@ -30427,7 +30468,7 @@ var require_axios = __commonJS({
30427
30468
  if (!isResolvedHandle(nameOrAdapter)) {
30428
30469
  adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
30429
30470
  if (adapter === void 0) {
30430
- throw new AxiosError(`Unknown adapter '${id}'`);
30471
+ throw new AxiosError$1(`Unknown adapter '${id}'`);
30431
30472
  }
30432
30473
  }
30433
30474
  if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
@@ -30440,7 +30481,7 @@ var require_axios = __commonJS({
30440
30481
  ([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
30441
30482
  );
30442
30483
  let s2 = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
30443
- throw new AxiosError(
30484
+ throw new AxiosError$1(
30444
30485
  `There is no suitable adapter to dispatch the request ` + s2,
30445
30486
  "ERR_NOT_SUPPORT"
30446
30487
  );
@@ -30464,7 +30505,7 @@ var require_axios = __commonJS({
30464
30505
  config.cancelToken.throwIfRequested();
30465
30506
  }
30466
30507
  if (config.signal && config.signal.aborted) {
30467
- throw new CanceledError(null, config);
30508
+ throw new CanceledError$1(null, config);
30468
30509
  }
30469
30510
  }
30470
30511
  function dispatchRequest(config) {
@@ -30515,9 +30556,9 @@ var require_axios = __commonJS({
30515
30556
  }
30516
30557
  return (value, opt, opts) => {
30517
30558
  if (validator2 === false) {
30518
- throw new AxiosError(
30559
+ throw new AxiosError$1(
30519
30560
  formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
30520
- AxiosError.ERR_DEPRECATED
30561
+ AxiosError$1.ERR_DEPRECATED
30521
30562
  );
30522
30563
  }
30523
30564
  if (version && !deprecatedWarnings[opt]) {
@@ -30540,7 +30581,7 @@ var require_axios = __commonJS({
30540
30581
  };
30541
30582
  function assertOptions(options, schema, allowUnknown) {
30542
30583
  if (typeof options !== "object") {
30543
- throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
30584
+ throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
30544
30585
  }
30545
30586
  const keys = Object.keys(options);
30546
30587
  let i2 = keys.length;
@@ -30551,12 +30592,12 @@ var require_axios = __commonJS({
30551
30592
  const value = options[opt];
30552
30593
  const result = value === void 0 || validator2(value, opt, options);
30553
30594
  if (result !== true) {
30554
- throw new AxiosError("option " + opt + " must be " + result, AxiosError.ERR_BAD_OPTION_VALUE);
30595
+ throw new AxiosError$1("option " + opt + " must be " + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
30555
30596
  }
30556
30597
  continue;
30557
30598
  }
30558
30599
  if (allowUnknown !== true) {
30559
- throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
30600
+ throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
30560
30601
  }
30561
30602
  }
30562
30603
  }
@@ -30614,7 +30655,8 @@ var require_axios = __commonJS({
30614
30655
  validator.assertOptions(transitional, {
30615
30656
  silentJSONParsing: validators.transitional(validators.boolean),
30616
30657
  forcedJSONParsing: validators.transitional(validators.boolean),
30617
- clarifyTimeoutError: validators.transitional(validators.boolean)
30658
+ clarifyTimeoutError: validators.transitional(validators.boolean),
30659
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
30618
30660
  }, false);
30619
30661
  }
30620
30662
  if (paramsSerializer != null) {
@@ -30658,7 +30700,13 @@ var require_axios = __commonJS({
30658
30700
  return;
30659
30701
  }
30660
30702
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
30661
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
30703
+ const transitional2 = config.transitional || transitionalDefaults;
30704
+ const legacyInterceptorReqResOrdering = transitional2 && transitional2.legacyInterceptorReqResOrdering;
30705
+ if (legacyInterceptorReqResOrdering) {
30706
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
30707
+ } else {
30708
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
30709
+ }
30662
30710
  });
30663
30711
  const responseInterceptorChain = [];
30664
30712
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
@@ -30767,7 +30815,7 @@ var require_axios = __commonJS({
30767
30815
  if (token.reason) {
30768
30816
  return;
30769
30817
  }
30770
- token.reason = new CanceledError(message, config, request);
30818
+ token.reason = new CanceledError$1(message, config, request);
30771
30819
  resolvePromise(token.reason);
30772
30820
  });
30773
30821
  }
@@ -30925,12 +30973,12 @@ var require_axios = __commonJS({
30925
30973
  }
30926
30974
  var axios = createInstance(defaults$1);
30927
30975
  axios.Axios = Axios$1;
30928
- axios.CanceledError = CanceledError;
30976
+ axios.CanceledError = CanceledError$1;
30929
30977
  axios.CancelToken = CancelToken$1;
30930
30978
  axios.isCancel = isCancel;
30931
30979
  axios.VERSION = VERSION2;
30932
30980
  axios.toFormData = toFormData2;
30933
- axios.AxiosError = AxiosError;
30981
+ axios.AxiosError = AxiosError$1;
30934
30982
  axios.Cancel = axios.CanceledError;
30935
30983
  axios.all = function all(promises) {
30936
30984
  return Promise.all(promises);
@@ -40265,7 +40313,7 @@ mime-types/index.js:
40265
40313
  *)
40266
40314
 
40267
40315
  axios/dist/node/axios.cjs:
40268
- (*! Axios v1.13.1 Copyright (c) 2025 Matt Zabriskie and contributors *)
40316
+ (*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors *)
40269
40317
 
40270
40318
  posthog-node/lib/index.cjs.js:
40271
40319
  (**