@hasna/skills 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +25120 -14201
- package/bin/mcp.js +13520 -2794
- package/bin/server.js +138 -128
- package/bin/worker.js +122 -122
- package/dist/admin-contract.d.ts +887 -5832
- package/dist/admin-contract.js +13914 -3611
- package/dist/cli/commands/publish.d.ts +14 -0
- package/dist/index.js +14228 -3909
- 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 +1 -1
- package/dist/sdk/index.js +14172 -3859
- package/dist/sdk/runs.d.ts +19 -101
- package/dist/server/artifact-storage.d.ts +11 -0
- package/dist/server/skills-api.d.ts +13 -2
- package/package.json +1 -1
package/bin/server.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
|
-
//
|
|
50
|
+
// 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,7 +138,7 @@ var require_dist_cjs = __commonJS((exports) => {
|
|
|
138
138
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
//
|
|
141
|
+
// 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] = {});
|
|
@@ -305,7 +305,7 @@ var require_transport = __commonJS((exports) => {
|
|
|
305
305
|
exports.toEndpointV1 = toEndpointV1;
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
//
|
|
308
|
+
// node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
|
|
309
309
|
var require_schema = __commonJS((exports) => {
|
|
310
310
|
var { getSmithyContext, HttpResponse, toEndpointV1 } = require_transport();
|
|
311
311
|
var deref = (schemaRef) => {
|
|
@@ -974,7 +974,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
974
974
|
exports.translateTraits = translateTraits;
|
|
975
975
|
});
|
|
976
976
|
|
|
977
|
-
//
|
|
977
|
+
// node_modules/@smithy/core/dist-cjs/submodules/client/index.js
|
|
978
978
|
var require_client = __commonJS((exports) => {
|
|
979
979
|
var { getSmithyContext, normalizeProvider } = require_transport();
|
|
980
980
|
exports.getSmithyContext = getSmithyContext;
|
|
@@ -2043,7 +2043,7 @@ var require_client = __commonJS((exports) => {
|
|
|
2043
2043
|
exports.withBaseException = withBaseException;
|
|
2044
2044
|
});
|
|
2045
2045
|
|
|
2046
|
-
//
|
|
2046
|
+
// node_modules/@smithy/core/dist-cjs/submodules/config/index.js
|
|
2047
2047
|
var require_config = __commonJS((exports) => {
|
|
2048
2048
|
var { homedir } = __require("os");
|
|
2049
2049
|
var { sep, join: join2 } = __require("path");
|
|
@@ -2738,7 +2738,7 @@ var require_config = __commonJS((exports) => {
|
|
|
2738
2738
|
exports.resolveRegionConfig = resolveRegionConfig;
|
|
2739
2739
|
});
|
|
2740
2740
|
|
|
2741
|
-
//
|
|
2741
|
+
// node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
|
|
2742
2742
|
var require_endpoints = __commonJS((exports) => {
|
|
2743
2743
|
var { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require_config();
|
|
2744
2744
|
var { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = require_transport();
|
|
@@ -3550,7 +3550,7 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
3550
3550
|
exports.resolveParams = resolveParams;
|
|
3551
3551
|
});
|
|
3552
3552
|
|
|
3553
|
-
//
|
|
3553
|
+
// node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
3554
3554
|
var require_serde = __commonJS((exports) => {
|
|
3555
3555
|
var { createHmac: createHmac2, createHash: createHash2, getRandomValues } = __require("crypto");
|
|
3556
3556
|
var { ReadStream, lstatSync, fstatSync } = __require("fs");
|
|
@@ -5188,7 +5188,7 @@ ${value}\r
|
|
|
5188
5188
|
exports.v4 = v4;
|
|
5189
5189
|
});
|
|
5190
5190
|
|
|
5191
|
-
//
|
|
5191
|
+
// node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js
|
|
5192
5192
|
var require_checksum = __commonJS((exports) => {
|
|
5193
5193
|
var { createReadStream } = __require("fs");
|
|
5194
5194
|
var { Writable } = __require("stream");
|
|
@@ -5804,7 +5804,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
5804
5804
|
exports.readableStreamHasher = readableStreamHasher;
|
|
5805
5805
|
});
|
|
5806
5806
|
|
|
5807
|
-
//
|
|
5807
|
+
// node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js
|
|
5808
5808
|
var require_event_streams = __commonJS((exports) => {
|
|
5809
5809
|
var { Crc32 } = require_checksum();
|
|
5810
5810
|
var { toHex, fromHex, toUtf8, fromUtf8 } = require_serde();
|
|
@@ -6687,7 +6687,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
6687
6687
|
exports.universalEventStreamSerdeProvider = eventStreamSerdeProvider$1;
|
|
6688
6688
|
});
|
|
6689
6689
|
|
|
6690
|
-
//
|
|
6690
|
+
// node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
|
|
6691
6691
|
var require_protocols = __commonJS((exports) => {
|
|
6692
6692
|
var { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = require_serde();
|
|
6693
6693
|
var { TypeRegistry, NormalizedSchema, translateTraits } = require_schema();
|
|
@@ -7677,7 +7677,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
7677
7677
|
exports.resolvedPath = resolvedPath;
|
|
7678
7678
|
});
|
|
7679
7679
|
|
|
7680
|
-
//
|
|
7680
|
+
// node_modules/@smithy/core/dist-cjs/submodules/retry/index.js
|
|
7681
7681
|
var require_retry = __commonJS((exports) => {
|
|
7682
7682
|
var { Readable } = __require("stream");
|
|
7683
7683
|
var { NoOpLogger, normalizeProvider } = require_client();
|
|
@@ -8474,7 +8474,7 @@ var require_retry = __commonJS((exports) => {
|
|
|
8474
8474
|
exports.retryMiddlewareOptions = retryMiddlewareOptions;
|
|
8475
8475
|
});
|
|
8476
8476
|
|
|
8477
|
-
//
|
|
8477
|
+
// node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js
|
|
8478
8478
|
var require_invoke_store = __commonJS((exports) => {
|
|
8479
8479
|
var PROTECTED_KEYS = {
|
|
8480
8480
|
REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
|
|
@@ -8603,7 +8603,7 @@ var require_invoke_store = __commonJS((exports) => {
|
|
|
8603
8603
|
exports.InvokeStoreBase = InvokeStoreBase;
|
|
8604
8604
|
});
|
|
8605
8605
|
|
|
8606
|
-
//
|
|
8606
|
+
// node_modules/@smithy/core/dist-cjs/index.js
|
|
8607
8607
|
var require_dist_cjs2 = __commonJS((exports) => {
|
|
8608
8608
|
var { getSmithyContext } = require_transport();
|
|
8609
8609
|
exports.getSmithyContext = getSmithyContext;
|
|
@@ -8929,7 +8929,7 @@ var require_dist_cjs2 = __commonJS((exports) => {
|
|
|
8929
8929
|
exports.setFeature = setFeature;
|
|
8930
8930
|
});
|
|
8931
8931
|
|
|
8932
|
-
//
|
|
8932
|
+
// node_modules/bowser/es5.js
|
|
8933
8933
|
var require_es5 = __commonJS((exports, module) => {
|
|
8934
8934
|
(function(e, t) {
|
|
8935
8935
|
typeof exports == "object" && typeof module == "object" ? module.exports = t() : typeof define == "function" && define.amd ? define([], t) : typeof exports == "object" ? exports.bowser = t() : e.bowser = t();
|
|
@@ -9769,7 +9769,7 @@ var require_es5 = __commonJS((exports, module) => {
|
|
|
9769
9769
|
});
|
|
9770
9770
|
});
|
|
9771
9771
|
|
|
9772
|
-
//
|
|
9772
|
+
// node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
|
|
9773
9773
|
var require_client2 = __commonJS((exports) => {
|
|
9774
9774
|
var { Retry, RETRY_MODES } = require_retry();
|
|
9775
9775
|
var { HttpRequest, parseUrl } = require_protocols();
|
|
@@ -10707,7 +10707,7 @@ More information can be found at: https://a.co/c895JFp`);
|
|
|
10707
10707
|
exports.userAgentMiddleware = userAgentMiddleware;
|
|
10708
10708
|
});
|
|
10709
10709
|
|
|
10710
|
-
//
|
|
10710
|
+
// node_modules/@aws-sdk/checksums/dist-cjs/submodules/crc/index.js
|
|
10711
10711
|
var require_crc = __commonJS((exports) => {
|
|
10712
10712
|
var { Crc32, Crc32Js, Crc32Node } = require_checksum();
|
|
10713
10713
|
exports.Crc32 = Crc32;
|
|
@@ -10864,7 +10864,7 @@ var require_crc = __commonJS((exports) => {
|
|
|
10864
10864
|
exports.crc64NvmeCrtContainer = crc64NvmeCrtContainer;
|
|
10865
10865
|
});
|
|
10866
10866
|
|
|
10867
|
-
//
|
|
10867
|
+
// node_modules/@smithy/signature-v4/dist-cjs/index.js
|
|
10868
10868
|
var require_dist_cjs3 = __commonJS((exports) => {
|
|
10869
10869
|
var { fromUtf8, fromHex, toHex, toUint8Array: toUint8Array2, isArrayBuffer: isArrayBuffer2 } = require_serde();
|
|
10870
10870
|
var { normalizeProvider: normalizeProvider2 } = require_client();
|
|
@@ -11404,7 +11404,7 @@ ${toHex(hashedRequest)}`;
|
|
|
11404
11404
|
exports.signatureV4aContainer = signatureV4aContainer;
|
|
11405
11405
|
});
|
|
11406
11406
|
|
|
11407
|
-
//
|
|
11407
|
+
// node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
|
|
11408
11408
|
var require_dist_cjs4 = __commonJS((exports) => {
|
|
11409
11409
|
var { SignatureV4, signatureV4aContainer } = require_dist_cjs3();
|
|
11410
11410
|
var signatureV4CrtContainer = {
|
|
@@ -11536,7 +11536,7 @@ var require_dist_cjs4 = __commonJS((exports) => {
|
|
|
11536
11536
|
exports.signatureV4CrtContainer = signatureV4CrtContainer;
|
|
11537
11537
|
});
|
|
11538
11538
|
|
|
11539
|
-
//
|
|
11539
|
+
// node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js
|
|
11540
11540
|
var require_util = __commonJS((exports) => {
|
|
11541
11541
|
var { buildQueryString } = require_protocols();
|
|
11542
11542
|
var validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
|
|
@@ -11594,7 +11594,7 @@ var require_util = __commonJS((exports) => {
|
|
|
11594
11594
|
exports.validate = validate;
|
|
11595
11595
|
});
|
|
11596
11596
|
|
|
11597
|
-
//
|
|
11597
|
+
// node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
|
|
11598
11598
|
var require_cbor = __commonJS((exports) => {
|
|
11599
11599
|
var { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require_serde();
|
|
11600
11600
|
var { HttpRequest: HttpRequest2, collectBody, SerdeContext, RpcProtocol } = require_protocols();
|
|
@@ -13962,7 +13962,7 @@ var require_cbor = __commonJS((exports) => {
|
|
|
13962
13962
|
exports.tagSymbol = tagSymbol;
|
|
13963
13963
|
});
|
|
13964
13964
|
|
|
13965
|
-
//
|
|
13965
|
+
// node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
|
|
13966
13966
|
var require_dist_cjs5 = __commonJS((exports) => {
|
|
13967
13967
|
var ATTR_ESCAPE_RE = /[&<>"]/g;
|
|
13968
13968
|
var ATTR_ESCAPE_MAP = {
|
|
@@ -14330,7 +14330,7 @@ var require_dist_cjs5 = __commonJS((exports) => {
|
|
|
14330
14330
|
exports.parseXML = parseXML;
|
|
14331
14331
|
});
|
|
14332
14332
|
|
|
14333
|
-
//
|
|
14333
|
+
// node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
|
|
14334
14334
|
var require_protocols2 = __commonJS((exports) => {
|
|
14335
14335
|
var { SmithyRpcV2CborProtocol, loadSmithyRpcV2CborErrorCode } = require_cbor();
|
|
14336
14336
|
var { TypeRegistry, NormalizedSchema, deref } = require_schema();
|
|
@@ -17171,7 +17171,7 @@ var require_protocols2 = __commonJS((exports) => {
|
|
|
17171
17171
|
exports.parseXmlErrorBody = parseXmlErrorBody;
|
|
17172
17172
|
});
|
|
17173
17173
|
|
|
17174
|
-
//
|
|
17174
|
+
// node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
|
|
17175
17175
|
var require_httpAuthSchemes = __commonJS((exports) => {
|
|
17176
17176
|
var { ProviderError, booleanSelector: booleanSelector2, SelectorType: SelectorType3, loadConfig } = require_config();
|
|
17177
17177
|
var { setCredentialFeature } = require_client2();
|
|
@@ -17501,7 +17501,7 @@ var require_httpAuthSchemes = __commonJS((exports) => {
|
|
|
17501
17501
|
exports.validateSigningProperties = validateSigningProperties;
|
|
17502
17502
|
});
|
|
17503
17503
|
|
|
17504
|
-
//
|
|
17504
|
+
// node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
17505
17505
|
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
17506
|
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
17507
17507
|
const accessKeyId = process.env[ENV_KEY];
|
|
@@ -17529,7 +17529,7 @@ var init_fromEnv = __esm(() => {
|
|
|
17529
17529
|
import_config = __toESM(require_config(), 1);
|
|
17530
17530
|
});
|
|
17531
17531
|
|
|
17532
|
-
//
|
|
17532
|
+
// node_modules/@aws-sdk/credential-provider-env/dist-es/index.js
|
|
17533
17533
|
var exports_dist_es = {};
|
|
17534
17534
|
__export(exports_dist_es, {
|
|
17535
17535
|
fromEnv: () => fromEnv,
|
|
@@ -17544,7 +17544,7 @@ var init_dist_es = __esm(() => {
|
|
|
17544
17544
|
init_fromEnv();
|
|
17545
17545
|
});
|
|
17546
17546
|
|
|
17547
|
-
//
|
|
17547
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js
|
|
17548
17548
|
var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", fromImdsCredentials = (creds) => ({
|
|
17549
17549
|
accessKeyId: creds.AccessKeyId,
|
|
17550
17550
|
secretAccessKey: creds.SecretAccessKey,
|
|
@@ -17553,14 +17553,14 @@ var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && type
|
|
|
17553
17553
|
...creds.AccountId && { accountId: creds.AccountId }
|
|
17554
17554
|
});
|
|
17555
17555
|
|
|
17556
|
-
//
|
|
17556
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js
|
|
17557
17557
|
var DEFAULT_TIMEOUT = 1000, DEFAULT_MAX_RETRIES = 0, providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout });
|
|
17558
17558
|
|
|
17559
|
-
//
|
|
17559
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js
|
|
17560
17560
|
import node_http from "http";
|
|
17561
17561
|
var init_node_http = () => {};
|
|
17562
17562
|
|
|
17563
|
-
//
|
|
17563
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js
|
|
17564
17564
|
function httpRequest(options) {
|
|
17565
17565
|
return new Promise((resolve, reject) => {
|
|
17566
17566
|
const req = node_http.request({
|
|
@@ -17600,7 +17600,7 @@ var init_httpRequest = __esm(() => {
|
|
|
17600
17600
|
import_config2 = __toESM(require_config(), 1);
|
|
17601
17601
|
});
|
|
17602
17602
|
|
|
17603
|
-
//
|
|
17603
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js
|
|
17604
17604
|
var retry = (toRetry, maxRetries) => {
|
|
17605
17605
|
let promise = toRetry();
|
|
17606
17606
|
for (let i2 = 0;i2 < maxRetries; i2++) {
|
|
@@ -17609,7 +17609,7 @@ var retry = (toRetry, maxRetries) => {
|
|
|
17609
17609
|
return promise;
|
|
17610
17610
|
};
|
|
17611
17611
|
|
|
17612
|
-
//
|
|
17612
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
|
|
17613
17613
|
var import_config3, ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI", ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN", fromContainerMetadata = (init = {}) => {
|
|
17614
17614
|
const { timeout, maxRetries } = providerConfigFromInit(init);
|
|
17615
17615
|
return () => retry(async () => {
|
|
@@ -17679,7 +17679,7 @@ var init_fromContainerMetadata = __esm(() => {
|
|
|
17679
17679
|
GREENGRASS_PROTOCOLS = new Set(["http:", "https:"]);
|
|
17680
17680
|
});
|
|
17681
17681
|
|
|
17682
|
-
//
|
|
17682
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
|
|
17683
17683
|
var import_config4, InstanceMetadataV1FallbackError;
|
|
17684
17684
|
var init_InstanceMetadataV1FallbackError = __esm(() => {
|
|
17685
17685
|
import_config4 = __toESM(require_config(), 1);
|
|
@@ -17694,7 +17694,7 @@ var init_InstanceMetadataV1FallbackError = __esm(() => {
|
|
|
17694
17694
|
};
|
|
17695
17695
|
});
|
|
17696
17696
|
|
|
17697
|
-
//
|
|
17697
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js
|
|
17698
17698
|
var Endpoint;
|
|
17699
17699
|
var init_Endpoint = __esm(() => {
|
|
17700
17700
|
(function(Endpoint2) {
|
|
@@ -17703,7 +17703,7 @@ var init_Endpoint = __esm(() => {
|
|
|
17703
17703
|
})(Endpoint || (Endpoint = {}));
|
|
17704
17704
|
});
|
|
17705
17705
|
|
|
17706
|
-
//
|
|
17706
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js
|
|
17707
17707
|
var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT", CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint", ENDPOINT_CONFIG_OPTIONS;
|
|
17708
17708
|
var init_EndpointConfigOptions = __esm(() => {
|
|
17709
17709
|
ENDPOINT_CONFIG_OPTIONS = {
|
|
@@ -17713,7 +17713,7 @@ var init_EndpointConfigOptions = __esm(() => {
|
|
|
17713
17713
|
};
|
|
17714
17714
|
});
|
|
17715
17715
|
|
|
17716
|
-
//
|
|
17716
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js
|
|
17717
17717
|
var EndpointMode;
|
|
17718
17718
|
var init_EndpointMode = __esm(() => {
|
|
17719
17719
|
(function(EndpointMode2) {
|
|
@@ -17722,7 +17722,7 @@ var init_EndpointMode = __esm(() => {
|
|
|
17722
17722
|
})(EndpointMode || (EndpointMode = {}));
|
|
17723
17723
|
});
|
|
17724
17724
|
|
|
17725
|
-
//
|
|
17725
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js
|
|
17726
17726
|
var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE", CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode", ENDPOINT_MODE_CONFIG_OPTIONS;
|
|
17727
17727
|
var init_EndpointModeConfigOptions = __esm(() => {
|
|
17728
17728
|
init_EndpointMode();
|
|
@@ -17733,7 +17733,7 @@ var init_EndpointModeConfigOptions = __esm(() => {
|
|
|
17733
17733
|
};
|
|
17734
17734
|
});
|
|
17735
17735
|
|
|
17736
|
-
//
|
|
17736
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js
|
|
17737
17737
|
var import_config5, import_protocols, getInstanceMetadataEndpoint = async () => import_protocols.parseUrl(await getFromEndpointConfig() || await getFromEndpointModeConfig()), getFromEndpointConfig = async () => import_config5.loadConfig(ENDPOINT_CONFIG_OPTIONS)(), getFromEndpointModeConfig = async () => {
|
|
17738
17738
|
const endpointMode = await import_config5.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
|
|
17739
17739
|
switch (endpointMode) {
|
|
@@ -17754,7 +17754,7 @@ var init_getInstanceMetadataEndpoint = __esm(() => {
|
|
|
17754
17754
|
import_protocols = __toESM(require_protocols(), 1);
|
|
17755
17755
|
});
|
|
17756
17756
|
|
|
17757
|
-
//
|
|
17757
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js
|
|
17758
17758
|
var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS, STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS, STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html", getExtendedInstanceMetadataCredentials = (credentials, logger) => {
|
|
17759
17759
|
const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
|
|
17760
17760
|
const newExpiration = new Date(Date.now() + refreshInterval * 1000);
|
|
@@ -17772,7 +17772,7 @@ var init_getExtendedInstanceMetadataCredentials = __esm(() => {
|
|
|
17772
17772
|
STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
|
|
17773
17773
|
});
|
|
17774
17774
|
|
|
17775
|
-
//
|
|
17775
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js
|
|
17776
17776
|
var staticStabilityProvider = (provider, options = {}) => {
|
|
17777
17777
|
const logger = options?.logger || console;
|
|
17778
17778
|
let pastCredentials;
|
|
@@ -17799,7 +17799,7 @@ var init_staticStabilityProvider = __esm(() => {
|
|
|
17799
17799
|
init_getExtendedInstanceMetadataCredentials();
|
|
17800
17800
|
});
|
|
17801
17801
|
|
|
17802
|
-
//
|
|
17802
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
|
|
17803
17803
|
var import_config6, IMDS_PATH = "/latest/meta-data/iam/security-credentials/", IMDS_TOKEN_PATH = "/latest/api/token", AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED", PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled", X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token", fromInstanceMetadata = (init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }), getInstanceMetadataProvider = (init = {}) => {
|
|
17804
17804
|
let disableFetchToken = false;
|
|
17805
17805
|
const { logger, profile } = init;
|
|
@@ -17919,7 +17919,7 @@ var init_fromInstanceMetadata = __esm(() => {
|
|
|
17919
17919
|
import_config6 = __toESM(require_config(), 1);
|
|
17920
17920
|
});
|
|
17921
17921
|
|
|
17922
|
-
//
|
|
17922
|
+
// node_modules/@smithy/credential-provider-imds/dist-es/index.js
|
|
17923
17923
|
var exports_dist_es2 = {};
|
|
17924
17924
|
__export(exports_dist_es2, {
|
|
17925
17925
|
providerConfigFromInit: () => providerConfigFromInit,
|
|
@@ -17942,7 +17942,7 @@ var init_dist_es2 = __esm(() => {
|
|
|
17942
17942
|
init_Endpoint();
|
|
17943
17943
|
});
|
|
17944
17944
|
|
|
17945
|
-
//
|
|
17945
|
+
// node_modules/@smithy/node-http-handler/dist-cjs/index.js
|
|
17946
17946
|
var require_dist_cjs6 = __commonJS((exports) => {
|
|
17947
17947
|
var { buildQueryString, HttpResponse: HttpResponse2 } = require_protocols();
|
|
17948
17948
|
var node_https = __require("https");
|
|
@@ -18756,7 +18756,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
18756
18756
|
exports.NodeHttpHandler = NodeHttpHandler;
|
|
18757
18757
|
});
|
|
18758
18758
|
|
|
18759
|
-
//
|
|
18759
|
+
// node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
18760
18760
|
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
18761
|
if (url.protocol === "https:") {
|
|
18762
18762
|
return;
|
|
@@ -18790,7 +18790,7 @@ var init_checkUrl = __esm(() => {
|
|
|
18790
18790
|
import_config7 = __toESM(require_config(), 1);
|
|
18791
18791
|
});
|
|
18792
18792
|
|
|
18793
|
-
//
|
|
18793
|
+
// node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
18794
18794
|
function createGetRequest(url) {
|
|
18795
18795
|
return new import_protocols2.HttpRequest({
|
|
18796
18796
|
protocol: url.protocol,
|
|
@@ -18839,7 +18839,7 @@ var init_requestHelpers = __esm(() => {
|
|
|
18839
18839
|
import_serde2 = __toESM(require_serde(), 1);
|
|
18840
18840
|
});
|
|
18841
18841
|
|
|
18842
|
-
//
|
|
18842
|
+
// node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
18843
18843
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
18844
18844
|
return async () => {
|
|
18845
18845
|
for (let i2 = 0;i2 < maxRetries; ++i2) {
|
|
@@ -18853,7 +18853,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
18853
18853
|
};
|
|
18854
18854
|
};
|
|
18855
18855
|
|
|
18856
|
-
//
|
|
18856
|
+
// node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
18857
18857
|
import fs from "fs/promises";
|
|
18858
18858
|
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
18859
|
options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
@@ -18919,7 +18919,7 @@ var init_fromHttp = __esm(() => {
|
|
|
18919
18919
|
import_node_http_handler = __toESM(require_dist_cjs6(), 1);
|
|
18920
18920
|
});
|
|
18921
18921
|
|
|
18922
|
-
//
|
|
18922
|
+
// node_modules/@aws-sdk/credential-provider-http/dist-es/index.js
|
|
18923
18923
|
var exports_dist_es3 = {};
|
|
18924
18924
|
__export(exports_dist_es3, {
|
|
18925
18925
|
fromHttp: () => fromHttp
|
|
@@ -18928,16 +18928,16 @@ var init_dist_es3 = __esm(() => {
|
|
|
18928
18928
|
init_fromHttp();
|
|
18929
18929
|
});
|
|
18930
18930
|
|
|
18931
|
-
//
|
|
18931
|
+
// node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
18932
18932
|
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
18933
|
|
|
18934
|
-
//
|
|
18934
|
+
// node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
18935
18935
|
var EXPIRE_WINDOW_MS, REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
18936
18936
|
var init_constants = __esm(() => {
|
|
18937
18937
|
EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
18938
18938
|
});
|
|
18939
18939
|
|
|
18940
|
-
//
|
|
18940
|
+
// node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
|
|
18941
18941
|
var require_sso_oidc = __commonJS((exports) => {
|
|
18942
18942
|
var { awsEndpointFunctions: awsEndpointFunctions2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client2();
|
|
18943
18943
|
var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs2();
|
|
@@ -19692,7 +19692,7 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
19692
19692
|
exports.errorTypeRegistries = errorTypeRegistries2;
|
|
19693
19693
|
});
|
|
19694
19694
|
|
|
19695
|
-
//
|
|
19695
|
+
// node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
19696
19696
|
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
19697
19697
|
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
19698
19698
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
@@ -19704,7 +19704,7 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
19704
19704
|
return ssoOidcClient;
|
|
19705
19705
|
};
|
|
19706
19706
|
|
|
19707
|
-
//
|
|
19707
|
+
// node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
19708
19708
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
19709
19709
|
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
19710
19710
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
@@ -19717,7 +19717,7 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConf
|
|
|
19717
19717
|
};
|
|
19718
19718
|
var init_getNewSsoOidcToken = () => {};
|
|
19719
19719
|
|
|
19720
|
-
//
|
|
19720
|
+
// node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
19721
19721
|
var import_config11, validateTokenExpiry = (token) => {
|
|
19722
19722
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
19723
19723
|
throw new import_config11.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
@@ -19728,7 +19728,7 @@ var init_validateTokenExpiry = __esm(() => {
|
|
|
19728
19728
|
import_config11 = __toESM(require_config(), 1);
|
|
19729
19729
|
});
|
|
19730
19730
|
|
|
19731
|
-
//
|
|
19731
|
+
// node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
19732
19732
|
var import_config12, validateTokenKey = (key, value, forRefresh = false) => {
|
|
19733
19733
|
if (typeof value === "undefined") {
|
|
19734
19734
|
throw new import_config12.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
@@ -19739,7 +19739,7 @@ var init_validateTokenKey = __esm(() => {
|
|
|
19739
19739
|
import_config12 = __toESM(require_config(), 1);
|
|
19740
19740
|
});
|
|
19741
19741
|
|
|
19742
|
-
//
|
|
19742
|
+
// node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
19743
19743
|
import { promises as fsPromises } from "fs";
|
|
19744
19744
|
var import_config13, writeFile, writeSSOTokenToFile = (id, ssoToken) => {
|
|
19745
19745
|
const tokenFilepath = import_config13.getSSOTokenFilepath(id);
|
|
@@ -19751,7 +19751,7 @@ var init_writeSSOTokenToFile = __esm(() => {
|
|
|
19751
19751
|
({ writeFile } = fsPromises);
|
|
19752
19752
|
});
|
|
19753
19753
|
|
|
19754
|
-
//
|
|
19754
|
+
// node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
19755
19755
|
var import_config14, lastRefreshAttemptTime, fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
19756
19756
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
19757
19757
|
const profiles = await import_config14.parseKnownFiles(init);
|
|
@@ -19830,12 +19830,12 @@ var init_fromSso = __esm(() => {
|
|
|
19830
19830
|
lastRefreshAttemptTime = new Date(0);
|
|
19831
19831
|
});
|
|
19832
19832
|
|
|
19833
|
-
//
|
|
19833
|
+
// node_modules/@aws-sdk/token-providers/dist-es/index.js
|
|
19834
19834
|
var init_dist_es4 = __esm(() => {
|
|
19835
19835
|
init_fromSso();
|
|
19836
19836
|
});
|
|
19837
19837
|
|
|
19838
|
-
//
|
|
19838
|
+
// node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
|
|
19839
19839
|
function createAwsAuthSigv4HttpAuthOption2(authParameters) {
|
|
19840
19840
|
return {
|
|
19841
19841
|
schemeId: "aws.auth#sigv4",
|
|
@@ -20283,7 +20283,7 @@ var init_sso = __esm(() => {
|
|
|
20283
20283
|
$SSOClient = SSOClient;
|
|
20284
20284
|
});
|
|
20285
20285
|
|
|
20286
|
-
//
|
|
20286
|
+
// node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js
|
|
20287
20287
|
var exports_loadSso = {};
|
|
20288
20288
|
__export(exports_loadSso, {
|
|
20289
20289
|
SSOClient: () => $SSOClient,
|
|
@@ -20293,7 +20293,7 @@ var init_loadSso = __esm(() => {
|
|
|
20293
20293
|
init_sso();
|
|
20294
20294
|
});
|
|
20295
20295
|
|
|
20296
|
-
//
|
|
20296
|
+
// node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
20297
20297
|
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
20298
|
let token;
|
|
20299
20299
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
@@ -20382,7 +20382,7 @@ var init_resolveSSOCredentials = __esm(() => {
|
|
|
20382
20382
|
import_config15 = __toESM(require_config(), 1);
|
|
20383
20383
|
});
|
|
20384
20384
|
|
|
20385
|
-
//
|
|
20385
|
+
// node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
20386
20386
|
var import_config16, validateSsoProfile = (profile, logger) => {
|
|
20387
20387
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
20388
20388
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
@@ -20395,7 +20395,7 @@ var init_validateSsoProfile = __esm(() => {
|
|
|
20395
20395
|
import_config16 = __toESM(require_config(), 1);
|
|
20396
20396
|
});
|
|
20397
20397
|
|
|
20398
|
-
//
|
|
20398
|
+
// node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
20399
20399
|
var import_config17, fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
20400
20400
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
20401
20401
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
@@ -20477,7 +20477,7 @@ var init_fromSSO = __esm(() => {
|
|
|
20477
20477
|
import_config17 = __toESM(require_config(), 1);
|
|
20478
20478
|
});
|
|
20479
20479
|
|
|
20480
|
-
//
|
|
20480
|
+
// node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js
|
|
20481
20481
|
var exports_dist_es4 = {};
|
|
20482
20482
|
__export(exports_dist_es4, {
|
|
20483
20483
|
validateSsoProfile: () => validateSsoProfile,
|
|
@@ -20489,7 +20489,7 @@ var init_dist_es5 = __esm(() => {
|
|
|
20489
20489
|
init_validateSsoProfile();
|
|
20490
20490
|
});
|
|
20491
20491
|
|
|
20492
|
-
//
|
|
20492
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
20493
20493
|
var import_client8, import_config18, resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
20494
20494
|
const sourceProvidersMap = {
|
|
20495
20495
|
EcsContainer: async (options) => {
|
|
@@ -20520,7 +20520,7 @@ var init_resolveCredentialSource = __esm(() => {
|
|
|
20520
20520
|
import_config18 = __toESM(require_config(), 1);
|
|
20521
20521
|
});
|
|
20522
20522
|
|
|
20523
|
-
//
|
|
20523
|
+
// node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
|
|
20524
20524
|
var require_sts = __commonJS((exports) => {
|
|
20525
20525
|
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
20526
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
@@ -21542,7 +21542,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
21542
21542
|
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
|
21543
21543
|
});
|
|
21544
21544
|
|
|
21545
|
-
//
|
|
21545
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
21546
21546
|
var import_client9, import_config19, isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
21547
21547
|
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
21548
|
}, isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
|
|
@@ -21610,7 +21610,7 @@ var init_resolveAssumeRoleCredentials = __esm(() => {
|
|
|
21610
21610
|
import_config19 = __toESM(require_config(), 1);
|
|
21611
21611
|
});
|
|
21612
21612
|
|
|
21613
|
-
//
|
|
21613
|
+
// node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
|
|
21614
21614
|
var require_signin = __commonJS((exports) => {
|
|
21615
21615
|
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
21616
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
@@ -22342,7 +22342,7 @@ var require_signin = __commonJS((exports) => {
|
|
|
22342
22342
|
exports.errorTypeRegistries = errorTypeRegistries3;
|
|
22343
22343
|
});
|
|
22344
22344
|
|
|
22345
|
-
//
|
|
22345
|
+
// node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
22346
22346
|
import { createHash as createHash2, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
22347
22347
|
import { promises as fs2 } from "fs";
|
|
22348
22348
|
import { homedir } from "os";
|
|
@@ -22606,7 +22606,7 @@ var init_LoginCredentialsFetcher = __esm(() => {
|
|
|
22606
22606
|
};
|
|
22607
22607
|
});
|
|
22608
22608
|
|
|
22609
|
-
//
|
|
22609
|
+
// node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
22610
22610
|
var import_client10, import_config21, fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
22611
22611
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
22612
22612
|
const profiles = await import_config21.parseKnownFiles(init || {});
|
|
@@ -22630,7 +22630,7 @@ var init_fromLoginCredentials = __esm(() => {
|
|
|
22630
22630
|
import_config21 = __toESM(require_config(), 1);
|
|
22631
22631
|
});
|
|
22632
22632
|
|
|
22633
|
-
//
|
|
22633
|
+
// node_modules/@aws-sdk/credential-provider-login/dist-es/index.js
|
|
22634
22634
|
var exports_dist_es5 = {};
|
|
22635
22635
|
__export(exports_dist_es5, {
|
|
22636
22636
|
fromLoginCredentials: () => fromLoginCredentials
|
|
@@ -22639,7 +22639,7 @@ var init_dist_es6 = __esm(() => {
|
|
|
22639
22639
|
init_fromLoginCredentials();
|
|
22640
22640
|
});
|
|
22641
22641
|
|
|
22642
|
-
//
|
|
22642
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
22643
22643
|
var import_client11, isLoginProfile = (data) => {
|
|
22644
22644
|
return Boolean(data && data.login_session);
|
|
22645
22645
|
}, resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
@@ -22654,7 +22654,7 @@ var init_resolveLoginCredentials = __esm(() => {
|
|
|
22654
22654
|
import_client11 = __toESM(require_client2(), 1);
|
|
22655
22655
|
});
|
|
22656
22656
|
|
|
22657
|
-
//
|
|
22657
|
+
// node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
22658
22658
|
var import_client12, getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
22659
22659
|
if (data.Version !== 1) {
|
|
22660
22660
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
@@ -22688,7 +22688,7 @@ var init_getValidatedProcessCredentials = __esm(() => {
|
|
|
22688
22688
|
import_client12 = __toESM(require_client2(), 1);
|
|
22689
22689
|
});
|
|
22690
22690
|
|
|
22691
|
-
//
|
|
22691
|
+
// node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
22692
22692
|
import { exec } from "child_process";
|
|
22693
22693
|
import { promisify } from "util";
|
|
22694
22694
|
var import_config22, resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
@@ -22723,7 +22723,7 @@ var init_resolveProcessCredentials = __esm(() => {
|
|
|
22723
22723
|
import_config22 = __toESM(require_config(), 1);
|
|
22724
22724
|
});
|
|
22725
22725
|
|
|
22726
|
-
//
|
|
22726
|
+
// node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
22727
22727
|
var import_config23, fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
22728
22728
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
22729
22729
|
const profiles = await import_config23.parseKnownFiles(init);
|
|
@@ -22736,7 +22736,7 @@ var init_fromProcess = __esm(() => {
|
|
|
22736
22736
|
import_config23 = __toESM(require_config(), 1);
|
|
22737
22737
|
});
|
|
22738
22738
|
|
|
22739
|
-
//
|
|
22739
|
+
// node_modules/@aws-sdk/credential-provider-process/dist-es/index.js
|
|
22740
22740
|
var exports_dist_es6 = {};
|
|
22741
22741
|
__export(exports_dist_es6, {
|
|
22742
22742
|
fromProcess: () => fromProcess
|
|
@@ -22745,7 +22745,7 @@ var init_dist_es7 = __esm(() => {
|
|
|
22745
22745
|
init_fromProcess();
|
|
22746
22746
|
});
|
|
22747
22747
|
|
|
22748
|
-
//
|
|
22748
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
22749
22749
|
var import_client13, isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", resolveProcessCredentials2 = async (options, profile) => {
|
|
22750
22750
|
const { fromProcess: fromProcess2 } = await Promise.resolve().then(() => (init_dist_es7(), exports_dist_es6));
|
|
22751
22751
|
const credentials = await fromProcess2({
|
|
@@ -22758,7 +22758,7 @@ var init_resolveProcessCredentials2 = __esm(() => {
|
|
|
22758
22758
|
import_client13 = __toESM(require_client2(), 1);
|
|
22759
22759
|
});
|
|
22760
22760
|
|
|
22761
|
-
//
|
|
22761
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
22762
22762
|
var import_client14, resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
22763
22763
|
const { fromSSO: fromSSO2 } = await Promise.resolve().then(() => (init_dist_es5(), exports_dist_es4));
|
|
22764
22764
|
return fromSSO2({
|
|
@@ -22780,7 +22780,7 @@ var init_resolveSsoCredentials = __esm(() => {
|
|
|
22780
22780
|
import_client14 = __toESM(require_client2(), 1);
|
|
22781
22781
|
});
|
|
22782
22782
|
|
|
22783
|
-
//
|
|
22783
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
22784
22784
|
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
22785
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
22786
22786
|
const credentials = {
|
|
@@ -22796,7 +22796,7 @@ var init_resolveStaticCredentials = __esm(() => {
|
|
|
22796
22796
|
import_client15 = __toESM(require_client2(), 1);
|
|
22797
22797
|
});
|
|
22798
22798
|
|
|
22799
|
-
//
|
|
22799
|
+
// node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
22800
22800
|
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
22801
22801
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
22802
22802
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
@@ -22823,7 +22823,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
22823
22823
|
});
|
|
22824
22824
|
};
|
|
22825
22825
|
|
|
22826
|
-
//
|
|
22826
|
+
// node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
22827
22827
|
import { readFileSync as readFileSync2 } from "fs";
|
|
22828
22828
|
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
22829
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
@@ -22851,7 +22851,7 @@ var init_fromTokenFile = __esm(() => {
|
|
|
22851
22851
|
import_config24 = __toESM(require_config(), 1);
|
|
22852
22852
|
});
|
|
22853
22853
|
|
|
22854
|
-
//
|
|
22854
|
+
// node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js
|
|
22855
22855
|
var exports_dist_es7 = {};
|
|
22856
22856
|
__export(exports_dist_es7, {
|
|
22857
22857
|
fromWebToken: () => fromWebToken,
|
|
@@ -22861,7 +22861,7 @@ var init_dist_es8 = __esm(() => {
|
|
|
22861
22861
|
init_fromTokenFile();
|
|
22862
22862
|
});
|
|
22863
22863
|
|
|
22864
|
-
//
|
|
22864
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
22865
22865
|
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
22866
|
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => (init_dist_es8(), exports_dist_es7));
|
|
22867
22867
|
const credentials = await fromTokenFile2({
|
|
@@ -22880,7 +22880,7 @@ var init_resolveWebIdentityCredentials = __esm(() => {
|
|
|
22880
22880
|
import_client17 = __toESM(require_client2(), 1);
|
|
22881
22881
|
});
|
|
22882
22882
|
|
|
22883
|
-
//
|
|
22883
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
22884
22884
|
var import_config25, resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
22885
22885
|
const data = profiles[profileName];
|
|
22886
22886
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
@@ -22916,7 +22916,7 @@ var init_resolveProfileData = __esm(() => {
|
|
|
22916
22916
|
import_config25 = __toESM(require_config(), 1);
|
|
22917
22917
|
});
|
|
22918
22918
|
|
|
22919
|
-
//
|
|
22919
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
22920
22920
|
var import_config26, fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
22921
22921
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
22922
22922
|
const profiles = await import_config26.parseKnownFiles(init);
|
|
@@ -22929,7 +22929,7 @@ var init_fromIni = __esm(() => {
|
|
|
22929
22929
|
import_config26 = __toESM(require_config(), 1);
|
|
22930
22930
|
});
|
|
22931
22931
|
|
|
22932
|
-
//
|
|
22932
|
+
// node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js
|
|
22933
22933
|
var exports_dist_es8 = {};
|
|
22934
22934
|
__export(exports_dist_es8, {
|
|
22935
22935
|
fromIni: () => fromIni
|
|
@@ -22940,7 +22940,7 @@ var init_dist_es9 = __esm(() => {
|
|
|
22940
22940
|
// package.json
|
|
22941
22941
|
var package_default = {
|
|
22942
22942
|
name: "@hasna/skills",
|
|
22943
|
-
version: "0.2.
|
|
22943
|
+
version: "0.2.1",
|
|
22944
22944
|
description: "Skills library for AI coding agents",
|
|
22945
22945
|
type: "module",
|
|
22946
22946
|
bin: {
|
|
@@ -23347,7 +23347,7 @@ function signBundleBytes(bytes, key) {
|
|
|
23347
23347
|
return `${SIGNATURE_PREFIX}${createHmac("sha256", key).update(bytes).digest("hex")}`;
|
|
23348
23348
|
}
|
|
23349
23349
|
|
|
23350
|
-
//
|
|
23350
|
+
// node_modules/@aws-sdk/checksums/dist-cjs/submodules/flexible-checksums/index.js
|
|
23351
23351
|
var { setFeature } = require_client2();
|
|
23352
23352
|
var { HttpRequest } = require_protocols();
|
|
23353
23353
|
var { isArrayBuffer, toUint8Array, createBufferedReadable, createChecksumStream } = require_serde();
|
|
@@ -23740,10 +23740,10 @@ var $NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = NODE_RESPONSE_CHECKSUM_V
|
|
|
23740
23740
|
var $getFlexibleChecksumsPlugin = getFlexibleChecksumsPlugin;
|
|
23741
23741
|
var $resolveFlexibleChecksumsConfig = resolveFlexibleChecksumsConfig;
|
|
23742
23742
|
|
|
23743
|
-
//
|
|
23743
|
+
// node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
23744
23744
|
var import_client23 = __toESM(require_client2(), 1);
|
|
23745
23745
|
|
|
23746
|
-
//
|
|
23746
|
+
// node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js
|
|
23747
23747
|
var { NoOpLogger, getSmithyContext } = require_client();
|
|
23748
23748
|
var { HttpRequest: HttpRequest2, HttpResponse } = require_protocols();
|
|
23749
23749
|
var { parseRfc7231DateTime } = require_serde();
|
|
@@ -24348,7 +24348,7 @@ var $getThrow200ExceptionsPlugin = getThrow200ExceptionsPlugin;
|
|
|
24348
24348
|
var $getValidateBucketNamePlugin = getValidateBucketNamePlugin;
|
|
24349
24349
|
var $resolveS3Config = resolveS3Config;
|
|
24350
24350
|
|
|
24351
|
-
//
|
|
24351
|
+
// node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
24352
24352
|
var import_core = __toESM(require_dist_cjs2(), 1);
|
|
24353
24353
|
var import_client24 = __toESM(require_client(), 1);
|
|
24354
24354
|
var import_config29 = __toESM(require_config(), 1);
|
|
@@ -24358,17 +24358,17 @@ var import_protocols6 = __toESM(require_protocols(), 1);
|
|
|
24358
24358
|
var import_retry4 = __toESM(require_retry(), 1);
|
|
24359
24359
|
var import_schema2 = __toESM(require_schema(), 1);
|
|
24360
24360
|
|
|
24361
|
-
//
|
|
24361
|
+
// node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
|
|
24362
24362
|
var import_httpAuthSchemes = __toESM(require_httpAuthSchemes(), 1);
|
|
24363
24363
|
var import_signature_v4_multi_region = __toESM(require_dist_cjs4(), 1);
|
|
24364
24364
|
var import_client2 = __toESM(require_client(), 1);
|
|
24365
24365
|
var import_endpoints3 = __toESM(require_endpoints(), 1);
|
|
24366
24366
|
|
|
24367
|
-
//
|
|
24367
|
+
// node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
|
|
24368
24368
|
var import_client = __toESM(require_client2(), 1);
|
|
24369
24369
|
var import_endpoints2 = __toESM(require_endpoints(), 1);
|
|
24370
24370
|
|
|
24371
|
-
//
|
|
24371
|
+
// node_modules/@aws-sdk/client-s3/dist-es/endpoint/bdd.js
|
|
24372
24372
|
var import_endpoints = __toESM(require_endpoints(), 1);
|
|
24373
24373
|
var aw = "ref";
|
|
24374
24374
|
var ax = "argv";
|
|
@@ -26312,7 +26312,7 @@ var nodes = new Int32Array([
|
|
|
26312
26312
|
]);
|
|
26313
26313
|
var bdd = import_endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
26314
26314
|
|
|
26315
|
-
//
|
|
26315
|
+
// node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
|
|
26316
26316
|
var cache = new import_endpoints2.EndpointCache({
|
|
26317
26317
|
size: 50,
|
|
26318
26318
|
params: [
|
|
@@ -26340,7 +26340,7 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
26340
26340
|
};
|
|
26341
26341
|
import_endpoints2.customEndpointFunctions.aws = import_client.awsEndpointFunctions;
|
|
26342
26342
|
|
|
26343
|
-
//
|
|
26343
|
+
// node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
|
|
26344
26344
|
var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
26345
26345
|
if (!input) {
|
|
26346
26346
|
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
@@ -26456,11 +26456,11 @@ var resolveHttpAuthSchemeConfig = (config) => {
|
|
|
26456
26456
|
});
|
|
26457
26457
|
};
|
|
26458
26458
|
|
|
26459
|
-
//
|
|
26459
|
+
// node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
|
|
26460
26460
|
var import_client3 = __toESM(require_client(), 1);
|
|
26461
26461
|
var import_endpoints4 = __toESM(require_endpoints(), 1);
|
|
26462
26462
|
|
|
26463
|
-
//
|
|
26463
|
+
// node_modules/@aws-sdk/client-s3/dist-es/endpoint/EndpointParameters.js
|
|
26464
26464
|
var resolveClientEndpointParameters = (options) => {
|
|
26465
26465
|
return Object.assign(options, {
|
|
26466
26466
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
@@ -26486,7 +26486,7 @@ var commonParams = {
|
|
|
26486
26486
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
26487
26487
|
};
|
|
26488
26488
|
|
|
26489
|
-
//
|
|
26489
|
+
// node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
|
|
26490
26490
|
var command = import_client3.makeBuilder(commonParams, "AmazonS3", "S3Client", import_endpoints4.getEndpointPlugin);
|
|
26491
26491
|
var _ep0 = {
|
|
26492
26492
|
Bucket: { type: "contextParams", name: "Bucket" },
|
|
@@ -26518,10 +26518,10 @@ var _mw11 = (Command, cs, config, o2) => [
|
|
|
26518
26518
|
$getSsecPlugin(config)
|
|
26519
26519
|
];
|
|
26520
26520
|
|
|
26521
|
-
//
|
|
26521
|
+
// node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js
|
|
26522
26522
|
var import_schema = __toESM(require_schema(), 1);
|
|
26523
26523
|
|
|
26524
|
-
//
|
|
26524
|
+
// node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js
|
|
26525
26525
|
var import_client4 = __toESM(require_client(), 1);
|
|
26526
26526
|
class S3ServiceException extends import_client4.ServiceException {
|
|
26527
26527
|
constructor(options) {
|
|
@@ -26530,7 +26530,7 @@ class S3ServiceException extends import_client4.ServiceException {
|
|
|
26530
26530
|
}
|
|
26531
26531
|
}
|
|
26532
26532
|
|
|
26533
|
-
//
|
|
26533
|
+
// node_modules/@aws-sdk/client-s3/dist-es/models/errors.js
|
|
26534
26534
|
class NoSuchUpload extends S3ServiceException {
|
|
26535
26535
|
name = "NoSuchUpload";
|
|
26536
26536
|
$fault = "client";
|
|
@@ -26808,7 +26808,7 @@ class ObjectAlreadyInActiveTierError extends S3ServiceException {
|
|
|
26808
26808
|
}
|
|
26809
26809
|
}
|
|
26810
26810
|
|
|
26811
|
-
//
|
|
26811
|
+
// node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js
|
|
26812
26812
|
var _A = "Account";
|
|
26813
26813
|
var _AAO = "AnalyticsAndOperator";
|
|
26814
26814
|
var _AC = "AccelerateConfiguration";
|
|
@@ -32260,13 +32260,13 @@ var WriteGetObjectResponse$ = [
|
|
|
32260
32260
|
() => __Unit
|
|
32261
32261
|
];
|
|
32262
32262
|
|
|
32263
|
-
//
|
|
32263
|
+
// node_modules/@aws-sdk/client-s3/dist-es/commands/CreateSessionCommand.js
|
|
32264
32264
|
class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSession$) {
|
|
32265
32265
|
}
|
|
32266
|
-
//
|
|
32266
|
+
// node_modules/@aws-sdk/client-s3/package.json
|
|
32267
32267
|
var package_default2 = {
|
|
32268
32268
|
name: "@aws-sdk/client-s3",
|
|
32269
|
-
version: "3.
|
|
32269
|
+
version: "3.1113.0",
|
|
32270
32270
|
description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
32271
32271
|
homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",
|
|
32272
32272
|
license: "Apache-2.0",
|
|
@@ -32333,7 +32333,7 @@ var package_default2 = {
|
|
|
32333
32333
|
tslib: "^2.6.2"
|
|
32334
32334
|
},
|
|
32335
32335
|
devDependencies: {
|
|
32336
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
32336
|
+
"@aws-sdk/signature-v4-crt": "3.1113.0",
|
|
32337
32337
|
"@smithy/snapshot-testing": "^2.2.16",
|
|
32338
32338
|
"@tsconfig/node20": "20.1.8",
|
|
32339
32339
|
"@types/node": "^20.14.8",
|
|
@@ -32348,15 +32348,15 @@ var package_default2 = {
|
|
|
32348
32348
|
}
|
|
32349
32349
|
};
|
|
32350
32350
|
|
|
32351
|
-
//
|
|
32351
|
+
// node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32352
32352
|
var import_client19 = __toESM(require_client2(), 1);
|
|
32353
32353
|
var import_httpAuthSchemes3 = __toESM(require_httpAuthSchemes(), 1);
|
|
32354
32354
|
|
|
32355
|
-
//
|
|
32355
|
+
// node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
32356
32356
|
init_dist_es();
|
|
32357
32357
|
var import_config27 = __toESM(require_config(), 1);
|
|
32358
32358
|
|
|
32359
|
-
//
|
|
32359
|
+
// node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
|
|
32360
32360
|
var import_config10 = __toESM(require_config(), 1);
|
|
32361
32361
|
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
32362
32362
|
var remoteProvider = async (init) => {
|
|
@@ -32375,7 +32375,7 @@ var remoteProvider = async (init) => {
|
|
|
32375
32375
|
return fromInstanceMetadata2(init);
|
|
32376
32376
|
};
|
|
32377
32377
|
|
|
32378
|
-
//
|
|
32378
|
+
// node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js
|
|
32379
32379
|
function memoizeChain(providers, treatAsExpired) {
|
|
32380
32380
|
const chain2 = internalCreateChain(providers);
|
|
32381
32381
|
let activeLock;
|
|
@@ -32439,7 +32439,7 @@ var internalCreateChain = (providers) => async (awsIdentityProperties) => {
|
|
|
32439
32439
|
throw lastProviderError;
|
|
32440
32440
|
};
|
|
32441
32441
|
|
|
32442
|
-
//
|
|
32442
|
+
// node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
32443
32443
|
var multipleCredentialSourceWarningEmitted = false;
|
|
32444
32444
|
var defaultProvider = (init = {}) => memoizeChain([
|
|
32445
32445
|
async () => {
|
|
@@ -32505,7 +32505,7 @@ var defaultProvider = (init = {}) => memoizeChain([
|
|
|
32505
32505
|
}
|
|
32506
32506
|
], credentialsTreatedAsExpired);
|
|
32507
32507
|
var credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
|
|
32508
|
-
//
|
|
32508
|
+
// node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32509
32509
|
var import_checksum2 = __toESM(require_checksum(), 1);
|
|
32510
32510
|
var import_client20 = __toESM(require_client(), 1);
|
|
32511
32511
|
var import_config28 = __toESM(require_config(), 1);
|
|
@@ -32514,7 +32514,7 @@ var import_retry3 = __toESM(require_retry(), 1);
|
|
|
32514
32514
|
var import_serde4 = __toESM(require_serde(), 1);
|
|
32515
32515
|
var import_node_http_handler2 = __toESM(require_dist_cjs6(), 1);
|
|
32516
32516
|
|
|
32517
|
-
//
|
|
32517
|
+
// node_modules/@aws-sdk/checksums/dist-cjs/submodules/sha/index.js
|
|
32518
32518
|
var { toUint8Array: toUint8Array2, concatBytes } = require_serde();
|
|
32519
32519
|
var { createHmac: createHmac2, createHash: createHash3 } = __require("crypto");
|
|
32520
32520
|
var { Sha256: Sha2562, Sha256Js, Sha256Node } = require_checksum();
|
|
@@ -32743,7 +32743,7 @@ var subtle = typeof digest === "function" && typeof sign2 === "function" && type
|
|
|
32743
32743
|
var MAX_PENDING_BYTES = 8 * 1024 * 1024;
|
|
32744
32744
|
var $Sha1 = Sha1Node;
|
|
32745
32745
|
|
|
32746
|
-
//
|
|
32746
|
+
// node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js
|
|
32747
32747
|
var import_httpAuthSchemes2 = __toESM(require_httpAuthSchemes(), 1);
|
|
32748
32748
|
var import_signature_v4_multi_region2 = __toESM(require_dist_cjs4(), 1);
|
|
32749
32749
|
var import_checksum = __toESM(require_checksum(), 1);
|
|
@@ -32795,7 +32795,7 @@ var getRuntimeConfig2 = (config) => {
|
|
|
32795
32795
|
};
|
|
32796
32796
|
};
|
|
32797
32797
|
|
|
32798
|
-
//
|
|
32798
|
+
// node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32799
32799
|
var getRuntimeConfig3 = (config) => {
|
|
32800
32800
|
import_client20.emitWarningIfUnsupportedVersion(process.version);
|
|
32801
32801
|
const defaultsMode = import_config28.resolveDefaultsModeConfig(config);
|
|
@@ -32836,12 +32836,12 @@ var getRuntimeConfig3 = (config) => {
|
|
|
32836
32836
|
};
|
|
32837
32837
|
};
|
|
32838
32838
|
|
|
32839
|
-
//
|
|
32839
|
+
// node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
|
|
32840
32840
|
var import_client21 = __toESM(require_client2(), 1);
|
|
32841
32841
|
var import_client22 = __toESM(require_client(), 1);
|
|
32842
32842
|
var import_protocols5 = __toESM(require_protocols(), 1);
|
|
32843
32843
|
|
|
32844
|
-
//
|
|
32844
|
+
// node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthExtensionConfiguration.js
|
|
32845
32845
|
var getHttpAuthExtensionConfiguration2 = (runtimeConfig) => {
|
|
32846
32846
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
32847
32847
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -32880,14 +32880,14 @@ var resolveHttpAuthRuntimeConfig2 = (config) => {
|
|
|
32880
32880
|
};
|
|
32881
32881
|
};
|
|
32882
32882
|
|
|
32883
|
-
//
|
|
32883
|
+
// node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
|
|
32884
32884
|
var resolveRuntimeExtensions2 = (runtimeConfig, extensions) => {
|
|
32885
32885
|
const extensionConfiguration = Object.assign(import_client21.getAwsRegionExtensionConfiguration(runtimeConfig), import_client22.getDefaultExtensionConfiguration(runtimeConfig), import_protocols5.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig));
|
|
32886
32886
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
32887
32887
|
return Object.assign(runtimeConfig, import_client21.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client22.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols5.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration));
|
|
32888
32888
|
};
|
|
32889
32889
|
|
|
32890
|
-
//
|
|
32890
|
+
// node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
32891
32891
|
class S3Client extends import_client24.Client {
|
|
32892
32892
|
config;
|
|
32893
32893
|
constructor(...[configuration]) {
|
|
@@ -32932,15 +32932,15 @@ class S3Client extends import_client24.Client {
|
|
|
32932
32932
|
}
|
|
32933
32933
|
}
|
|
32934
32934
|
|
|
32935
|
-
//
|
|
32935
|
+
// node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectCommand.js
|
|
32936
32936
|
class DeleteObjectCommand extends command(_ep0, _mw0, "DeleteObject", DeleteObject$) {
|
|
32937
32937
|
}
|
|
32938
32938
|
|
|
32939
|
-
//
|
|
32939
|
+
// node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectCommand.js
|
|
32940
32940
|
class GetObjectCommand extends command(_ep0, _mw7, "GetObject", GetObject$) {
|
|
32941
32941
|
}
|
|
32942
32942
|
|
|
32943
|
-
//
|
|
32943
|
+
// node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js
|
|
32944
32944
|
class PutObjectCommand extends command(_ep0, _mw11, "PutObject", PutObject$) {
|
|
32945
32945
|
}
|
|
32946
32946
|
|
|
@@ -35700,7 +35700,7 @@ function readPortableSkillManifest(skillPath, fallbackName = basename(skillPath)
|
|
|
35700
35700
|
const pkg = existsSync5(pkgPath) ? readJsonObject(pkgPath) : undefined;
|
|
35701
35701
|
const name = normalizePortableSkillName(stringField(jsonManifest, "name") ?? frontmatter?.name ?? stringValue(pkg?.name) ?? fallbackName);
|
|
35702
35702
|
const description = stringField(jsonManifest, "description") ?? frontmatter?.description ?? stringValue(pkg?.description) ?? `${name} skill`;
|
|
35703
|
-
const version2 =
|
|
35703
|
+
const version2 = readDeclaredSkillVersion(skillPath) ?? PORTABLE_SKILL_DEFAULT_VERSION;
|
|
35704
35704
|
const kind = parseSkillKind(stringField(jsonManifest, "kind") ?? frontmatter?.kind);
|
|
35705
35705
|
const commands2 = parseManifestCommands(jsonManifest) ?? (kind === "instruction" ? [] : inferPackageCommands(pkg, name)) ?? [];
|
|
35706
35706
|
return {
|
|
@@ -35724,6 +35724,15 @@ function parseSkillKind(value) {
|
|
|
35724
35724
|
return value;
|
|
35725
35725
|
return;
|
|
35726
35726
|
}
|
|
35727
|
+
function readDeclaredSkillVersion(skillPath) {
|
|
35728
|
+
const skillJsonPath = join9(skillPath, "skill.json");
|
|
35729
|
+
const skillMdPath = join9(skillPath, "SKILL.md");
|
|
35730
|
+
const pkgPath = join9(skillPath, "package.json");
|
|
35731
|
+
const jsonManifest = existsSync5(skillJsonPath) ? readJsonObject(skillJsonPath) : undefined;
|
|
35732
|
+
const frontmatter = existsSync5(skillMdPath) ? parseSkillFrontmatter(readFileSync6(skillMdPath, "utf-8")) ?? undefined : undefined;
|
|
35733
|
+
const pkg = existsSync5(pkgPath) ? readJsonObject(pkgPath) : undefined;
|
|
35734
|
+
return stringField(jsonManifest, "version") ?? frontmatter?.version ?? stringValue(pkg?.version);
|
|
35735
|
+
}
|
|
35727
35736
|
function parseManifestCommands(value) {
|
|
35728
35737
|
const raw = value?.commands;
|
|
35729
35738
|
if (!Array.isArray(raw))
|
|
@@ -36337,11 +36346,12 @@ function publishedSkillMeta(record) {
|
|
|
36337
36346
|
availability: { status: "available" }
|
|
36338
36347
|
};
|
|
36339
36348
|
}
|
|
36340
|
-
function publishedPayload(record) {
|
|
36349
|
+
function publishedPayload(record, opts = {}) {
|
|
36341
36350
|
return {
|
|
36342
36351
|
...publishedSkillMeta(record),
|
|
36343
36352
|
slug: record.slug,
|
|
36344
36353
|
publishedSource: record.source,
|
|
36354
|
+
...opts.alreadyPublished ? { alreadyPublished: true } : {},
|
|
36345
36355
|
...record.skillMd ? { skillMd: record.skillMd } : {},
|
|
36346
36356
|
...record.bundleSha256 ? { bundleSha256: record.bundleSha256, bundleByteSize: record.bundleByteSize } : {},
|
|
36347
36357
|
publishedAt: record.createdAt,
|
|
@@ -36593,7 +36603,7 @@ async function storePublishedSkill(store, artifactStorage, principal, parsed, ex
|
|
|
36593
36603
|
throw new SkillRequestError(502, "VERSION_OBJECTS_WRITE_FAILED", `'${input.slug}@${input.version}' was recorded but its version-addressed objects could not be written: ${error.message}. Re-run the same push to write them.`);
|
|
36594
36604
|
}
|
|
36595
36605
|
}
|
|
36596
|
-
return record;
|
|
36606
|
+
return { record, alreadyPublished: existingVersion !== null };
|
|
36597
36607
|
}
|
|
36598
36608
|
async function deletePublishedSkill(store, artifactStorage, principal, slug, tombstoneWindowMs) {
|
|
36599
36609
|
return store.deleteSkill(principal, slug, tombstoneWindowMs);
|
|
@@ -36802,7 +36812,7 @@ async function seedBundledCorpus(options) {
|
|
|
36802
36812
|
const skillMdPath = join14(dir, "SKILL.md");
|
|
36803
36813
|
const skillMd = existsSync11(skillMdPath) ? readFileSync11(skillMdPath, "utf-8") : undefined;
|
|
36804
36814
|
const current = await options.store.getSkill(options.principal, slug);
|
|
36805
|
-
const record = await storePublishedSkill(options.store, options.artifactStorage, options.principal, {
|
|
36815
|
+
const { record } = await storePublishedSkill(options.store, options.artifactStorage, options.principal, {
|
|
36806
36816
|
input: {
|
|
36807
36817
|
slug,
|
|
36808
36818
|
displayName: manifest.displayName ?? skill.displayName ?? slug,
|
|
@@ -38053,8 +38063,8 @@ async function handleApiV1(store, governanceStore, principal, request, parts, co
|
|
|
38053
38063
|
if (request.method === "POST" && !id) {
|
|
38054
38064
|
const expectedRevisionId = parseIfMatch(request.headers.get("if-match"));
|
|
38055
38065
|
const parsed = await parsePublishRequest(request, config);
|
|
38056
|
-
const record = await storePublishedSkill(store, artifactStorage, principal, parsed, expectedRevisionId);
|
|
38057
|
-
return json(publishedPayload(record), { status: 201, headers: { ETag: revisionEtag(record.revisionId) } });
|
|
38066
|
+
const { record, alreadyPublished } = await storePublishedSkill(store, artifactStorage, principal, parsed, expectedRevisionId);
|
|
38067
|
+
return json(publishedPayload(record, { alreadyPublished }), { status: 201, headers: { ETag: revisionEtag(record.revisionId) } });
|
|
38058
38068
|
}
|
|
38059
38069
|
if (request.method === "GET" && id && subresource === "skill.md") {
|
|
38060
38070
|
const resolved = await resolvePublishedSkill(store, artifactStorage, principal, id);
|