@probelabs/visor 0.1.92 → 0.1.93
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/defaults/.visor.yaml +15 -16
- package/dist/check-execution-engine.d.ts +6 -0
- package/dist/check-execution-engine.d.ts.map +1 -1
- package/dist/defaults/.visor.yaml +15 -16
- package/dist/index.js +413 -624
- package/dist/liquid-extensions.d.ts +12 -0
- package/dist/liquid-extensions.d.ts.map +1 -1
- package/dist/output/issue-assistant/schema.json +14 -1
- package/dist/sdk/{check-execution-engine-L73PFZQY.mjs → check-execution-engine-RORGGGGP.mjs} +3 -3
- package/dist/sdk/{chunk-2U6BIWSY.mjs → chunk-I3GQJIR7.mjs} +14 -10
- package/dist/sdk/chunk-I3GQJIR7.mjs.map +1 -0
- package/dist/sdk/{chunk-LJHRU3WQ.mjs → chunk-Z47UECAT.mjs} +26 -24
- package/dist/sdk/{chunk-LJHRU3WQ.mjs.map → chunk-Z47UECAT.mjs.map} +1 -1
- package/dist/sdk/{liquid-extensions-AFKRYROF.mjs → liquid-extensions-GMEGEGC3.mjs} +6 -2
- package/dist/sdk/sdk.js +34 -28
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +2 -2
- package/dist/traces/{run-2025-10-15T07-21-47-696Z.ndjson → run-2025-10-15T11-54-04-087Z.ndjson} +19 -3
- package/dist/traces/{run-2025-10-15T07-21-58-106Z.ndjson → run-2025-10-15T11-54-14-046Z.ndjson} +19 -3
- package/dist/traces/{run-2025-10-15T07-21-58-693Z.ndjson → run-2025-10-15T11-54-14-575Z.ndjson} +19 -3
- package/dist/traces/{run-2025-10-15T07-21-59-167Z.ndjson → run-2025-10-15T11-54-15-082Z.ndjson} +19 -3
- package/dist/traces/{run-2025-10-15T07-21-59-629Z.ndjson → run-2025-10-15T11-54-15-561Z.ndjson} +4 -0
- package/package.json +2 -2
- package/dist/sdk/chunk-2U6BIWSY.mjs.map +0 -1
- /package/dist/sdk/{check-execution-engine-L73PFZQY.mjs.map → check-execution-engine-RORGGGGP.mjs.map} +0 -0
- /package/dist/sdk/{liquid-extensions-AFKRYROF.mjs.map → liquid-extensions-GMEGEGC3.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
process.env.VISOR_VERSION = '0.1.
|
|
3
|
-
process.env.PROBE_VERSION = '0.6.0-
|
|
2
|
+
process.env.VISOR_VERSION = '0.1.93';
|
|
3
|
+
process.env.PROBE_VERSION = '0.6.0-rc138';
|
|
4
4
|
/******/ (() => { // webpackBootstrap
|
|
5
5
|
/******/ var __webpack_modules__ = ({
|
|
6
6
|
|
|
@@ -219864,6 +219864,18 @@ class CheckExecutionEngine {
|
|
|
219864
219864
|
this.mockOctokit = this.createMockOctokit();
|
|
219865
219865
|
this.reviewer = new reviewer_1.PRReviewer(this.mockOctokit);
|
|
219866
219866
|
}
|
|
219867
|
+
/**
|
|
219868
|
+
* Enrich event context with authenticated octokit instance
|
|
219869
|
+
* @param eventContext - The event context to enrich
|
|
219870
|
+
* @returns Enriched event context with octokit if available
|
|
219871
|
+
*/
|
|
219872
|
+
enrichEventContext(eventContext) {
|
|
219873
|
+
const baseContext = eventContext || {};
|
|
219874
|
+
if (this.actionContext?.octokit) {
|
|
219875
|
+
return { ...baseContext, octokit: this.actionContext.octokit };
|
|
219876
|
+
}
|
|
219877
|
+
return baseContext;
|
|
219878
|
+
}
|
|
219867
219879
|
/**
|
|
219868
219880
|
* Lazily create a secure sandbox for routing JS (goto_js, run_js)
|
|
219869
219881
|
*/
|
|
@@ -220077,11 +220089,6 @@ class CheckExecutionEngine {
|
|
|
220077
220089
|
const providerType = targetCfg.type || 'ai';
|
|
220078
220090
|
const prov = this.providerRegistry.getProviderOrThrow(providerType);
|
|
220079
220091
|
this.setProviderWebhookContext(prov);
|
|
220080
|
-
// Inject authenticated octokit into event context for providers
|
|
220081
|
-
const enrichedEventContext = {
|
|
220082
|
-
...prInfo.eventContext,
|
|
220083
|
-
...(this.actionContext?.octokit ? { octokit: this.actionContext.octokit } : {}),
|
|
220084
|
-
};
|
|
220085
220092
|
const provCfg = {
|
|
220086
220093
|
type: providerType,
|
|
220087
220094
|
prompt: targetCfg.prompt,
|
|
@@ -220090,7 +220097,7 @@ class CheckExecutionEngine {
|
|
|
220090
220097
|
schema: targetCfg.schema,
|
|
220091
220098
|
group: targetCfg.group,
|
|
220092
220099
|
checkName: target,
|
|
220093
|
-
eventContext:
|
|
220100
|
+
eventContext: this.enrichEventContext(prInfo.eventContext),
|
|
220094
220101
|
transform: targetCfg.transform,
|
|
220095
220102
|
transform_js: targetCfg.transform_js,
|
|
220096
220103
|
env: targetCfg.env,
|
|
@@ -220740,7 +220747,7 @@ class CheckExecutionEngine {
|
|
|
220740
220747
|
const providerConfig = {
|
|
220741
220748
|
type: checks[0],
|
|
220742
220749
|
prompt: 'all',
|
|
220743
|
-
eventContext: prInfo.eventContext,
|
|
220750
|
+
eventContext: this.enrichEventContext(prInfo.eventContext),
|
|
220744
220751
|
ai: timeout ? { timeout } : undefined,
|
|
220745
220752
|
};
|
|
220746
220753
|
const result = await provider.execute(prInfo, providerConfig);
|
|
@@ -220778,7 +220785,7 @@ class CheckExecutionEngine {
|
|
|
220778
220785
|
type: 'ai',
|
|
220779
220786
|
prompt: focus,
|
|
220780
220787
|
focus: focus,
|
|
220781
|
-
eventContext: prInfo.eventContext,
|
|
220788
|
+
eventContext: this.enrichEventContext(prInfo.eventContext),
|
|
220782
220789
|
ai: timeout ? { timeout } : undefined,
|
|
220783
220790
|
// Inherit global AI provider and model settings if config is available
|
|
220784
220791
|
ai_provider: config?.ai_provider,
|
|
@@ -220924,7 +220931,7 @@ class CheckExecutionEngine {
|
|
|
220924
220931
|
focus: checkConfig.focus || this.mapCheckNameToFocus(checkName),
|
|
220925
220932
|
schema: checkConfig.schema,
|
|
220926
220933
|
group: checkConfig.group,
|
|
220927
|
-
eventContext: prInfo.eventContext,
|
|
220934
|
+
eventContext: this.enrichEventContext(prInfo.eventContext),
|
|
220928
220935
|
ai: {
|
|
220929
220936
|
timeout: timeout || 600000,
|
|
220930
220937
|
debug: debug,
|
|
@@ -221607,7 +221614,7 @@ class CheckExecutionEngine {
|
|
|
221607
221614
|
schema: checkConfig.schema,
|
|
221608
221615
|
group: checkConfig.group,
|
|
221609
221616
|
checkName: checkName, // Add checkName for sessionID
|
|
221610
|
-
eventContext: prInfo.eventContext,
|
|
221617
|
+
eventContext: this.enrichEventContext(prInfo.eventContext),
|
|
221611
221618
|
transform: checkConfig.transform,
|
|
221612
221619
|
transform_js: checkConfig.transform_js,
|
|
221613
221620
|
// Important: pass through provider-level timeout from check config
|
|
@@ -221830,7 +221837,7 @@ class CheckExecutionEngine {
|
|
|
221830
221837
|
schema: childCfg.schema,
|
|
221831
221838
|
group: childCfg.group,
|
|
221832
221839
|
checkName: childName,
|
|
221833
|
-
eventContext: prInfo.eventContext,
|
|
221840
|
+
eventContext: this.enrichEventContext(prInfo.eventContext),
|
|
221834
221841
|
transform: childCfg.transform,
|
|
221835
221842
|
transform_js: childCfg.transform_js,
|
|
221836
221843
|
env: childCfg.env,
|
|
@@ -222238,7 +222245,7 @@ class CheckExecutionEngine {
|
|
|
222238
222245
|
schema: nodeCfg.schema,
|
|
222239
222246
|
group: nodeCfg.group,
|
|
222240
222247
|
checkName: node,
|
|
222241
|
-
eventContext: prInfo.eventContext,
|
|
222248
|
+
eventContext: this.enrichEventContext(prInfo.eventContext),
|
|
222242
222249
|
transform: nodeCfg.transform,
|
|
222243
222250
|
transform_js: nodeCfg.transform_js,
|
|
222244
222251
|
env: nodeCfg.env,
|
|
@@ -222950,7 +222957,7 @@ class CheckExecutionEngine {
|
|
|
222950
222957
|
focus: checkConfig.focus || this.mapCheckNameToFocus(checkName),
|
|
222951
222958
|
schema: checkConfig.schema,
|
|
222952
222959
|
group: checkConfig.group,
|
|
222953
|
-
eventContext: prInfo.eventContext,
|
|
222960
|
+
eventContext: this.enrichEventContext(prInfo.eventContext),
|
|
222954
222961
|
ai: {
|
|
222955
222962
|
timeout: timeout || 600000,
|
|
222956
222963
|
debug: debug, // Pass debug flag to AI provider
|
|
@@ -223019,7 +223026,7 @@ class CheckExecutionEngine {
|
|
|
223019
223026
|
focus: checkConfig.focus || this.mapCheckNameToFocus(checkName),
|
|
223020
223027
|
schema: checkConfig.schema,
|
|
223021
223028
|
group: checkConfig.group,
|
|
223022
|
-
eventContext: prInfo.eventContext,
|
|
223029
|
+
eventContext: this.enrichEventContext(prInfo.eventContext),
|
|
223023
223030
|
ai: {
|
|
223024
223031
|
timeout: timeout || 600000,
|
|
223025
223032
|
...(checkConfig.ai || {}),
|
|
@@ -231295,6 +231302,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
231295
231302
|
};
|
|
231296
231303
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
231297
231304
|
exports.ReadFileTag = void 0;
|
|
231305
|
+
exports.sanitizeLabel = sanitizeLabel;
|
|
231306
|
+
exports.sanitizeLabelList = sanitizeLabelList;
|
|
231298
231307
|
exports.withPermissionsContext = withPermissionsContext;
|
|
231299
231308
|
exports.configureLiquidWithExtensions = configureLiquidWithExtensions;
|
|
231300
231309
|
exports.createExtendedLiquid = createExtendedLiquid;
|
|
@@ -231304,6 +231313,28 @@ const promises_1 = __importDefault(__nccwpck_require__(91943));
|
|
|
231304
231313
|
const path_1 = __importDefault(__nccwpck_require__(16928));
|
|
231305
231314
|
const author_permissions_1 = __nccwpck_require__(53859);
|
|
231306
231315
|
const memory_store_1 = __nccwpck_require__(95835);
|
|
231316
|
+
/**
|
|
231317
|
+
* Sanitize label strings to only allow [A-Za-z0-9:/] characters
|
|
231318
|
+
* @param value - Label value to sanitize
|
|
231319
|
+
* @returns Sanitized label string
|
|
231320
|
+
*/
|
|
231321
|
+
function sanitizeLabel(value) {
|
|
231322
|
+
if (value == null)
|
|
231323
|
+
return '';
|
|
231324
|
+
const s = String(value);
|
|
231325
|
+
// Keep only alphanumerics, colon, slash; collapse repeated slashes
|
|
231326
|
+
return s.replace(/[^A-Za-z0-9:\/]/g, '').replace(/\/{2,}/g, '/');
|
|
231327
|
+
}
|
|
231328
|
+
/**
|
|
231329
|
+
* Sanitize an array of labels
|
|
231330
|
+
* @param labels - Array of label values
|
|
231331
|
+
* @returns Array of sanitized, non-empty label strings
|
|
231332
|
+
*/
|
|
231333
|
+
function sanitizeLabelList(labels) {
|
|
231334
|
+
if (!Array.isArray(labels))
|
|
231335
|
+
return [];
|
|
231336
|
+
return labels.map(v => sanitizeLabel(v)).filter(s => s.length > 0);
|
|
231337
|
+
}
|
|
231307
231338
|
/**
|
|
231308
231339
|
* Custom ReadFile tag for Liquid templates
|
|
231309
231340
|
* Usage: {% readfile "path/to/file.txt" %}
|
|
@@ -231379,22 +231410,9 @@ function configureLiquidWithExtensions(liquid) {
|
|
|
231379
231410
|
}
|
|
231380
231411
|
});
|
|
231381
231412
|
// Sanitize a label to allowed characters only: [A-Za-z0-9:/]
|
|
231382
|
-
liquid.registerFilter('safe_label', (value) =>
|
|
231383
|
-
if (value == null)
|
|
231384
|
-
return '';
|
|
231385
|
-
const s = String(value);
|
|
231386
|
-
// Keep only alphanumerics, colon, slash; collapse repeated slashes
|
|
231387
|
-
return s.replace(/[^A-Za-z0-9:\/]/g, '').replace(/\/{2,}/g, '/');
|
|
231388
|
-
});
|
|
231413
|
+
liquid.registerFilter('safe_label', (value) => sanitizeLabel(value));
|
|
231389
231414
|
// Sanitize an array of labels
|
|
231390
|
-
liquid.registerFilter('safe_label_list', (value) =>
|
|
231391
|
-
if (!Array.isArray(value))
|
|
231392
|
-
return [];
|
|
231393
|
-
return value
|
|
231394
|
-
.map(v => (v == null ? '' : String(v)))
|
|
231395
|
-
.map(s => s.replace(/[^A-Za-z0-9:\/]/g, '').replace(/\/{2,}/g, '/'))
|
|
231396
|
-
.filter(s => s.length > 0);
|
|
231397
|
-
});
|
|
231415
|
+
liquid.registerFilter('safe_label_list', (value) => sanitizeLabelList(value));
|
|
231398
231416
|
// Convert literal escape sequences (e.g., "\n") into actual newlines
|
|
231399
231417
|
liquid.registerFilter('unescape_newlines', (value) => {
|
|
231400
231418
|
if (value == null)
|
|
@@ -262208,36 +262226,9 @@ var require_dist_cjs2 = __commonJS({
|
|
|
262208
262226
|
|
|
262209
262227
|
// node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js
|
|
262210
262228
|
var require_dist_cjs3 = __commonJS({
|
|
262211
|
-
"node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js"(exports2
|
|
262229
|
+
"node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js"(exports2) {
|
|
262212
262230
|
"use strict";
|
|
262213
|
-
var
|
|
262214
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
262215
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
262216
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
262217
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
262218
|
-
var __export2 = (target, all) => {
|
|
262219
|
-
for (var name14 in all)
|
|
262220
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
262221
|
-
};
|
|
262222
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
262223
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
262224
|
-
for (let key of __getOwnPropNames2(from))
|
|
262225
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
262226
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
262227
|
-
}
|
|
262228
|
-
return to;
|
|
262229
|
-
};
|
|
262230
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
262231
|
-
var index_exports2 = {};
|
|
262232
|
-
__export2(index_exports2, {
|
|
262233
|
-
eventStreamHandlingMiddleware: () => eventStreamHandlingMiddleware,
|
|
262234
|
-
eventStreamHandlingMiddlewareOptions: () => eventStreamHandlingMiddlewareOptions,
|
|
262235
|
-
eventStreamHeaderMiddleware: () => eventStreamHeaderMiddleware,
|
|
262236
|
-
eventStreamHeaderMiddlewareOptions: () => eventStreamHeaderMiddlewareOptions,
|
|
262237
|
-
getEventStreamPlugin: () => getEventStreamPlugin,
|
|
262238
|
-
resolveEventStreamConfig: () => resolveEventStreamConfig
|
|
262239
|
-
});
|
|
262240
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
262231
|
+
var protocolHttp = require_dist_cjs2();
|
|
262241
262232
|
function resolveEventStreamConfig(input) {
|
|
262242
262233
|
const eventSigner = input.signer;
|
|
262243
262234
|
const messageSigner = input.signer;
|
|
@@ -262250,13 +262241,12 @@ var require_dist_cjs3 = __commonJS({
|
|
|
262250
262241
|
eventStreamPayloadHandler
|
|
262251
262242
|
});
|
|
262252
262243
|
}
|
|
262253
|
-
|
|
262254
|
-
var import_protocol_http15 = require_dist_cjs2();
|
|
262255
|
-
var eventStreamHandlingMiddleware = /* @__PURE__ */ __name((options) => (next, context3) => async (args) => {
|
|
262244
|
+
var eventStreamHandlingMiddleware = (options) => (next, context3) => async (args) => {
|
|
262256
262245
|
const { request } = args;
|
|
262257
|
-
if (!
|
|
262246
|
+
if (!protocolHttp.HttpRequest.isInstance(request))
|
|
262247
|
+
return next(args);
|
|
262258
262248
|
return options.eventStreamPayloadHandler.handle(next, args, context3);
|
|
262259
|
-
}
|
|
262249
|
+
};
|
|
262260
262250
|
var eventStreamHandlingMiddlewareOptions = {
|
|
262261
262251
|
tags: ["EVENT_STREAM", "SIGNATURE", "HANDLE"],
|
|
262262
262252
|
name: "eventStreamHandlingMiddleware",
|
|
@@ -262264,9 +262254,10 @@ var require_dist_cjs3 = __commonJS({
|
|
|
262264
262254
|
toMiddleware: "awsAuthMiddleware",
|
|
262265
262255
|
override: true
|
|
262266
262256
|
};
|
|
262267
|
-
var eventStreamHeaderMiddleware =
|
|
262257
|
+
var eventStreamHeaderMiddleware = (next) => async (args) => {
|
|
262268
262258
|
const { request } = args;
|
|
262269
|
-
if (!
|
|
262259
|
+
if (!protocolHttp.HttpRequest.isInstance(request))
|
|
262260
|
+
return next(args);
|
|
262270
262261
|
request.headers = {
|
|
262271
262262
|
...request.headers,
|
|
262272
262263
|
"content-type": "application/vnd.amazon.eventstream",
|
|
@@ -262276,59 +262267,39 @@ var require_dist_cjs3 = __commonJS({
|
|
|
262276
262267
|
...args,
|
|
262277
262268
|
request
|
|
262278
262269
|
});
|
|
262279
|
-
}
|
|
262270
|
+
};
|
|
262280
262271
|
var eventStreamHeaderMiddlewareOptions = {
|
|
262281
262272
|
step: "build",
|
|
262282
262273
|
tags: ["EVENT_STREAM", "HEADER", "CONTENT_TYPE", "CONTENT_SHA256"],
|
|
262283
262274
|
name: "eventStreamHeaderMiddleware",
|
|
262284
262275
|
override: true
|
|
262285
262276
|
};
|
|
262286
|
-
var getEventStreamPlugin =
|
|
262287
|
-
applyToStack:
|
|
262277
|
+
var getEventStreamPlugin = (options) => ({
|
|
262278
|
+
applyToStack: (clientStack) => {
|
|
262288
262279
|
clientStack.addRelativeTo(eventStreamHandlingMiddleware(options), eventStreamHandlingMiddlewareOptions);
|
|
262289
262280
|
clientStack.add(eventStreamHeaderMiddleware, eventStreamHeaderMiddlewareOptions);
|
|
262290
|
-
}
|
|
262291
|
-
})
|
|
262281
|
+
}
|
|
262282
|
+
});
|
|
262283
|
+
exports2.eventStreamHandlingMiddleware = eventStreamHandlingMiddleware;
|
|
262284
|
+
exports2.eventStreamHandlingMiddlewareOptions = eventStreamHandlingMiddlewareOptions;
|
|
262285
|
+
exports2.eventStreamHeaderMiddleware = eventStreamHeaderMiddleware;
|
|
262286
|
+
exports2.eventStreamHeaderMiddlewareOptions = eventStreamHeaderMiddlewareOptions;
|
|
262287
|
+
exports2.getEventStreamPlugin = getEventStreamPlugin;
|
|
262288
|
+
exports2.resolveEventStreamConfig = resolveEventStreamConfig;
|
|
262292
262289
|
}
|
|
262293
262290
|
});
|
|
262294
262291
|
|
|
262295
262292
|
// node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js
|
|
262296
262293
|
var require_dist_cjs4 = __commonJS({
|
|
262297
|
-
"node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2
|
|
262294
|
+
"node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports2) {
|
|
262298
262295
|
"use strict";
|
|
262299
|
-
var
|
|
262300
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
262301
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
262302
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
262303
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
262304
|
-
var __export2 = (target, all) => {
|
|
262305
|
-
for (var name14 in all)
|
|
262306
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
262307
|
-
};
|
|
262308
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
262309
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
262310
|
-
for (let key of __getOwnPropNames2(from))
|
|
262311
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
262312
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
262313
|
-
}
|
|
262314
|
-
return to;
|
|
262315
|
-
};
|
|
262316
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
262317
|
-
var index_exports2 = {};
|
|
262318
|
-
__export2(index_exports2, {
|
|
262319
|
-
getHostHeaderPlugin: () => getHostHeaderPlugin3,
|
|
262320
|
-
hostHeaderMiddleware: () => hostHeaderMiddleware,
|
|
262321
|
-
hostHeaderMiddlewareOptions: () => hostHeaderMiddlewareOptions,
|
|
262322
|
-
resolveHostHeaderConfig: () => resolveHostHeaderConfig3
|
|
262323
|
-
});
|
|
262324
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
262325
|
-
var import_protocol_http15 = require_dist_cjs2();
|
|
262296
|
+
var protocolHttp = require_dist_cjs2();
|
|
262326
262297
|
function resolveHostHeaderConfig3(input) {
|
|
262327
262298
|
return input;
|
|
262328
262299
|
}
|
|
262329
|
-
|
|
262330
|
-
|
|
262331
|
-
|
|
262300
|
+
var hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
262301
|
+
if (!protocolHttp.HttpRequest.isInstance(args.request))
|
|
262302
|
+
return next(args);
|
|
262332
262303
|
const { request } = args;
|
|
262333
262304
|
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
262334
262305
|
if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) {
|
|
@@ -262336,11 +262307,12 @@ var require_dist_cjs4 = __commonJS({
|
|
|
262336
262307
|
request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : "");
|
|
262337
262308
|
} else if (!request.headers["host"]) {
|
|
262338
262309
|
let host = request.hostname;
|
|
262339
|
-
if (request.port != null)
|
|
262310
|
+
if (request.port != null)
|
|
262311
|
+
host += `:${request.port}`;
|
|
262340
262312
|
request.headers["host"] = host;
|
|
262341
262313
|
}
|
|
262342
262314
|
return next(args);
|
|
262343
|
-
}
|
|
262315
|
+
};
|
|
262344
262316
|
var hostHeaderMiddlewareOptions = {
|
|
262345
262317
|
name: "hostHeaderMiddleware",
|
|
262346
262318
|
step: "build",
|
|
@@ -262348,44 +262320,23 @@ var require_dist_cjs4 = __commonJS({
|
|
|
262348
262320
|
tags: ["HOST"],
|
|
262349
262321
|
override: true
|
|
262350
262322
|
};
|
|
262351
|
-
var getHostHeaderPlugin3 =
|
|
262352
|
-
applyToStack:
|
|
262323
|
+
var getHostHeaderPlugin3 = (options) => ({
|
|
262324
|
+
applyToStack: (clientStack) => {
|
|
262353
262325
|
clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions);
|
|
262354
|
-
}
|
|
262355
|
-
})
|
|
262326
|
+
}
|
|
262327
|
+
});
|
|
262328
|
+
exports2.getHostHeaderPlugin = getHostHeaderPlugin3;
|
|
262329
|
+
exports2.hostHeaderMiddleware = hostHeaderMiddleware;
|
|
262330
|
+
exports2.hostHeaderMiddlewareOptions = hostHeaderMiddlewareOptions;
|
|
262331
|
+
exports2.resolveHostHeaderConfig = resolveHostHeaderConfig3;
|
|
262356
262332
|
}
|
|
262357
262333
|
});
|
|
262358
262334
|
|
|
262359
262335
|
// node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js
|
|
262360
262336
|
var require_dist_cjs5 = __commonJS({
|
|
262361
|
-
"node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2
|
|
262337
|
+
"node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports2) {
|
|
262362
262338
|
"use strict";
|
|
262363
|
-
var
|
|
262364
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
262365
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
262366
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
262367
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
262368
|
-
var __export2 = (target, all) => {
|
|
262369
|
-
for (var name14 in all)
|
|
262370
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
262371
|
-
};
|
|
262372
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
262373
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
262374
|
-
for (let key of __getOwnPropNames2(from))
|
|
262375
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
262376
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
262377
|
-
}
|
|
262378
|
-
return to;
|
|
262379
|
-
};
|
|
262380
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
262381
|
-
var index_exports2 = {};
|
|
262382
|
-
__export2(index_exports2, {
|
|
262383
|
-
getLoggerPlugin: () => getLoggerPlugin3,
|
|
262384
|
-
loggerMiddleware: () => loggerMiddleware,
|
|
262385
|
-
loggerMiddlewareOptions: () => loggerMiddlewareOptions
|
|
262386
|
-
});
|
|
262387
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
262388
|
-
var loggerMiddleware = /* @__PURE__ */ __name(() => (next, context3) => async (args) => {
|
|
262339
|
+
var loggerMiddleware = () => (next, context3) => async (args) => {
|
|
262389
262340
|
try {
|
|
262390
262341
|
const response = await next(args);
|
|
262391
262342
|
const { clientName, commandName, logger: logger2, dynamoDbDocumentClientOptions = {} } = context3;
|
|
@@ -262414,18 +262365,21 @@ var require_dist_cjs5 = __commonJS({
|
|
|
262414
262365
|
});
|
|
262415
262366
|
throw error2;
|
|
262416
262367
|
}
|
|
262417
|
-
}
|
|
262368
|
+
};
|
|
262418
262369
|
var loggerMiddlewareOptions = {
|
|
262419
262370
|
name: "loggerMiddleware",
|
|
262420
262371
|
tags: ["LOGGER"],
|
|
262421
262372
|
step: "initialize",
|
|
262422
262373
|
override: true
|
|
262423
262374
|
};
|
|
262424
|
-
var getLoggerPlugin3 =
|
|
262425
|
-
applyToStack:
|
|
262375
|
+
var getLoggerPlugin3 = (options) => ({
|
|
262376
|
+
applyToStack: (clientStack) => {
|
|
262426
262377
|
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
|
|
262427
|
-
}
|
|
262428
|
-
})
|
|
262378
|
+
}
|
|
262379
|
+
});
|
|
262380
|
+
exports2.getLoggerPlugin = getLoggerPlugin3;
|
|
262381
|
+
exports2.loggerMiddleware = loggerMiddleware;
|
|
262382
|
+
exports2.loggerMiddlewareOptions = loggerMiddlewareOptions;
|
|
262429
262383
|
}
|
|
262430
262384
|
});
|
|
262431
262385
|
|
|
@@ -262529,7 +262483,7 @@ var require_recursionDetectionMiddleware = __commonJS({
|
|
|
262529
262483
|
var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
|
|
262530
262484
|
var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
262531
262485
|
var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
262532
|
-
var
|
|
262486
|
+
var recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
262533
262487
|
const { request } = args;
|
|
262534
262488
|
if (!protocol_http_1.HttpRequest.isInstance(request)) {
|
|
262535
262489
|
return next(args);
|
|
@@ -262551,38 +262505,15 @@ var require_recursionDetectionMiddleware = __commonJS({
|
|
|
262551
262505
|
request
|
|
262552
262506
|
});
|
|
262553
262507
|
};
|
|
262554
|
-
exports2.recursionDetectionMiddleware =
|
|
262508
|
+
exports2.recursionDetectionMiddleware = recursionDetectionMiddleware;
|
|
262555
262509
|
}
|
|
262556
262510
|
});
|
|
262557
262511
|
|
|
262558
262512
|
// node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js
|
|
262559
262513
|
var require_dist_cjs6 = __commonJS({
|
|
262560
|
-
"node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2
|
|
262514
|
+
"node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports2) {
|
|
262561
262515
|
"use strict";
|
|
262562
|
-
var
|
|
262563
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
262564
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
262565
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
262566
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
262567
|
-
var __export2 = (target, all) => {
|
|
262568
|
-
for (var name14 in all)
|
|
262569
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
262570
|
-
};
|
|
262571
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
262572
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
262573
|
-
for (let key of __getOwnPropNames2(from))
|
|
262574
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
262575
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
262576
|
-
}
|
|
262577
|
-
return to;
|
|
262578
|
-
};
|
|
262579
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default"));
|
|
262580
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
262581
|
-
var index_exports2 = {};
|
|
262582
|
-
__export2(index_exports2, {
|
|
262583
|
-
getRecursionDetectionPlugin: () => getRecursionDetectionPlugin3
|
|
262584
|
-
});
|
|
262585
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
262516
|
+
var recursionDetectionMiddleware = require_recursionDetectionMiddleware();
|
|
262586
262517
|
var recursionDetectionMiddlewareOptions = {
|
|
262587
262518
|
step: "build",
|
|
262588
262519
|
tags: ["RECURSION_DETECTION"],
|
|
@@ -262590,13 +262521,20 @@ var require_dist_cjs6 = __commonJS({
|
|
|
262590
262521
|
override: true,
|
|
262591
262522
|
priority: "low"
|
|
262592
262523
|
};
|
|
262593
|
-
var
|
|
262594
|
-
|
|
262595
|
-
|
|
262596
|
-
|
|
262597
|
-
|
|
262598
|
-
|
|
262599
|
-
|
|
262524
|
+
var getRecursionDetectionPlugin3 = (options) => ({
|
|
262525
|
+
applyToStack: (clientStack) => {
|
|
262526
|
+
clientStack.add(recursionDetectionMiddleware.recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
|
|
262527
|
+
}
|
|
262528
|
+
});
|
|
262529
|
+
exports2.getRecursionDetectionPlugin = getRecursionDetectionPlugin3;
|
|
262530
|
+
Object.keys(recursionDetectionMiddleware).forEach(function(k3) {
|
|
262531
|
+
if (k3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k3)) Object.defineProperty(exports2, k3, {
|
|
262532
|
+
enumerable: true,
|
|
262533
|
+
get: function() {
|
|
262534
|
+
return recursionDetectionMiddleware[k3];
|
|
262535
|
+
}
|
|
262536
|
+
});
|
|
262537
|
+
});
|
|
262600
262538
|
}
|
|
262601
262539
|
});
|
|
262602
262540
|
|
|
@@ -268309,7 +268247,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268309
268247
|
}
|
|
268310
268248
|
};
|
|
268311
268249
|
var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
|
|
268312
|
-
var
|
|
268250
|
+
var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
|
|
268313
268251
|
var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
|
|
268314
268252
|
var isValidHostLabel = (value, allowSubDomains = false) => {
|
|
268315
268253
|
if (!allowSubDomains) {
|
|
@@ -268337,7 +268275,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268337
268275
|
}
|
|
268338
268276
|
return JSON.stringify(input, null, 2);
|
|
268339
268277
|
}
|
|
268340
|
-
var
|
|
268278
|
+
var EndpointError = class extends Error {
|
|
268341
268279
|
constructor(message) {
|
|
268342
268280
|
super(message);
|
|
268343
268281
|
this.name = "EndpointError";
|
|
@@ -268351,11 +268289,11 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268351
268289
|
const squareBracketIndex = part.indexOf("[");
|
|
268352
268290
|
if (squareBracketIndex !== -1) {
|
|
268353
268291
|
if (part.indexOf("]") !== part.length - 1) {
|
|
268354
|
-
throw new
|
|
268292
|
+
throw new EndpointError(`Path: '${path7}' does not end with ']'`);
|
|
268355
268293
|
}
|
|
268356
268294
|
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
268357
268295
|
if (Number.isNaN(parseInt(arrayIndex))) {
|
|
268358
|
-
throw new
|
|
268296
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path7}'`);
|
|
268359
268297
|
}
|
|
268360
268298
|
if (squareBracketIndex !== 0) {
|
|
268361
268299
|
pathList.push(part.slice(0, squareBracketIndex));
|
|
@@ -268369,7 +268307,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268369
268307
|
};
|
|
268370
268308
|
var getAttr = (value, path7) => getAttrPathList(path7).reduce((acc, index) => {
|
|
268371
268309
|
if (typeof acc !== "object") {
|
|
268372
|
-
throw new
|
|
268310
|
+
throw new EndpointError(`Index '${index}' in '${path7}' not found in '${JSON.stringify(value)}'`);
|
|
268373
268311
|
} else if (Array.isArray(acc)) {
|
|
268374
268312
|
return acc[parseInt(index)];
|
|
268375
268313
|
}
|
|
@@ -268411,7 +268349,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268411
268349
|
if (!Object.values(types2.EndpointURLScheme).includes(scheme)) {
|
|
268412
268350
|
return null;
|
|
268413
268351
|
}
|
|
268414
|
-
const isIp =
|
|
268352
|
+
const isIp = isIpAddress(hostname);
|
|
268415
268353
|
const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
|
|
268416
268354
|
const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
|
|
268417
268355
|
return {
|
|
@@ -268493,7 +268431,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268493
268431
|
} else if (obj["ref"]) {
|
|
268494
268432
|
return getReferenceValue(obj, options);
|
|
268495
268433
|
}
|
|
268496
|
-
throw new
|
|
268434
|
+
throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
|
|
268497
268435
|
};
|
|
268498
268436
|
var callFunction = ({ fn, argv }, options) => {
|
|
268499
268437
|
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
|
|
@@ -268505,7 +268443,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268505
268443
|
};
|
|
268506
268444
|
var evaluateCondition = ({ assign: assign2, ...fnArgs }, options) => {
|
|
268507
268445
|
if (assign2 && assign2 in options.referenceRecord) {
|
|
268508
|
-
throw new
|
|
268446
|
+
throw new EndpointError(`'${assign2}' is already defined in Reference Record.`);
|
|
268509
268447
|
}
|
|
268510
268448
|
const value = callFunction(fnArgs, options);
|
|
268511
268449
|
options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
|
|
@@ -268539,7 +268477,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268539
268477
|
[headerKey]: headerVal.map((headerValEntry) => {
|
|
268540
268478
|
const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
|
|
268541
268479
|
if (typeof processedExpr !== "string") {
|
|
268542
|
-
throw new
|
|
268480
|
+
throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
|
|
268543
268481
|
}
|
|
268544
268482
|
return processedExpr;
|
|
268545
268483
|
})
|
|
@@ -268553,13 +268491,13 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268553
268491
|
return evaluateTemplate(property2, options);
|
|
268554
268492
|
case "object":
|
|
268555
268493
|
if (property2 === null) {
|
|
268556
|
-
throw new
|
|
268494
|
+
throw new EndpointError(`Unexpected endpoint property: ${property2}`);
|
|
268557
268495
|
}
|
|
268558
268496
|
return getEndpointProperties(property2, options);
|
|
268559
268497
|
case "boolean":
|
|
268560
268498
|
return property2;
|
|
268561
268499
|
default:
|
|
268562
|
-
throw new
|
|
268500
|
+
throw new EndpointError(`Unexpected endpoint property type: ${typeof property2}`);
|
|
268563
268501
|
}
|
|
268564
268502
|
};
|
|
268565
268503
|
var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
|
|
@@ -268576,7 +268514,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268576
268514
|
throw error2;
|
|
268577
268515
|
}
|
|
268578
268516
|
}
|
|
268579
|
-
throw new
|
|
268517
|
+
throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
|
|
268580
268518
|
};
|
|
268581
268519
|
var evaluateEndpointRule = (endpointRule, options) => {
|
|
268582
268520
|
const { conditions, endpoint } = endpointRule;
|
|
@@ -268606,7 +268544,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268606
268544
|
if (!result) {
|
|
268607
268545
|
return;
|
|
268608
268546
|
}
|
|
268609
|
-
throw new
|
|
268547
|
+
throw new EndpointError(evaluateExpression(error2, "Error", {
|
|
268610
268548
|
...options,
|
|
268611
268549
|
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
|
268612
268550
|
}));
|
|
@@ -268637,12 +268575,12 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268637
268575
|
return endpointOrUndefined;
|
|
268638
268576
|
}
|
|
268639
268577
|
} else {
|
|
268640
|
-
throw new
|
|
268578
|
+
throw new EndpointError(`Unknown endpoint rule: ${rule}`);
|
|
268641
268579
|
}
|
|
268642
268580
|
}
|
|
268643
|
-
throw new
|
|
268581
|
+
throw new EndpointError(`Rules evaluation failed`);
|
|
268644
268582
|
};
|
|
268645
|
-
var
|
|
268583
|
+
var resolveEndpoint3 = (ruleSetObject, options) => {
|
|
268646
268584
|
const { endpointParams, logger: logger2 } = options;
|
|
268647
268585
|
const { parameters, rules } = ruleSetObject;
|
|
268648
268586
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
@@ -268655,7 +268593,7 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268655
268593
|
const requiredParams = Object.entries(parameters).filter(([, v3]) => v3.required).map(([k3]) => k3);
|
|
268656
268594
|
for (const requiredParam of requiredParams) {
|
|
268657
268595
|
if (endpointParams[requiredParam] == null) {
|
|
268658
|
-
throw new
|
|
268596
|
+
throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
|
|
268659
268597
|
}
|
|
268660
268598
|
}
|
|
268661
268599
|
const endpoint = evaluateRules(rules, { endpointParams, logger: logger2, referenceRecord: {} });
|
|
@@ -268663,11 +268601,11 @@ var require_dist_cjs20 = __commonJS({
|
|
|
268663
268601
|
return endpoint;
|
|
268664
268602
|
};
|
|
268665
268603
|
exports2.EndpointCache = EndpointCache3;
|
|
268666
|
-
exports2.EndpointError =
|
|
268604
|
+
exports2.EndpointError = EndpointError;
|
|
268667
268605
|
exports2.customEndpointFunctions = customEndpointFunctions3;
|
|
268668
|
-
exports2.isIpAddress =
|
|
268606
|
+
exports2.isIpAddress = isIpAddress;
|
|
268669
268607
|
exports2.isValidHostLabel = isValidHostLabel;
|
|
268670
|
-
exports2.resolveEndpoint =
|
|
268608
|
+
exports2.resolveEndpoint = resolveEndpoint3;
|
|
268671
268609
|
}
|
|
268672
268610
|
});
|
|
268673
268611
|
|
|
@@ -268728,62 +268666,11 @@ var require_dist_cjs22 = __commonJS({
|
|
|
268728
268666
|
|
|
268729
268667
|
// node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js
|
|
268730
268668
|
var require_dist_cjs23 = __commonJS({
|
|
268731
|
-
"node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2
|
|
268669
|
+
"node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports2) {
|
|
268732
268670
|
"use strict";
|
|
268733
|
-
var
|
|
268734
|
-
var
|
|
268735
|
-
var
|
|
268736
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
268737
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
268738
|
-
var __export2 = (target, all) => {
|
|
268739
|
-
for (var name14 in all)
|
|
268740
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
268741
|
-
};
|
|
268742
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
268743
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
268744
|
-
for (let key of __getOwnPropNames2(from))
|
|
268745
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
268746
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
268747
|
-
}
|
|
268748
|
-
return to;
|
|
268749
|
-
};
|
|
268750
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
268751
|
-
var index_exports2 = {};
|
|
268752
|
-
__export2(index_exports2, {
|
|
268753
|
-
ConditionObject: () => import_util_endpoints5.ConditionObject,
|
|
268754
|
-
DeprecatedObject: () => import_util_endpoints5.DeprecatedObject,
|
|
268755
|
-
EndpointError: () => import_util_endpoints5.EndpointError,
|
|
268756
|
-
EndpointObject: () => import_util_endpoints5.EndpointObject,
|
|
268757
|
-
EndpointObjectHeaders: () => import_util_endpoints5.EndpointObjectHeaders,
|
|
268758
|
-
EndpointObjectProperties: () => import_util_endpoints5.EndpointObjectProperties,
|
|
268759
|
-
EndpointParams: () => import_util_endpoints5.EndpointParams,
|
|
268760
|
-
EndpointResolverOptions: () => import_util_endpoints5.EndpointResolverOptions,
|
|
268761
|
-
EndpointRuleObject: () => import_util_endpoints5.EndpointRuleObject,
|
|
268762
|
-
ErrorRuleObject: () => import_util_endpoints5.ErrorRuleObject,
|
|
268763
|
-
EvaluateOptions: () => import_util_endpoints5.EvaluateOptions,
|
|
268764
|
-
Expression: () => import_util_endpoints5.Expression,
|
|
268765
|
-
FunctionArgv: () => import_util_endpoints5.FunctionArgv,
|
|
268766
|
-
FunctionObject: () => import_util_endpoints5.FunctionObject,
|
|
268767
|
-
FunctionReturn: () => import_util_endpoints5.FunctionReturn,
|
|
268768
|
-
ParameterObject: () => import_util_endpoints5.ParameterObject,
|
|
268769
|
-
ReferenceObject: () => import_util_endpoints5.ReferenceObject,
|
|
268770
|
-
ReferenceRecord: () => import_util_endpoints5.ReferenceRecord,
|
|
268771
|
-
RuleSetObject: () => import_util_endpoints5.RuleSetObject,
|
|
268772
|
-
RuleSetRules: () => import_util_endpoints5.RuleSetRules,
|
|
268773
|
-
TreeRuleObject: () => import_util_endpoints5.TreeRuleObject,
|
|
268774
|
-
awsEndpointFunctions: () => awsEndpointFunctions3,
|
|
268775
|
-
getUserAgentPrefix: () => getUserAgentPrefix,
|
|
268776
|
-
isIpAddress: () => import_util_endpoints5.isIpAddress,
|
|
268777
|
-
partition: () => partition,
|
|
268778
|
-
resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig,
|
|
268779
|
-
resolveEndpoint: () => import_util_endpoints5.resolveEndpoint,
|
|
268780
|
-
setPartitionInfo: () => setPartitionInfo,
|
|
268781
|
-
toEndpointV1: () => toEndpointV1,
|
|
268782
|
-
useDefaultPartitionInfo: () => useDefaultPartitionInfo
|
|
268783
|
-
});
|
|
268784
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
268785
|
-
var import_util_endpoints5 = require_dist_cjs20();
|
|
268786
|
-
var isVirtualHostableS3Bucket = /* @__PURE__ */ __name((value, allowSubDomains = false) => {
|
|
268671
|
+
var utilEndpoints = require_dist_cjs20();
|
|
268672
|
+
var urlParser = require_dist_cjs22();
|
|
268673
|
+
var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
|
|
268787
268674
|
if (allowSubDomains) {
|
|
268788
268675
|
for (const label of value.split(".")) {
|
|
268789
268676
|
if (!isVirtualHostableS3Bucket(label)) {
|
|
@@ -268792,7 +268679,7 @@ var require_dist_cjs23 = __commonJS({
|
|
|
268792
268679
|
}
|
|
268793
268680
|
return true;
|
|
268794
268681
|
}
|
|
268795
|
-
if (!
|
|
268682
|
+
if (!utilEndpoints.isValidHostLabel(value)) {
|
|
268796
268683
|
return false;
|
|
268797
268684
|
}
|
|
268798
268685
|
if (value.length < 3 || value.length > 63) {
|
|
@@ -268801,18 +268688,20 @@ var require_dist_cjs23 = __commonJS({
|
|
|
268801
268688
|
if (value !== value.toLowerCase()) {
|
|
268802
268689
|
return false;
|
|
268803
268690
|
}
|
|
268804
|
-
if (
|
|
268691
|
+
if (utilEndpoints.isIpAddress(value)) {
|
|
268805
268692
|
return false;
|
|
268806
268693
|
}
|
|
268807
268694
|
return true;
|
|
268808
|
-
}
|
|
268695
|
+
};
|
|
268809
268696
|
var ARN_DELIMITER = ":";
|
|
268810
268697
|
var RESOURCE_DELIMITER = "/";
|
|
268811
|
-
var parseArn =
|
|
268698
|
+
var parseArn = (value) => {
|
|
268812
268699
|
const segments = value.split(ARN_DELIMITER);
|
|
268813
|
-
if (segments.length < 6)
|
|
268700
|
+
if (segments.length < 6)
|
|
268701
|
+
return null;
|
|
268814
268702
|
const [arn, partition2, service, region, accountId, ...resourcePath] = segments;
|
|
268815
|
-
if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
268703
|
+
if (arn !== "arn" || partition2 === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "")
|
|
268704
|
+
return null;
|
|
268816
268705
|
const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat();
|
|
268817
268706
|
return {
|
|
268818
268707
|
partition: partition2,
|
|
@@ -268821,9 +268710,9 @@ var require_dist_cjs23 = __commonJS({
|
|
|
268821
268710
|
accountId,
|
|
268822
268711
|
resourceId
|
|
268823
268712
|
};
|
|
268824
|
-
}
|
|
268825
|
-
var
|
|
268826
|
-
|
|
268713
|
+
};
|
|
268714
|
+
var partitions = [
|
|
268715
|
+
{
|
|
268827
268716
|
id: "aws",
|
|
268828
268717
|
outputs: {
|
|
268829
268718
|
dnsSuffix: "amazonaws.com",
|
|
@@ -268941,7 +268830,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
268941
268830
|
description: "US West (Oregon)"
|
|
268942
268831
|
}
|
|
268943
268832
|
}
|
|
268944
|
-
},
|
|
268833
|
+
},
|
|
268834
|
+
{
|
|
268945
268835
|
id: "aws-cn",
|
|
268946
268836
|
outputs: {
|
|
268947
268837
|
dnsSuffix: "amazonaws.com.cn",
|
|
@@ -268963,7 +268853,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
268963
268853
|
description: "China (Ningxia)"
|
|
268964
268854
|
}
|
|
268965
268855
|
}
|
|
268966
|
-
},
|
|
268856
|
+
},
|
|
268857
|
+
{
|
|
268967
268858
|
id: "aws-eusc",
|
|
268968
268859
|
outputs: {
|
|
268969
268860
|
dnsSuffix: "amazonaws.eu",
|
|
@@ -268979,7 +268870,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
268979
268870
|
description: "EU (Germany)"
|
|
268980
268871
|
}
|
|
268981
268872
|
}
|
|
268982
|
-
},
|
|
268873
|
+
},
|
|
268874
|
+
{
|
|
268983
268875
|
id: "aws-iso",
|
|
268984
268876
|
outputs: {
|
|
268985
268877
|
dnsSuffix: "c2s.ic.gov",
|
|
@@ -269001,7 +268893,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
269001
268893
|
description: "US ISO WEST"
|
|
269002
268894
|
}
|
|
269003
268895
|
}
|
|
269004
|
-
},
|
|
268896
|
+
},
|
|
268897
|
+
{
|
|
269005
268898
|
id: "aws-iso-b",
|
|
269006
268899
|
outputs: {
|
|
269007
268900
|
dnsSuffix: "sc2s.sgov.gov",
|
|
@@ -269020,7 +268913,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
269020
268913
|
description: "US ISOB East (Ohio)"
|
|
269021
268914
|
}
|
|
269022
268915
|
}
|
|
269023
|
-
},
|
|
268916
|
+
},
|
|
268917
|
+
{
|
|
269024
268918
|
id: "aws-iso-e",
|
|
269025
268919
|
outputs: {
|
|
269026
268920
|
dnsSuffix: "cloud.adc-e.uk",
|
|
@@ -269039,7 +268933,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
269039
268933
|
description: "EU ISOE West"
|
|
269040
268934
|
}
|
|
269041
268935
|
}
|
|
269042
|
-
},
|
|
268936
|
+
},
|
|
268937
|
+
{
|
|
269043
268938
|
id: "aws-iso-f",
|
|
269044
268939
|
outputs: {
|
|
269045
268940
|
dnsSuffix: "csp.hci.ic.gov",
|
|
@@ -269061,7 +268956,8 @@ var require_dist_cjs23 = __commonJS({
|
|
|
269061
268956
|
description: "US ISOF SOUTH"
|
|
269062
268957
|
}
|
|
269063
268958
|
}
|
|
269064
|
-
},
|
|
268959
|
+
},
|
|
268960
|
+
{
|
|
269065
268961
|
id: "aws-us-gov",
|
|
269066
268962
|
outputs: {
|
|
269067
268963
|
dnsSuffix: "amazonaws.com",
|
|
@@ -269083,14 +268979,18 @@ var require_dist_cjs23 = __commonJS({
|
|
|
269083
268979
|
description: "AWS GovCloud (US-West)"
|
|
269084
268980
|
}
|
|
269085
268981
|
}
|
|
269086
|
-
}
|
|
269087
|
-
|
|
268982
|
+
}
|
|
268983
|
+
];
|
|
268984
|
+
var version = "1.1";
|
|
268985
|
+
var partitionsInfo = {
|
|
268986
|
+
partitions,
|
|
268987
|
+
version
|
|
269088
268988
|
};
|
|
269089
|
-
var selectedPartitionsInfo =
|
|
268989
|
+
var selectedPartitionsInfo = partitionsInfo;
|
|
269090
268990
|
var selectedUserAgentPrefix = "";
|
|
269091
|
-
var partition =
|
|
269092
|
-
const { partitions } = selectedPartitionsInfo;
|
|
269093
|
-
for (const partition2 of
|
|
268991
|
+
var partition = (value) => {
|
|
268992
|
+
const { partitions: partitions2 } = selectedPartitionsInfo;
|
|
268993
|
+
for (const partition2 of partitions2) {
|
|
269094
268994
|
const { regions, outputs } = partition2;
|
|
269095
268995
|
for (const [region, regionData] of Object.entries(regions)) {
|
|
269096
268996
|
if (region === value) {
|
|
@@ -269101,7 +269001,7 @@ var require_dist_cjs23 = __commonJS({
|
|
|
269101
269001
|
}
|
|
269102
269002
|
}
|
|
269103
269003
|
}
|
|
269104
|
-
for (const partition2 of
|
|
269004
|
+
for (const partition2 of partitions2) {
|
|
269105
269005
|
const { regionRegex, outputs } = partition2;
|
|
269106
269006
|
if (new RegExp(regionRegex).test(value)) {
|
|
269107
269007
|
return {
|
|
@@ -269109,54 +269009,71 @@ var require_dist_cjs23 = __commonJS({
|
|
|
269109
269009
|
};
|
|
269110
269010
|
}
|
|
269111
269011
|
}
|
|
269112
|
-
const DEFAULT_PARTITION =
|
|
269012
|
+
const DEFAULT_PARTITION = partitions2.find((partition2) => partition2.id === "aws");
|
|
269113
269013
|
if (!DEFAULT_PARTITION) {
|
|
269114
|
-
throw new Error(
|
|
269115
|
-
"Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."
|
|
269116
|
-
);
|
|
269014
|
+
throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");
|
|
269117
269015
|
}
|
|
269118
269016
|
return {
|
|
269119
269017
|
...DEFAULT_PARTITION.outputs
|
|
269120
269018
|
};
|
|
269121
|
-
}
|
|
269122
|
-
var setPartitionInfo =
|
|
269123
|
-
selectedPartitionsInfo =
|
|
269019
|
+
};
|
|
269020
|
+
var setPartitionInfo = (partitionsInfo2, userAgentPrefix = "") => {
|
|
269021
|
+
selectedPartitionsInfo = partitionsInfo2;
|
|
269124
269022
|
selectedUserAgentPrefix = userAgentPrefix;
|
|
269125
|
-
}
|
|
269126
|
-
var useDefaultPartitionInfo =
|
|
269127
|
-
setPartitionInfo(
|
|
269128
|
-
}
|
|
269129
|
-
var getUserAgentPrefix =
|
|
269023
|
+
};
|
|
269024
|
+
var useDefaultPartitionInfo = () => {
|
|
269025
|
+
setPartitionInfo(partitionsInfo, "");
|
|
269026
|
+
};
|
|
269027
|
+
var getUserAgentPrefix = () => selectedUserAgentPrefix;
|
|
269130
269028
|
var awsEndpointFunctions3 = {
|
|
269131
269029
|
isVirtualHostableS3Bucket,
|
|
269132
269030
|
parseArn,
|
|
269133
269031
|
partition
|
|
269134
269032
|
};
|
|
269135
|
-
|
|
269136
|
-
var
|
|
269137
|
-
var resolveDefaultAwsRegionalEndpointsConfig = /* @__PURE__ */ __name((input) => {
|
|
269033
|
+
utilEndpoints.customEndpointFunctions.aws = awsEndpointFunctions3;
|
|
269034
|
+
var resolveDefaultAwsRegionalEndpointsConfig = (input) => {
|
|
269138
269035
|
if (typeof input.endpointProvider !== "function") {
|
|
269139
269036
|
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
|
269140
269037
|
}
|
|
269141
269038
|
const { endpoint } = input;
|
|
269142
269039
|
if (endpoint === void 0) {
|
|
269143
269040
|
input.endpoint = async () => {
|
|
269144
|
-
return toEndpointV1(
|
|
269145
|
-
input.
|
|
269146
|
-
|
|
269147
|
-
|
|
269148
|
-
|
|
269149
|
-
|
|
269150
|
-
Endpoint: void 0
|
|
269151
|
-
},
|
|
269152
|
-
{ logger: input.logger }
|
|
269153
|
-
)
|
|
269154
|
-
);
|
|
269041
|
+
return toEndpointV1(input.endpointProvider({
|
|
269042
|
+
Region: typeof input.region === "function" ? await input.region() : input.region,
|
|
269043
|
+
UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
|
|
269044
|
+
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
|
269045
|
+
Endpoint: void 0
|
|
269046
|
+
}, { logger: input.logger }));
|
|
269155
269047
|
};
|
|
269156
269048
|
}
|
|
269157
269049
|
return input;
|
|
269158
|
-
}
|
|
269159
|
-
var toEndpointV1 =
|
|
269050
|
+
};
|
|
269051
|
+
var toEndpointV1 = (endpoint) => urlParser.parseUrl(endpoint.url);
|
|
269052
|
+
Object.defineProperty(exports2, "EndpointError", {
|
|
269053
|
+
enumerable: true,
|
|
269054
|
+
get: function() {
|
|
269055
|
+
return utilEndpoints.EndpointError;
|
|
269056
|
+
}
|
|
269057
|
+
});
|
|
269058
|
+
Object.defineProperty(exports2, "isIpAddress", {
|
|
269059
|
+
enumerable: true,
|
|
269060
|
+
get: function() {
|
|
269061
|
+
return utilEndpoints.isIpAddress;
|
|
269062
|
+
}
|
|
269063
|
+
});
|
|
269064
|
+
Object.defineProperty(exports2, "resolveEndpoint", {
|
|
269065
|
+
enumerable: true,
|
|
269066
|
+
get: function() {
|
|
269067
|
+
return utilEndpoints.resolveEndpoint;
|
|
269068
|
+
}
|
|
269069
|
+
});
|
|
269070
|
+
exports2.awsEndpointFunctions = awsEndpointFunctions3;
|
|
269071
|
+
exports2.getUserAgentPrefix = getUserAgentPrefix;
|
|
269072
|
+
exports2.partition = partition;
|
|
269073
|
+
exports2.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig;
|
|
269074
|
+
exports2.setPartitionInfo = setPartitionInfo;
|
|
269075
|
+
exports2.toEndpointV1 = toEndpointV1;
|
|
269076
|
+
exports2.useDefaultPartitionInfo = useDefaultPartitionInfo;
|
|
269160
269077
|
}
|
|
269161
269078
|
});
|
|
269162
269079
|
|
|
@@ -271373,7 +271290,7 @@ var init_AwsSmithyRpcV2CborProtocol = __esm({
|
|
|
271373
271290
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata);
|
|
271374
271291
|
const ns = NormalizedSchema.of(errorSchema);
|
|
271375
271292
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
271376
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
271293
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
271377
271294
|
const exception = new ErrorCtor(message);
|
|
271378
271295
|
const output = {};
|
|
271379
271296
|
for (const [name14, member2] of ns.structIterator()) {
|
|
@@ -272796,7 +272713,7 @@ var init_AwsJsonRpcProtocol = __esm({
|
|
|
272796
272713
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
272797
272714
|
const ns = NormalizedSchema.of(errorSchema);
|
|
272798
272715
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
272799
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
272716
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
272800
272717
|
const exception = new ErrorCtor(message);
|
|
272801
272718
|
const output = {};
|
|
272802
272719
|
for (const [name14, member2] of ns.structIterator()) {
|
|
@@ -272926,7 +272843,7 @@ var init_AwsRestJsonProtocol = __esm({
|
|
|
272926
272843
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
272927
272844
|
const ns = NormalizedSchema.of(errorSchema);
|
|
272928
272845
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
272929
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
272846
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
272930
272847
|
const exception = new ErrorCtor(message);
|
|
272931
272848
|
await this.deserializeHttpMessage(errorSchema, context3, response, dataObject);
|
|
272932
272849
|
const output = {};
|
|
@@ -273759,7 +273676,7 @@ var require_xml_parser = __commonJS({
|
|
|
273759
273676
|
"node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js"(exports2) {
|
|
273760
273677
|
"use strict";
|
|
273761
273678
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
273762
|
-
exports2.parseXML =
|
|
273679
|
+
exports2.parseXML = parseXML3;
|
|
273763
273680
|
var fast_xml_parser_1 = require_fxp();
|
|
273764
273681
|
var parser = new fast_xml_parser_1.XMLParser({
|
|
273765
273682
|
attributeNamePrefix: "",
|
|
@@ -273772,7 +273689,7 @@ var require_xml_parser = __commonJS({
|
|
|
273772
273689
|
});
|
|
273773
273690
|
parser.addEntity("#xD", "\r");
|
|
273774
273691
|
parser.addEntity("#10", "\n");
|
|
273775
|
-
function
|
|
273692
|
+
function parseXML3(xmlString) {
|
|
273776
273693
|
return parser.parse(xmlString, true);
|
|
273777
273694
|
}
|
|
273778
273695
|
}
|
|
@@ -273780,60 +273697,27 @@ var require_xml_parser = __commonJS({
|
|
|
273780
273697
|
|
|
273781
273698
|
// node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
|
|
273782
273699
|
var require_dist_cjs28 = __commonJS({
|
|
273783
|
-
"node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2
|
|
273700
|
+
"node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports2) {
|
|
273784
273701
|
"use strict";
|
|
273785
|
-
var
|
|
273786
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
273787
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
273788
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
273789
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
273790
|
-
var __export2 = (target, all) => {
|
|
273791
|
-
for (var name14 in all)
|
|
273792
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
273793
|
-
};
|
|
273794
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
273795
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
273796
|
-
for (let key of __getOwnPropNames2(from))
|
|
273797
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
273798
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
273799
|
-
}
|
|
273800
|
-
return to;
|
|
273801
|
-
};
|
|
273802
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
273803
|
-
var index_exports2 = {};
|
|
273804
|
-
__export2(index_exports2, {
|
|
273805
|
-
XmlNode: () => XmlNode2,
|
|
273806
|
-
XmlText: () => XmlText2,
|
|
273807
|
-
parseXML: () => import_xml_parser.parseXML
|
|
273808
|
-
});
|
|
273809
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
273702
|
+
var xmlParser = require_xml_parser();
|
|
273810
273703
|
function escapeAttribute(value) {
|
|
273811
273704
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
273812
273705
|
}
|
|
273813
|
-
__name(escapeAttribute, "escapeAttribute");
|
|
273814
273706
|
function escapeElement(value) {
|
|
273815
273707
|
return value.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/\r/g, "
").replace(/\n/g, "
").replace(/\u0085/g, "…").replace(/\u2028/, "
");
|
|
273816
273708
|
}
|
|
273817
|
-
__name(escapeElement, "escapeElement");
|
|
273818
273709
|
var XmlText2 = class {
|
|
273710
|
+
value;
|
|
273819
273711
|
constructor(value) {
|
|
273820
273712
|
this.value = value;
|
|
273821
273713
|
}
|
|
273822
|
-
static {
|
|
273823
|
-
__name(this, "XmlText");
|
|
273824
|
-
}
|
|
273825
273714
|
toString() {
|
|
273826
273715
|
return escapeElement("" + this.value);
|
|
273827
273716
|
}
|
|
273828
273717
|
};
|
|
273829
273718
|
var XmlNode2 = class _XmlNode {
|
|
273830
|
-
|
|
273831
|
-
|
|
273832
|
-
this.children = children;
|
|
273833
|
-
}
|
|
273834
|
-
static {
|
|
273835
|
-
__name(this, "XmlNode");
|
|
273836
|
-
}
|
|
273719
|
+
name;
|
|
273720
|
+
children;
|
|
273837
273721
|
attributes = {};
|
|
273838
273722
|
static of(name14, childText, withName) {
|
|
273839
273723
|
const node = new _XmlNode(name14);
|
|
@@ -273845,6 +273729,10 @@ var require_dist_cjs28 = __commonJS({
|
|
|
273845
273729
|
}
|
|
273846
273730
|
return node;
|
|
273847
273731
|
}
|
|
273732
|
+
constructor(name14, children = []) {
|
|
273733
|
+
this.name = name14;
|
|
273734
|
+
this.children = children;
|
|
273735
|
+
}
|
|
273848
273736
|
withName(name14) {
|
|
273849
273737
|
this.name = name14;
|
|
273850
273738
|
return this;
|
|
@@ -273861,47 +273749,26 @@ var require_dist_cjs28 = __commonJS({
|
|
|
273861
273749
|
delete this.attributes[name14];
|
|
273862
273750
|
return this;
|
|
273863
273751
|
}
|
|
273864
|
-
/**
|
|
273865
|
-
* @internal
|
|
273866
|
-
* Alias of {@link XmlNode#withName(string)} for codegen brevity.
|
|
273867
|
-
*/
|
|
273868
273752
|
n(name14) {
|
|
273869
273753
|
this.name = name14;
|
|
273870
273754
|
return this;
|
|
273871
273755
|
}
|
|
273872
|
-
/**
|
|
273873
|
-
* @internal
|
|
273874
|
-
* Alias of {@link XmlNode#addChildNode(string)} for codegen brevity.
|
|
273875
|
-
*/
|
|
273876
273756
|
c(child) {
|
|
273877
273757
|
this.children.push(child);
|
|
273878
273758
|
return this;
|
|
273879
273759
|
}
|
|
273880
|
-
/**
|
|
273881
|
-
* @internal
|
|
273882
|
-
* Checked version of {@link XmlNode#addAttribute(string)} for codegen brevity.
|
|
273883
|
-
*/
|
|
273884
273760
|
a(name14, value) {
|
|
273885
273761
|
if (value != null) {
|
|
273886
273762
|
this.attributes[name14] = value;
|
|
273887
273763
|
}
|
|
273888
273764
|
return this;
|
|
273889
273765
|
}
|
|
273890
|
-
/**
|
|
273891
|
-
* Create a child node.
|
|
273892
|
-
* Used in serialization of string fields.
|
|
273893
|
-
* @internal
|
|
273894
|
-
*/
|
|
273895
273766
|
cc(input, field, withName = field) {
|
|
273896
273767
|
if (input[field] != null) {
|
|
273897
273768
|
const node = _XmlNode.of(field, input[field]).withName(withName);
|
|
273898
273769
|
this.c(node);
|
|
273899
273770
|
}
|
|
273900
273771
|
}
|
|
273901
|
-
/**
|
|
273902
|
-
* Creates list child nodes.
|
|
273903
|
-
* @internal
|
|
273904
|
-
*/
|
|
273905
273772
|
l(input, listName, memberName, valueProvider) {
|
|
273906
273773
|
if (input[listName] != null) {
|
|
273907
273774
|
const nodes = valueProvider();
|
|
@@ -273911,10 +273778,6 @@ var require_dist_cjs28 = __commonJS({
|
|
|
273911
273778
|
});
|
|
273912
273779
|
}
|
|
273913
273780
|
}
|
|
273914
|
-
/**
|
|
273915
|
-
* Creates list child nodes with container.
|
|
273916
|
-
* @internal
|
|
273917
|
-
*/
|
|
273918
273781
|
lc(input, listName, memberName, valueProvider) {
|
|
273919
273782
|
if (input[listName] != null) {
|
|
273920
273783
|
const nodes = valueProvider();
|
|
@@ -273938,7 +273801,14 @@ var require_dist_cjs28 = __commonJS({
|
|
|
273938
273801
|
return xmlText += !hasChildren ? "/>" : `>${this.children.map((c3) => c3.toString()).join("")}</${this.name}>`;
|
|
273939
273802
|
}
|
|
273940
273803
|
};
|
|
273941
|
-
|
|
273804
|
+
Object.defineProperty(exports2, "parseXML", {
|
|
273805
|
+
enumerable: true,
|
|
273806
|
+
get: function() {
|
|
273807
|
+
return xmlParser.parseXML;
|
|
273808
|
+
}
|
|
273809
|
+
});
|
|
273810
|
+
exports2.XmlNode = XmlNode2;
|
|
273811
|
+
exports2.XmlText = XmlText2;
|
|
273942
273812
|
}
|
|
273943
273813
|
});
|
|
273944
273814
|
|
|
@@ -274339,7 +274209,7 @@ var init_AwsQueryProtocol = __esm({
|
|
|
274339
274209
|
};
|
|
274340
274210
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName));
|
|
274341
274211
|
const ns = NormalizedSchema.of(errorSchema);
|
|
274342
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
274212
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
274343
274213
|
const exception = new ErrorCtor(message);
|
|
274344
274214
|
const output = {
|
|
274345
274215
|
Error: errorData.Error
|
|
@@ -274802,7 +274672,7 @@ var init_AwsRestXmlProtocol = __esm({
|
|
|
274802
274672
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
274803
274673
|
const ns = NormalizedSchema.of(errorSchema);
|
|
274804
274674
|
const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
274805
|
-
const ErrorCtor = TypeRegistry.for(errorSchema
|
|
274675
|
+
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
274806
274676
|
const exception = new ErrorCtor(message);
|
|
274807
274677
|
await this.deserializeHttpMessage(errorSchema, context3, response, dataObject);
|
|
274808
274678
|
const output = {};
|
|
@@ -276043,32 +275913,9 @@ var require_dist_cjs33 = __commonJS({
|
|
|
276043
275913
|
|
|
276044
275914
|
// node_modules/@aws-sdk/util-format-url/dist-cjs/index.js
|
|
276045
275915
|
var require_dist_cjs34 = __commonJS({
|
|
276046
|
-
"node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2
|
|
275916
|
+
"node_modules/@aws-sdk/util-format-url/dist-cjs/index.js"(exports2) {
|
|
276047
275917
|
"use strict";
|
|
276048
|
-
var
|
|
276049
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
276050
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
276051
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
276052
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
276053
|
-
var __export2 = (target, all) => {
|
|
276054
|
-
for (var name14 in all)
|
|
276055
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
276056
|
-
};
|
|
276057
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
276058
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
276059
|
-
for (let key of __getOwnPropNames2(from))
|
|
276060
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
276061
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
276062
|
-
}
|
|
276063
|
-
return to;
|
|
276064
|
-
};
|
|
276065
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
276066
|
-
var index_exports2 = {};
|
|
276067
|
-
__export2(index_exports2, {
|
|
276068
|
-
formatUrl: () => formatUrl
|
|
276069
|
-
});
|
|
276070
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
276071
|
-
var import_querystring_builder = require_dist_cjs14();
|
|
275918
|
+
var querystringBuilder = require_dist_cjs14();
|
|
276072
275919
|
function formatUrl(request) {
|
|
276073
275920
|
const { port, query: query2 } = request;
|
|
276074
275921
|
let { protocol, path: path7, hostname } = request;
|
|
@@ -276081,7 +275928,7 @@ var require_dist_cjs34 = __commonJS({
|
|
|
276081
275928
|
if (path7 && path7.charAt(0) !== "/") {
|
|
276082
275929
|
path7 = `/${path7}`;
|
|
276083
275930
|
}
|
|
276084
|
-
let queryString = query2 ?
|
|
275931
|
+
let queryString = query2 ? querystringBuilder.buildQueryString(query2) : "";
|
|
276085
275932
|
if (queryString && queryString[0] !== "?") {
|
|
276086
275933
|
queryString = `?${queryString}`;
|
|
276087
275934
|
}
|
|
@@ -276097,7 +275944,7 @@ var require_dist_cjs34 = __commonJS({
|
|
|
276097
275944
|
}
|
|
276098
275945
|
return `${protocol}//${auth}${hostname}${path7}${queryString}${fragment}`;
|
|
276099
275946
|
}
|
|
276100
|
-
|
|
275947
|
+
exports2.formatUrl = formatUrl;
|
|
276101
275948
|
}
|
|
276102
275949
|
});
|
|
276103
275950
|
|
|
@@ -278239,7 +278086,7 @@ var require_package = __commonJS({
|
|
|
278239
278086
|
module2.exports = {
|
|
278240
278087
|
name: "@aws-sdk/client-bedrock-runtime",
|
|
278241
278088
|
description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
278242
|
-
version: "3.
|
|
278089
|
+
version: "3.910.0",
|
|
278243
278090
|
scripts: {
|
|
278244
278091
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
278245
278092
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -278258,49 +278105,49 @@ var require_package = __commonJS({
|
|
|
278258
278105
|
dependencies: {
|
|
278259
278106
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
278260
278107
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
278261
|
-
"@aws-sdk/core": "3.
|
|
278262
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
278263
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
278264
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
278265
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
278266
|
-
"@aws-sdk/middleware-logger": "3.
|
|
278267
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
278268
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
278269
|
-
"@aws-sdk/middleware-websocket": "3.
|
|
278270
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
278271
|
-
"@aws-sdk/token-providers": "3.
|
|
278272
|
-
"@aws-sdk/types": "3.
|
|
278273
|
-
"@aws-sdk/util-endpoints": "3.
|
|
278274
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
278275
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
278276
|
-
"@smithy/config-resolver": "^4.3.
|
|
278277
|
-
"@smithy/core": "^3.
|
|
278278
|
-
"@smithy/eventstream-serde-browser": "^4.2.
|
|
278279
|
-
"@smithy/eventstream-serde-config-resolver": "^4.3.
|
|
278280
|
-
"@smithy/eventstream-serde-node": "^4.2.
|
|
278281
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
278282
|
-
"@smithy/hash-node": "^4.2.
|
|
278283
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
278284
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
278285
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
278286
|
-
"@smithy/middleware-retry": "^4.4.
|
|
278287
|
-
"@smithy/middleware-serde": "^4.2.
|
|
278288
|
-
"@smithy/middleware-stack": "^4.2.
|
|
278289
|
-
"@smithy/node-config-provider": "^4.3.
|
|
278290
|
-
"@smithy/node-http-handler": "^4.
|
|
278291
|
-
"@smithy/protocol-http": "^5.3.
|
|
278292
|
-
"@smithy/smithy-client": "^4.
|
|
278293
|
-
"@smithy/types": "^4.
|
|
278294
|
-
"@smithy/url-parser": "^4.2.
|
|
278108
|
+
"@aws-sdk/core": "3.910.0",
|
|
278109
|
+
"@aws-sdk/credential-provider-node": "3.910.0",
|
|
278110
|
+
"@aws-sdk/eventstream-handler-node": "3.910.0",
|
|
278111
|
+
"@aws-sdk/middleware-eventstream": "3.910.0",
|
|
278112
|
+
"@aws-sdk/middleware-host-header": "3.910.0",
|
|
278113
|
+
"@aws-sdk/middleware-logger": "3.910.0",
|
|
278114
|
+
"@aws-sdk/middleware-recursion-detection": "3.910.0",
|
|
278115
|
+
"@aws-sdk/middleware-user-agent": "3.910.0",
|
|
278116
|
+
"@aws-sdk/middleware-websocket": "3.910.0",
|
|
278117
|
+
"@aws-sdk/region-config-resolver": "3.910.0",
|
|
278118
|
+
"@aws-sdk/token-providers": "3.910.0",
|
|
278119
|
+
"@aws-sdk/types": "3.910.0",
|
|
278120
|
+
"@aws-sdk/util-endpoints": "3.910.0",
|
|
278121
|
+
"@aws-sdk/util-user-agent-browser": "3.910.0",
|
|
278122
|
+
"@aws-sdk/util-user-agent-node": "3.910.0",
|
|
278123
|
+
"@smithy/config-resolver": "^4.3.2",
|
|
278124
|
+
"@smithy/core": "^3.16.1",
|
|
278125
|
+
"@smithy/eventstream-serde-browser": "^4.2.2",
|
|
278126
|
+
"@smithy/eventstream-serde-config-resolver": "^4.3.2",
|
|
278127
|
+
"@smithy/eventstream-serde-node": "^4.2.2",
|
|
278128
|
+
"@smithy/fetch-http-handler": "^5.3.3",
|
|
278129
|
+
"@smithy/hash-node": "^4.2.2",
|
|
278130
|
+
"@smithy/invalid-dependency": "^4.2.2",
|
|
278131
|
+
"@smithy/middleware-content-length": "^4.2.2",
|
|
278132
|
+
"@smithy/middleware-endpoint": "^4.3.3",
|
|
278133
|
+
"@smithy/middleware-retry": "^4.4.3",
|
|
278134
|
+
"@smithy/middleware-serde": "^4.2.2",
|
|
278135
|
+
"@smithy/middleware-stack": "^4.2.2",
|
|
278136
|
+
"@smithy/node-config-provider": "^4.3.2",
|
|
278137
|
+
"@smithy/node-http-handler": "^4.4.1",
|
|
278138
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
278139
|
+
"@smithy/smithy-client": "^4.8.1",
|
|
278140
|
+
"@smithy/types": "^4.7.1",
|
|
278141
|
+
"@smithy/url-parser": "^4.2.2",
|
|
278295
278142
|
"@smithy/util-base64": "^4.3.0",
|
|
278296
278143
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
278297
278144
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
278298
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
278299
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
278300
|
-
"@smithy/util-endpoints": "^3.2.
|
|
278301
|
-
"@smithy/util-middleware": "^4.2.
|
|
278302
|
-
"@smithy/util-retry": "^4.2.
|
|
278303
|
-
"@smithy/util-stream": "^4.5.
|
|
278145
|
+
"@smithy/util-defaults-mode-browser": "^4.3.2",
|
|
278146
|
+
"@smithy/util-defaults-mode-node": "^4.2.3",
|
|
278147
|
+
"@smithy/util-endpoints": "^3.2.2",
|
|
278148
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
278149
|
+
"@smithy/util-retry": "^4.2.2",
|
|
278150
|
+
"@smithy/util-stream": "^4.5.2",
|
|
278304
278151
|
"@smithy/util-utf8": "^4.2.0",
|
|
278305
278152
|
"@smithy/uuid": "^1.1.0",
|
|
278306
278153
|
tslib: "^2.6.2"
|
|
@@ -279020,7 +278867,7 @@ var init_package = __esm({
|
|
|
279020
278867
|
"node_modules/@aws-sdk/nested-clients/package.json"() {
|
|
279021
278868
|
package_default = {
|
|
279022
278869
|
name: "@aws-sdk/nested-clients",
|
|
279023
|
-
version: "3.
|
|
278870
|
+
version: "3.910.0",
|
|
279024
278871
|
description: "Nested clients for AWS SDK packages.",
|
|
279025
278872
|
main: "./dist-cjs/index.js",
|
|
279026
278873
|
module: "./dist-es/index.js",
|
|
@@ -279049,40 +278896,40 @@ var init_package = __esm({
|
|
|
279049
278896
|
dependencies: {
|
|
279050
278897
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
279051
278898
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
279052
|
-
"@aws-sdk/core": "3.
|
|
279053
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
279054
|
-
"@aws-sdk/middleware-logger": "3.
|
|
279055
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
279056
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
279057
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
279058
|
-
"@aws-sdk/types": "3.
|
|
279059
|
-
"@aws-sdk/util-endpoints": "3.
|
|
279060
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
279061
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
279062
|
-
"@smithy/config-resolver": "^4.3.
|
|
279063
|
-
"@smithy/core": "^3.
|
|
279064
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
279065
|
-
"@smithy/hash-node": "^4.2.
|
|
279066
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
279067
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
279068
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
279069
|
-
"@smithy/middleware-retry": "^4.4.
|
|
279070
|
-
"@smithy/middleware-serde": "^4.2.
|
|
279071
|
-
"@smithy/middleware-stack": "^4.2.
|
|
279072
|
-
"@smithy/node-config-provider": "^4.3.
|
|
279073
|
-
"@smithy/node-http-handler": "^4.
|
|
279074
|
-
"@smithy/protocol-http": "^5.3.
|
|
279075
|
-
"@smithy/smithy-client": "^4.
|
|
279076
|
-
"@smithy/types": "^4.
|
|
279077
|
-
"@smithy/url-parser": "^4.2.
|
|
278899
|
+
"@aws-sdk/core": "3.910.0",
|
|
278900
|
+
"@aws-sdk/middleware-host-header": "3.910.0",
|
|
278901
|
+
"@aws-sdk/middleware-logger": "3.910.0",
|
|
278902
|
+
"@aws-sdk/middleware-recursion-detection": "3.910.0",
|
|
278903
|
+
"@aws-sdk/middleware-user-agent": "3.910.0",
|
|
278904
|
+
"@aws-sdk/region-config-resolver": "3.910.0",
|
|
278905
|
+
"@aws-sdk/types": "3.910.0",
|
|
278906
|
+
"@aws-sdk/util-endpoints": "3.910.0",
|
|
278907
|
+
"@aws-sdk/util-user-agent-browser": "3.910.0",
|
|
278908
|
+
"@aws-sdk/util-user-agent-node": "3.910.0",
|
|
278909
|
+
"@smithy/config-resolver": "^4.3.2",
|
|
278910
|
+
"@smithy/core": "^3.16.1",
|
|
278911
|
+
"@smithy/fetch-http-handler": "^5.3.3",
|
|
278912
|
+
"@smithy/hash-node": "^4.2.2",
|
|
278913
|
+
"@smithy/invalid-dependency": "^4.2.2",
|
|
278914
|
+
"@smithy/middleware-content-length": "^4.2.2",
|
|
278915
|
+
"@smithy/middleware-endpoint": "^4.3.3",
|
|
278916
|
+
"@smithy/middleware-retry": "^4.4.3",
|
|
278917
|
+
"@smithy/middleware-serde": "^4.2.2",
|
|
278918
|
+
"@smithy/middleware-stack": "^4.2.2",
|
|
278919
|
+
"@smithy/node-config-provider": "^4.3.2",
|
|
278920
|
+
"@smithy/node-http-handler": "^4.4.1",
|
|
278921
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
278922
|
+
"@smithy/smithy-client": "^4.8.1",
|
|
278923
|
+
"@smithy/types": "^4.7.1",
|
|
278924
|
+
"@smithy/url-parser": "^4.2.2",
|
|
279078
278925
|
"@smithy/util-base64": "^4.3.0",
|
|
279079
278926
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
279080
278927
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
279081
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
279082
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
279083
|
-
"@smithy/util-endpoints": "^3.2.
|
|
279084
|
-
"@smithy/util-middleware": "^4.2.
|
|
279085
|
-
"@smithy/util-retry": "^4.2.
|
|
278928
|
+
"@smithy/util-defaults-mode-browser": "^4.3.2",
|
|
278929
|
+
"@smithy/util-defaults-mode-node": "^4.2.3",
|
|
278930
|
+
"@smithy/util-endpoints": "^3.2.2",
|
|
278931
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
278932
|
+
"@smithy/util-retry": "^4.2.2",
|
|
279086
278933
|
"@smithy/util-utf8": "^4.2.0",
|
|
279087
278934
|
tslib: "^2.6.2"
|
|
279088
278935
|
},
|
|
@@ -279493,38 +279340,9 @@ var init_runtimeConfig = __esm({
|
|
|
279493
279340
|
|
|
279494
279341
|
// node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
|
|
279495
279342
|
var require_dist_cjs55 = __commonJS({
|
|
279496
|
-
"node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2
|
|
279343
|
+
"node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2) {
|
|
279497
279344
|
"use strict";
|
|
279498
|
-
var
|
|
279499
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
279500
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
279501
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
279502
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
279503
|
-
var __export2 = (target, all) => {
|
|
279504
|
-
for (var name14 in all)
|
|
279505
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
279506
|
-
};
|
|
279507
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
279508
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
279509
|
-
for (let key of __getOwnPropNames2(from))
|
|
279510
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
279511
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
279512
|
-
}
|
|
279513
|
-
return to;
|
|
279514
|
-
};
|
|
279515
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
279516
|
-
var index_exports2 = {};
|
|
279517
|
-
__export2(index_exports2, {
|
|
279518
|
-
NODE_REGION_CONFIG_FILE_OPTIONS: () => NODE_REGION_CONFIG_FILE_OPTIONS3,
|
|
279519
|
-
NODE_REGION_CONFIG_OPTIONS: () => NODE_REGION_CONFIG_OPTIONS3,
|
|
279520
|
-
REGION_ENV_NAME: () => REGION_ENV_NAME,
|
|
279521
|
-
REGION_INI_NAME: () => REGION_INI_NAME,
|
|
279522
|
-
getAwsRegionExtensionConfiguration: () => getAwsRegionExtensionConfiguration3,
|
|
279523
|
-
resolveAwsRegionExtensionConfiguration: () => resolveAwsRegionExtensionConfiguration3,
|
|
279524
|
-
resolveRegionConfig: () => resolveRegionConfig3
|
|
279525
|
-
});
|
|
279526
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
279527
|
-
var getAwsRegionExtensionConfiguration3 = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
279345
|
+
var getAwsRegionExtensionConfiguration3 = (runtimeConfig) => {
|
|
279528
279346
|
return {
|
|
279529
279347
|
setRegion(region) {
|
|
279530
279348
|
runtimeConfig.region = region;
|
|
@@ -279533,48 +279351,55 @@ var require_dist_cjs55 = __commonJS({
|
|
|
279533
279351
|
return runtimeConfig.region;
|
|
279534
279352
|
}
|
|
279535
279353
|
};
|
|
279536
|
-
}
|
|
279537
|
-
var resolveAwsRegionExtensionConfiguration3 =
|
|
279354
|
+
};
|
|
279355
|
+
var resolveAwsRegionExtensionConfiguration3 = (awsRegionExtensionConfiguration) => {
|
|
279538
279356
|
return {
|
|
279539
279357
|
region: awsRegionExtensionConfiguration.region()
|
|
279540
279358
|
};
|
|
279541
|
-
}
|
|
279359
|
+
};
|
|
279542
279360
|
var REGION_ENV_NAME = "AWS_REGION";
|
|
279543
279361
|
var REGION_INI_NAME = "region";
|
|
279544
279362
|
var NODE_REGION_CONFIG_OPTIONS3 = {
|
|
279545
|
-
environmentVariableSelector:
|
|
279546
|
-
configFileSelector:
|
|
279547
|
-
default:
|
|
279363
|
+
environmentVariableSelector: (env) => env[REGION_ENV_NAME],
|
|
279364
|
+
configFileSelector: (profile) => profile[REGION_INI_NAME],
|
|
279365
|
+
default: () => {
|
|
279548
279366
|
throw new Error("Region is missing");
|
|
279549
|
-
}
|
|
279367
|
+
}
|
|
279550
279368
|
};
|
|
279551
279369
|
var NODE_REGION_CONFIG_FILE_OPTIONS3 = {
|
|
279552
279370
|
preferredFile: "credentials"
|
|
279553
279371
|
};
|
|
279554
|
-
var isFipsRegion =
|
|
279555
|
-
var getRealRegion =
|
|
279556
|
-
var resolveRegionConfig3 =
|
|
279372
|
+
var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
|
279373
|
+
var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
|
|
279374
|
+
var resolveRegionConfig3 = (input) => {
|
|
279557
279375
|
const { region, useFipsEndpoint } = input;
|
|
279558
279376
|
if (!region) {
|
|
279559
279377
|
throw new Error("Region is missing");
|
|
279560
279378
|
}
|
|
279561
279379
|
return Object.assign(input, {
|
|
279562
|
-
region:
|
|
279380
|
+
region: async () => {
|
|
279563
279381
|
if (typeof region === "string") {
|
|
279564
279382
|
return getRealRegion(region);
|
|
279565
279383
|
}
|
|
279566
279384
|
const providedRegion = await region();
|
|
279567
279385
|
return getRealRegion(providedRegion);
|
|
279568
|
-
},
|
|
279569
|
-
useFipsEndpoint:
|
|
279386
|
+
},
|
|
279387
|
+
useFipsEndpoint: async () => {
|
|
279570
279388
|
const providedRegion = typeof region === "string" ? region : await region();
|
|
279571
279389
|
if (isFipsRegion(providedRegion)) {
|
|
279572
279390
|
return true;
|
|
279573
279391
|
}
|
|
279574
279392
|
return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
|
|
279575
|
-
}
|
|
279393
|
+
}
|
|
279576
279394
|
});
|
|
279577
|
-
}
|
|
279395
|
+
};
|
|
279396
|
+
exports2.NODE_REGION_CONFIG_FILE_OPTIONS = NODE_REGION_CONFIG_FILE_OPTIONS3;
|
|
279397
|
+
exports2.NODE_REGION_CONFIG_OPTIONS = NODE_REGION_CONFIG_OPTIONS3;
|
|
279398
|
+
exports2.REGION_ENV_NAME = REGION_ENV_NAME;
|
|
279399
|
+
exports2.REGION_INI_NAME = REGION_INI_NAME;
|
|
279400
|
+
exports2.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration3;
|
|
279401
|
+
exports2.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration3;
|
|
279402
|
+
exports2.resolveRegionConfig = resolveRegionConfig3;
|
|
279578
279403
|
}
|
|
279579
279404
|
});
|
|
279580
279405
|
|
|
@@ -280495,7 +280320,7 @@ var require_package2 = __commonJS({
|
|
|
280495
280320
|
module2.exports = {
|
|
280496
280321
|
name: "@aws-sdk/client-sso",
|
|
280497
280322
|
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
280498
|
-
version: "3.
|
|
280323
|
+
version: "3.910.0",
|
|
280499
280324
|
scripts: {
|
|
280500
280325
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
280501
280326
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -280514,40 +280339,40 @@ var require_package2 = __commonJS({
|
|
|
280514
280339
|
dependencies: {
|
|
280515
280340
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
280516
280341
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
280517
|
-
"@aws-sdk/core": "3.
|
|
280518
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
280519
|
-
"@aws-sdk/middleware-logger": "3.
|
|
280520
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
280521
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
280522
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
280523
|
-
"@aws-sdk/types": "3.
|
|
280524
|
-
"@aws-sdk/util-endpoints": "3.
|
|
280525
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
280526
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
280527
|
-
"@smithy/config-resolver": "^4.3.
|
|
280528
|
-
"@smithy/core": "^3.
|
|
280529
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
280530
|
-
"@smithy/hash-node": "^4.2.
|
|
280531
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
280532
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
280533
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
280534
|
-
"@smithy/middleware-retry": "^4.4.
|
|
280535
|
-
"@smithy/middleware-serde": "^4.2.
|
|
280536
|
-
"@smithy/middleware-stack": "^4.2.
|
|
280537
|
-
"@smithy/node-config-provider": "^4.3.
|
|
280538
|
-
"@smithy/node-http-handler": "^4.
|
|
280539
|
-
"@smithy/protocol-http": "^5.3.
|
|
280540
|
-
"@smithy/smithy-client": "^4.
|
|
280541
|
-
"@smithy/types": "^4.
|
|
280542
|
-
"@smithy/url-parser": "^4.2.
|
|
280342
|
+
"@aws-sdk/core": "3.910.0",
|
|
280343
|
+
"@aws-sdk/middleware-host-header": "3.910.0",
|
|
280344
|
+
"@aws-sdk/middleware-logger": "3.910.0",
|
|
280345
|
+
"@aws-sdk/middleware-recursion-detection": "3.910.0",
|
|
280346
|
+
"@aws-sdk/middleware-user-agent": "3.910.0",
|
|
280347
|
+
"@aws-sdk/region-config-resolver": "3.910.0",
|
|
280348
|
+
"@aws-sdk/types": "3.910.0",
|
|
280349
|
+
"@aws-sdk/util-endpoints": "3.910.0",
|
|
280350
|
+
"@aws-sdk/util-user-agent-browser": "3.910.0",
|
|
280351
|
+
"@aws-sdk/util-user-agent-node": "3.910.0",
|
|
280352
|
+
"@smithy/config-resolver": "^4.3.2",
|
|
280353
|
+
"@smithy/core": "^3.16.1",
|
|
280354
|
+
"@smithy/fetch-http-handler": "^5.3.3",
|
|
280355
|
+
"@smithy/hash-node": "^4.2.2",
|
|
280356
|
+
"@smithy/invalid-dependency": "^4.2.2",
|
|
280357
|
+
"@smithy/middleware-content-length": "^4.2.2",
|
|
280358
|
+
"@smithy/middleware-endpoint": "^4.3.3",
|
|
280359
|
+
"@smithy/middleware-retry": "^4.4.3",
|
|
280360
|
+
"@smithy/middleware-serde": "^4.2.2",
|
|
280361
|
+
"@smithy/middleware-stack": "^4.2.2",
|
|
280362
|
+
"@smithy/node-config-provider": "^4.3.2",
|
|
280363
|
+
"@smithy/node-http-handler": "^4.4.1",
|
|
280364
|
+
"@smithy/protocol-http": "^5.3.2",
|
|
280365
|
+
"@smithy/smithy-client": "^4.8.1",
|
|
280366
|
+
"@smithy/types": "^4.7.1",
|
|
280367
|
+
"@smithy/url-parser": "^4.2.2",
|
|
280543
280368
|
"@smithy/util-base64": "^4.3.0",
|
|
280544
280369
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
280545
280370
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
280546
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
280547
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
280548
|
-
"@smithy/util-endpoints": "^3.2.
|
|
280549
|
-
"@smithy/util-middleware": "^4.2.
|
|
280550
|
-
"@smithy/util-retry": "^4.2.
|
|
280371
|
+
"@smithy/util-defaults-mode-browser": "^4.3.2",
|
|
280372
|
+
"@smithy/util-defaults-mode-node": "^4.2.3",
|
|
280373
|
+
"@smithy/util-endpoints": "^3.2.2",
|
|
280374
|
+
"@smithy/util-middleware": "^4.2.2",
|
|
280375
|
+
"@smithy/util-retry": "^4.2.2",
|
|
280551
280376
|
"@smithy/util-utf8": "^4.2.0",
|
|
280552
280377
|
tslib: "^2.6.2"
|
|
280553
280378
|
},
|
|
@@ -283157,37 +282982,11 @@ var require_dist_cjs62 = __commonJS({
|
|
|
283157
282982
|
|
|
283158
282983
|
// node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js
|
|
283159
282984
|
var require_dist_cjs63 = __commonJS({
|
|
283160
|
-
"node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js"(exports2
|
|
282985
|
+
"node_modules/@aws-sdk/eventstream-handler-node/dist-cjs/index.js"(exports2) {
|
|
283161
282986
|
"use strict";
|
|
283162
|
-
var
|
|
283163
|
-
var
|
|
283164
|
-
var
|
|
283165
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
283166
|
-
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
283167
|
-
var __export2 = (target, all) => {
|
|
283168
|
-
for (var name14 in all)
|
|
283169
|
-
__defProp2(target, name14, { get: all[name14], enumerable: true });
|
|
283170
|
-
};
|
|
283171
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
283172
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
283173
|
-
for (let key of __getOwnPropNames2(from))
|
|
283174
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
283175
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
283176
|
-
}
|
|
283177
|
-
return to;
|
|
283178
|
-
};
|
|
283179
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
283180
|
-
var index_exports2 = {};
|
|
283181
|
-
__export2(index_exports2, {
|
|
283182
|
-
eventStreamPayloadHandlerProvider: () => eventStreamPayloadHandlerProvider
|
|
283183
|
-
});
|
|
283184
|
-
module2.exports = __toCommonJS2(index_exports2);
|
|
283185
|
-
var import_eventstream_codec = require_dist_cjs33();
|
|
283186
|
-
var import_stream = __nccwpck_require__(2203);
|
|
283187
|
-
var EventSigningStream = class extends import_stream.Transform {
|
|
283188
|
-
static {
|
|
283189
|
-
__name(this, "EventSigningStream");
|
|
283190
|
-
}
|
|
282987
|
+
var eventstreamCodec = require_dist_cjs33();
|
|
282988
|
+
var stream2 = __nccwpck_require__(2203);
|
|
282989
|
+
var EventSigningStream = class extends stream2.Transform {
|
|
283191
282990
|
priorSignature;
|
|
283192
282991
|
messageSigner;
|
|
283193
282992
|
eventStreamCodec;
|
|
@@ -283210,18 +283009,15 @@ var require_dist_cjs63 = __commonJS({
|
|
|
283210
283009
|
const dateHeader = {
|
|
283211
283010
|
":date": { type: "timestamp", value: now }
|
|
283212
283011
|
};
|
|
283213
|
-
const signedMessage = await this.messageSigner.sign(
|
|
283214
|
-
{
|
|
283215
|
-
|
|
283216
|
-
|
|
283217
|
-
headers: dateHeader
|
|
283218
|
-
},
|
|
283219
|
-
priorSignature: this.priorSignature
|
|
283012
|
+
const signedMessage = await this.messageSigner.sign({
|
|
283013
|
+
message: {
|
|
283014
|
+
body: chunk,
|
|
283015
|
+
headers: dateHeader
|
|
283220
283016
|
},
|
|
283221
|
-
|
|
283222
|
-
|
|
283223
|
-
|
|
283224
|
-
);
|
|
283017
|
+
priorSignature: this.priorSignature
|
|
283018
|
+
}, {
|
|
283019
|
+
signingDate: now
|
|
283020
|
+
});
|
|
283225
283021
|
this.priorSignature = signedMessage.signature;
|
|
283226
283022
|
const serializedSigned = this.eventStreamCodec.encode({
|
|
283227
283023
|
headers: {
|
|
@@ -283244,27 +283040,23 @@ var require_dist_cjs63 = __commonJS({
|
|
|
283244
283040
|
const buf = Buffer.from(signature, "hex");
|
|
283245
283041
|
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
283246
283042
|
}
|
|
283247
|
-
__name(getSignatureBinary, "getSignatureBinary");
|
|
283248
283043
|
var EventStreamPayloadHandler = class {
|
|
283249
|
-
static {
|
|
283250
|
-
__name(this, "EventStreamPayloadHandler");
|
|
283251
|
-
}
|
|
283252
283044
|
messageSigner;
|
|
283253
283045
|
eventStreamCodec;
|
|
283254
283046
|
systemClockOffsetProvider;
|
|
283255
283047
|
constructor(options) {
|
|
283256
283048
|
this.messageSigner = options.messageSigner;
|
|
283257
|
-
this.eventStreamCodec = new
|
|
283049
|
+
this.eventStreamCodec = new eventstreamCodec.EventStreamCodec(options.utf8Encoder, options.utf8Decoder);
|
|
283258
283050
|
this.systemClockOffsetProvider = async () => options.systemClockOffset ?? 0;
|
|
283259
283051
|
}
|
|
283260
283052
|
async handle(next, args, context3 = {}) {
|
|
283261
283053
|
const request = args.request;
|
|
283262
283054
|
const { body: payload2, query: query2 } = request;
|
|
283263
|
-
if (!(payload2 instanceof
|
|
283055
|
+
if (!(payload2 instanceof stream2.Readable)) {
|
|
283264
283056
|
throw new Error("Eventstream payload must be a Readable stream.");
|
|
283265
283057
|
}
|
|
283266
283058
|
const payloadStream = payload2;
|
|
283267
|
-
request.body = new
|
|
283059
|
+
request.body = new stream2.PassThrough({
|
|
283268
283060
|
objectMode: true
|
|
283269
283061
|
});
|
|
283270
283062
|
const match2 = request.headers?.authorization?.match(/Signature=([\w]+)$/);
|
|
@@ -283275,7 +283067,7 @@ var require_dist_cjs63 = __commonJS({
|
|
|
283275
283067
|
messageSigner: await this.messageSigner(),
|
|
283276
283068
|
systemClockOffsetProvider: this.systemClockOffsetProvider
|
|
283277
283069
|
});
|
|
283278
|
-
|
|
283070
|
+
stream2.pipeline(payloadStream, signingStream, request.body, (err) => {
|
|
283279
283071
|
if (err) {
|
|
283280
283072
|
throw err;
|
|
283281
283073
|
}
|
|
@@ -283290,7 +283082,8 @@ var require_dist_cjs63 = __commonJS({
|
|
|
283290
283082
|
return result;
|
|
283291
283083
|
}
|
|
283292
283084
|
};
|
|
283293
|
-
var eventStreamPayloadHandlerProvider =
|
|
283085
|
+
var eventStreamPayloadHandlerProvider = (options) => new EventStreamPayloadHandler(options);
|
|
283086
|
+
exports2.eventStreamPayloadHandlerProvider = eventStreamPayloadHandlerProvider;
|
|
283294
283087
|
}
|
|
283295
283088
|
});
|
|
283296
283089
|
|
|
@@ -328849,13 +328642,14 @@ You are working with a repository located at: ${searchDirectory}
|
|
|
328849
328642
|
maxTokens: maxResponseTokens,
|
|
328850
328643
|
temperature: 0.3
|
|
328851
328644
|
});
|
|
328645
|
+
const usagePromise = result.usage;
|
|
328852
328646
|
for await (const delta of result.textStream) {
|
|
328853
328647
|
assistantResponseContent += delta;
|
|
328854
328648
|
if (options.onStream) {
|
|
328855
328649
|
options.onStream(delta);
|
|
328856
328650
|
}
|
|
328857
328651
|
}
|
|
328858
|
-
const usage = await
|
|
328652
|
+
const usage = await usagePromise;
|
|
328859
328653
|
if (usage) {
|
|
328860
328654
|
this.tokenCounter.recordUsage(usage, result.experimental_providerMetadata);
|
|
328861
328655
|
}
|
|
@@ -330006,13 +329800,12 @@ var init_simpleTelemetry = __esm({
|
|
|
330006
329800
|
});
|
|
330007
329801
|
|
|
330008
329802
|
// src/agent/fileSpanExporter.js
|
|
330009
|
-
var import_fs9, import_core17,
|
|
329803
|
+
var import_fs9, import_core17, FileSpanExporter;
|
|
330010
329804
|
var init_fileSpanExporter = __esm({
|
|
330011
329805
|
"src/agent/fileSpanExporter.js"() {
|
|
330012
329806
|
"use strict";
|
|
330013
329807
|
import_fs9 = __nccwpck_require__(79896);
|
|
330014
|
-
import_core17 =
|
|
330015
|
-
({ ExportResultCode } = import_core17.default);
|
|
329808
|
+
import_core17 = __nccwpck_require__(24637);
|
|
330016
329809
|
FileSpanExporter = class {
|
|
330017
329810
|
constructor(filePath = "./traces.jsonl") {
|
|
330018
329811
|
this.filePath = filePath;
|
|
@@ -330028,7 +329821,7 @@ var init_fileSpanExporter = __esm({
|
|
|
330028
329821
|
*/
|
|
330029
329822
|
export(spans, resultCallback) {
|
|
330030
329823
|
if (!spans || spans.length === 0) {
|
|
330031
|
-
resultCallback({ code: ExportResultCode.SUCCESS });
|
|
329824
|
+
resultCallback({ code: import_core17.ExportResultCode.SUCCESS });
|
|
330032
329825
|
return;
|
|
330033
329826
|
}
|
|
330034
329827
|
try {
|
|
@@ -330079,11 +329872,11 @@ var init_fileSpanExporter = __esm({
|
|
|
330079
329872
|
};
|
|
330080
329873
|
this.stream.write(JSON.stringify(spanData) + "\n");
|
|
330081
329874
|
});
|
|
330082
|
-
resultCallback({ code: ExportResultCode.SUCCESS });
|
|
329875
|
+
resultCallback({ code: import_core17.ExportResultCode.SUCCESS });
|
|
330083
329876
|
} catch (error2) {
|
|
330084
329877
|
console.error(`[FileSpanExporter] Export error: ${error2.message}`);
|
|
330085
329878
|
resultCallback({
|
|
330086
|
-
code: ExportResultCode.FAILED,
|
|
329879
|
+
code: import_core17.ExportResultCode.FAILED,
|
|
330087
329880
|
error: error2
|
|
330088
329881
|
});
|
|
330089
329882
|
}
|
|
@@ -330169,23 +329962,19 @@ function initializeTelemetryFromOptions(options) {
|
|
|
330169
329962
|
config.initialize();
|
|
330170
329963
|
return config;
|
|
330171
329964
|
}
|
|
330172
|
-
var import_sdk_node, import_resources, import_semantic_conventions, import_api, import_exporter_trace_otlp_http, import_sdk_trace_base, import_fs10, import_path11,
|
|
329965
|
+
var import_sdk_node, import_resources, import_semantic_conventions, import_api, import_exporter_trace_otlp_http, import_sdk_trace_base, import_fs10, import_path11, TelemetryConfig;
|
|
330173
329966
|
var init_telemetry = __esm({
|
|
330174
329967
|
"src/agent/telemetry.js"() {
|
|
330175
329968
|
"use strict";
|
|
330176
|
-
import_sdk_node =
|
|
330177
|
-
import_resources =
|
|
329969
|
+
import_sdk_node = __nccwpck_require__(17241);
|
|
329970
|
+
import_resources = __nccwpck_require__(75647);
|
|
330178
329971
|
import_semantic_conventions = __nccwpck_require__(13695);
|
|
330179
329972
|
import_api = __nccwpck_require__(63914);
|
|
330180
|
-
import_exporter_trace_otlp_http =
|
|
330181
|
-
import_sdk_trace_base =
|
|
329973
|
+
import_exporter_trace_otlp_http = __nccwpck_require__(86004);
|
|
329974
|
+
import_sdk_trace_base = __nccwpck_require__(94952);
|
|
330182
329975
|
import_fs10 = __nccwpck_require__(79896);
|
|
330183
329976
|
import_path11 = __nccwpck_require__(16928);
|
|
330184
329977
|
init_fileSpanExporter();
|
|
330185
|
-
({ NodeSDK } = import_sdk_node.default);
|
|
330186
|
-
({ Resource } = import_resources.default);
|
|
330187
|
-
({ OTLPTraceExporter } = import_exporter_trace_otlp_http.default);
|
|
330188
|
-
({ BatchSpanProcessor, ConsoleSpanExporter } = import_sdk_trace_base.default);
|
|
330189
329978
|
TelemetryConfig = class {
|
|
330190
329979
|
constructor(options = {}) {
|
|
330191
329980
|
this.serviceName = options.serviceName || "probe-agent";
|
|
@@ -330206,7 +329995,7 @@ var init_telemetry = __esm({
|
|
|
330206
329995
|
console.warn("Telemetry already initialized");
|
|
330207
329996
|
return;
|
|
330208
329997
|
}
|
|
330209
|
-
const resource =
|
|
329998
|
+
const resource = (0, import_resources.resourceFromAttributes)({
|
|
330210
329999
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: this.serviceName,
|
|
330211
330000
|
[import_semantic_conventions.ATTR_SERVICE_VERSION]: this.serviceVersion
|
|
330212
330001
|
});
|
|
@@ -330218,7 +330007,7 @@ var init_telemetry = __esm({
|
|
|
330218
330007
|
(0, import_fs10.mkdirSync)(dir, { recursive: true });
|
|
330219
330008
|
}
|
|
330220
330009
|
const fileExporter = new FileSpanExporter(this.filePath);
|
|
330221
|
-
spanProcessors.push(new BatchSpanProcessor(fileExporter, {
|
|
330010
|
+
spanProcessors.push(new import_sdk_trace_base.BatchSpanProcessor(fileExporter, {
|
|
330222
330011
|
maxQueueSize: 2048,
|
|
330223
330012
|
maxExportBatchSize: 512,
|
|
330224
330013
|
scheduledDelayMillis: 500,
|
|
@@ -330231,10 +330020,10 @@ var init_telemetry = __esm({
|
|
|
330231
330020
|
}
|
|
330232
330021
|
if (this.enableRemote) {
|
|
330233
330022
|
try {
|
|
330234
|
-
const remoteExporter = new OTLPTraceExporter({
|
|
330023
|
+
const remoteExporter = new import_exporter_trace_otlp_http.OTLPTraceExporter({
|
|
330235
330024
|
url: this.remoteEndpoint
|
|
330236
330025
|
});
|
|
330237
|
-
spanProcessors.push(new BatchSpanProcessor(remoteExporter, {
|
|
330026
|
+
spanProcessors.push(new import_sdk_trace_base.BatchSpanProcessor(remoteExporter, {
|
|
330238
330027
|
maxQueueSize: 2048,
|
|
330239
330028
|
maxExportBatchSize: 512,
|
|
330240
330029
|
scheduledDelayMillis: 500,
|
|
@@ -330246,8 +330035,8 @@ var init_telemetry = __esm({
|
|
|
330246
330035
|
}
|
|
330247
330036
|
}
|
|
330248
330037
|
if (this.enableConsole) {
|
|
330249
|
-
const consoleExporter = new ConsoleSpanExporter();
|
|
330250
|
-
spanProcessors.push(new BatchSpanProcessor(consoleExporter, {
|
|
330038
|
+
const consoleExporter = new import_sdk_trace_base.ConsoleSpanExporter();
|
|
330039
|
+
spanProcessors.push(new import_sdk_trace_base.BatchSpanProcessor(consoleExporter, {
|
|
330251
330040
|
maxQueueSize: 2048,
|
|
330252
330041
|
maxExportBatchSize: 512,
|
|
330253
330042
|
scheduledDelayMillis: 500,
|
|
@@ -330259,7 +330048,7 @@ var init_telemetry = __esm({
|
|
|
330259
330048
|
console.log("[Telemetry] No exporters configured, telemetry will not be collected");
|
|
330260
330049
|
return;
|
|
330261
330050
|
}
|
|
330262
|
-
this.sdk = new NodeSDK({
|
|
330051
|
+
this.sdk = new import_sdk_node.NodeSDK({
|
|
330263
330052
|
resource,
|
|
330264
330053
|
spanProcessors
|
|
330265
330054
|
});
|
|
@@ -360393,7 +360182,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"assert":true,"node:assert":[">= 14.1
|
|
|
360393
360182
|
/***/ ((module) => {
|
|
360394
360183
|
|
|
360395
360184
|
"use strict";
|
|
360396
|
-
module.exports = {"rE":"0.1.
|
|
360185
|
+
module.exports = {"rE":"0.1.93"};
|
|
360397
360186
|
|
|
360398
360187
|
/***/ })
|
|
360399
360188
|
|