@jerome-benoit/sap-ai-provider 4.7.0 → 4.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -31
- package/dist/{chunk-36DFHUVQ.js → chunk-BZWUUBX2.js} +2 -2
- package/dist/{chunk-WDUOKIKD.js → chunk-HDOSHLV6.js} +4 -2
- package/dist/chunk-HDOSHLV6.js.map +1 -0
- package/dist/{chunk-GMMX46AH.js → chunk-OA6TJHD2.js} +3 -3
- package/dist/{chunk-BZZJKLDG.js → chunk-RUCURXS7.js} +3 -3
- package/dist/{chunk-TVXWNZQT.js → chunk-XIWHF23D.js} +219 -104
- package/dist/chunk-XIWHF23D.js.map +1 -0
- package/dist/{foundation-models-embedding-model-strategy-YWPDIJEN.js → foundation-models-embedding-model-strategy-TACUPFS2.js} +4 -4
- package/dist/{foundation-models-language-model-strategy-WDSQWU64.js → foundation-models-language-model-strategy-LLWYUGA3.js} +4 -4
- package/dist/index.cjs +221 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/{orchestration-embedding-model-strategy-66QYAO64.js → orchestration-embedding-model-strategy-RYI3HWRZ.js} +5 -5
- package/dist/{orchestration-language-model-strategy-4TKRZK7U.js → orchestration-language-model-strategy-NIUPRYDW.js} +6 -5
- package/dist/orchestration-language-model-strategy-NIUPRYDW.js.map +1 -0
- package/package.json +9 -11
- package/dist/chunk-TVXWNZQT.js.map +0 -1
- package/dist/chunk-WDUOKIKD.js.map +0 -1
- package/dist/orchestration-language-model-strategy-4TKRZK7U.js.map +0 -1
- /package/dist/{chunk-36DFHUVQ.js.map → chunk-BZWUUBX2.js.map} +0 -0
- /package/dist/{chunk-GMMX46AH.js.map → chunk-OA6TJHD2.js.map} +0 -0
- /package/dist/{chunk-BZZJKLDG.js.map → chunk-RUCURXS7.js.map} +0 -0
- /package/dist/{foundation-models-embedding-model-strategy-YWPDIJEN.js.map → foundation-models-embedding-model-strategy-TACUPFS2.js.map} +0 -0
- /package/dist/{foundation-models-language-model-strategy-WDSQWU64.js.map → foundation-models-language-model-strategy-LLWYUGA3.js.map} +0 -0
- /package/dist/{orchestration-embedding-model-strategy-66QYAO64.js.map → orchestration-embedding-model-strategy-RYI3HWRZ.js.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseEmbeddingModelStrategy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OA6TJHD2.js";
|
|
5
5
|
import {
|
|
6
6
|
buildModelDeployment,
|
|
7
7
|
extractResponseMetadata,
|
|
8
8
|
hasKeys,
|
|
9
9
|
normalizeEmbedding
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-BZWUUBX2.js";
|
|
11
|
+
import "./chunk-XIWHF23D.js";
|
|
12
12
|
|
|
13
13
|
// src/foundation-models-embedding-model-strategy.ts
|
|
14
14
|
var FoundationModelsEmbeddingModelStrategy = class extends BaseEmbeddingModelStrategy {
|
|
@@ -55,4 +55,4 @@ var FoundationModelsEmbeddingModelStrategy = class extends BaseEmbeddingModelStr
|
|
|
55
55
|
export {
|
|
56
56
|
FoundationModelsEmbeddingModelStrategy
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=foundation-models-embedding-model-strategy-
|
|
58
|
+
//# sourceMappingURL=foundation-models-embedding-model-strategy-TACUPFS2.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BaseLanguageModelStrategy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RUCURXS7.js";
|
|
5
5
|
import "./chunk-4JIMBRMV.js";
|
|
6
6
|
import {
|
|
7
7
|
buildModelDeployment,
|
|
8
8
|
convertResponseFormat,
|
|
9
9
|
convertToolsToSAPFormat
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-BZWUUBX2.js";
|
|
11
|
+
import "./chunk-XIWHF23D.js";
|
|
12
12
|
|
|
13
13
|
// src/foundation-models-language-model-strategy.ts
|
|
14
14
|
var FOUNDATION_MODELS_PARAM_MAPPINGS = [
|
|
@@ -92,4 +92,4 @@ var FoundationModelsLanguageModelStrategy = class extends BaseLanguageModelStrat
|
|
|
92
92
|
export {
|
|
93
93
|
FoundationModelsLanguageModelStrategy
|
|
94
94
|
};
|
|
95
|
-
//# sourceMappingURL=foundation-models-language-model-strategy-
|
|
95
|
+
//# sourceMappingURL=foundation-models-language-model-strategy-LLWYUGA3.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -25760,7 +25760,7 @@ var require_axios = __commonJS({
|
|
|
25760
25760
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
25761
25761
|
return;
|
|
25762
25762
|
}
|
|
25763
|
-
const targetKey = caseless && findKey(result, key) || key;
|
|
25763
|
+
const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
|
|
25764
25764
|
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
|
|
25765
25765
|
if (isPlainObject2(existing) && isPlainObject2(val)) {
|
|
25766
25766
|
result[targetKey] = merge(existing, val);
|
|
@@ -25773,7 +25773,21 @@ var require_axios = __commonJS({
|
|
|
25773
25773
|
}
|
|
25774
25774
|
};
|
|
25775
25775
|
for (let i = 0, l = objs.length; i < l; i++) {
|
|
25776
|
-
|
|
25776
|
+
const source = objs[i];
|
|
25777
|
+
if (!source || isBuffer(source)) {
|
|
25778
|
+
continue;
|
|
25779
|
+
}
|
|
25780
|
+
forEach(source, assignValue);
|
|
25781
|
+
if (typeof source !== "object" || isArray(source)) {
|
|
25782
|
+
continue;
|
|
25783
|
+
}
|
|
25784
|
+
const symbols = Object.getOwnPropertySymbols(source);
|
|
25785
|
+
for (let j = 0; j < symbols.length; j++) {
|
|
25786
|
+
const symbol = symbols[j];
|
|
25787
|
+
if (propertyIsEnumerable.call(source, symbol)) {
|
|
25788
|
+
assignValue(source[symbol], symbol);
|
|
25789
|
+
}
|
|
25790
|
+
}
|
|
25777
25791
|
}
|
|
25778
25792
|
return result;
|
|
25779
25793
|
}
|
|
@@ -25898,6 +25912,9 @@ var require_axios = __commonJS({
|
|
|
25898
25912
|
var hasOwnProperty = (({
|
|
25899
25913
|
hasOwnProperty: hasOwnProperty2
|
|
25900
25914
|
}) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
25915
|
+
var {
|
|
25916
|
+
propertyIsEnumerable
|
|
25917
|
+
} = Object.prototype;
|
|
25901
25918
|
var isRegExp = kindOfTest("RegExp");
|
|
25902
25919
|
var reduceDescriptors = (obj, reducer) => {
|
|
25903
25920
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -26181,7 +26198,7 @@ var require_axios = __commonJS({
|
|
|
26181
26198
|
function setHeader(_value, _header, _rewrite) {
|
|
26182
26199
|
const lHeader = normalizeHeader(_header);
|
|
26183
26200
|
if (!lHeader) {
|
|
26184
|
-
|
|
26201
|
+
return;
|
|
26185
26202
|
}
|
|
26186
26203
|
const key = utils$1.findKey(self2, lHeader);
|
|
26187
26204
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
@@ -26197,7 +26214,7 @@ var require_axios = __commonJS({
|
|
|
26197
26214
|
let obj = {}, dest, key;
|
|
26198
26215
|
for (const entry of header) {
|
|
26199
26216
|
if (!utils$1.isArray(entry)) {
|
|
26200
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
26217
|
+
throw new TypeError("Object iterator must return a key-value pair");
|
|
26201
26218
|
}
|
|
26202
26219
|
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
26203
26220
|
}
|
|
@@ -26578,7 +26595,7 @@ var require_axios = __commonJS({
|
|
|
26578
26595
|
throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
26579
26596
|
}
|
|
26580
26597
|
if (stack.indexOf(value) !== -1) {
|
|
26581
|
-
throw Error("Circular reference detected in " + path2.join("."));
|
|
26598
|
+
throw new Error("Circular reference detected in " + path2.join("."));
|
|
26582
26599
|
}
|
|
26583
26600
|
stack.push(value);
|
|
26584
26601
|
utils$1.forEach(value, function each(el, key) {
|
|
@@ -26717,7 +26734,8 @@ var require_axios = __commonJS({
|
|
|
26717
26734
|
silentJSONParsing: true,
|
|
26718
26735
|
forcedJSONParsing: true,
|
|
26719
26736
|
clarifyTimeoutError: false,
|
|
26720
|
-
legacyInterceptorReqResOrdering: true
|
|
26737
|
+
legacyInterceptorReqResOrdering: true,
|
|
26738
|
+
advertiseZstdAcceptEncoding: false
|
|
26721
26739
|
};
|
|
26722
26740
|
var URLSearchParams = url.URLSearchParams;
|
|
26723
26741
|
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
@@ -27059,7 +27077,7 @@ var require_axios = __commonJS({
|
|
|
27059
27077
|
function getEnv(key) {
|
|
27060
27078
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
27061
27079
|
}
|
|
27062
|
-
var VERSION2 = "1.
|
|
27080
|
+
var VERSION2 = "1.17.0";
|
|
27063
27081
|
function parseProtocol(url2) {
|
|
27064
27082
|
const match2 = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
|
|
27065
27083
|
return match2 && match2[1] || "";
|
|
@@ -27276,10 +27294,10 @@ var require_axios = __commonJS({
|
|
|
27276
27294
|
boundary = tag + "-" + platform.generateString(size, BOUNDARY_ALPHABET)
|
|
27277
27295
|
} = options || {};
|
|
27278
27296
|
if (!utils$1.isFormData(form)) {
|
|
27279
|
-
throw TypeError("FormData instance required");
|
|
27297
|
+
throw new TypeError("FormData instance required");
|
|
27280
27298
|
}
|
|
27281
27299
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
27282
|
-
throw Error("boundary must be 1-70 characters long");
|
|
27300
|
+
throw new Error("boundary must be 1-70 characters long");
|
|
27283
27301
|
}
|
|
27284
27302
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
27285
27303
|
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
@@ -27324,6 +27342,81 @@ var require_axios = __commonJS({
|
|
|
27324
27342
|
this.__transform(chunk, encoding, callback);
|
|
27325
27343
|
}
|
|
27326
27344
|
};
|
|
27345
|
+
var Http2Sessions = class {
|
|
27346
|
+
constructor() {
|
|
27347
|
+
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
27348
|
+
}
|
|
27349
|
+
getSession(authority, options) {
|
|
27350
|
+
options = Object.assign({
|
|
27351
|
+
sessionTimeout: 1e3
|
|
27352
|
+
}, options);
|
|
27353
|
+
let authoritySessions = this.sessions[authority];
|
|
27354
|
+
if (authoritySessions) {
|
|
27355
|
+
let len = authoritySessions.length;
|
|
27356
|
+
for (let i = 0; i < len; i++) {
|
|
27357
|
+
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
27358
|
+
if (!sessionHandle.destroyed && !sessionHandle.closed && util.isDeepStrictEqual(sessionOptions, options)) {
|
|
27359
|
+
return sessionHandle;
|
|
27360
|
+
}
|
|
27361
|
+
}
|
|
27362
|
+
}
|
|
27363
|
+
const session = http2.connect(authority, options);
|
|
27364
|
+
let removed;
|
|
27365
|
+
let timer;
|
|
27366
|
+
const removeSession = () => {
|
|
27367
|
+
if (removed) {
|
|
27368
|
+
return;
|
|
27369
|
+
}
|
|
27370
|
+
removed = true;
|
|
27371
|
+
if (timer) {
|
|
27372
|
+
clearTimeout(timer);
|
|
27373
|
+
timer = null;
|
|
27374
|
+
}
|
|
27375
|
+
let entries = authoritySessions, len = entries.length, i = len;
|
|
27376
|
+
while (i--) {
|
|
27377
|
+
if (entries[i][0] === session) {
|
|
27378
|
+
if (len === 1) {
|
|
27379
|
+
delete this.sessions[authority];
|
|
27380
|
+
} else {
|
|
27381
|
+
entries.splice(i, 1);
|
|
27382
|
+
}
|
|
27383
|
+
if (!session.closed) {
|
|
27384
|
+
session.close();
|
|
27385
|
+
}
|
|
27386
|
+
return;
|
|
27387
|
+
}
|
|
27388
|
+
}
|
|
27389
|
+
};
|
|
27390
|
+
const originalRequestFn = session.request;
|
|
27391
|
+
const {
|
|
27392
|
+
sessionTimeout
|
|
27393
|
+
} = options;
|
|
27394
|
+
if (sessionTimeout != null) {
|
|
27395
|
+
let streamsCount = 0;
|
|
27396
|
+
session.request = function() {
|
|
27397
|
+
const stream2 = originalRequestFn.apply(this, arguments);
|
|
27398
|
+
streamsCount++;
|
|
27399
|
+
if (timer) {
|
|
27400
|
+
clearTimeout(timer);
|
|
27401
|
+
timer = null;
|
|
27402
|
+
}
|
|
27403
|
+
stream2.once("close", () => {
|
|
27404
|
+
if (!--streamsCount) {
|
|
27405
|
+
timer = setTimeout(() => {
|
|
27406
|
+
timer = null;
|
|
27407
|
+
removeSession();
|
|
27408
|
+
}, sessionTimeout);
|
|
27409
|
+
}
|
|
27410
|
+
});
|
|
27411
|
+
return stream2;
|
|
27412
|
+
};
|
|
27413
|
+
}
|
|
27414
|
+
session.once("close", removeSession);
|
|
27415
|
+
let entry = [session, options];
|
|
27416
|
+
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
27417
|
+
return session;
|
|
27418
|
+
}
|
|
27419
|
+
};
|
|
27327
27420
|
var callbackify = (fn, reducer) => {
|
|
27328
27421
|
return utils$1.isAsyncFn(fn) ? function(...args) {
|
|
27329
27422
|
const cb = args.pop();
|
|
@@ -27636,7 +27729,14 @@ var require_axios = __commonJS({
|
|
|
27636
27729
|
flush: zlib.constants.BROTLI_OPERATION_FLUSH,
|
|
27637
27730
|
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
|
|
27638
27731
|
};
|
|
27732
|
+
var zstdOptions = {
|
|
27733
|
+
flush: zlib.constants.ZSTD_e_flush,
|
|
27734
|
+
finishFlush: zlib.constants.ZSTD_e_flush
|
|
27735
|
+
};
|
|
27639
27736
|
var isBrotliSupported = utils$1.isFunction(zlib.createBrotliDecompress);
|
|
27737
|
+
var isZstdSupported = utils$1.isFunction(zlib.createZstdDecompress);
|
|
27738
|
+
var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
|
|
27739
|
+
var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
|
|
27640
27740
|
var {
|
|
27641
27741
|
http: httpFollow,
|
|
27642
27742
|
https: httpsFollow
|
|
@@ -27669,6 +27769,18 @@ var require_axios = __commonJS({
|
|
|
27669
27769
|
...agentOptions
|
|
27670
27770
|
} : agentOptions;
|
|
27671
27771
|
agent = new HttpsProxyAgent(merged);
|
|
27772
|
+
if (userHttpsAgent && userHttpsAgent.options) {
|
|
27773
|
+
const originTLSOptions = {
|
|
27774
|
+
...userHttpsAgent.options
|
|
27775
|
+
};
|
|
27776
|
+
const callback = agent.callback;
|
|
27777
|
+
agent.callback = function axiosTunnelingAgentCallback(req, opts) {
|
|
27778
|
+
return callback.call(this, req, {
|
|
27779
|
+
...originTLSOptions,
|
|
27780
|
+
...opts
|
|
27781
|
+
});
|
|
27782
|
+
};
|
|
27783
|
+
}
|
|
27672
27784
|
agent[kAxiosInstalledTunnel] = true;
|
|
27673
27785
|
cache.set(key, agent);
|
|
27674
27786
|
return agent;
|
|
@@ -27676,7 +27788,7 @@ var require_axios = __commonJS({
|
|
|
27676
27788
|
var supportedProtocols = platform.protocols.map((protocol) => {
|
|
27677
27789
|
return protocol + ":";
|
|
27678
27790
|
});
|
|
27679
|
-
var decodeURIComponentSafe = (value) => {
|
|
27791
|
+
var decodeURIComponentSafe$1 = (value) => {
|
|
27680
27792
|
if (!utils$1.isString(value)) {
|
|
27681
27793
|
return value;
|
|
27682
27794
|
}
|
|
@@ -27690,82 +27802,14 @@ var require_axios = __commonJS({
|
|
|
27690
27802
|
stream2.on("end", flush).on("error", flush);
|
|
27691
27803
|
return throttled;
|
|
27692
27804
|
};
|
|
27693
|
-
var Http2Sessions = class {
|
|
27694
|
-
constructor() {
|
|
27695
|
-
this.sessions = /* @__PURE__ */ Object.create(null);
|
|
27696
|
-
}
|
|
27697
|
-
getSession(authority, options) {
|
|
27698
|
-
options = Object.assign({
|
|
27699
|
-
sessionTimeout: 1e3
|
|
27700
|
-
}, options);
|
|
27701
|
-
let authoritySessions = this.sessions[authority];
|
|
27702
|
-
if (authoritySessions) {
|
|
27703
|
-
let len = authoritySessions.length;
|
|
27704
|
-
for (let i = 0; i < len; i++) {
|
|
27705
|
-
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
|
27706
|
-
if (!sessionHandle.destroyed && !sessionHandle.closed && util.isDeepStrictEqual(sessionOptions, options)) {
|
|
27707
|
-
return sessionHandle;
|
|
27708
|
-
}
|
|
27709
|
-
}
|
|
27710
|
-
}
|
|
27711
|
-
const session = http2.connect(authority, options);
|
|
27712
|
-
let removed;
|
|
27713
|
-
const removeSession = () => {
|
|
27714
|
-
if (removed) {
|
|
27715
|
-
return;
|
|
27716
|
-
}
|
|
27717
|
-
removed = true;
|
|
27718
|
-
let entries = authoritySessions, len = entries.length, i = len;
|
|
27719
|
-
while (i--) {
|
|
27720
|
-
if (entries[i][0] === session) {
|
|
27721
|
-
if (len === 1) {
|
|
27722
|
-
delete this.sessions[authority];
|
|
27723
|
-
} else {
|
|
27724
|
-
entries.splice(i, 1);
|
|
27725
|
-
}
|
|
27726
|
-
if (!session.closed) {
|
|
27727
|
-
session.close();
|
|
27728
|
-
}
|
|
27729
|
-
return;
|
|
27730
|
-
}
|
|
27731
|
-
}
|
|
27732
|
-
};
|
|
27733
|
-
const originalRequestFn = session.request;
|
|
27734
|
-
const {
|
|
27735
|
-
sessionTimeout
|
|
27736
|
-
} = options;
|
|
27737
|
-
if (sessionTimeout != null) {
|
|
27738
|
-
let timer;
|
|
27739
|
-
let streamsCount = 0;
|
|
27740
|
-
session.request = function() {
|
|
27741
|
-
const stream2 = originalRequestFn.apply(this, arguments);
|
|
27742
|
-
streamsCount++;
|
|
27743
|
-
if (timer) {
|
|
27744
|
-
clearTimeout(timer);
|
|
27745
|
-
timer = null;
|
|
27746
|
-
}
|
|
27747
|
-
stream2.once("close", () => {
|
|
27748
|
-
if (!--streamsCount) {
|
|
27749
|
-
timer = setTimeout(() => {
|
|
27750
|
-
timer = null;
|
|
27751
|
-
removeSession();
|
|
27752
|
-
}, sessionTimeout);
|
|
27753
|
-
}
|
|
27754
|
-
});
|
|
27755
|
-
return stream2;
|
|
27756
|
-
};
|
|
27757
|
-
}
|
|
27758
|
-
session.once("close", removeSession);
|
|
27759
|
-
let entry = [session, options];
|
|
27760
|
-
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
|
|
27761
|
-
return session;
|
|
27762
|
-
}
|
|
27763
|
-
};
|
|
27764
27805
|
var http2Sessions = new Http2Sessions();
|
|
27765
27806
|
function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
|
|
27766
27807
|
if (options.beforeRedirects.proxy) {
|
|
27767
27808
|
options.beforeRedirects.proxy(options);
|
|
27768
27809
|
}
|
|
27810
|
+
if (options.beforeRedirects.auth) {
|
|
27811
|
+
options.beforeRedirects.auth(options);
|
|
27812
|
+
}
|
|
27769
27813
|
if (options.beforeRedirects.config) {
|
|
27770
27814
|
options.beforeRedirects.config(options, responseDetails, requestDetails);
|
|
27771
27815
|
}
|
|
@@ -27941,6 +27985,7 @@ var require_axios = __commonJS({
|
|
|
27941
27985
|
var httpAdapter = isHttpAdapterSupported && function httpAdapter2(config) {
|
|
27942
27986
|
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
|
27943
27987
|
const own2 = (key) => utils$1.hasOwnProp(config, key) ? config[key] : void 0;
|
|
27988
|
+
const transitional = own2("transitional") || transitionalDefaults;
|
|
27944
27989
|
let data = own2("data");
|
|
27945
27990
|
let lookup = own2("lookup");
|
|
27946
27991
|
let family = own2("family");
|
|
@@ -27979,7 +28024,6 @@ var require_axios = __commonJS({
|
|
|
27979
28024
|
try {
|
|
27980
28025
|
abortEmitter.emit("abort", !reason || reason.type ? new CanceledError(null, config, req) : reason);
|
|
27981
28026
|
} catch (err) {
|
|
27982
|
-
console.warn("emit error", err);
|
|
27983
28027
|
}
|
|
27984
28028
|
}
|
|
27985
28029
|
function clearConnectPhaseTimer() {
|
|
@@ -27990,7 +28034,6 @@ var require_axios = __commonJS({
|
|
|
27990
28034
|
}
|
|
27991
28035
|
function createTimeoutError() {
|
|
27992
28036
|
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
27993
|
-
const transitional = config.transitional || transitionalDefaults;
|
|
27994
28037
|
if (config.timeoutErrorMessage) {
|
|
27995
28038
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
27996
28039
|
}
|
|
@@ -28148,9 +28191,9 @@ var require_axios = __commonJS({
|
|
|
28148
28191
|
const password = configAuth.password || "";
|
|
28149
28192
|
auth = username + ":" + password;
|
|
28150
28193
|
}
|
|
28151
|
-
if (!auth && parsed.username) {
|
|
28152
|
-
const urlUsername = decodeURIComponentSafe(parsed.username);
|
|
28153
|
-
const urlPassword = decodeURIComponentSafe(parsed.password);
|
|
28194
|
+
if (!auth && (parsed.username || parsed.password)) {
|
|
28195
|
+
const urlUsername = decodeURIComponentSafe$1(parsed.username);
|
|
28196
|
+
const urlPassword = decodeURIComponentSafe$1(parsed.password);
|
|
28154
28197
|
auth = urlUsername + ":" + urlPassword;
|
|
28155
28198
|
}
|
|
28156
28199
|
auth && headers.delete("authorization");
|
|
@@ -28164,7 +28207,7 @@ var require_axios = __commonJS({
|
|
|
28164
28207
|
customErr.exists = true;
|
|
28165
28208
|
return reject(customErr);
|
|
28166
28209
|
}
|
|
28167
|
-
headers.set("Accept-Encoding",
|
|
28210
|
+
headers.set("Accept-Encoding", utils$1.hasOwnProp(transitional, "advertiseZstdAcceptEncoding") && transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, false);
|
|
28168
28211
|
const options = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
28169
28212
|
path: path$1,
|
|
28170
28213
|
method,
|
|
@@ -28181,19 +28224,21 @@ var require_axios = __commonJS({
|
|
|
28181
28224
|
http2Options
|
|
28182
28225
|
});
|
|
28183
28226
|
!utils$1.isUndefined(lookup) && (options.lookup = lookup);
|
|
28184
|
-
|
|
28185
|
-
|
|
28227
|
+
const socketPath = own2("socketPath");
|
|
28228
|
+
if (socketPath) {
|
|
28229
|
+
if (typeof socketPath !== "string") {
|
|
28186
28230
|
return reject(new AxiosError("socketPath must be a string", AxiosError.ERR_BAD_OPTION_VALUE, config));
|
|
28187
28231
|
}
|
|
28188
|
-
|
|
28189
|
-
|
|
28190
|
-
const
|
|
28232
|
+
const allowedSocketPaths = own2("allowedSocketPaths");
|
|
28233
|
+
if (allowedSocketPaths != null) {
|
|
28234
|
+
const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
|
|
28235
|
+
const resolvedSocket = path.resolve(socketPath);
|
|
28191
28236
|
const isAllowed = allowed.some((entry) => typeof entry === "string" && path.resolve(entry) === resolvedSocket);
|
|
28192
28237
|
if (!isAllowed) {
|
|
28193
|
-
return reject(new AxiosError(`socketPath "${
|
|
28238
|
+
return reject(new AxiosError(`socketPath "${socketPath}" is not permitted by allowedSocketPaths`, AxiosError.ERR_BAD_OPTION_VALUE, config));
|
|
28194
28239
|
}
|
|
28195
28240
|
}
|
|
28196
|
-
options.socketPath =
|
|
28241
|
+
options.socketPath = socketPath;
|
|
28197
28242
|
} else {
|
|
28198
28243
|
options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
|
28199
28244
|
options.port = parsed.port;
|
|
@@ -28222,6 +28267,18 @@ var require_axios = __commonJS({
|
|
|
28222
28267
|
if (configBeforeRedirect) {
|
|
28223
28268
|
options.beforeRedirects.config = configBeforeRedirect;
|
|
28224
28269
|
}
|
|
28270
|
+
if (auth) {
|
|
28271
|
+
const requestOrigin = parsed.origin;
|
|
28272
|
+
const authToRestore = auth;
|
|
28273
|
+
options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
|
|
28274
|
+
try {
|
|
28275
|
+
if (new URL(redirectOptions.href).origin === requestOrigin) {
|
|
28276
|
+
redirectOptions.auth = authToRestore;
|
|
28277
|
+
}
|
|
28278
|
+
} catch (e) {
|
|
28279
|
+
}
|
|
28280
|
+
};
|
|
28281
|
+
}
|
|
28225
28282
|
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
|
28226
28283
|
}
|
|
28227
28284
|
}
|
|
@@ -28268,6 +28325,13 @@ var require_axios = __commonJS({
|
|
|
28268
28325
|
streams.push(zlib.createBrotliDecompress(brotliOptions));
|
|
28269
28326
|
delete res.headers["content-encoding"];
|
|
28270
28327
|
}
|
|
28328
|
+
break;
|
|
28329
|
+
case "zstd":
|
|
28330
|
+
if (isZstdSupported) {
|
|
28331
|
+
streams.push(zlib.createZstdDecompress(zstdOptions));
|
|
28332
|
+
delete res.headers["content-encoding"];
|
|
28333
|
+
}
|
|
28334
|
+
break;
|
|
28271
28335
|
}
|
|
28272
28336
|
}
|
|
28273
28337
|
responseStream = streams.length > 1 ? stream.pipeline(streams, utils$1.noop) : streams[0];
|
|
@@ -28600,8 +28664,8 @@ var require_axios = __commonJS({
|
|
|
28600
28664
|
}
|
|
28601
28665
|
});
|
|
28602
28666
|
}
|
|
28603
|
-
var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
28604
|
-
|
|
28667
|
+
var encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
28668
|
+
function resolveConfig(config) {
|
|
28605
28669
|
const newConfig = mergeConfig({}, config);
|
|
28606
28670
|
const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
|
|
28607
28671
|
const data = own2("data");
|
|
@@ -28614,12 +28678,12 @@ var require_axios = __commonJS({
|
|
|
28614
28678
|
const allowAbsoluteUrls = own2("allowAbsoluteUrls");
|
|
28615
28679
|
const url2 = own2("url");
|
|
28616
28680
|
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
28617
|
-
newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls),
|
|
28681
|
+
newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls), own2("params"), own2("paramsSerializer"));
|
|
28618
28682
|
if (auth) {
|
|
28619
|
-
headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
|
|
28683
|
+
headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8$1(auth.password) : "")));
|
|
28620
28684
|
}
|
|
28621
28685
|
if (utils$1.isFormData(data)) {
|
|
28622
|
-
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
28686
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv || utils$1.isReactNative(data)) {
|
|
28623
28687
|
headers.setContentType(void 0);
|
|
28624
28688
|
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
28625
28689
|
setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
|
|
@@ -28638,7 +28702,7 @@ var require_axios = __commonJS({
|
|
|
28638
28702
|
}
|
|
28639
28703
|
}
|
|
28640
28704
|
return newConfig;
|
|
28641
|
-
}
|
|
28705
|
+
}
|
|
28642
28706
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
28643
28707
|
var xhrAdapter = isXHRAdapterSupported && function(config) {
|
|
28644
28708
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
@@ -28890,6 +28954,17 @@ var require_axios = __commonJS({
|
|
|
28890
28954
|
var {
|
|
28891
28955
|
isFunction
|
|
28892
28956
|
} = utils$1;
|
|
28957
|
+
var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
28958
|
+
var decodeURIComponentSafe = (value) => {
|
|
28959
|
+
if (!utils$1.isString(value)) {
|
|
28960
|
+
return value;
|
|
28961
|
+
}
|
|
28962
|
+
try {
|
|
28963
|
+
return decodeURIComponent(value);
|
|
28964
|
+
} catch (error) {
|
|
28965
|
+
return value;
|
|
28966
|
+
}
|
|
28967
|
+
};
|
|
28893
28968
|
var test = (fn, ...args) => {
|
|
28894
28969
|
try {
|
|
28895
28970
|
return !!fn(...args);
|
|
@@ -28897,6 +28972,14 @@ var require_axios = __commonJS({
|
|
|
28897
28972
|
return false;
|
|
28898
28973
|
}
|
|
28899
28974
|
};
|
|
28975
|
+
var maybeWithAuthCredentials = (url2) => {
|
|
28976
|
+
const protocolIndex = url2.indexOf("://");
|
|
28977
|
+
let urlToCheck = url2;
|
|
28978
|
+
if (protocolIndex !== -1) {
|
|
28979
|
+
urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
28980
|
+
}
|
|
28981
|
+
return urlToCheck.includes("@") || urlToCheck.includes(":");
|
|
28982
|
+
};
|
|
28900
28983
|
var factory = (env) => {
|
|
28901
28984
|
const globalObject2 = utils$1.global !== void 0 && utils$1.global !== null ? utils$1.global : globalThis;
|
|
28902
28985
|
const {
|
|
@@ -29000,6 +29083,7 @@ var require_axios = __commonJS({
|
|
|
29000
29083
|
} = resolveConfig(config);
|
|
29001
29084
|
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
29002
29085
|
const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
29086
|
+
const own2 = (key) => utils$1.hasOwnProp(config, key) ? config[key] : void 0;
|
|
29003
29087
|
let _fetch = envFetch || fetch;
|
|
29004
29088
|
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
29005
29089
|
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
@@ -29009,6 +29093,36 @@ var require_axios = __commonJS({
|
|
|
29009
29093
|
});
|
|
29010
29094
|
let requestContentLength;
|
|
29011
29095
|
try {
|
|
29096
|
+
let auth = void 0;
|
|
29097
|
+
const configAuth = own2("auth");
|
|
29098
|
+
if (configAuth) {
|
|
29099
|
+
const username = configAuth.username || "";
|
|
29100
|
+
const password = configAuth.password || "";
|
|
29101
|
+
auth = {
|
|
29102
|
+
username,
|
|
29103
|
+
password
|
|
29104
|
+
};
|
|
29105
|
+
}
|
|
29106
|
+
if (maybeWithAuthCredentials(url2)) {
|
|
29107
|
+
const parsedURL = new URL(url2, platform.origin);
|
|
29108
|
+
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
29109
|
+
const urlUsername = decodeURIComponentSafe(parsedURL.username);
|
|
29110
|
+
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
29111
|
+
auth = {
|
|
29112
|
+
username: urlUsername,
|
|
29113
|
+
password: urlPassword
|
|
29114
|
+
};
|
|
29115
|
+
}
|
|
29116
|
+
if (parsedURL.username || parsedURL.password) {
|
|
29117
|
+
parsedURL.username = "";
|
|
29118
|
+
parsedURL.password = "";
|
|
29119
|
+
url2 = parsedURL.href;
|
|
29120
|
+
}
|
|
29121
|
+
}
|
|
29122
|
+
if (auth) {
|
|
29123
|
+
headers.delete("authorization");
|
|
29124
|
+
headers.set("Authorization", "Basic " + btoa(encodeUTF8((auth.username || "") + ":" + (auth.password || ""))));
|
|
29125
|
+
}
|
|
29012
29126
|
if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
|
|
29013
29127
|
const estimated = estimateDataURLDecodedBytes(url2);
|
|
29014
29128
|
if (estimated > maxContentLength) {
|
|
@@ -29380,7 +29494,8 @@ var require_axios = __commonJS({
|
|
|
29380
29494
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
29381
29495
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
29382
29496
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
29383
|
-
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
29497
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
29498
|
+
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean)
|
|
29384
29499
|
}, false);
|
|
29385
29500
|
}
|
|
29386
29501
|
if (paramsSerializer != null) {
|
|
@@ -31133,7 +31248,7 @@ var VERSION;
|
|
|
31133
31248
|
var init_version = __esm({
|
|
31134
31249
|
"src/version.ts"() {
|
|
31135
31250
|
"use strict";
|
|
31136
|
-
VERSION = true ? "4.7.
|
|
31251
|
+
VERSION = true ? "4.7.1" : "0.0.0-test";
|
|
31137
31252
|
}
|
|
31138
31253
|
});
|
|
31139
31254
|
|
|
@@ -31423,6 +31538,7 @@ var init_sap_ai_validation = __esm({
|
|
|
31423
31538
|
init_deep_merge();
|
|
31424
31539
|
init_sap_ai_error();
|
|
31425
31540
|
ORCHESTRATION_ONLY_FEATURE_KEYS = [
|
|
31541
|
+
"fallbackModuleConfigs",
|
|
31426
31542
|
"filtering",
|
|
31427
31543
|
"grounding",
|
|
31428
31544
|
"masking",
|
|
@@ -31434,6 +31550,7 @@ var init_sap_ai_validation = __esm({
|
|
|
31434
31550
|
"translation"
|
|
31435
31551
|
];
|
|
31436
31552
|
ORCHESTRATION_ONLY_FEATURES = {
|
|
31553
|
+
fallbackModuleConfigs: "Fallback module configurations (fallbackModuleConfigs)",
|
|
31437
31554
|
filtering: "Content filtering",
|
|
31438
31555
|
grounding: "Document grounding",
|
|
31439
31556
|
masking: "Data masking",
|
|
@@ -31893,6 +32010,7 @@ var init_orchestration_language_model_strategy = __esm({
|
|
|
31893
32010
|
ORCHESTRATION_MODULE_KEYS = ["masking", "filtering", "grounding", "translation"];
|
|
31894
32011
|
CONFIG_REF_IGNORED_MODULES = [
|
|
31895
32012
|
...ORCHESTRATION_MODULE_KEYS,
|
|
32013
|
+
"fallbackModuleConfigs",
|
|
31896
32014
|
"promptTemplateRef",
|
|
31897
32015
|
"responseFormat",
|
|
31898
32016
|
"tools",
|
|
@@ -32696,6 +32814,6 @@ mime-types/index.js:
|
|
|
32696
32814
|
*)
|
|
32697
32815
|
|
|
32698
32816
|
axios/dist/node/axios.cjs:
|
|
32699
|
-
(*! Axios v1.
|
|
32817
|
+
(*! Axios v1.17.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
32700
32818
|
*/
|
|
32701
32819
|
//# sourceMappingURL=index.cjs.map
|