@zuplo/cli 6.70.16 → 6.70.22

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 (146) hide show
  1. package/dist/cli.js +0 -6
  2. package/dist/cli.js.map +1 -1
  3. package/node_modules/@cfworker/json-schema/README.md +75 -0
  4. package/node_modules/@cfworker/json-schema/dist/commonjs/deep-compare-strict.d.ts +1 -0
  5. package/node_modules/@cfworker/json-schema/dist/commonjs/deep-compare-strict.js +42 -0
  6. package/node_modules/@cfworker/json-schema/dist/commonjs/dereference.d.ts +7 -0
  7. package/node_modules/@cfworker/json-schema/dist/commonjs/dereference.js +147 -0
  8. package/node_modules/@cfworker/json-schema/dist/commonjs/format.d.ts +1 -0
  9. package/node_modules/@cfworker/json-schema/dist/commonjs/format.js +111 -0
  10. package/node_modules/@cfworker/json-schema/dist/commonjs/index.d.ts +8 -0
  11. package/node_modules/@cfworker/json-schema/dist/commonjs/index.js +24 -0
  12. package/node_modules/@cfworker/json-schema/dist/commonjs/package.json +3 -0
  13. package/node_modules/@cfworker/json-schema/dist/commonjs/pointer.d.ts +2 -0
  14. package/node_modules/@cfworker/json-schema/dist/commonjs/pointer.js +10 -0
  15. package/node_modules/@cfworker/json-schema/dist/commonjs/types.d.ts +72 -0
  16. package/node_modules/@cfworker/json-schema/dist/commonjs/types.js +9 -0
  17. package/node_modules/@cfworker/json-schema/dist/commonjs/ucs2-length.d.ts +1 -0
  18. package/node_modules/@cfworker/json-schema/dist/commonjs/ucs2-length.js +20 -0
  19. package/node_modules/@cfworker/json-schema/dist/commonjs/validate.d.ts +3 -0
  20. package/node_modules/@cfworker/json-schema/dist/commonjs/validate.js +805 -0
  21. package/node_modules/@cfworker/json-schema/dist/commonjs/validator.d.ts +10 -0
  22. package/node_modules/@cfworker/json-schema/dist/commonjs/validator.js +27 -0
  23. package/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.d.ts +1 -0
  24. package/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js +39 -0
  25. package/node_modules/@cfworker/json-schema/dist/esm/dereference.d.ts +7 -0
  26. package/node_modules/@cfworker/json-schema/dist/esm/dereference.js +143 -0
  27. package/node_modules/@cfworker/json-schema/dist/esm/format.d.ts +1 -0
  28. package/node_modules/@cfworker/json-schema/dist/esm/format.js +108 -0
  29. package/node_modules/@cfworker/json-schema/dist/esm/index.d.ts +8 -0
  30. package/node_modules/@cfworker/json-schema/dist/esm/index.js +8 -0
  31. package/node_modules/@cfworker/json-schema/dist/esm/package.json +3 -0
  32. package/node_modules/@cfworker/json-schema/dist/esm/pointer.d.ts +2 -0
  33. package/node_modules/@cfworker/json-schema/dist/esm/pointer.js +6 -0
  34. package/node_modules/@cfworker/json-schema/dist/esm/types.d.ts +72 -0
  35. package/node_modules/@cfworker/json-schema/dist/esm/types.js +6 -0
  36. package/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.d.ts +1 -0
  37. package/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.js +17 -0
  38. package/node_modules/@cfworker/json-schema/dist/esm/validate.d.ts +3 -0
  39. package/node_modules/@cfworker/json-schema/dist/esm/validate.js +802 -0
  40. package/node_modules/@cfworker/json-schema/dist/esm/validator.d.ts +10 -0
  41. package/node_modules/@cfworker/json-schema/dist/esm/validator.js +23 -0
  42. package/node_modules/@cfworker/json-schema/package.json +68 -0
  43. package/node_modules/@cfworker/json-schema/src/deep-compare-strict.d.ts +1 -0
  44. package/node_modules/@cfworker/json-schema/src/deep-compare-strict.ts +39 -0
  45. package/node_modules/@cfworker/json-schema/src/dereference.d.ts +12 -0
  46. package/node_modules/@cfworker/json-schema/src/dereference.ts +188 -0
  47. package/node_modules/@cfworker/json-schema/src/format.d.ts +2 -0
  48. package/node_modules/@cfworker/json-schema/src/format.ts +164 -0
  49. package/node_modules/@cfworker/json-schema/src/index.d.ts +8 -0
  50. package/node_modules/@cfworker/json-schema/src/index.ts +8 -0
  51. package/node_modules/@cfworker/json-schema/src/pointer.d.ts +2 -0
  52. package/node_modules/@cfworker/json-schema/src/pointer.ts +7 -0
  53. package/node_modules/@cfworker/json-schema/src/types.d.ts +79 -0
  54. package/node_modules/@cfworker/json-schema/src/types.ts +92 -0
  55. package/node_modules/@cfworker/json-schema/src/ucs2-length.d.ts +1 -0
  56. package/node_modules/@cfworker/json-schema/src/ucs2-length.ts +24 -0
  57. package/node_modules/@cfworker/json-schema/src/validate.d.ts +13 -0
  58. package/node_modules/@cfworker/json-schema/src/validate.ts +1168 -0
  59. package/node_modules/@cfworker/json-schema/src/validator.d.ts +14 -0
  60. package/node_modules/@cfworker/json-schema/src/validator.ts +32 -0
  61. package/node_modules/@zuplo/core/customer.cli.minified.js +1 -1
  62. package/node_modules/@zuplo/core/index.minified.js +1 -1
  63. package/node_modules/@zuplo/core/package.json +1 -1
  64. package/node_modules/@zuplo/graphql/package.json +1 -1
  65. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  66. package/node_modules/@zuplo/otel/package.json +1 -1
  67. package/node_modules/@zuplo/runtime/out/esm/{chunk-YJ3VHQXF.js → chunk-2ZQVIVZ3.js} +2 -2
  68. package/node_modules/@zuplo/runtime/out/esm/{chunk-STBDRSX7.js → chunk-UMZORQLU.js} +67 -66
  69. package/node_modules/@zuplo/runtime/out/esm/chunk-UMZORQLU.js.map +1 -0
  70. package/node_modules/@zuplo/runtime/out/esm/{chunk-KWR5BV7H.js → chunk-YGYFQCBA.js} +6 -6
  71. package/node_modules/@zuplo/runtime/out/esm/chunk-YGYFQCBA.js.map +1 -0
  72. package/node_modules/@zuplo/runtime/out/esm/{chunk-NJNTFB34.js → chunk-ZS34EO4B.js} +2 -2
  73. package/node_modules/@zuplo/runtime/out/esm/{chunk-NJNTFB34.js.map → chunk-ZS34EO4B.js.map} +1 -1
  74. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  75. package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
  76. package/node_modules/@zuplo/runtime/out/esm/internal/index.js +1 -1
  77. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +22 -1238
  78. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
  79. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
  80. package/node_modules/@zuplo/runtime/out/types/index.d.ts +61 -12
  81. package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +8 -17
  82. package/node_modules/@zuplo/runtime/out/types/mocks/index.d.ts +3 -12
  83. package/node_modules/@zuplo/runtime/package.json +3 -2
  84. package/node_modules/agent-base/README.md +145 -0
  85. package/node_modules/agent-base/dist/src/index.d.ts +78 -0
  86. package/node_modules/agent-base/dist/src/index.js +203 -0
  87. package/node_modules/agent-base/dist/src/index.js.map +1 -0
  88. package/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  89. package/node_modules/agent-base/dist/src/promisify.js +18 -0
  90. package/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  91. package/node_modules/agent-base/package.json +64 -0
  92. package/node_modules/agent-base/src/index.ts +345 -0
  93. package/node_modules/agent-base/src/promisify.ts +33 -0
  94. package/node_modules/axios/CHANGELOG.md +71 -0
  95. package/node_modules/axios/README.md +46 -11
  96. package/node_modules/axios/dist/axios.js +81 -53
  97. package/node_modules/axios/dist/axios.js.map +1 -1
  98. package/node_modules/axios/dist/axios.min.js +2 -2
  99. package/node_modules/axios/dist/axios.min.js.map +1 -1
  100. package/node_modules/axios/dist/browser/axios.cjs +96 -64
  101. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  102. package/node_modules/axios/dist/esm/axios.js +96 -64
  103. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  104. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  105. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  106. package/node_modules/axios/dist/node/axios.cjs +206 -85
  107. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  108. package/node_modules/axios/index.d.cts +1 -1
  109. package/node_modules/axios/index.d.ts +1 -1
  110. package/node_modules/axios/lib/adapters/fetch.js +6 -2
  111. package/node_modules/axios/lib/adapters/http.js +139 -29
  112. package/node_modules/axios/lib/adapters/xhr.js +2 -1
  113. package/node_modules/axios/lib/core/AxiosHeaders.js +1 -33
  114. package/node_modules/axios/lib/env/data.js +1 -1
  115. package/node_modules/axios/lib/helpers/composeSignals.js +48 -47
  116. package/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
  117. package/node_modules/axios/lib/helpers/fromDataURI.js +18 -5
  118. package/node_modules/axios/lib/helpers/progressEventReducer.js +3 -0
  119. package/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  120. package/node_modules/axios/lib/utils.js +8 -7
  121. package/node_modules/axios/package.json +3 -1
  122. package/node_modules/https-proxy-agent/README.md +137 -0
  123. package/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  124. package/node_modules/https-proxy-agent/dist/agent.js +177 -0
  125. package/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  126. package/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  127. package/node_modules/https-proxy-agent/dist/index.js +14 -0
  128. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  129. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  130. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  131. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  132. package/node_modules/https-proxy-agent/package.json +56 -0
  133. package/node_modules/type-is/index.js +8 -18
  134. package/node_modules/type-is/node_modules/content-type/LICENSE +22 -0
  135. package/node_modules/type-is/node_modules/content-type/README.md +69 -0
  136. package/node_modules/type-is/node_modules/content-type/dist/index.d.ts +26 -0
  137. package/node_modules/type-is/node_modules/content-type/dist/index.js +170 -0
  138. package/node_modules/type-is/node_modules/content-type/dist/index.js.map +1 -0
  139. package/node_modules/type-is/node_modules/content-type/package.json +52 -0
  140. package/node_modules/type-is/package.json +9 -5
  141. package/package.json +6 -6
  142. package/node_modules/@zuplo/runtime/out/esm/chunk-KWR5BV7H.js.map +0 -1
  143. package/node_modules/@zuplo/runtime/out/esm/chunk-STBDRSX7.js.map +0 -1
  144. /package/node_modules/@zuplo/runtime/out/esm/{chunk-YJ3VHQXF.js.map → chunk-2ZQVIVZ3.js.map} +0 -0
  145. /package/node_modules/@zuplo/runtime/out/esm/{chunk-STBDRSX7.js.LEGAL.txt → chunk-UMZORQLU.js.LEGAL.txt} +0 -0
  146. /package/node_modules/@zuplo/runtime/out/esm/{chunk-KWR5BV7H.js.LEGAL.txt → chunk-YGYFQCBA.js.LEGAL.txt} +0 -0
