@hasna/skills 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -36
- package/bin/index.js +2151 -650
- package/bin/mcp.js +1787 -625
- package/bin/migrate.js +5 -0
- package/bin/server.js +365 -198
- package/bin/worker.js +346 -179
- package/dist/cli/cli.test-utils.d.ts +14 -0
- package/dist/cli/commands/publish.d.ts +14 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1100 -152
- package/dist/lib/api-url.d.ts +32 -23
- package/dist/lib/auth-store.d.ts +111 -42
- package/dist/lib/config.d.ts +19 -21
- package/dist/lib/feedback.d.ts +8 -3
- package/dist/lib/fleet-credentials.d.ts +246 -0
- package/dist/lib/portable-skills-files.d.ts +9 -0
- package/dist/lib/portable-skills.d.ts +2 -2
- package/dist/lib/remote-client.d.ts +20 -10
- package/dist/lib/remote-registry.d.ts +31 -11
- package/dist/lib/run-routing.d.ts +6 -4
- package/dist/lib/vendor-host-policy.d.ts +31 -0
- package/dist/sdk/index.d.ts +6 -0
- package/dist/sdk/index.js +1738 -572
- package/dist/server/artifact-storage.d.ts +11 -0
- package/dist/server/skills-api.d.ts +13 -2
- package/dist/storage.js +9 -14
- package/package.json +3 -1
package/bin/worker.js
CHANGED
|
@@ -47,7 +47,7 @@ var __export = (target, all) => {
|
|
|
47
47
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
48
48
|
var __require = import.meta.require;
|
|
49
49
|
|
|
50
|
-
// ../../node_modules/.bun/@smithy+types@4.
|
|
50
|
+
// ../../node_modules/.bun/@smithy+types@4.18.0/node_modules/@smithy/types/dist-cjs/index.js
|
|
51
51
|
var require_dist_cjs = __commonJS((exports) => {
|
|
52
52
|
var HttpAuthLocation;
|
|
53
53
|
(function(HttpAuthLocation2) {
|
|
@@ -138,10 +138,13 @@ var require_dist_cjs = __commonJS((exports) => {
|
|
|
138
138
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
141
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js
|
|
142
142
|
var require_transport = __commonJS((exports) => {
|
|
143
143
|
var { SMITHY_CONTEXT_KEY } = require_dist_cjs();
|
|
144
144
|
var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
|
|
145
|
+
function hasOwn(o, k) {
|
|
146
|
+
return Object.prototype.hasOwnProperty.call(o, k);
|
|
147
|
+
}
|
|
145
148
|
|
|
146
149
|
class HttpRequest {
|
|
147
150
|
method;
|
|
@@ -285,6 +288,8 @@ var require_transport = __commonJS((exports) => {
|
|
|
285
288
|
if (endpoint.headers) {
|
|
286
289
|
v1Endpoint.headers = {};
|
|
287
290
|
for (const name in endpoint.headers) {
|
|
291
|
+
if (!hasOwn(endpoint.headers, name))
|
|
292
|
+
continue;
|
|
288
293
|
v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
|
|
289
294
|
}
|
|
290
295
|
}
|
|
@@ -297,6 +302,7 @@ var require_transport = __commonJS((exports) => {
|
|
|
297
302
|
exports.HttpRequest = HttpRequest;
|
|
298
303
|
exports.HttpResponse = HttpResponse;
|
|
299
304
|
exports.getSmithyContext = getSmithyContext;
|
|
305
|
+
exports.hasOwn = hasOwn;
|
|
300
306
|
exports.isValidHostLabel = isValidHostLabel;
|
|
301
307
|
exports.isValidHostname = isValidHostname;
|
|
302
308
|
exports.normalizeProvider = normalizeProvider;
|
|
@@ -305,7 +311,7 @@ var require_transport = __commonJS((exports) => {
|
|
|
305
311
|
exports.toEndpointV1 = toEndpointV1;
|
|
306
312
|
});
|
|
307
313
|
|
|
308
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
314
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
|
|
309
315
|
var require_schema = __commonJS((exports) => {
|
|
310
316
|
var { getSmithyContext, HttpResponse, toEndpointV1 } = require_transport();
|
|
311
317
|
var deref = (schemaRef) => {
|
|
@@ -974,8 +980,9 @@ var require_schema = __commonJS((exports) => {
|
|
|
974
980
|
exports.translateTraits = translateTraits;
|
|
975
981
|
});
|
|
976
982
|
|
|
977
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
983
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/client/index.js
|
|
978
984
|
var require_client = __commonJS((exports) => {
|
|
985
|
+
var { hasOwn } = require_transport();
|
|
979
986
|
var { getSmithyContext, normalizeProvider } = require_transport();
|
|
980
987
|
exports.getSmithyContext = getSmithyContext;
|
|
981
988
|
exports.normalizeProvider = normalizeProvider;
|
|
@@ -1789,6 +1796,8 @@ var require_client = __commonJS((exports) => {
|
|
|
1789
1796
|
var getChecksumConfiguration = (runtimeConfig) => {
|
|
1790
1797
|
const checksumAlgorithms = [];
|
|
1791
1798
|
for (const id in AlgorithmId) {
|
|
1799
|
+
if (!hasOwn(AlgorithmId, id))
|
|
1800
|
+
continue;
|
|
1792
1801
|
const algorithmId = AlgorithmId[id];
|
|
1793
1802
|
if (runtimeConfig[algorithmId] === undefined) {
|
|
1794
1803
|
continue;
|
|
@@ -1857,7 +1866,9 @@ var require_client = __commonJS((exports) => {
|
|
|
1857
1866
|
var getValueFromTextNode = (obj) => {
|
|
1858
1867
|
const textNodeName = "#text";
|
|
1859
1868
|
for (const key in obj) {
|
|
1860
|
-
if (
|
|
1869
|
+
if (!hasOwn(obj, key))
|
|
1870
|
+
continue;
|
|
1871
|
+
if (obj[key][textNodeName] !== undefined) {
|
|
1861
1872
|
obj[key] = obj[key][textNodeName];
|
|
1862
1873
|
} else if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
1863
1874
|
obj[key] = getValueFromTextNode(obj[key]);
|
|
@@ -1893,7 +1904,9 @@ var require_client = __commonJS((exports) => {
|
|
|
1893
1904
|
instructions = arg1;
|
|
1894
1905
|
}
|
|
1895
1906
|
}
|
|
1896
|
-
for (const key
|
|
1907
|
+
for (const key in instructions) {
|
|
1908
|
+
if (!hasOwn(instructions, key))
|
|
1909
|
+
continue;
|
|
1897
1910
|
if (!Array.isArray(instructions[key])) {
|
|
1898
1911
|
target[key] = instructions[key];
|
|
1899
1912
|
continue;
|
|
@@ -1912,6 +1925,8 @@ var require_client = __commonJS((exports) => {
|
|
|
1912
1925
|
var take = (source, instructions) => {
|
|
1913
1926
|
const out = {};
|
|
1914
1927
|
for (const key in instructions) {
|
|
1928
|
+
if (!hasOwn(instructions, key))
|
|
1929
|
+
continue;
|
|
1915
1930
|
applyInstruction(out, source, instructions, key);
|
|
1916
1931
|
}
|
|
1917
1932
|
return out;
|
|
@@ -1985,7 +2000,9 @@ var require_client = __commonJS((exports) => {
|
|
|
1985
2000
|
}
|
|
1986
2001
|
if (typeof obj === "object") {
|
|
1987
2002
|
const target = {};
|
|
1988
|
-
for (const key
|
|
2003
|
+
for (const key in obj) {
|
|
2004
|
+
if (!hasOwn(obj, key))
|
|
2005
|
+
continue;
|
|
1989
2006
|
if (obj[key] == null) {
|
|
1990
2007
|
continue;
|
|
1991
2008
|
}
|
|
@@ -2043,7 +2060,7 @@ var require_client = __commonJS((exports) => {
|
|
|
2043
2060
|
exports.withBaseException = withBaseException;
|
|
2044
2061
|
});
|
|
2045
2062
|
|
|
2046
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
2063
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/config/index.js
|
|
2047
2064
|
var require_config = __commonJS((exports) => {
|
|
2048
2065
|
var { homedir } = __require("os");
|
|
2049
2066
|
var { sep, join } = __require("path");
|
|
@@ -2738,10 +2755,10 @@ var require_config = __commonJS((exports) => {
|
|
|
2738
2755
|
exports.resolveRegionConfig = resolveRegionConfig;
|
|
2739
2756
|
});
|
|
2740
2757
|
|
|
2741
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
2758
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
|
|
2742
2759
|
var require_endpoints = __commonJS((exports) => {
|
|
2743
2760
|
var { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require_config();
|
|
2744
|
-
var { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require_transport();
|
|
2761
|
+
var { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require_transport();
|
|
2745
2762
|
exports.isValidHostLabel = isValidHostLabel;
|
|
2746
2763
|
exports.middlewareEndpointToEndpointV1 = toEndpointV1;
|
|
2747
2764
|
exports.toEndpointV1 = toEndpointV1;
|
|
@@ -3507,6 +3524,8 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
3507
3524
|
const { parameters, rules } = ruleSetObject;
|
|
3508
3525
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
3509
3526
|
for (const paramKey in parameters) {
|
|
3527
|
+
if (!hasOwn(parameters, paramKey))
|
|
3528
|
+
continue;
|
|
3510
3529
|
const parameter = parameters[paramKey];
|
|
3511
3530
|
const endpointParam = endpointParams[paramKey];
|
|
3512
3531
|
if (endpointParam == null && parameter.default != null) {
|
|
@@ -3550,11 +3569,12 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
3550
3569
|
exports.resolveParams = resolveParams;
|
|
3551
3570
|
});
|
|
3552
3571
|
|
|
3553
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
3572
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
3554
3573
|
var require_serde = __commonJS((exports) => {
|
|
3555
3574
|
var { createHmac, createHash, getRandomValues } = __require("crypto");
|
|
3575
|
+
var { hasOwn, HttpResponse } = require_transport();
|
|
3576
|
+
exports.hasOwn = hasOwn;
|
|
3556
3577
|
var { ReadStream, lstatSync, fstatSync } = __require("fs");
|
|
3557
|
-
var { HttpResponse } = require_transport();
|
|
3558
3578
|
var { toEndpointV1 } = require_endpoints();
|
|
3559
3579
|
var { Readable, Writable, PassThrough } = __require("stream");
|
|
3560
3580
|
var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
@@ -3782,6 +3802,8 @@ var require_serde = __commonJS((exports) => {
|
|
|
3782
3802
|
const asObject = expectObject(value);
|
|
3783
3803
|
const setKeys = [];
|
|
3784
3804
|
for (const k in asObject) {
|
|
3805
|
+
if (!hasOwn(asObject, k))
|
|
3806
|
+
continue;
|
|
3785
3807
|
if (asObject[k] != null) {
|
|
3786
3808
|
setKeys.push(k);
|
|
3787
3809
|
}
|
|
@@ -5188,7 +5210,7 @@ ${value}\r
|
|
|
5188
5210
|
exports.v4 = v4;
|
|
5189
5211
|
});
|
|
5190
5212
|
|
|
5191
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
5213
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js
|
|
5192
5214
|
var require_checksum = __commonJS((exports) => {
|
|
5193
5215
|
var { createReadStream } = __require("fs");
|
|
5194
5216
|
var { Writable } = __require("stream");
|
|
@@ -5804,9 +5826,10 @@ var require_checksum = __commonJS((exports) => {
|
|
|
5804
5826
|
exports.readableStreamHasher = readableStreamHasher;
|
|
5805
5827
|
});
|
|
5806
5828
|
|
|
5807
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
5829
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js
|
|
5808
5830
|
var require_event_streams = __commonJS((exports) => {
|
|
5809
5831
|
var { Crc32 } = require_checksum();
|
|
5832
|
+
var { hasOwn } = require_transport();
|
|
5810
5833
|
var { toHex, fromHex, toUtf8, fromUtf8 } = require_serde();
|
|
5811
5834
|
var { Readable } = __require("stream");
|
|
5812
5835
|
var { TypeRegistry } = require_schema();
|
|
@@ -5864,7 +5887,9 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
5864
5887
|
}
|
|
5865
5888
|
format(headers) {
|
|
5866
5889
|
const chunks = [];
|
|
5867
|
-
for (const headerName
|
|
5890
|
+
for (const headerName in headers) {
|
|
5891
|
+
if (!hasOwn(headers, headerName))
|
|
5892
|
+
continue;
|
|
5868
5893
|
const bytes = this.fromUtf8(headerName);
|
|
5869
5894
|
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
5870
5895
|
}
|
|
@@ -6459,6 +6484,8 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
6459
6484
|
}
|
|
6460
6485
|
let unionMember = "";
|
|
6461
6486
|
for (const key in event) {
|
|
6487
|
+
if (!hasOwn(event, key))
|
|
6488
|
+
continue;
|
|
6462
6489
|
if (key !== "__type") {
|
|
6463
6490
|
unionMember = key;
|
|
6464
6491
|
break;
|
|
@@ -6486,6 +6513,8 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
6486
6513
|
const asyncIterable = marshaller.deserialize(response.body, async (event) => {
|
|
6487
6514
|
let unionMember = "";
|
|
6488
6515
|
for (const key in event) {
|
|
6516
|
+
if (!hasOwn(event, key))
|
|
6517
|
+
continue;
|
|
6489
6518
|
if (key !== "__type") {
|
|
6490
6519
|
unionMember = key;
|
|
6491
6520
|
break;
|
|
@@ -6553,6 +6582,8 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
6553
6582
|
throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
|
|
6554
6583
|
}
|
|
6555
6584
|
for (const key in firstEvent.value) {
|
|
6585
|
+
if (!hasOwn(firstEvent.value, key))
|
|
6586
|
+
continue;
|
|
6556
6587
|
initialResponseContainer[key] = firstEvent.value[key];
|
|
6557
6588
|
}
|
|
6558
6589
|
}
|
|
@@ -6687,17 +6718,17 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
6687
6718
|
exports.universalEventStreamSerdeProvider = eventStreamSerdeProvider$1;
|
|
6688
6719
|
});
|
|
6689
6720
|
|
|
6690
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
6721
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
|
|
6691
6722
|
var require_protocols = __commonJS((exports) => {
|
|
6692
6723
|
var { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = require_serde();
|
|
6693
|
-
var {
|
|
6694
|
-
var { HttpRequest, HttpResponse, isValidHostname } = require_transport();
|
|
6724
|
+
var { HttpRequest, HttpResponse, hasOwn, isValidHostname } = require_transport();
|
|
6695
6725
|
var { parseQueryString, parseUrl } = require_transport();
|
|
6696
6726
|
exports.HttpRequest = HttpRequest;
|
|
6697
6727
|
exports.HttpResponse = HttpResponse;
|
|
6698
6728
|
exports.isValidHostname = isValidHostname;
|
|
6699
6729
|
exports.parseQueryString = parseQueryString;
|
|
6700
6730
|
exports.parseUrl = parseUrl;
|
|
6731
|
+
var { TypeRegistry, NormalizedSchema, translateTraits } = require_schema();
|
|
6701
6732
|
var { FieldPosition } = require_dist_cjs();
|
|
6702
6733
|
var collectBody = async (streamBody = new Uint8Array, context) => {
|
|
6703
6734
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -6764,6 +6795,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
6764
6795
|
}
|
|
6765
6796
|
if (endpoint.headers) {
|
|
6766
6797
|
for (const name in endpoint.headers) {
|
|
6798
|
+
if (!hasOwn(endpoint.headers, name))
|
|
6799
|
+
continue;
|
|
6767
6800
|
request.headers[name] = endpoint.headers[name].join(", ");
|
|
6768
6801
|
}
|
|
6769
6802
|
}
|
|
@@ -6778,6 +6811,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
6778
6811
|
};
|
|
6779
6812
|
if (endpoint.headers) {
|
|
6780
6813
|
for (const name in endpoint.headers) {
|
|
6814
|
+
if (!hasOwn(endpoint.headers, name))
|
|
6815
|
+
continue;
|
|
6781
6816
|
request.headers[name] = endpoint.headers[name];
|
|
6782
6817
|
}
|
|
6783
6818
|
}
|
|
@@ -6950,6 +6985,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
6950
6985
|
headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
|
|
6951
6986
|
} else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
6952
6987
|
for (const key in inputMemberValue) {
|
|
6988
|
+
if (!hasOwn(inputMemberValue, key))
|
|
6989
|
+
continue;
|
|
6953
6990
|
const val = inputMemberValue[key];
|
|
6954
6991
|
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
6955
6992
|
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
@@ -6993,6 +7030,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
6993
7030
|
const traits = ns.getMergedTraits();
|
|
6994
7031
|
if (traits.httpQueryParams) {
|
|
6995
7032
|
for (const key in data) {
|
|
7033
|
+
if (!hasOwn(data, key))
|
|
7034
|
+
continue;
|
|
6996
7035
|
if (!(key in query)) {
|
|
6997
7036
|
const val = data[key];
|
|
6998
7037
|
const valueSchema = ns.getValueSchema();
|
|
@@ -7035,6 +7074,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
7035
7074
|
throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
|
|
7036
7075
|
}
|
|
7037
7076
|
for (const header in response.headers) {
|
|
7077
|
+
if (!hasOwn(response.headers, header))
|
|
7078
|
+
continue;
|
|
7038
7079
|
const value = response.headers[header];
|
|
7039
7080
|
delete response.headers[header];
|
|
7040
7081
|
response.headers[header.toLowerCase()] = value;
|
|
@@ -7113,6 +7154,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
7113
7154
|
} else if (memberTraits.httpPrefixHeaders !== undefined) {
|
|
7114
7155
|
dataObject[memberName] = {};
|
|
7115
7156
|
for (const header in response.headers) {
|
|
7157
|
+
if (!hasOwn(response.headers, header))
|
|
7158
|
+
continue;
|
|
7116
7159
|
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
|
7117
7160
|
const value = response.headers[header];
|
|
7118
7161
|
const valueSchema = memberSchema.getValueSchema();
|
|
@@ -7195,6 +7238,8 @@ var require_protocols = __commonJS((exports) => {
|
|
|
7195
7238
|
throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
|
|
7196
7239
|
}
|
|
7197
7240
|
for (const header in response.headers) {
|
|
7241
|
+
if (!hasOwn(response.headers, header))
|
|
7242
|
+
continue;
|
|
7198
7243
|
const value = response.headers[header];
|
|
7199
7244
|
delete response.headers[header];
|
|
7200
7245
|
response.headers[header.toLowerCase()] = value;
|
|
@@ -7677,12 +7722,13 @@ var require_protocols = __commonJS((exports) => {
|
|
|
7677
7722
|
exports.resolvedPath = resolvedPath;
|
|
7678
7723
|
});
|
|
7679
7724
|
|
|
7680
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
7725
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js
|
|
7681
7726
|
var require_retry = __commonJS((exports) => {
|
|
7682
7727
|
var { Readable } = __require("stream");
|
|
7683
7728
|
var { NoOpLogger, normalizeProvider } = require_client();
|
|
7684
7729
|
var { HttpResponse, HttpRequest } = require_protocols();
|
|
7685
7730
|
var { parseRfc7231DateTime, v4 } = require_serde();
|
|
7731
|
+
var { hasOwn } = require_transport();
|
|
7686
7732
|
var isStreamingPayload = (request) => request?.body instanceof Readable || typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream;
|
|
7687
7733
|
var CLOCK_SKEW_ERROR_CODES = [
|
|
7688
7734
|
"AccessDeniedException",
|
|
@@ -7758,7 +7804,9 @@ var require_retry = __commonJS((exports) => {
|
|
|
7758
7804
|
if (!HttpResponse.isInstance(response)) {
|
|
7759
7805
|
return;
|
|
7760
7806
|
}
|
|
7761
|
-
for (const header
|
|
7807
|
+
for (const header in response.headers) {
|
|
7808
|
+
if (!hasOwn(response.headers, header))
|
|
7809
|
+
continue;
|
|
7762
7810
|
const h = header.toLowerCase();
|
|
7763
7811
|
if (h === "retry-after") {
|
|
7764
7812
|
const retryAfter = response.headers[header];
|
|
@@ -8603,9 +8651,9 @@ var require_invoke_store = __commonJS((exports) => {
|
|
|
8603
8651
|
exports.InvokeStoreBase = InvokeStoreBase;
|
|
8604
8652
|
});
|
|
8605
8653
|
|
|
8606
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
8654
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/index.js
|
|
8607
8655
|
var require_dist_cjs2 = __commonJS((exports) => {
|
|
8608
|
-
var { getSmithyContext } = require_transport();
|
|
8656
|
+
var { getSmithyContext, hasOwn } = require_transport();
|
|
8609
8657
|
exports.getSmithyContext = getSmithyContext;
|
|
8610
8658
|
var { HttpRequest } = require_protocols();
|
|
8611
8659
|
var { requestBuilder } = require_protocols();
|
|
@@ -8800,6 +8848,8 @@ var require_dist_cjs2 = __commonJS((exports) => {
|
|
|
8800
8848
|
authSchemes = new Map;
|
|
8801
8849
|
constructor(config) {
|
|
8802
8850
|
for (const key in config) {
|
|
8851
|
+
if (!hasOwn(config, key))
|
|
8852
|
+
continue;
|
|
8803
8853
|
const value = config[key];
|
|
8804
8854
|
if (value !== undefined) {
|
|
8805
8855
|
this.authSchemes.set(key, value);
|
|
@@ -9769,7 +9819,7 @@ var require_es5 = __commonJS((exports, module) => {
|
|
|
9769
9819
|
});
|
|
9770
9820
|
});
|
|
9771
9821
|
|
|
9772
|
-
// ../../node_modules/.bun/@aws-sdk+core@3.977.
|
|
9822
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
|
|
9773
9823
|
var require_client2 = __commonJS((exports) => {
|
|
9774
9824
|
var { Retry, RETRY_MODES } = require_retry();
|
|
9775
9825
|
var { HttpRequest, parseUrl } = require_protocols();
|
|
@@ -10707,7 +10757,7 @@ More information can be found at: https://a.co/c895JFp`);
|
|
|
10707
10757
|
exports.userAgentMiddleware = userAgentMiddleware;
|
|
10708
10758
|
});
|
|
10709
10759
|
|
|
10710
|
-
// ../../node_modules/.bun/@aws-sdk+checksums@3.1000.
|
|
10760
|
+
// ../../node_modules/.bun/@aws-sdk+checksums@3.1000.29/node_modules/@aws-sdk/checksums/dist-cjs/submodules/crc/index.js
|
|
10711
10761
|
var require_crc = __commonJS((exports) => {
|
|
10712
10762
|
var { Crc32, Crc32Js, Crc32Node } = require_checksum();
|
|
10713
10763
|
exports.Crc32 = Crc32;
|
|
@@ -10864,16 +10914,18 @@ var require_crc = __commonJS((exports) => {
|
|
|
10864
10914
|
exports.crc64NvmeCrtContainer = crc64NvmeCrtContainer;
|
|
10865
10915
|
});
|
|
10866
10916
|
|
|
10867
|
-
// ../../node_modules/.bun/@smithy+signature-v4@5.7.
|
|
10917
|
+
// ../../node_modules/.bun/@smithy+signature-v4@5.7.3/node_modules/@smithy/signature-v4/dist-cjs/index.js
|
|
10868
10918
|
var require_dist_cjs3 = __commonJS((exports) => {
|
|
10869
|
-
var { fromUtf8, fromHex, toHex, toUint8Array: toUint8Array2, isArrayBuffer: isArrayBuffer2 } = require_serde();
|
|
10919
|
+
var { hasOwn, fromUtf8, fromHex, toHex, toUint8Array: toUint8Array2, isArrayBuffer: isArrayBuffer2 } = require_serde();
|
|
10870
10920
|
var { normalizeProvider: normalizeProvider2 } = require_client();
|
|
10871
10921
|
var { escapeUri, HttpRequest: HttpRequest2 } = require_protocols();
|
|
10872
10922
|
|
|
10873
10923
|
class HeaderFormatter {
|
|
10874
10924
|
format(headers) {
|
|
10875
10925
|
const chunks = [];
|
|
10876
|
-
for (const headerName
|
|
10926
|
+
for (const headerName in headers) {
|
|
10927
|
+
if (!hasOwn(headers, headerName))
|
|
10928
|
+
continue;
|
|
10877
10929
|
const bytes = fromUtf8(headerName);
|
|
10878
10930
|
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
10879
10931
|
}
|
|
@@ -11041,7 +11093,9 @@ var require_dist_cjs3 = __commonJS((exports) => {
|
|
|
11041
11093
|
var getCanonicalQuery = ({ query = {} }) => {
|
|
11042
11094
|
const keys = [];
|
|
11043
11095
|
const serialized = {};
|
|
11044
|
-
for (const key
|
|
11096
|
+
for (const key in query) {
|
|
11097
|
+
if (!hasOwn(query, key))
|
|
11098
|
+
continue;
|
|
11045
11099
|
if (key.toLowerCase() === SIGNATURE_HEADER) {
|
|
11046
11100
|
continue;
|
|
11047
11101
|
}
|
|
@@ -11188,7 +11242,9 @@ ${toHex(hashedRequest)}`;
|
|
|
11188
11242
|
return canonical;
|
|
11189
11243
|
};
|
|
11190
11244
|
var getPayloadHash = async ({ headers, body }, hashConstructor) => {
|
|
11191
|
-
for (const headerName
|
|
11245
|
+
for (const headerName in headers) {
|
|
11246
|
+
if (!hasOwn(headers, headerName))
|
|
11247
|
+
continue;
|
|
11192
11248
|
if (headerName.toLowerCase() === SHA256_HEADER) {
|
|
11193
11249
|
return headers[headerName];
|
|
11194
11250
|
}
|
|
@@ -11204,7 +11260,9 @@ ${toHex(hashedRequest)}`;
|
|
|
11204
11260
|
};
|
|
11205
11261
|
var hasHeader2 = (soughtHeader, headers) => {
|
|
11206
11262
|
soughtHeader = soughtHeader.toLowerCase();
|
|
11207
|
-
for (const headerName
|
|
11263
|
+
for (const headerName in headers) {
|
|
11264
|
+
if (!hasOwn(headers, headerName))
|
|
11265
|
+
continue;
|
|
11208
11266
|
if (soughtHeader === headerName.toLowerCase()) {
|
|
11209
11267
|
return true;
|
|
11210
11268
|
}
|
|
@@ -11213,7 +11271,9 @@ ${toHex(hashedRequest)}`;
|
|
|
11213
11271
|
};
|
|
11214
11272
|
var moveHeadersToQuery = (request, options = {}) => {
|
|
11215
11273
|
const { headers, query = {} } = HttpRequest2.clone(request);
|
|
11216
|
-
for (const name
|
|
11274
|
+
for (const name in headers) {
|
|
11275
|
+
if (!hasOwn(headers, name))
|
|
11276
|
+
continue;
|
|
11217
11277
|
const lname = name.toLowerCase();
|
|
11218
11278
|
if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) {
|
|
11219
11279
|
query[name] = headers[name];
|
|
@@ -11228,7 +11288,9 @@ ${toHex(hashedRequest)}`;
|
|
|
11228
11288
|
};
|
|
11229
11289
|
var prepareRequest = (request) => {
|
|
11230
11290
|
request = HttpRequest2.clone(request);
|
|
11231
|
-
for (const headerName
|
|
11291
|
+
for (const headerName in request.headers) {
|
|
11292
|
+
if (!hasOwn(request.headers, headerName))
|
|
11293
|
+
continue;
|
|
11232
11294
|
if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
|
|
11233
11295
|
delete request.headers[headerName];
|
|
11234
11296
|
}
|
|
@@ -11404,7 +11466,7 @@ ${toHex(hashedRequest)}`;
|
|
|
11404
11466
|
exports.signatureV4aContainer = signatureV4aContainer;
|
|
11405
11467
|
});
|
|
11406
11468
|
|
|
11407
|
-
// ../../node_modules/.bun/@aws-sdk+signature-v4-multi-region@3.996.
|
|
11469
|
+
// ../../node_modules/.bun/@aws-sdk+signature-v4-multi-region@3.996.46/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
|
|
11408
11470
|
var require_dist_cjs4 = __commonJS((exports) => {
|
|
11409
11471
|
var { SignatureV4, signatureV4aContainer } = require_dist_cjs3();
|
|
11410
11472
|
var signatureV4CrtContainer = {
|
|
@@ -11536,7 +11598,7 @@ var require_dist_cjs4 = __commonJS((exports) => {
|
|
|
11536
11598
|
exports.signatureV4CrtContainer = signatureV4CrtContainer;
|
|
11537
11599
|
});
|
|
11538
11600
|
|
|
11539
|
-
// ../../node_modules/.bun/@aws-sdk+core@3.977.
|
|
11601
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js
|
|
11540
11602
|
var require_util = __commonJS((exports) => {
|
|
11541
11603
|
var { buildQueryString } = require_protocols();
|
|
11542
11604
|
var validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
|
|
@@ -11594,12 +11656,12 @@ var require_util = __commonJS((exports) => {
|
|
|
11594
11656
|
exports.validate = validate;
|
|
11595
11657
|
});
|
|
11596
11658
|
|
|
11597
|
-
// ../../node_modules/.bun/@smithy+core@3.33.
|
|
11659
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
|
|
11598
11660
|
var require_cbor = __commonJS((exports) => {
|
|
11599
11661
|
var { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require_serde();
|
|
11662
|
+
var { hasOwn, getSmithyContext } = require_transport();
|
|
11600
11663
|
var { HttpRequest: HttpRequest2, collectBody, SerdeContext, RpcProtocol } = require_protocols();
|
|
11601
11664
|
var { NormalizedSchema, deref, TypeRegistry } = require_schema();
|
|
11602
|
-
var { getSmithyContext } = require_transport();
|
|
11603
11665
|
var majorUint64 = 0;
|
|
11604
11666
|
var majorNegativeInt64 = 1;
|
|
11605
11667
|
var majorUnstructuredByteString = 2;
|
|
@@ -11885,20 +11947,34 @@ var require_cbor = __commonJS((exports) => {
|
|
|
11885
11947
|
return minor === 3 ? -b - BigInt(1) : b;
|
|
11886
11948
|
} else if (minor === 4) {
|
|
11887
11949
|
const decimalFraction = decode(at + offset, to);
|
|
11888
|
-
const [
|
|
11950
|
+
const [rawExponent, mantissa] = decimalFraction;
|
|
11889
11951
|
const normalizer = mantissa < 0 ? -1 : 1;
|
|
11890
|
-
const
|
|
11891
|
-
|
|
11952
|
+
const absMantissa = BigInt(normalizer) * BigInt(mantissa);
|
|
11953
|
+
const mantissaDigits = String(absMantissa);
|
|
11892
11954
|
const sign = mantissa < 0 ? "-" : "";
|
|
11893
|
-
numericString
|
|
11894
|
-
|
|
11895
|
-
if (
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
numericString =
|
|
11955
|
+
let numericString;
|
|
11956
|
+
const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
|
|
11957
|
+
if (isSmallExponent) {
|
|
11958
|
+
const exponent = rawExponent;
|
|
11959
|
+
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
|
|
11960
|
+
numericString = exponent === 0 ? mantissaStr : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
11961
|
+
numericString = numericString.replace(/^0+/g, "");
|
|
11962
|
+
if (numericString === "") {
|
|
11963
|
+
numericString = "0";
|
|
11964
|
+
}
|
|
11965
|
+
if (numericString[0] === ".") {
|
|
11966
|
+
numericString = "0" + numericString;
|
|
11967
|
+
}
|
|
11968
|
+
numericString = sign + numericString;
|
|
11969
|
+
} else {
|
|
11970
|
+
const bigExponent = BigInt(rawExponent);
|
|
11971
|
+
if (mantissaDigits.length === 1) {
|
|
11972
|
+
numericString = sign + mantissaDigits + "e" + String(bigExponent);
|
|
11973
|
+
} else {
|
|
11974
|
+
const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
|
|
11975
|
+
numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
|
|
11976
|
+
}
|
|
11900
11977
|
}
|
|
11901
|
-
numericString = sign + numericString;
|
|
11902
11978
|
_offset = offset + _offset;
|
|
11903
11979
|
return nv(numericString);
|
|
11904
11980
|
} else {
|
|
@@ -12226,13 +12302,21 @@ var require_cbor = __commonJS((exports) => {
|
|
|
12226
12302
|
continue;
|
|
12227
12303
|
} else if (typeof input === "object") {
|
|
12228
12304
|
if (input instanceof NumericValue) {
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
const
|
|
12305
|
+
let str = input.string;
|
|
12306
|
+
let expOffset = BigInt(0);
|
|
12307
|
+
const eIndex = str.search(/[eE]/);
|
|
12308
|
+
if (eIndex !== -1) {
|
|
12309
|
+
expOffset = BigInt(str.slice(eIndex + 1));
|
|
12310
|
+
str = str.slice(0, eIndex);
|
|
12311
|
+
}
|
|
12312
|
+
const decimalIndex = str.indexOf(".");
|
|
12313
|
+
const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
|
|
12314
|
+
const exponent = expOffset - BigInt(fractionDigits);
|
|
12315
|
+
const mantissa = BigInt(str.replace(".", ""));
|
|
12232
12316
|
data[cursor$1++] = 196;
|
|
12233
12317
|
encodeInteger(majorList, 2);
|
|
12234
12318
|
encodeStack.push(mantissa);
|
|
12235
|
-
encodeStack.push(exponent);
|
|
12319
|
+
encodeStack.push(exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn ? Number(exponent) : exponent);
|
|
12236
12320
|
continue;
|
|
12237
12321
|
}
|
|
12238
12322
|
if (input[tagSymbol]) {
|
|
@@ -12435,6 +12519,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
12435
12519
|
}
|
|
12436
12520
|
let codeKey;
|
|
12437
12521
|
for (const key in data2) {
|
|
12522
|
+
if (!hasOwn(data2, key))
|
|
12523
|
+
continue;
|
|
12438
12524
|
if (key.toLowerCase() === "code") {
|
|
12439
12525
|
codeKey = key;
|
|
12440
12526
|
break;
|
|
@@ -12467,6 +12553,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
12467
12553
|
}
|
|
12468
12554
|
if (endpoint.headers) {
|
|
12469
12555
|
for (const name in endpoint.headers) {
|
|
12556
|
+
if (!hasOwn(endpoint.headers, name))
|
|
12557
|
+
continue;
|
|
12470
12558
|
contents.headers[name] = endpoint.headers[name];
|
|
12471
12559
|
}
|
|
12472
12560
|
}
|
|
@@ -12716,6 +12804,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
12716
12804
|
}
|
|
12717
12805
|
if (typeof value.__type === "string") {
|
|
12718
12806
|
for (const k in value) {
|
|
12807
|
+
if (!hasOwn(value, k))
|
|
12808
|
+
continue;
|
|
12719
12809
|
if (!memberNames.includes(k)) {
|
|
12720
12810
|
writeString(k);
|
|
12721
12811
|
writeUntypedValue(value[k]);
|
|
@@ -12777,6 +12867,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
12777
12867
|
const valueSchema = ns.getValueSchema();
|
|
12778
12868
|
const keys = [];
|
|
12779
12869
|
for (const k in value) {
|
|
12870
|
+
if (!hasOwn(value, k))
|
|
12871
|
+
continue;
|
|
12780
12872
|
const v = value[k];
|
|
12781
12873
|
if (isDocument ? v !== undefined : v != null || sparse) {
|
|
12782
12874
|
keys.push(k);
|
|
@@ -13026,14 +13118,26 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13026
13118
|
writeUntypedValue(innerValue);
|
|
13027
13119
|
}
|
|
13028
13120
|
function writeNumericValue(nv2) {
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
const
|
|
13121
|
+
let str = nv2.string;
|
|
13122
|
+
let expOffset = BigInt(0);
|
|
13123
|
+
const eIndex = str.search(/[eE]/);
|
|
13124
|
+
if (eIndex !== -1) {
|
|
13125
|
+
expOffset = BigInt(str.slice(eIndex + 1));
|
|
13126
|
+
str = str.slice(0, eIndex);
|
|
13127
|
+
}
|
|
13128
|
+
const decimalIndex = str.indexOf(".");
|
|
13129
|
+
const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
|
|
13130
|
+
const exponent = expOffset - BigInt(fractionDigits);
|
|
13131
|
+
const mantissa = BigInt(str.replace(".", ""));
|
|
13032
13132
|
ensure(9);
|
|
13033
13133
|
buf[cursor++] = 196;
|
|
13034
13134
|
encodeHeader(majorList, 2);
|
|
13035
13135
|
ensure(9);
|
|
13036
|
-
|
|
13136
|
+
if (exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn) {
|
|
13137
|
+
writeInteger(Number(exponent));
|
|
13138
|
+
} else {
|
|
13139
|
+
writeBigInt(exponent);
|
|
13140
|
+
}
|
|
13037
13141
|
writeBigInt(mantissa);
|
|
13038
13142
|
}
|
|
13039
13143
|
function writeTimestamp(date) {
|
|
@@ -13162,6 +13266,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13162
13266
|
if (isUnion) {
|
|
13163
13267
|
let resultEmpty = true;
|
|
13164
13268
|
for (const _ in result) {
|
|
13269
|
+
if (!hasOwn(result, _))
|
|
13270
|
+
continue;
|
|
13165
13271
|
resultEmpty = false;
|
|
13166
13272
|
break;
|
|
13167
13273
|
}
|
|
@@ -13200,20 +13306,34 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13200
13306
|
if (tagNumber === 4) {
|
|
13201
13307
|
const docSchema2 = NormalizedSchema.of(15);
|
|
13202
13308
|
const pair = readValue(docSchema2);
|
|
13203
|
-
const [
|
|
13309
|
+
const [rawExponent, mantissa] = pair;
|
|
13204
13310
|
const normalizer = mantissa < 0 ? -1 : 1;
|
|
13205
|
-
const
|
|
13206
|
-
|
|
13311
|
+
const absMantissa = BigInt(normalizer) * BigInt(mantissa);
|
|
13312
|
+
const mantissaDigits = String(absMantissa);
|
|
13207
13313
|
const sign = mantissa < 0 ? "-" : "";
|
|
13208
|
-
numericString
|
|
13209
|
-
|
|
13210
|
-
if (
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
numericString =
|
|
13314
|
+
let numericString;
|
|
13315
|
+
const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
|
|
13316
|
+
if (isSmallExponent) {
|
|
13317
|
+
const exponent = rawExponent;
|
|
13318
|
+
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
|
|
13319
|
+
numericString = exponent === 0 ? mantissaStr : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
13320
|
+
numericString = numericString.replace(/^0+/g, "");
|
|
13321
|
+
if (numericString === "") {
|
|
13322
|
+
numericString = "0";
|
|
13323
|
+
}
|
|
13324
|
+
if (numericString[0] === ".") {
|
|
13325
|
+
numericString = "0" + numericString;
|
|
13326
|
+
}
|
|
13327
|
+
numericString = sign + numericString;
|
|
13328
|
+
} else {
|
|
13329
|
+
const bigExponent = BigInt(rawExponent);
|
|
13330
|
+
if (mantissaDigits.length === 1) {
|
|
13331
|
+
numericString = sign + mantissaDigits + "e" + String(bigExponent);
|
|
13332
|
+
} else {
|
|
13333
|
+
const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
|
|
13334
|
+
numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
|
|
13335
|
+
}
|
|
13215
13336
|
}
|
|
13216
|
-
numericString = sign + numericString;
|
|
13217
13337
|
return nv(numericString);
|
|
13218
13338
|
}
|
|
13219
13339
|
const docSchema = NormalizedSchema.of(15);
|
|
@@ -13310,6 +13430,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13310
13430
|
if (isUnion) {
|
|
13311
13431
|
let resultEmpty = true;
|
|
13312
13432
|
for (const _ in result) {
|
|
13433
|
+
if (!hasOwn(result, _))
|
|
13434
|
+
continue;
|
|
13313
13435
|
resultEmpty = false;
|
|
13314
13436
|
break;
|
|
13315
13437
|
}
|
|
@@ -13605,6 +13727,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13605
13727
|
if (ns.isMapSchema()) {
|
|
13606
13728
|
const targetSchema = ns.getValueSchema();
|
|
13607
13729
|
for (const key in value) {
|
|
13730
|
+
if (!hasOwn(value, key))
|
|
13731
|
+
continue;
|
|
13608
13732
|
newObject[key] = transformObject(targetSchema, value[key]);
|
|
13609
13733
|
}
|
|
13610
13734
|
} else if (ns.isStructSchema()) {
|
|
@@ -13613,6 +13737,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13613
13737
|
if (isUnion) {
|
|
13614
13738
|
keys = new Set;
|
|
13615
13739
|
for (const k in value) {
|
|
13740
|
+
if (!hasOwn(value, k))
|
|
13741
|
+
continue;
|
|
13616
13742
|
if (k !== "__type") {
|
|
13617
13743
|
keys.add(k);
|
|
13618
13744
|
}
|
|
@@ -13629,6 +13755,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13629
13755
|
if (isUnion && keys?.size === 1) {
|
|
13630
13756
|
let newObjectEmpty = true;
|
|
13631
13757
|
for (const _ in newObject) {
|
|
13758
|
+
if (!hasOwn(newObject, _))
|
|
13759
|
+
continue;
|
|
13632
13760
|
newObjectEmpty = false;
|
|
13633
13761
|
break;
|
|
13634
13762
|
}
|
|
@@ -13638,6 +13766,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13638
13766
|
}
|
|
13639
13767
|
} else if (typeof value.__type === "string") {
|
|
13640
13768
|
for (const k in value) {
|
|
13769
|
+
if (!hasOwn(value, k))
|
|
13770
|
+
continue;
|
|
13641
13771
|
if (!(k in newObject)) {
|
|
13642
13772
|
newObject[k] = value[k];
|
|
13643
13773
|
}
|
|
@@ -13797,6 +13927,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13797
13927
|
if (ns.isMapSchema()) {
|
|
13798
13928
|
const sparse = !!ns.getMergedTraits().sparse;
|
|
13799
13929
|
for (const key in sourceObject) {
|
|
13930
|
+
if (!hasOwn(sourceObject, key))
|
|
13931
|
+
continue;
|
|
13800
13932
|
const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
13801
13933
|
if (value != null || sparse) {
|
|
13802
13934
|
newObject[key] = value;
|
|
@@ -13815,6 +13947,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13815
13947
|
newObject[k] = v;
|
|
13816
13948
|
} else if (typeof sourceObject.__type === "string") {
|
|
13817
13949
|
for (const k in sourceObject) {
|
|
13950
|
+
if (!hasOwn(sourceObject, k))
|
|
13951
|
+
continue;
|
|
13818
13952
|
if (!(k in newObject)) {
|
|
13819
13953
|
newObject[k] = this.serialize(15, sourceObject[k]);
|
|
13820
13954
|
}
|
|
@@ -13830,6 +13964,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13830
13964
|
return newArray;
|
|
13831
13965
|
}
|
|
13832
13966
|
for (const key in sourceObject) {
|
|
13967
|
+
if (!hasOwn(sourceObject, key))
|
|
13968
|
+
continue;
|
|
13833
13969
|
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
13834
13970
|
}
|
|
13835
13971
|
} else if (ns.isBigDecimalSchema()) {
|
|
@@ -13897,6 +14033,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13897
14033
|
if (ns.isMapSchema()) {
|
|
13898
14034
|
const targetSchema = ns.getValueSchema();
|
|
13899
14035
|
for (const key in value) {
|
|
14036
|
+
if (!hasOwn(value, key))
|
|
14037
|
+
continue;
|
|
13900
14038
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
13901
14039
|
newObject[key] = itemValue;
|
|
13902
14040
|
}
|
|
@@ -13906,6 +14044,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13906
14044
|
if (isUnion) {
|
|
13907
14045
|
keys = new Set;
|
|
13908
14046
|
for (const k in value) {
|
|
14047
|
+
if (!hasOwn(value, k))
|
|
14048
|
+
continue;
|
|
13909
14049
|
if (k !== "__type") {
|
|
13910
14050
|
keys.add(k);
|
|
13911
14051
|
}
|
|
@@ -13922,6 +14062,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13922
14062
|
if (isUnion && keys?.size === 1) {
|
|
13923
14063
|
let newObjectEmpty = true;
|
|
13924
14064
|
for (const _ in newObject) {
|
|
14065
|
+
if (!hasOwn(newObject, _))
|
|
14066
|
+
continue;
|
|
13925
14067
|
newObjectEmpty = false;
|
|
13926
14068
|
break;
|
|
13927
14069
|
}
|
|
@@ -13931,6 +14073,8 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13931
14073
|
}
|
|
13932
14074
|
} else if (typeof value.__type === "string") {
|
|
13933
14075
|
for (const k in value) {
|
|
14076
|
+
if (!hasOwn(value, k))
|
|
14077
|
+
continue;
|
|
13934
14078
|
if (!(k in newObject)) {
|
|
13935
14079
|
newObject[k] = value[k];
|
|
13936
14080
|
}
|
|
@@ -13962,7 +14106,7 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13962
14106
|
exports.tagSymbol = tagSymbol;
|
|
13963
14107
|
});
|
|
13964
14108
|
|
|
13965
|
-
// ../../node_modules/.bun/@aws-sdk+xml-builder@3.972.
|
|
14109
|
+
// ../../node_modules/.bun/@aws-sdk+xml-builder@3.972.40/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
|
|
13966
14110
|
var require_dist_cjs5 = __commonJS((exports) => {
|
|
13967
14111
|
var ATTR_ESCAPE_RE = /[&<>"]/g;
|
|
13968
14112
|
var ATTR_ESCAPE_MAP = {
|
|
@@ -14330,7 +14474,7 @@ var require_dist_cjs5 = __commonJS((exports) => {
|
|
|
14330
14474
|
exports.parseXML = parseXML;
|
|
14331
14475
|
});
|
|
14332
14476
|
|
|
14333
|
-
// ../../node_modules/.bun/@aws-sdk+core@3.977.
|
|
14477
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
|
|
14334
14478
|
var require_protocols2 = __commonJS((exports) => {
|
|
14335
14479
|
var { SmithyRpcV2CborProtocol, loadSmithyRpcV2CborErrorCode } = require_cbor();
|
|
14336
14480
|
var { TypeRegistry, NormalizedSchema, deref } = require_schema();
|
|
@@ -17171,7 +17315,7 @@ var require_protocols2 = __commonJS((exports) => {
|
|
|
17171
17315
|
exports.parseXmlErrorBody = parseXmlErrorBody;
|
|
17172
17316
|
});
|
|
17173
17317
|
|
|
17174
|
-
// ../../node_modules/.bun/@aws-sdk+core@3.977.
|
|
17318
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
|
|
17175
17319
|
var require_httpAuthSchemes = __commonJS((exports) => {
|
|
17176
17320
|
var { ProviderError, booleanSelector: booleanSelector2, SelectorType: SelectorType3, loadConfig } = require_config();
|
|
17177
17321
|
var { setCredentialFeature } = require_client2();
|
|
@@ -17501,7 +17645,7 @@ var require_httpAuthSchemes = __commonJS((exports) => {
|
|
|
17501
17645
|
exports.validateSigningProperties = validateSigningProperties;
|
|
17502
17646
|
});
|
|
17503
17647
|
|
|
17504
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.
|
|
17648
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.70/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
17505
17649
|
var import_client5, import_config, ENV_KEY = "AWS_ACCESS_KEY_ID", ENV_SECRET = "AWS_SECRET_ACCESS_KEY", ENV_SESSION = "AWS_SESSION_TOKEN", ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION", ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE", ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID", fromEnv = (init) => async () => {
|
|
17506
17650
|
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
17507
17651
|
const accessKeyId = process.env[ENV_KEY];
|
|
@@ -17529,7 +17673,7 @@ var init_fromEnv = __esm(() => {
|
|
|
17529
17673
|
import_config = __toESM(require_config(), 1);
|
|
17530
17674
|
});
|
|
17531
17675
|
|
|
17532
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.
|
|
17676
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.70/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js
|
|
17533
17677
|
var exports_dist_es = {};
|
|
17534
17678
|
__export(exports_dist_es, {
|
|
17535
17679
|
fromEnv: () => fromEnv,
|
|
@@ -17942,14 +18086,15 @@ var init_dist_es2 = __esm(() => {
|
|
|
17942
18086
|
init_Endpoint();
|
|
17943
18087
|
});
|
|
17944
18088
|
|
|
17945
|
-
// ../../node_modules/.bun/@smithy+node-http-handler@4.
|
|
18089
|
+
// ../../node_modules/.bun/@smithy+node-http-handler@4.12.1/node_modules/@smithy/node-http-handler/dist-cjs/index.js
|
|
17946
18090
|
var require_dist_cjs6 = __commonJS((exports) => {
|
|
18091
|
+
var { hasOwn } = require_serde();
|
|
18092
|
+
var { streamCollector } = require_serde();
|
|
18093
|
+
exports.streamCollector = streamCollector;
|
|
17947
18094
|
var { buildQueryString, HttpResponse: HttpResponse2 } = require_protocols();
|
|
17948
18095
|
var node_https = __require("https");
|
|
17949
18096
|
var { Readable: Readable2 } = __require("stream");
|
|
17950
18097
|
var http2 = __require("http2");
|
|
17951
|
-
var { streamCollector } = require_serde();
|
|
17952
|
-
exports.streamCollector = streamCollector;
|
|
17953
18098
|
function buildAbortError(abortSignal) {
|
|
17954
18099
|
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : undefined;
|
|
17955
18100
|
if (reason) {
|
|
@@ -17971,6 +18116,8 @@ var require_dist_cjs6 = __commonJS((exports) => {
|
|
|
17971
18116
|
var getTransformedHeaders = (headers) => {
|
|
17972
18117
|
const transformedHeaders = {};
|
|
17973
18118
|
for (const name in headers) {
|
|
18119
|
+
if (!hasOwn(headers, name))
|
|
18120
|
+
continue;
|
|
17974
18121
|
const headerValues = headers[name];
|
|
17975
18122
|
transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
|
|
17976
18123
|
}
|
|
@@ -18157,6 +18304,8 @@ var require_dist_cjs6 = __commonJS((exports) => {
|
|
|
18157
18304
|
}
|
|
18158
18305
|
if (sockets && requests) {
|
|
18159
18306
|
for (const origin in sockets) {
|
|
18307
|
+
if (!hasOwn(sockets, origin))
|
|
18308
|
+
continue;
|
|
18160
18309
|
const socketsInUse = sockets[origin]?.length ?? 0;
|
|
18161
18310
|
const requestsEnqueued = requests[origin]?.length ?? 0;
|
|
18162
18311
|
if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
|
|
@@ -18406,6 +18555,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
18406
18555
|
destroy() {
|
|
18407
18556
|
this.refs = 0;
|
|
18408
18557
|
if (!this.session.destroyed) {
|
|
18558
|
+
this.session.setTimeout(0);
|
|
18409
18559
|
this.session.destroy();
|
|
18410
18560
|
}
|
|
18411
18561
|
}
|
|
@@ -18520,9 +18670,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
18520
18670
|
session.on("error", ensureDestroyed);
|
|
18521
18671
|
session.on("frameError", ensureDestroyed);
|
|
18522
18672
|
session.on("close", ensureDestroyed);
|
|
18523
|
-
|
|
18524
|
-
|
|
18525
|
-
}
|
|
18673
|
+
const timeout = connectionConfiguration.requestTimeout ?? 300000;
|
|
18674
|
+
session.setTimeout(timeout, ensureDestroyed);
|
|
18526
18675
|
ref.retain();
|
|
18527
18676
|
return ref;
|
|
18528
18677
|
}
|
|
@@ -18723,6 +18872,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
18723
18872
|
resolve({ response: httpResponse });
|
|
18724
18873
|
if (useIsolatedSession) {
|
|
18725
18874
|
session.close();
|
|
18875
|
+
clientHttp2Stream.on("end", () => {
|
|
18876
|
+
ref.destroy();
|
|
18877
|
+
});
|
|
18726
18878
|
}
|
|
18727
18879
|
});
|
|
18728
18880
|
clientHttp2Stream.on("close", () => {
|
|
@@ -18732,7 +18884,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
18732
18884
|
this.connectionManager.release(requestContext, ref);
|
|
18733
18885
|
}
|
|
18734
18886
|
if (!fulfilled) {
|
|
18735
|
-
|
|
18887
|
+
const error = new Error("Unexpected error: http2 request did not get a response");
|
|
18888
|
+
if (session.destroyed) {
|
|
18889
|
+
error.name = "TimeoutError";
|
|
18890
|
+
}
|
|
18891
|
+
rejectWithDestroy(error);
|
|
18736
18892
|
}
|
|
18737
18893
|
});
|
|
18738
18894
|
writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
|
|
@@ -18756,7 +18912,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
18756
18912
|
exports.NodeHttpHandler = NodeHttpHandler;
|
|
18757
18913
|
});
|
|
18758
18914
|
|
|
18759
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
18915
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
18760
18916
|
var import_config7, ECS_CONTAINER_HOST = "169.254.170.2", EKS_CONTAINER_HOST_IPv4 = "169.254.170.23", EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]", checkUrl = (url, logger) => {
|
|
18761
18917
|
if (url.protocol === "https:") {
|
|
18762
18918
|
return;
|
|
@@ -18790,7 +18946,7 @@ var init_checkUrl = __esm(() => {
|
|
|
18790
18946
|
import_config7 = __toESM(require_config(), 1);
|
|
18791
18947
|
});
|
|
18792
18948
|
|
|
18793
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
18949
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
18794
18950
|
function createGetRequest(url) {
|
|
18795
18951
|
return new import_protocols2.HttpRequest({
|
|
18796
18952
|
protocol: url.protocol,
|
|
@@ -18839,7 +18995,7 @@ var init_requestHelpers = __esm(() => {
|
|
|
18839
18995
|
import_serde2 = __toESM(require_serde(), 1);
|
|
18840
18996
|
});
|
|
18841
18997
|
|
|
18842
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
18998
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
18843
18999
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
18844
19000
|
return async () => {
|
|
18845
19001
|
for (let i2 = 0;i2 < maxRetries; ++i2) {
|
|
@@ -18853,7 +19009,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
18853
19009
|
};
|
|
18854
19010
|
};
|
|
18855
19011
|
|
|
18856
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
19012
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
18857
19013
|
import fs from "fs/promises";
|
|
18858
19014
|
var import_client6, import_config9, import_node_http_handler, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2", AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE", AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromHttp = (options = {}) => {
|
|
18859
19015
|
options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
@@ -18919,7 +19075,7 @@ var init_fromHttp = __esm(() => {
|
|
|
18919
19075
|
import_node_http_handler = __toESM(require_dist_cjs6(), 1);
|
|
18920
19076
|
});
|
|
18921
19077
|
|
|
18922
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.
|
|
19078
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js
|
|
18923
19079
|
var exports_dist_es3 = {};
|
|
18924
19080
|
__export(exports_dist_es3, {
|
|
18925
19081
|
fromHttp: () => fromHttp
|
|
@@ -18928,16 +19084,16 @@ var init_dist_es3 = __esm(() => {
|
|
|
18928
19084
|
init_fromHttp();
|
|
18929
19085
|
});
|
|
18930
19086
|
|
|
18931
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
19087
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
18932
19088
|
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
18933
19089
|
|
|
18934
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
19090
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
18935
19091
|
var EXPIRE_WINDOW_MS, REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
18936
19092
|
var init_constants = __esm(() => {
|
|
18937
19093
|
EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
18938
19094
|
});
|
|
18939
19095
|
|
|
18940
|
-
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.
|
|
19096
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
|
|
18941
19097
|
var require_sso_oidc = __commonJS((exports) => {
|
|
18942
19098
|
var { awsEndpointFunctions: awsEndpointFunctions2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client2();
|
|
18943
19099
|
var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs2();
|
|
@@ -19015,7 +19171,7 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
19015
19171
|
Region: { type: "builtInParams", name: "region" },
|
|
19016
19172
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
19017
19173
|
};
|
|
19018
|
-
var version = "3.997.
|
|
19174
|
+
var version = "3.997.43";
|
|
19019
19175
|
var packageInfo = {
|
|
19020
19176
|
version
|
|
19021
19177
|
};
|
|
@@ -19692,7 +19848,7 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
19692
19848
|
exports.errorTypeRegistries = errorTypeRegistries2;
|
|
19693
19849
|
});
|
|
19694
19850
|
|
|
19695
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
19851
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
19696
19852
|
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
19697
19853
|
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
19698
19854
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
@@ -19704,7 +19860,7 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
19704
19860
|
return ssoOidcClient;
|
|
19705
19861
|
};
|
|
19706
19862
|
|
|
19707
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
19863
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
19708
19864
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
19709
19865
|
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
19710
19866
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
@@ -19717,7 +19873,7 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConf
|
|
|
19717
19873
|
};
|
|
19718
19874
|
var init_getNewSsoOidcToken = () => {};
|
|
19719
19875
|
|
|
19720
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
19876
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
19721
19877
|
var import_config11, validateTokenExpiry = (token) => {
|
|
19722
19878
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
19723
19879
|
throw new import_config11.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
@@ -19728,7 +19884,7 @@ var init_validateTokenExpiry = __esm(() => {
|
|
|
19728
19884
|
import_config11 = __toESM(require_config(), 1);
|
|
19729
19885
|
});
|
|
19730
19886
|
|
|
19731
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
19887
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
19732
19888
|
var import_config12, validateTokenKey = (key, value, forRefresh = false) => {
|
|
19733
19889
|
if (typeof value === "undefined") {
|
|
19734
19890
|
throw new import_config12.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
@@ -19739,7 +19895,7 @@ var init_validateTokenKey = __esm(() => {
|
|
|
19739
19895
|
import_config12 = __toESM(require_config(), 1);
|
|
19740
19896
|
});
|
|
19741
19897
|
|
|
19742
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
19898
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
19743
19899
|
import { promises as fsPromises } from "fs";
|
|
19744
19900
|
var import_config13, writeFile, writeSSOTokenToFile = (id, ssoToken) => {
|
|
19745
19901
|
const tokenFilepath = import_config13.getSSOTokenFilepath(id);
|
|
@@ -19751,8 +19907,8 @@ var init_writeSSOTokenToFile = __esm(() => {
|
|
|
19751
19907
|
({ writeFile } = fsPromises);
|
|
19752
19908
|
});
|
|
19753
19909
|
|
|
19754
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
19755
|
-
var import_config14,
|
|
19910
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
19911
|
+
var import_config14, lastRefreshAttemptTimes, fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
19756
19912
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
19757
19913
|
const profiles = await import_config14.parseKnownFiles(init);
|
|
19758
19914
|
const profileName = import_config14.getProfileName({
|
|
@@ -19786,11 +19942,15 @@ var import_config14, lastRefreshAttemptTime, fromSso = (init = {}) => async ({ c
|
|
|
19786
19942
|
validateTokenKey("accessToken", ssoToken.accessToken);
|
|
19787
19943
|
validateTokenKey("expiresAt", ssoToken.expiresAt);
|
|
19788
19944
|
const { accessToken, expiresAt } = ssoToken;
|
|
19789
|
-
const existingToken = {
|
|
19945
|
+
const existingToken = {
|
|
19946
|
+
token: accessToken,
|
|
19947
|
+
expiration: new Date(expiresAt)
|
|
19948
|
+
};
|
|
19790
19949
|
if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
|
|
19791
19950
|
return existingToken;
|
|
19792
19951
|
}
|
|
19793
|
-
|
|
19952
|
+
const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;
|
|
19953
|
+
if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {
|
|
19794
19954
|
validateTokenExpiry(existingToken);
|
|
19795
19955
|
return existingToken;
|
|
19796
19956
|
}
|
|
@@ -19798,7 +19958,7 @@ var import_config14, lastRefreshAttemptTime, fromSso = (init = {}) => async ({ c
|
|
|
19798
19958
|
validateTokenKey("clientSecret", ssoToken.clientSecret, true);
|
|
19799
19959
|
validateTokenKey("refreshToken", ssoToken.refreshToken, true);
|
|
19800
19960
|
try {
|
|
19801
|
-
|
|
19961
|
+
lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
|
|
19802
19962
|
const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
|
|
19803
19963
|
validateTokenKey("accessToken", newSsoOidcToken.accessToken);
|
|
19804
19964
|
validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
|
|
@@ -19827,15 +19987,15 @@ var init_fromSso = __esm(() => {
|
|
|
19827
19987
|
init_validateTokenKey();
|
|
19828
19988
|
init_writeSSOTokenToFile();
|
|
19829
19989
|
import_config14 = __toESM(require_config(), 1);
|
|
19830
|
-
|
|
19990
|
+
lastRefreshAttemptTimes = new Map;
|
|
19831
19991
|
});
|
|
19832
19992
|
|
|
19833
|
-
// ../../node_modules/.bun/@aws-sdk+token-providers@3.
|
|
19993
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/index.js
|
|
19834
19994
|
var init_dist_es4 = __esm(() => {
|
|
19835
19995
|
init_fromSso();
|
|
19836
19996
|
});
|
|
19837
19997
|
|
|
19838
|
-
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.
|
|
19998
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
|
|
19839
19999
|
function createAwsAuthSigv4HttpAuthOption2(authParameters) {
|
|
19840
20000
|
return {
|
|
19841
20001
|
schemeId: "aws.auth#sigv4",
|
|
@@ -19886,7 +20046,7 @@ var awsEndpointFunctions2, emitWarningIfUnsupportedVersion$1, createDefaultUserA
|
|
|
19886
20046
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
19887
20047
|
defaultSigningName: "awsssoportal"
|
|
19888
20048
|
});
|
|
19889
|
-
}, commonParams2, version = "3.997.
|
|
20049
|
+
}, commonParams2, version = "3.997.43", packageInfo, k2 = "ref", a2 = -1, b2 = true, c2 = "isSet", d2 = "PartitionResult", e2 = "booleanEquals", f2 = "getAttr", g2, h2, i2, j2, _data2, root2 = 2, r2 = 1e8, nodes2, bdd2, cache2, defaultEndpointResolver2 = (endpointParams, context = {}) => {
|
|
19890
20050
|
return cache2.get(endpointParams, () => decideEndpoint2(bdd2, {
|
|
19891
20051
|
endpointParams,
|
|
19892
20052
|
logger: context.logger
|
|
@@ -20283,7 +20443,7 @@ var init_sso = __esm(() => {
|
|
|
20283
20443
|
$SSOClient = SSOClient;
|
|
20284
20444
|
});
|
|
20285
20445
|
|
|
20286
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
20446
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js
|
|
20287
20447
|
var exports_loadSso = {};
|
|
20288
20448
|
__export(exports_loadSso, {
|
|
20289
20449
|
SSOClient: () => $SSOClient,
|
|
@@ -20293,7 +20453,7 @@ var init_loadSso = __esm(() => {
|
|
|
20293
20453
|
init_sso();
|
|
20294
20454
|
});
|
|
20295
20455
|
|
|
20296
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
20456
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
20297
20457
|
var import_client7, import_config15, SHOULD_FAIL_CREDENTIAL_CHAIN = false, resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
|
|
20298
20458
|
let token;
|
|
20299
20459
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
@@ -20382,7 +20542,7 @@ var init_resolveSSOCredentials = __esm(() => {
|
|
|
20382
20542
|
import_config15 = __toESM(require_config(), 1);
|
|
20383
20543
|
});
|
|
20384
20544
|
|
|
20385
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
20545
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
20386
20546
|
var import_config16, validateSsoProfile = (profile, logger) => {
|
|
20387
20547
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
20388
20548
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
@@ -20395,7 +20555,7 @@ var init_validateSsoProfile = __esm(() => {
|
|
|
20395
20555
|
import_config16 = __toESM(require_config(), 1);
|
|
20396
20556
|
});
|
|
20397
20557
|
|
|
20398
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
20558
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
20399
20559
|
var import_config17, fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
20400
20560
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
20401
20561
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
@@ -20477,7 +20637,7 @@ var init_fromSSO = __esm(() => {
|
|
|
20477
20637
|
import_config17 = __toESM(require_config(), 1);
|
|
20478
20638
|
});
|
|
20479
20639
|
|
|
20480
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.
|
|
20640
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js
|
|
20481
20641
|
var exports_dist_es4 = {};
|
|
20482
20642
|
__export(exports_dist_es4, {
|
|
20483
20643
|
validateSsoProfile: () => validateSsoProfile,
|
|
@@ -20489,7 +20649,7 @@ var init_dist_es5 = __esm(() => {
|
|
|
20489
20649
|
init_validateSsoProfile();
|
|
20490
20650
|
});
|
|
20491
20651
|
|
|
20492
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
20652
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
20493
20653
|
var import_client8, import_config18, resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
20494
20654
|
const sourceProvidersMap = {
|
|
20495
20655
|
EcsContainer: async (options) => {
|
|
@@ -20520,7 +20680,7 @@ var init_resolveCredentialSource = __esm(() => {
|
|
|
20520
20680
|
import_config18 = __toESM(require_config(), 1);
|
|
20521
20681
|
});
|
|
20522
20682
|
|
|
20523
|
-
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.
|
|
20683
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
|
|
20524
20684
|
var require_sts = __commonJS((exports) => {
|
|
20525
20685
|
var { awsEndpointFunctions: awsEndpointFunctions3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$12, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2, setCredentialFeature: setCredentialFeature5, stsRegionDefaultResolver } = require_client2();
|
|
20526
20686
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
@@ -20851,7 +21011,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
20851
21011
|
Region: { type: "builtInParams", name: "region" },
|
|
20852
21012
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
20853
21013
|
};
|
|
20854
|
-
var version2 = "3.997.
|
|
21014
|
+
var version2 = "3.997.43";
|
|
20855
21015
|
var packageInfo2 = {
|
|
20856
21016
|
version: version2
|
|
20857
21017
|
};
|
|
@@ -21542,7 +21702,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
21542
21702
|
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
|
21543
21703
|
});
|
|
21544
21704
|
|
|
21545
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
21705
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
21546
21706
|
var import_client9, import_config19, isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
21547
21707
|
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
|
|
21548
21708
|
}, isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
|
|
@@ -21610,7 +21770,7 @@ var init_resolveAssumeRoleCredentials = __esm(() => {
|
|
|
21610
21770
|
import_config19 = __toESM(require_config(), 1);
|
|
21611
21771
|
});
|
|
21612
21772
|
|
|
21613
|
-
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.
|
|
21773
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
|
|
21614
21774
|
var require_signin = __commonJS((exports) => {
|
|
21615
21775
|
var { awsEndpointFunctions: awsEndpointFunctions3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$12, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2 } = require_client2();
|
|
21616
21776
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
@@ -21688,7 +21848,7 @@ var require_signin = __commonJS((exports) => {
|
|
|
21688
21848
|
Region: { type: "builtInParams", name: "region" },
|
|
21689
21849
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
21690
21850
|
};
|
|
21691
|
-
var version2 = "3.997.
|
|
21851
|
+
var version2 = "3.997.43";
|
|
21692
21852
|
var packageInfo2 = {
|
|
21693
21853
|
version: version2
|
|
21694
21854
|
};
|
|
@@ -22342,7 +22502,7 @@ var require_signin = __commonJS((exports) => {
|
|
|
22342
22502
|
exports.errorTypeRegistries = errorTypeRegistries3;
|
|
22343
22503
|
});
|
|
22344
22504
|
|
|
22345
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.
|
|
22505
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.77/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
22346
22506
|
import { createHash, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
22347
22507
|
import { promises as fs2 } from "fs";
|
|
22348
22508
|
import { homedir } from "os";
|
|
@@ -22606,7 +22766,7 @@ var init_LoginCredentialsFetcher = __esm(() => {
|
|
|
22606
22766
|
};
|
|
22607
22767
|
});
|
|
22608
22768
|
|
|
22609
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.
|
|
22769
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.77/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
22610
22770
|
var import_client10, import_config21, fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
22611
22771
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
22612
22772
|
const profiles = await import_config21.parseKnownFiles(init || {});
|
|
@@ -22630,7 +22790,7 @@ var init_fromLoginCredentials = __esm(() => {
|
|
|
22630
22790
|
import_config21 = __toESM(require_config(), 1);
|
|
22631
22791
|
});
|
|
22632
22792
|
|
|
22633
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.
|
|
22793
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.77/node_modules/@aws-sdk/credential-provider-login/dist-es/index.js
|
|
22634
22794
|
var exports_dist_es5 = {};
|
|
22635
22795
|
__export(exports_dist_es5, {
|
|
22636
22796
|
fromLoginCredentials: () => fromLoginCredentials
|
|
@@ -22639,7 +22799,7 @@ var init_dist_es6 = __esm(() => {
|
|
|
22639
22799
|
init_fromLoginCredentials();
|
|
22640
22800
|
});
|
|
22641
22801
|
|
|
22642
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
22802
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
22643
22803
|
var import_client11, isLoginProfile = (data) => {
|
|
22644
22804
|
return Boolean(data && data.login_session);
|
|
22645
22805
|
}, resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
@@ -22654,7 +22814,7 @@ var init_resolveLoginCredentials = __esm(() => {
|
|
|
22654
22814
|
import_client11 = __toESM(require_client2(), 1);
|
|
22655
22815
|
});
|
|
22656
22816
|
|
|
22657
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.
|
|
22817
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
22658
22818
|
var import_client12, getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
22659
22819
|
if (data.Version !== 1) {
|
|
22660
22820
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
@@ -22688,7 +22848,7 @@ var init_getValidatedProcessCredentials = __esm(() => {
|
|
|
22688
22848
|
import_client12 = __toESM(require_client2(), 1);
|
|
22689
22849
|
});
|
|
22690
22850
|
|
|
22691
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.
|
|
22851
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
22692
22852
|
import { exec } from "child_process";
|
|
22693
22853
|
import { promisify } from "util";
|
|
22694
22854
|
var import_config22, resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
@@ -22723,7 +22883,7 @@ var init_resolveProcessCredentials = __esm(() => {
|
|
|
22723
22883
|
import_config22 = __toESM(require_config(), 1);
|
|
22724
22884
|
});
|
|
22725
22885
|
|
|
22726
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.
|
|
22886
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
22727
22887
|
var import_config23, fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
22728
22888
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
22729
22889
|
const profiles = await import_config23.parseKnownFiles(init);
|
|
@@ -22736,7 +22896,7 @@ var init_fromProcess = __esm(() => {
|
|
|
22736
22896
|
import_config23 = __toESM(require_config(), 1);
|
|
22737
22897
|
});
|
|
22738
22898
|
|
|
22739
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.
|
|
22899
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/index.js
|
|
22740
22900
|
var exports_dist_es6 = {};
|
|
22741
22901
|
__export(exports_dist_es6, {
|
|
22742
22902
|
fromProcess: () => fromProcess
|
|
@@ -22745,7 +22905,7 @@ var init_dist_es7 = __esm(() => {
|
|
|
22745
22905
|
init_fromProcess();
|
|
22746
22906
|
});
|
|
22747
22907
|
|
|
22748
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
22908
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
22749
22909
|
var import_client13, isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", resolveProcessCredentials2 = async (options, profile) => {
|
|
22750
22910
|
const { fromProcess: fromProcess2 } = await Promise.resolve().then(() => (init_dist_es7(), exports_dist_es6));
|
|
22751
22911
|
const credentials = await fromProcess2({
|
|
@@ -22758,7 +22918,7 @@ var init_resolveProcessCredentials2 = __esm(() => {
|
|
|
22758
22918
|
import_client13 = __toESM(require_client2(), 1);
|
|
22759
22919
|
});
|
|
22760
22920
|
|
|
22761
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
22921
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
22762
22922
|
var import_client14, resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
22763
22923
|
const { fromSSO: fromSSO2 } = await Promise.resolve().then(() => (init_dist_es5(), exports_dist_es4));
|
|
22764
22924
|
return fromSSO2({
|
|
@@ -22780,7 +22940,7 @@ var init_resolveSsoCredentials = __esm(() => {
|
|
|
22780
22940
|
import_client14 = __toESM(require_client2(), 1);
|
|
22781
22941
|
});
|
|
22782
22942
|
|
|
22783
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
22943
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
22784
22944
|
var import_client15, isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1, resolveStaticCredentials = async (profile, options) => {
|
|
22785
22945
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
22786
22946
|
const credentials = {
|
|
@@ -22796,7 +22956,7 @@ var init_resolveStaticCredentials = __esm(() => {
|
|
|
22796
22956
|
import_client15 = __toESM(require_client2(), 1);
|
|
22797
22957
|
});
|
|
22798
22958
|
|
|
22799
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.
|
|
22959
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.76/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
22800
22960
|
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
22801
22961
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
22802
22962
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
@@ -22823,7 +22983,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
22823
22983
|
});
|
|
22824
22984
|
};
|
|
22825
22985
|
|
|
22826
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.
|
|
22986
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.76/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
22827
22987
|
import { readFileSync } from "fs";
|
|
22828
22988
|
var import_client16, import_config24, ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE", ENV_ROLE_ARN = "AWS_ROLE_ARN", ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME", fromTokenFile = (init = {}) => async (awsIdentityProperties) => {
|
|
22829
22989
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
@@ -22851,7 +23011,7 @@ var init_fromTokenFile = __esm(() => {
|
|
|
22851
23011
|
import_config24 = __toESM(require_config(), 1);
|
|
22852
23012
|
});
|
|
22853
23013
|
|
|
22854
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.
|
|
23014
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.76/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js
|
|
22855
23015
|
var exports_dist_es7 = {};
|
|
22856
23016
|
__export(exports_dist_es7, {
|
|
22857
23017
|
fromWebToken: () => fromWebToken,
|
|
@@ -22861,7 +23021,7 @@ var init_dist_es8 = __esm(() => {
|
|
|
22861
23021
|
init_fromTokenFile();
|
|
22862
23022
|
});
|
|
22863
23023
|
|
|
22864
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
23024
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
22865
23025
|
var import_client17, isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
|
|
22866
23026
|
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => (init_dist_es8(), exports_dist_es7));
|
|
22867
23027
|
const credentials = await fromTokenFile2({
|
|
@@ -22880,7 +23040,7 @@ var init_resolveWebIdentityCredentials = __esm(() => {
|
|
|
22880
23040
|
import_client17 = __toESM(require_client2(), 1);
|
|
22881
23041
|
});
|
|
22882
23042
|
|
|
22883
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
23043
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
22884
23044
|
var import_config25, resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
22885
23045
|
const data = profiles[profileName];
|
|
22886
23046
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
@@ -22916,7 +23076,7 @@ var init_resolveProfileData = __esm(() => {
|
|
|
22916
23076
|
import_config25 = __toESM(require_config(), 1);
|
|
22917
23077
|
});
|
|
22918
23078
|
|
|
22919
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
23079
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
22920
23080
|
var import_config26, fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
22921
23081
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
22922
23082
|
const profiles = await import_config26.parseKnownFiles(init);
|
|
@@ -22929,7 +23089,7 @@ var init_fromIni = __esm(() => {
|
|
|
22929
23089
|
import_config26 = __toESM(require_config(), 1);
|
|
22930
23090
|
});
|
|
22931
23091
|
|
|
22932
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.
|
|
23092
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js
|
|
22933
23093
|
var exports_dist_es8 = {};
|
|
22934
23094
|
__export(exports_dist_es8, {
|
|
22935
23095
|
fromIni: () => fromIni
|
|
@@ -22943,12 +23103,13 @@ import { randomUUID as randomUUID4 } from "crypto";
|
|
|
22943
23103
|
// package.json
|
|
22944
23104
|
var package_default = {
|
|
22945
23105
|
name: "@hasna/skills",
|
|
22946
|
-
version: "0.
|
|
23106
|
+
version: "0.3.0",
|
|
22947
23107
|
description: "Skills library for AI coding agents",
|
|
22948
23108
|
type: "module",
|
|
22949
23109
|
bin: {
|
|
22950
23110
|
skills: "bin/index.js",
|
|
22951
23111
|
"skills-mcp": "bin/mcp.js",
|
|
23112
|
+
"skills-serve": "bin/server.js",
|
|
22952
23113
|
"skills-server": "bin/server.js",
|
|
22953
23114
|
"skills-worker": "bin/worker.js",
|
|
22954
23115
|
"skills-migrate": "bin/migrate.js"
|
|
@@ -23034,6 +23195,7 @@ var package_default = {
|
|
|
23034
23195
|
dependencies: {
|
|
23035
23196
|
"@aws-sdk/client-ecs": "^3.1079.0",
|
|
23036
23197
|
"@aws-sdk/client-s3": "^3.1079.0",
|
|
23198
|
+
"@hasna/contracts": "1.0.1",
|
|
23037
23199
|
"@hasna/events": "0.1.16",
|
|
23038
23200
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
23039
23201
|
chalk: "^5.3.0",
|
|
@@ -23191,7 +23353,7 @@ function ownBytes(view) {
|
|
|
23191
23353
|
return out;
|
|
23192
23354
|
}
|
|
23193
23355
|
|
|
23194
|
-
// ../../node_modules/.bun/@aws-sdk+checksums@3.1000.
|
|
23356
|
+
// ../../node_modules/.bun/@aws-sdk+checksums@3.1000.29/node_modules/@aws-sdk/checksums/dist-cjs/submodules/flexible-checksums/index.js
|
|
23195
23357
|
var { setFeature } = require_client2();
|
|
23196
23358
|
var { HttpRequest } = require_protocols();
|
|
23197
23359
|
var { isArrayBuffer, toUint8Array, createBufferedReadable, createChecksumStream } = require_serde();
|
|
@@ -23584,10 +23746,10 @@ var $NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = NODE_RESPONSE_CHECKSUM_V
|
|
|
23584
23746
|
var $getFlexibleChecksumsPlugin = getFlexibleChecksumsPlugin;
|
|
23585
23747
|
var $resolveFlexibleChecksumsConfig = resolveFlexibleChecksumsConfig;
|
|
23586
23748
|
|
|
23587
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
23749
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
23588
23750
|
var import_client23 = __toESM(require_client2(), 1);
|
|
23589
23751
|
|
|
23590
|
-
// ../../node_modules/.bun/@aws-sdk+middleware-sdk-s3@3.972.
|
|
23752
|
+
// ../../node_modules/.bun/@aws-sdk+middleware-sdk-s3@3.972.75/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js
|
|
23591
23753
|
var { NoOpLogger, getSmithyContext } = require_client();
|
|
23592
23754
|
var { HttpRequest: HttpRequest2, HttpResponse } = require_protocols();
|
|
23593
23755
|
var { parseRfc7231DateTime } = require_serde();
|
|
@@ -24192,7 +24354,7 @@ var $getThrow200ExceptionsPlugin = getThrow200ExceptionsPlugin;
|
|
|
24192
24354
|
var $getValidateBucketNamePlugin = getValidateBucketNamePlugin;
|
|
24193
24355
|
var $resolveS3Config = resolveS3Config;
|
|
24194
24356
|
|
|
24195
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
24357
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
24196
24358
|
var import_core = __toESM(require_dist_cjs2(), 1);
|
|
24197
24359
|
var import_client24 = __toESM(require_client(), 1);
|
|
24198
24360
|
var import_config29 = __toESM(require_config(), 1);
|
|
@@ -24202,17 +24364,17 @@ var import_protocols6 = __toESM(require_protocols(), 1);
|
|
|
24202
24364
|
var import_retry4 = __toESM(require_retry(), 1);
|
|
24203
24365
|
var import_schema2 = __toESM(require_schema(), 1);
|
|
24204
24366
|
|
|
24205
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
24367
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
|
|
24206
24368
|
var import_httpAuthSchemes = __toESM(require_httpAuthSchemes(), 1);
|
|
24207
24369
|
var import_signature_v4_multi_region = __toESM(require_dist_cjs4(), 1);
|
|
24208
24370
|
var import_client2 = __toESM(require_client(), 1);
|
|
24209
24371
|
var import_endpoints3 = __toESM(require_endpoints(), 1);
|
|
24210
24372
|
|
|
24211
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
24373
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
|
|
24212
24374
|
var import_client = __toESM(require_client2(), 1);
|
|
24213
24375
|
var import_endpoints2 = __toESM(require_endpoints(), 1);
|
|
24214
24376
|
|
|
24215
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
24377
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/bdd.js
|
|
24216
24378
|
var import_endpoints = __toESM(require_endpoints(), 1);
|
|
24217
24379
|
var aw = "ref";
|
|
24218
24380
|
var ax = "argv";
|
|
@@ -26156,7 +26318,7 @@ var nodes = new Int32Array([
|
|
|
26156
26318
|
]);
|
|
26157
26319
|
var bdd = import_endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
26158
26320
|
|
|
26159
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
26321
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
|
|
26160
26322
|
var cache = new import_endpoints2.EndpointCache({
|
|
26161
26323
|
size: 50,
|
|
26162
26324
|
params: [
|
|
@@ -26184,7 +26346,7 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
26184
26346
|
};
|
|
26185
26347
|
import_endpoints2.customEndpointFunctions.aws = import_client.awsEndpointFunctions;
|
|
26186
26348
|
|
|
26187
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
26349
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
|
|
26188
26350
|
var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
26189
26351
|
if (!input) {
|
|
26190
26352
|
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
@@ -26300,11 +26462,11 @@ var resolveHttpAuthSchemeConfig = (config) => {
|
|
|
26300
26462
|
});
|
|
26301
26463
|
};
|
|
26302
26464
|
|
|
26303
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
26465
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
|
|
26304
26466
|
var import_client3 = __toESM(require_client(), 1);
|
|
26305
26467
|
var import_endpoints4 = __toESM(require_endpoints(), 1);
|
|
26306
26468
|
|
|
26307
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
26469
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/EndpointParameters.js
|
|
26308
26470
|
var resolveClientEndpointParameters = (options) => {
|
|
26309
26471
|
return Object.assign(options, {
|
|
26310
26472
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
@@ -26330,7 +26492,7 @@ var commonParams = {
|
|
|
26330
26492
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
26331
26493
|
};
|
|
26332
26494
|
|
|
26333
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
26495
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
|
|
26334
26496
|
var command = import_client3.makeBuilder(commonParams, "AmazonS3", "S3Client", import_endpoints4.getEndpointPlugin);
|
|
26335
26497
|
var _ep0 = {
|
|
26336
26498
|
Bucket: { type: "contextParams", name: "Bucket" },
|
|
@@ -26362,10 +26524,10 @@ var _mw11 = (Command, cs, config, o2) => [
|
|
|
26362
26524
|
$getSsecPlugin(config)
|
|
26363
26525
|
];
|
|
26364
26526
|
|
|
26365
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
26527
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js
|
|
26366
26528
|
var import_schema = __toESM(require_schema(), 1);
|
|
26367
26529
|
|
|
26368
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
26530
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js
|
|
26369
26531
|
var import_client4 = __toESM(require_client(), 1);
|
|
26370
26532
|
class S3ServiceException extends import_client4.ServiceException {
|
|
26371
26533
|
constructor(options) {
|
|
@@ -26374,7 +26536,7 @@ class S3ServiceException extends import_client4.ServiceException {
|
|
|
26374
26536
|
}
|
|
26375
26537
|
}
|
|
26376
26538
|
|
|
26377
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
26539
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js
|
|
26378
26540
|
class NoSuchUpload extends S3ServiceException {
|
|
26379
26541
|
name = "NoSuchUpload";
|
|
26380
26542
|
$fault = "client";
|
|
@@ -26652,7 +26814,7 @@ class ObjectAlreadyInActiveTierError extends S3ServiceException {
|
|
|
26652
26814
|
}
|
|
26653
26815
|
}
|
|
26654
26816
|
|
|
26655
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
26817
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js
|
|
26656
26818
|
var _A = "Account";
|
|
26657
26819
|
var _AAO = "AnalyticsAndOperator";
|
|
26658
26820
|
var _AC = "AccelerateConfiguration";
|
|
@@ -32104,13 +32266,13 @@ var WriteGetObjectResponse$ = [
|
|
|
32104
32266
|
() => __Unit
|
|
32105
32267
|
];
|
|
32106
32268
|
|
|
32107
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32269
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateSessionCommand.js
|
|
32108
32270
|
class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSession$) {
|
|
32109
32271
|
}
|
|
32110
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32272
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/package.json
|
|
32111
32273
|
var package_default2 = {
|
|
32112
32274
|
name: "@aws-sdk/client-s3",
|
|
32113
|
-
version: "3.
|
|
32275
|
+
version: "3.1126.0",
|
|
32114
32276
|
description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
32115
32277
|
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",
|
|
32116
32278
|
license: "Apache-2.0",
|
|
@@ -32164,21 +32326,21 @@ var package_default2 = {
|
|
|
32164
32326
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
32165
32327
|
},
|
|
32166
32328
|
dependencies: {
|
|
32167
|
-
"@aws-sdk/checksums": "^3.1000.
|
|
32168
|
-
"@aws-sdk/core": "^3.977.
|
|
32169
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
32170
|
-
"@aws-sdk/middleware-sdk-s3": "^3.972.
|
|
32171
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
32172
|
-
"@aws-sdk/types": "^3.974.
|
|
32173
|
-
"@smithy/core": "^3.
|
|
32174
|
-
"@smithy/fetch-http-handler": "^5.
|
|
32175
|
-
"@smithy/node-http-handler": "^4.
|
|
32176
|
-
"@smithy/types": "^4.
|
|
32329
|
+
"@aws-sdk/checksums": "^3.1000.29",
|
|
32330
|
+
"@aws-sdk/core": "^3.977.9",
|
|
32331
|
+
"@aws-sdk/credential-provider-node": "^3.972.82",
|
|
32332
|
+
"@aws-sdk/middleware-sdk-s3": "^3.972.75",
|
|
32333
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.46",
|
|
32334
|
+
"@aws-sdk/types": "^3.974.5",
|
|
32335
|
+
"@smithy/core": "^3.33.3",
|
|
32336
|
+
"@smithy/fetch-http-handler": "^5.7.2",
|
|
32337
|
+
"@smithy/node-http-handler": "^4.11.3",
|
|
32338
|
+
"@smithy/types": "^4.17.2",
|
|
32177
32339
|
tslib: "^2.6.2"
|
|
32178
32340
|
},
|
|
32179
32341
|
devDependencies: {
|
|
32180
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
32181
|
-
"@smithy/snapshot-testing": "^2.2
|
|
32342
|
+
"@aws-sdk/signature-v4-crt": "3.1126.0",
|
|
32343
|
+
"@smithy/snapshot-testing": "^2.3.2",
|
|
32182
32344
|
"@tsconfig/node20": "20.1.8",
|
|
32183
32345
|
"@types/node": "^20.14.8",
|
|
32184
32346
|
concurrently: "7.0.0",
|
|
@@ -32192,15 +32354,15 @@ var package_default2 = {
|
|
|
32192
32354
|
}
|
|
32193
32355
|
};
|
|
32194
32356
|
|
|
32195
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32357
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32196
32358
|
var import_client19 = __toESM(require_client2(), 1);
|
|
32197
32359
|
var import_httpAuthSchemes3 = __toESM(require_httpAuthSchemes(), 1);
|
|
32198
32360
|
|
|
32199
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.
|
|
32361
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
32200
32362
|
init_dist_es();
|
|
32201
32363
|
var import_config27 = __toESM(require_config(), 1);
|
|
32202
32364
|
|
|
32203
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.
|
|
32365
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
|
|
32204
32366
|
var import_config10 = __toESM(require_config(), 1);
|
|
32205
32367
|
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
32206
32368
|
var remoteProvider = async (init) => {
|
|
@@ -32219,7 +32381,7 @@ var remoteProvider = async (init) => {
|
|
|
32219
32381
|
return fromInstanceMetadata2(init);
|
|
32220
32382
|
};
|
|
32221
32383
|
|
|
32222
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.
|
|
32384
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js
|
|
32223
32385
|
function memoizeChain(providers, treatAsExpired) {
|
|
32224
32386
|
const chain2 = internalCreateChain(providers);
|
|
32225
32387
|
let activeLock;
|
|
@@ -32250,7 +32412,7 @@ function memoizeChain(providers, treatAsExpired) {
|
|
|
32250
32412
|
if (!passiveLock) {
|
|
32251
32413
|
passiveLock = chain2(options).then((c2) => {
|
|
32252
32414
|
credentials = c2;
|
|
32253
|
-
}).finally(() => {
|
|
32415
|
+
}).catch(() => {}).finally(() => {
|
|
32254
32416
|
passiveLock = undefined;
|
|
32255
32417
|
});
|
|
32256
32418
|
}
|
|
@@ -32283,7 +32445,7 @@ var internalCreateChain = (providers) => async (awsIdentityProperties) => {
|
|
|
32283
32445
|
throw lastProviderError;
|
|
32284
32446
|
};
|
|
32285
32447
|
|
|
32286
|
-
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.
|
|
32448
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
32287
32449
|
var multipleCredentialSourceWarningEmitted = false;
|
|
32288
32450
|
var defaultProvider = (init = {}) => memoizeChain([
|
|
32289
32451
|
async () => {
|
|
@@ -32349,7 +32511,7 @@ var defaultProvider = (init = {}) => memoizeChain([
|
|
|
32349
32511
|
}
|
|
32350
32512
|
], credentialsTreatedAsExpired);
|
|
32351
32513
|
var credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
|
|
32352
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32514
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32353
32515
|
var import_checksum2 = __toESM(require_checksum(), 1);
|
|
32354
32516
|
var import_client20 = __toESM(require_client(), 1);
|
|
32355
32517
|
var import_config28 = __toESM(require_config(), 1);
|
|
@@ -32358,7 +32520,7 @@ var import_retry3 = __toESM(require_retry(), 1);
|
|
|
32358
32520
|
var import_serde4 = __toESM(require_serde(), 1);
|
|
32359
32521
|
var import_node_http_handler2 = __toESM(require_dist_cjs6(), 1);
|
|
32360
32522
|
|
|
32361
|
-
// ../../node_modules/.bun/@aws-sdk+checksums@3.1000.
|
|
32523
|
+
// ../../node_modules/.bun/@aws-sdk+checksums@3.1000.29/node_modules/@aws-sdk/checksums/dist-cjs/submodules/sha/index.js
|
|
32362
32524
|
var { toUint8Array: toUint8Array2, concatBytes } = require_serde();
|
|
32363
32525
|
var { createHmac, createHash: createHash2 } = __require("crypto");
|
|
32364
32526
|
var { Sha256: Sha2562, Sha256Js, Sha256Node } = require_checksum();
|
|
@@ -32587,7 +32749,7 @@ var subtle = typeof digest === "function" && typeof sign2 === "function" && type
|
|
|
32587
32749
|
var MAX_PENDING_BYTES = 8 * 1024 * 1024;
|
|
32588
32750
|
var $Sha1 = Sha1Node;
|
|
32589
32751
|
|
|
32590
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32752
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js
|
|
32591
32753
|
var import_httpAuthSchemes2 = __toESM(require_httpAuthSchemes(), 1);
|
|
32592
32754
|
var import_signature_v4_multi_region2 = __toESM(require_dist_cjs4(), 1);
|
|
32593
32755
|
var import_checksum = __toESM(require_checksum(), 1);
|
|
@@ -32639,7 +32801,7 @@ var getRuntimeConfig2 = (config) => {
|
|
|
32639
32801
|
};
|
|
32640
32802
|
};
|
|
32641
32803
|
|
|
32642
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32804
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32643
32805
|
var getRuntimeConfig3 = (config) => {
|
|
32644
32806
|
import_client20.emitWarningIfUnsupportedVersion(process.version);
|
|
32645
32807
|
const defaultsMode = import_config28.resolveDefaultsModeConfig(config);
|
|
@@ -32680,12 +32842,12 @@ var getRuntimeConfig3 = (config) => {
|
|
|
32680
32842
|
};
|
|
32681
32843
|
};
|
|
32682
32844
|
|
|
32683
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32845
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
|
|
32684
32846
|
var import_client21 = __toESM(require_client2(), 1);
|
|
32685
32847
|
var import_client22 = __toESM(require_client(), 1);
|
|
32686
32848
|
var import_protocols5 = __toESM(require_protocols(), 1);
|
|
32687
32849
|
|
|
32688
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32850
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthExtensionConfiguration.js
|
|
32689
32851
|
var getHttpAuthExtensionConfiguration2 = (runtimeConfig) => {
|
|
32690
32852
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
32691
32853
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -32724,14 +32886,14 @@ var resolveHttpAuthRuntimeConfig2 = (config) => {
|
|
|
32724
32886
|
};
|
|
32725
32887
|
};
|
|
32726
32888
|
|
|
32727
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32889
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
|
|
32728
32890
|
var resolveRuntimeExtensions2 = (runtimeConfig, extensions) => {
|
|
32729
32891
|
const extensionConfiguration = Object.assign(import_client21.getAwsRegionExtensionConfiguration(runtimeConfig), import_client22.getDefaultExtensionConfiguration(runtimeConfig), import_protocols5.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig));
|
|
32730
32892
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
32731
32893
|
return Object.assign(runtimeConfig, import_client21.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client22.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols5.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration));
|
|
32732
32894
|
};
|
|
32733
32895
|
|
|
32734
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32896
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
32735
32897
|
class S3Client extends import_client24.Client {
|
|
32736
32898
|
config;
|
|
32737
32899
|
constructor(...[configuration]) {
|
|
@@ -32776,15 +32938,15 @@ class S3Client extends import_client24.Client {
|
|
|
32776
32938
|
}
|
|
32777
32939
|
}
|
|
32778
32940
|
|
|
32779
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32941
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectCommand.js
|
|
32780
32942
|
class DeleteObjectCommand extends command(_ep0, _mw0, "DeleteObject", DeleteObject$) {
|
|
32781
32943
|
}
|
|
32782
32944
|
|
|
32783
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32945
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectCommand.js
|
|
32784
32946
|
class GetObjectCommand extends command(_ep0, _mw7, "GetObject", GetObject$) {
|
|
32785
32947
|
}
|
|
32786
32948
|
|
|
32787
|
-
// ../../node_modules/.bun/@aws-sdk+client-s3@3.
|
|
32949
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1126.0/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js
|
|
32788
32950
|
class PutObjectCommand extends command(_ep0, _mw11, "PutObject", PutObject$) {
|
|
32789
32951
|
}
|
|
32790
32952
|
|
|
@@ -33027,6 +33189,11 @@ import { join as join3, dirname as dirname2 } from "path";
|
|
|
33027
33189
|
|
|
33028
33190
|
// src/lib/retired-settings.ts
|
|
33029
33191
|
var RETIRED_ENV_SUFFIXES = ["_STORAGE_MODE", "_DEPLOYMENT_MODE", "_CLOUD_MODE"];
|
|
33192
|
+
var RETIRED_CONFIG_KEY_REASONS = {
|
|
33193
|
+
mode: "Deployment modes were removed: a Skills client either resolves a credential " + "or it does not, and that is the whole of it.",
|
|
33194
|
+
apiUrl: "The service address is no longer kept in this app's config file: it is read from " + "HASNA_SKILLS_API_URL, then the macOS Keychain item hasna.credentials.skills.api-url, " + "then ~/.hasna/skills/config/credentials, then the fleet gateway."
|
|
33195
|
+
};
|
|
33196
|
+
|
|
33030
33197
|
class RetiredSettingError extends Error {
|
|
33031
33198
|
code = "RETIRED_SETTING";
|
|
33032
33199
|
setting;
|