@@ -1,4 +1,4 @@
1
- /*! Axios v1.16.0 Copyright (c) 2026 Matt Zabriskie and contributors */
1
+ /*! Axios v1.16.1 Copyright (c) 2026 Matt Zabriskie and contributors */
2
2
  'use strict';
3
3
 
4
4
  /**
@@ -775,11 +775,11 @@ function isSpecCompliantForm(thing) {
775
775
  * @returns {Object} The JSON-compatible object.
776
776
  */
777
777
  const toJSONObject = (obj) => {
778
- const stack = new Array(10);
778
+ const visited = new WeakSet();
779
779
 
780
- const visit = (source, i) => {
780
+ const visit = (source) => {
781
781
  if (isObject(source)) {
782
- if (stack.indexOf(source) >= 0) {
782
+ if (visited.has(source)) {
783
783
  return;
784
784
  }
785
785
 
@@ -789,15 +789,16 @@ const toJSONObject = (obj) => {
789
789
  }
790
790
 
791
791
  if (!('toJSON' in source)) {
792
- stack[i] = source;
792
+ // add-on descent / delete-on-ascent: preserves path semantics, so DAG nodes serialise at every occurrence (see #7230).
793
+ visited.add(source);
793
794
  const target = isArray(source) ? [] : {};
794
795
 
795
796
  forEach(source, (value, key) => {
796
- const reducedValue = visit(value, i + 1);
797
+ const reducedValue = visit(value);
797
798
  !isUndefined(reducedValue) && (target[key] = reducedValue);
798
799
  });
799
800
 
800
- stack[i] = undefined;
801
+ visited.delete(source);
801
802
 
802
803
  return target;
803
804
  }
@@ -806,7 +807,7 @@ const toJSONObject = (obj) => {
806
807
  return source;
807
808
  };
808
809
 
809
- return visit(obj, 0);
810
+ return visit(obj);
810
811
  };
811
812
 
812
813
  /**
@@ -1008,10 +1009,6 @@ var parseHeaders = (rawHeaders) => {
1008
1009
  return parsed;
1009
1010
  };
1010
1011
 
1011
- const $internals = Symbol('internals');
1012
-
1013
- const INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
1014
-
1015
1012
  function trimSPorHTAB(str) {
1016
1013
  let start = 0;
1017
1014
  let end = str.length;
@@ -1039,12 +1036,40 @@ function trimSPorHTAB(str) {
1039
1036
  return start === 0 && end === str.length ? str : str.slice(start, end);
1040
1037
  }
1041
1038
 
1042
- function normalizeHeader(header) {
1043
- return header && String(header).trim().toLowerCase();
1039
+ // The control-code ranges are intentional: header sanitization strips C0/DEL bytes.
1040
+ // eslint-disable-next-line no-control-regex
1041
+ const INVALID_UNICODE_HEADER_VALUE_CHARS = new RegExp('[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+', 'g');
1042
+ // eslint-disable-next-line no-control-regex
1043
+ const INVALID_BYTE_STRING_HEADER_VALUE_CHARS = new RegExp('[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+', 'g');
1044
+
1045
+ function sanitizeValue(value, invalidChars) {
1046
+ if (utils$1.isArray(value)) {
1047
+ return value.map((item) => sanitizeValue(item, invalidChars));
1048
+ }
1049
+
1050
+ return trimSPorHTAB(String(value).replace(invalidChars, ''));
1044
1051
  }
1045
1052
 
1046
- function sanitizeHeaderValue(str) {
1047
- return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ''));
1053
+ const sanitizeHeaderValue = (value) =>
1054
+ sanitizeValue(value, INVALID_UNICODE_HEADER_VALUE_CHARS);
1055
+
1056
+ const sanitizeByteStringHeaderValue = (value) =>
1057
+ sanitizeValue(value, INVALID_BYTE_STRING_HEADER_VALUE_CHARS);
1058
+
1059
+ function toByteStringHeaderObject(headers) {
1060
+ const byteStringHeaders = Object.create(null);
1061
+
1062
+ utils$1.forEach(headers.toJSON(), (value, header) => {
1063
+ byteStringHeaders[header] = sanitizeByteStringHeaderValue(value);
1064
+ });
1065
+
1066
+ return byteStringHeaders;
1067
+ }
1068
+
1069
+ const $internals = Symbol('internals');
1070
+
1071
+ function normalizeHeader(header) {
1072
+ return header && String(header).trim().toLowerCase();
1048
1073
  }
1049
1074
 
1050
1075
  function normalizeValue(value) {
@@ -2143,7 +2168,7 @@ function formDataToJSON(formData) {
2143
2168
  return !isNumericKey;
2144
2169
  }
2145
2170
 
2146
- if (!target[name] || !utils$1.isObject(target[name])) {
2171
+ if (!utils$1.hasOwnProp(target, name) || !utils$1.isObject(target[name])) {
2147
2172
  target[name] = [];
2148
2173
  }
2149
2174
 
@@ -2508,6 +2533,9 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2508
2533
  const _speedometer = speedometer(50, 250);
2509
2534
 
2510
2535
  return throttle((e) => {
2536
+ if (!e || typeof e.loaded !== 'number') {
2537
+ return;
2538
+ }
2511
2539
  const rawLoaded = e.loaded;
2512
2540
  const total = e.lengthComputable ? e.total : undefined;
2513
2541
  const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
@@ -3039,7 +3067,7 @@ var xhrAdapter = isXHRAdapterSupported &&
3039
3067
 
3040
3068
  // Add headers to the request
3041
3069
  if ('setRequestHeader' in request) {
3042
- utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
3070
+ utils$1.forEach(toByteStringHeaderObject(requestHeaders), function setRequestHeader(val, key) {
3043
3071
  request.setRequestHeader(key, val);
3044
3072
  });
3045
3073
  }
@@ -3109,54 +3137,55 @@ var xhrAdapter = isXHRAdapterSupported &&
3109
3137
  };
3110
3138
 
3111
3139
  const composeSignals = (signals, timeout) => {
3112
- const { length } = (signals = signals ? signals.filter(Boolean) : []);
3113
-
3114
- if (timeout || length) {
3115
- let controller = new AbortController();
3116
-
3117
- let aborted;
3118
-
3119
- const onabort = function (reason) {
3120
- if (!aborted) {
3121
- aborted = true;
3122
- unsubscribe();
3123
- const err = reason instanceof Error ? reason : this.reason;
3124
- controller.abort(
3125
- err instanceof AxiosError
3126
- ? err
3127
- : new CanceledError(err instanceof Error ? err.message : err)
3128
- );
3129
- }
3130
- };
3140
+ signals = signals ? signals.filter(Boolean) : [];
3131
3141
 
3132
- let timer =
3133
- timeout &&
3134
- setTimeout(() => {
3135
- timer = null;
3136
- onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
3137
- }, timeout);
3138
-
3139
- const unsubscribe = () => {
3140
- if (signals) {
3141
- timer && clearTimeout(timer);
3142
- timer = null;
3143
- signals.forEach((signal) => {
3144
- signal.unsubscribe
3145
- ? signal.unsubscribe(onabort)
3146
- : signal.removeEventListener('abort', onabort);
3147
- });
3148
- signals = null;
3149
- }
3150
- };
3142
+ if (!timeout && !signals.length) {
3143
+ return;
3144
+ }
3145
+
3146
+ const controller = new AbortController();
3151
3147
 
3152
- signals.forEach((signal) => signal.addEventListener('abort', onabort));
3148
+ let aborted = false;
3153
3149
 
3154
- const { signal } = controller;
3150
+ const onabort = function (reason) {
3151
+ if (!aborted) {
3152
+ aborted = true;
3153
+ unsubscribe();
3154
+ const err = reason instanceof Error ? reason : this.reason;
3155
+ controller.abort(
3156
+ err instanceof AxiosError
3157
+ ? err
3158
+ : new CanceledError(err instanceof Error ? err.message : err)
3159
+ );
3160
+ }
3161
+ };
3162
+
3163
+ let timer =
3164
+ timeout &&
3165
+ setTimeout(() => {
3166
+ timer = null;
3167
+ onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
3168
+ }, timeout);
3169
+
3170
+ const unsubscribe = () => {
3171
+ if (!signals) { return; }
3172
+ timer && clearTimeout(timer);
3173
+ timer = null;
3174
+ signals.forEach((signal) => {
3175
+ signal.unsubscribe
3176
+ ? signal.unsubscribe(onabort)
3177
+ : signal.removeEventListener('abort', onabort);
3178
+ });
3179
+ signals = null;
3180
+ };
3155
3181
 
3156
- signal.unsubscribe = () => utils$1.asap(unsubscribe);
3182
+ signals.forEach((signal) => signal.addEventListener('abort', onabort));
3157
3183
 
3158
- return signal;
3159
- }
3184
+ const { signal } = controller;
3185
+
3186
+ signal.unsubscribe = () => utils$1.asap(unsubscribe);
3187
+
3188
+ return signal;
3160
3189
  };
3161
3190
 
3162
3191
  const streamChunk = function* (chunk, chunkSize) {
@@ -3350,7 +3379,7 @@ function estimateDataURLDecodedBytes(url) {
3350
3379
  return bytes;
3351
3380
  }
3352
3381
 
3353
- const VERSION = "1.16.0";
3382
+ const VERSION = "1.16.1";
3354
3383
 
3355
3384
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
3356
3385
 
@@ -3365,7 +3394,10 @@ const test = (fn, ...args) => {
3365
3394
  };
3366
3395
 
3367
3396
  const factory = (env) => {
3368
- const globalObject = utils$1.global ?? globalThis;
3397
+ const globalObject =
3398
+ utils$1.global !== undefined && utils$1.global !== null
3399
+ ? utils$1.global
3400
+ : globalThis;
3369
3401
  const { ReadableStream, TextEncoder } = globalObject;
3370
3402
 
3371
3403
  env = utils$1.merge.call(
@@ -3622,7 +3654,7 @@ const factory = (env) => {
3622
3654
  ...fetchOptions,
3623
3655
  signal: composedSignal,
3624
3656
  method: method.toUpperCase(),
3625
- headers: headers.normalize().toJSON(),
3657
+ headers: toByteStringHeaderObject(headers.normalize()),
3626
3658
  body: data,
3627
3659
  duplex: 'half',
3628
3660
  credentials: isCredentialsSupported ? withCredentials : undefined,