@hasna/skills 0.5.7 → 0.5.9
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 +47 -1
- package/bin/index.js +315 -314
- package/bin/mcp.js +188 -186
- package/bin/migrate.js +4 -2
- package/bin/server.js +144 -123
- package/bin/worker.js +123 -121
- package/dist/admin-contract.js +8 -8
- package/dist/index.js +18 -16
- package/dist/lib/private-publication-recovery.d.ts +2 -1
- package/dist/lib/remote-private-publications.d.ts +2 -1
- package/dist/sdk/amounts.d.ts +5 -0
- package/dist/sdk/governance-store.d.ts +2 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +404 -167
- package/dist/sdk/operations.d.ts +68 -0
- package/dist/sdk/runs.d.ts +1 -1
- package/dist/sdk/spend.d.ts +5 -2
- package/package.json +4 -2
- package/dist/cli/cli.test-utils.d.ts +0 -43
- package/dist/server/store-fixtures.d.ts +0 -31
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/.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,7 +138,7 @@ var require_dist_cjs = __commonJS((exports) => {
|
|
|
138
138
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
//
|
|
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] = {});
|
|
@@ -311,7 +311,7 @@ var require_transport = __commonJS((exports) => {
|
|
|
311
311
|
exports.toEndpointV1 = toEndpointV1;
|
|
312
312
|
});
|
|
313
313
|
|
|
314
|
-
//
|
|
314
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
|
|
315
315
|
var require_schema = __commonJS((exports) => {
|
|
316
316
|
var { getSmithyContext, HttpResponse, toEndpointV1 } = require_transport();
|
|
317
317
|
var deref = (schemaRef) => {
|
|
@@ -980,7 +980,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
980
980
|
exports.translateTraits = translateTraits;
|
|
981
981
|
});
|
|
982
982
|
|
|
983
|
-
//
|
|
983
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/client/index.js
|
|
984
984
|
var require_client = __commonJS((exports) => {
|
|
985
985
|
var { hasOwn } = require_transport();
|
|
986
986
|
var { getSmithyContext, normalizeProvider } = require_transport();
|
|
@@ -2060,7 +2060,7 @@ var require_client = __commonJS((exports) => {
|
|
|
2060
2060
|
exports.withBaseException = withBaseException;
|
|
2061
2061
|
});
|
|
2062
2062
|
|
|
2063
|
-
//
|
|
2063
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/config/index.js
|
|
2064
2064
|
var require_config = __commonJS((exports) => {
|
|
2065
2065
|
var { homedir } = __require("os");
|
|
2066
2066
|
var { sep, join: join2 } = __require("path");
|
|
@@ -2755,7 +2755,7 @@ var require_config = __commonJS((exports) => {
|
|
|
2755
2755
|
exports.resolveRegionConfig = resolveRegionConfig;
|
|
2756
2756
|
});
|
|
2757
2757
|
|
|
2758
|
-
//
|
|
2758
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
|
|
2759
2759
|
var require_endpoints = __commonJS((exports) => {
|
|
2760
2760
|
var { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require_config();
|
|
2761
2761
|
var { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require_transport();
|
|
@@ -3569,7 +3569,7 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
3569
3569
|
exports.resolveParams = resolveParams;
|
|
3570
3570
|
});
|
|
3571
3571
|
|
|
3572
|
-
//
|
|
3572
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
3573
3573
|
var require_serde = __commonJS((exports) => {
|
|
3574
3574
|
var { createHmac: createHmac2, createHash: createHash2, getRandomValues } = __require("crypto");
|
|
3575
3575
|
var { hasOwn, HttpResponse } = require_transport();
|
|
@@ -5210,7 +5210,7 @@ ${value}\r
|
|
|
5210
5210
|
exports.v4 = v4;
|
|
5211
5211
|
});
|
|
5212
5212
|
|
|
5213
|
-
//
|
|
5213
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js
|
|
5214
5214
|
var require_checksum = __commonJS((exports) => {
|
|
5215
5215
|
var { createReadStream } = __require("fs");
|
|
5216
5216
|
var { Writable } = __require("stream");
|
|
@@ -5826,7 +5826,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
5826
5826
|
exports.readableStreamHasher = readableStreamHasher;
|
|
5827
5827
|
});
|
|
5828
5828
|
|
|
5829
|
-
//
|
|
5829
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js
|
|
5830
5830
|
var require_event_streams = __commonJS((exports) => {
|
|
5831
5831
|
var { Crc32 } = require_checksum();
|
|
5832
5832
|
var { hasOwn } = require_transport();
|
|
@@ -6718,7 +6718,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
6718
6718
|
exports.universalEventStreamSerdeProvider = eventStreamSerdeProvider$1;
|
|
6719
6719
|
});
|
|
6720
6720
|
|
|
6721
|
-
//
|
|
6721
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
|
|
6722
6722
|
var require_protocols = __commonJS((exports) => {
|
|
6723
6723
|
var { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = require_serde();
|
|
6724
6724
|
var { HttpRequest, HttpResponse, hasOwn, isValidHostname } = require_transport();
|
|
@@ -7722,7 +7722,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
7722
7722
|
exports.resolvedPath = resolvedPath;
|
|
7723
7723
|
});
|
|
7724
7724
|
|
|
7725
|
-
//
|
|
7725
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js
|
|
7726
7726
|
var require_retry = __commonJS((exports) => {
|
|
7727
7727
|
var { Readable } = __require("stream");
|
|
7728
7728
|
var { NoOpLogger, normalizeProvider } = require_client();
|
|
@@ -8522,7 +8522,7 @@ var require_retry = __commonJS((exports) => {
|
|
|
8522
8522
|
exports.retryMiddlewareOptions = retryMiddlewareOptions;
|
|
8523
8523
|
});
|
|
8524
8524
|
|
|
8525
|
-
//
|
|
8525
|
+
// ../../node_modules/.bun/@aws+lambda-invoke-store@0.3.0/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js
|
|
8526
8526
|
var require_invoke_store = __commonJS((exports) => {
|
|
8527
8527
|
var PROTECTED_KEYS = {
|
|
8528
8528
|
REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
|
|
@@ -8651,7 +8651,7 @@ var require_invoke_store = __commonJS((exports) => {
|
|
|
8651
8651
|
exports.InvokeStoreBase = InvokeStoreBase;
|
|
8652
8652
|
});
|
|
8653
8653
|
|
|
8654
|
-
//
|
|
8654
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/index.js
|
|
8655
8655
|
var require_dist_cjs2 = __commonJS((exports) => {
|
|
8656
8656
|
var { getSmithyContext, hasOwn } = require_transport();
|
|
8657
8657
|
exports.getSmithyContext = getSmithyContext;
|
|
@@ -8979,7 +8979,7 @@ var require_dist_cjs2 = __commonJS((exports) => {
|
|
|
8979
8979
|
exports.setFeature = setFeature;
|
|
8980
8980
|
});
|
|
8981
8981
|
|
|
8982
|
-
//
|
|
8982
|
+
// ../../node_modules/.bun/bowser@2.14.1/node_modules/bowser/es5.js
|
|
8983
8983
|
var require_es5 = __commonJS((exports, module) => {
|
|
8984
8984
|
(function(e, t) {
|
|
8985
8985
|
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();
|
|
@@ -9819,7 +9819,7 @@ var require_es5 = __commonJS((exports, module) => {
|
|
|
9819
9819
|
});
|
|
9820
9820
|
});
|
|
9821
9821
|
|
|
9822
|
-
//
|
|
9822
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
|
|
9823
9823
|
var require_client2 = __commonJS((exports) => {
|
|
9824
9824
|
var { Retry, RETRY_MODES } = require_retry();
|
|
9825
9825
|
var { HttpRequest, parseUrl } = require_protocols();
|
|
@@ -10757,7 +10757,7 @@ More information can be found at: https://a.co/c895JFp`);
|
|
|
10757
10757
|
exports.userAgentMiddleware = userAgentMiddleware;
|
|
10758
10758
|
});
|
|
10759
10759
|
|
|
10760
|
-
//
|
|
10760
|
+
// ../../node_modules/.bun/@aws-sdk+checksums@3.1000.29/node_modules/@aws-sdk/checksums/dist-cjs/submodules/crc/index.js
|
|
10761
10761
|
var require_crc = __commonJS((exports) => {
|
|
10762
10762
|
var { Crc32, Crc32Js, Crc32Node } = require_checksum();
|
|
10763
10763
|
exports.Crc32 = Crc32;
|
|
@@ -10914,7 +10914,7 @@ var require_crc = __commonJS((exports) => {
|
|
|
10914
10914
|
exports.crc64NvmeCrtContainer = crc64NvmeCrtContainer;
|
|
10915
10915
|
});
|
|
10916
10916
|
|
|
10917
|
-
//
|
|
10917
|
+
// ../../node_modules/.bun/@smithy+signature-v4@5.7.3/node_modules/@smithy/signature-v4/dist-cjs/index.js
|
|
10918
10918
|
var require_dist_cjs3 = __commonJS((exports) => {
|
|
10919
10919
|
var { hasOwn, fromUtf8, fromHex, toHex, toUint8Array: toUint8Array2, isArrayBuffer: isArrayBuffer2 } = require_serde();
|
|
10920
10920
|
var { normalizeProvider: normalizeProvider2 } = require_client();
|
|
@@ -11466,7 +11466,7 @@ ${toHex(hashedRequest)}`;
|
|
|
11466
11466
|
exports.signatureV4aContainer = signatureV4aContainer;
|
|
11467
11467
|
});
|
|
11468
11468
|
|
|
11469
|
-
//
|
|
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
|
|
11470
11470
|
var require_dist_cjs4 = __commonJS((exports) => {
|
|
11471
11471
|
var { SignatureV4, signatureV4aContainer } = require_dist_cjs3();
|
|
11472
11472
|
var signatureV4CrtContainer = {
|
|
@@ -11598,7 +11598,7 @@ var require_dist_cjs4 = __commonJS((exports) => {
|
|
|
11598
11598
|
exports.signatureV4CrtContainer = signatureV4CrtContainer;
|
|
11599
11599
|
});
|
|
11600
11600
|
|
|
11601
|
-
//
|
|
11601
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js
|
|
11602
11602
|
var require_util = __commonJS((exports) => {
|
|
11603
11603
|
var { buildQueryString } = require_protocols();
|
|
11604
11604
|
var validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
|
|
@@ -11656,7 +11656,7 @@ var require_util = __commonJS((exports) => {
|
|
|
11656
11656
|
exports.validate = validate;
|
|
11657
11657
|
});
|
|
11658
11658
|
|
|
11659
|
-
//
|
|
11659
|
+
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
|
|
11660
11660
|
var require_cbor = __commonJS((exports) => {
|
|
11661
11661
|
var { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require_serde();
|
|
11662
11662
|
var { hasOwn, getSmithyContext } = require_transport();
|
|
@@ -14106,7 +14106,7 @@ var require_cbor = __commonJS((exports) => {
|
|
|
14106
14106
|
exports.tagSymbol = tagSymbol;
|
|
14107
14107
|
});
|
|
14108
14108
|
|
|
14109
|
-
//
|
|
14109
|
+
// ../../node_modules/.bun/@aws-sdk+xml-builder@3.972.40/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
|
|
14110
14110
|
var require_dist_cjs5 = __commonJS((exports) => {
|
|
14111
14111
|
var ATTR_ESCAPE_RE = /[&<>"]/g;
|
|
14112
14112
|
var ATTR_ESCAPE_MAP = {
|
|
@@ -14474,7 +14474,7 @@ var require_dist_cjs5 = __commonJS((exports) => {
|
|
|
14474
14474
|
exports.parseXML = parseXML;
|
|
14475
14475
|
});
|
|
14476
14476
|
|
|
14477
|
-
//
|
|
14477
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
|
|
14478
14478
|
var require_protocols2 = __commonJS((exports) => {
|
|
14479
14479
|
var { SmithyRpcV2CborProtocol, loadSmithyRpcV2CborErrorCode } = require_cbor();
|
|
14480
14480
|
var { TypeRegistry, NormalizedSchema, deref } = require_schema();
|
|
@@ -17315,7 +17315,7 @@ var require_protocols2 = __commonJS((exports) => {
|
|
|
17315
17315
|
exports.parseXmlErrorBody = parseXmlErrorBody;
|
|
17316
17316
|
});
|
|
17317
17317
|
|
|
17318
|
-
//
|
|
17318
|
+
// ../../node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
|
|
17319
17319
|
var require_httpAuthSchemes = __commonJS((exports) => {
|
|
17320
17320
|
var { ProviderError, booleanSelector: booleanSelector2, SelectorType: SelectorType3, loadConfig } = require_config();
|
|
17321
17321
|
var { setCredentialFeature } = require_client2();
|
|
@@ -17645,7 +17645,7 @@ var require_httpAuthSchemes = __commonJS((exports) => {
|
|
|
17645
17645
|
exports.validateSigningProperties = validateSigningProperties;
|
|
17646
17646
|
});
|
|
17647
17647
|
|
|
17648
|
-
//
|
|
17648
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.70/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
17649
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 () => {
|
|
17650
17650
|
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
17651
17651
|
const accessKeyId = process.env[ENV_KEY];
|
|
@@ -17673,7 +17673,7 @@ var init_fromEnv = __esm(() => {
|
|
|
17673
17673
|
import_config = __toESM(require_config(), 1);
|
|
17674
17674
|
});
|
|
17675
17675
|
|
|
17676
|
-
//
|
|
17676
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.70/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js
|
|
17677
17677
|
var exports_dist_es = {};
|
|
17678
17678
|
__export(exports_dist_es, {
|
|
17679
17679
|
fromEnv: () => fromEnv,
|
|
@@ -17688,7 +17688,7 @@ var init_dist_es = __esm(() => {
|
|
|
17688
17688
|
init_fromEnv();
|
|
17689
17689
|
});
|
|
17690
17690
|
|
|
17691
|
-
//
|
|
17691
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js
|
|
17692
17692
|
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) => ({
|
|
17693
17693
|
accessKeyId: creds.AccessKeyId,
|
|
17694
17694
|
secretAccessKey: creds.SecretAccessKey,
|
|
@@ -17697,14 +17697,14 @@ var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && type
|
|
|
17697
17697
|
...creds.AccountId && { accountId: creds.AccountId }
|
|
17698
17698
|
});
|
|
17699
17699
|
|
|
17700
|
-
//
|
|
17700
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js
|
|
17701
17701
|
var DEFAULT_TIMEOUT = 1000, DEFAULT_MAX_RETRIES = 0, providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout });
|
|
17702
17702
|
|
|
17703
|
-
//
|
|
17703
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js
|
|
17704
17704
|
import node_http from "http";
|
|
17705
17705
|
var init_node_http = () => {};
|
|
17706
17706
|
|
|
17707
|
-
//
|
|
17707
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js
|
|
17708
17708
|
function httpRequest(options) {
|
|
17709
17709
|
return new Promise((resolve, reject) => {
|
|
17710
17710
|
const req = node_http.request({
|
|
@@ -17744,7 +17744,7 @@ var init_httpRequest = __esm(() => {
|
|
|
17744
17744
|
import_config2 = __toESM(require_config(), 1);
|
|
17745
17745
|
});
|
|
17746
17746
|
|
|
17747
|
-
//
|
|
17747
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js
|
|
17748
17748
|
var retry = (toRetry, maxRetries) => {
|
|
17749
17749
|
let promise = toRetry();
|
|
17750
17750
|
for (let i2 = 0;i2 < maxRetries; i2++) {
|
|
@@ -17753,7 +17753,7 @@ var retry = (toRetry, maxRetries) => {
|
|
|
17753
17753
|
return promise;
|
|
17754
17754
|
};
|
|
17755
17755
|
|
|
17756
|
-
//
|
|
17756
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
|
|
17757
17757
|
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 = {}) => {
|
|
17758
17758
|
const { timeout, maxRetries } = providerConfigFromInit(init);
|
|
17759
17759
|
return () => retry(async () => {
|
|
@@ -17823,7 +17823,7 @@ var init_fromContainerMetadata = __esm(() => {
|
|
|
17823
17823
|
GREENGRASS_PROTOCOLS = new Set(["http:", "https:"]);
|
|
17824
17824
|
});
|
|
17825
17825
|
|
|
17826
|
-
//
|
|
17826
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
|
|
17827
17827
|
var import_config4, InstanceMetadataV1FallbackError;
|
|
17828
17828
|
var init_InstanceMetadataV1FallbackError = __esm(() => {
|
|
17829
17829
|
import_config4 = __toESM(require_config(), 1);
|
|
@@ -17838,7 +17838,7 @@ var init_InstanceMetadataV1FallbackError = __esm(() => {
|
|
|
17838
17838
|
};
|
|
17839
17839
|
});
|
|
17840
17840
|
|
|
17841
|
-
//
|
|
17841
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js
|
|
17842
17842
|
var Endpoint;
|
|
17843
17843
|
var init_Endpoint = __esm(() => {
|
|
17844
17844
|
(function(Endpoint2) {
|
|
@@ -17847,7 +17847,7 @@ var init_Endpoint = __esm(() => {
|
|
|
17847
17847
|
})(Endpoint || (Endpoint = {}));
|
|
17848
17848
|
});
|
|
17849
17849
|
|
|
17850
|
-
//
|
|
17850
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js
|
|
17851
17851
|
var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT", CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint", ENDPOINT_CONFIG_OPTIONS;
|
|
17852
17852
|
var init_EndpointConfigOptions = __esm(() => {
|
|
17853
17853
|
ENDPOINT_CONFIG_OPTIONS = {
|
|
@@ -17857,7 +17857,7 @@ var init_EndpointConfigOptions = __esm(() => {
|
|
|
17857
17857
|
};
|
|
17858
17858
|
});
|
|
17859
17859
|
|
|
17860
|
-
//
|
|
17860
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js
|
|
17861
17861
|
var EndpointMode;
|
|
17862
17862
|
var init_EndpointMode = __esm(() => {
|
|
17863
17863
|
(function(EndpointMode2) {
|
|
@@ -17866,7 +17866,7 @@ var init_EndpointMode = __esm(() => {
|
|
|
17866
17866
|
})(EndpointMode || (EndpointMode = {}));
|
|
17867
17867
|
});
|
|
17868
17868
|
|
|
17869
|
-
//
|
|
17869
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js
|
|
17870
17870
|
var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE", CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode", ENDPOINT_MODE_CONFIG_OPTIONS;
|
|
17871
17871
|
var init_EndpointModeConfigOptions = __esm(() => {
|
|
17872
17872
|
init_EndpointMode();
|
|
@@ -17877,7 +17877,7 @@ var init_EndpointModeConfigOptions = __esm(() => {
|
|
|
17877
17877
|
};
|
|
17878
17878
|
});
|
|
17879
17879
|
|
|
17880
|
-
//
|
|
17880
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js
|
|
17881
17881
|
var import_config5, import_protocols, getInstanceMetadataEndpoint = async () => import_protocols.parseUrl(await getFromEndpointConfig() || await getFromEndpointModeConfig()), getFromEndpointConfig = async () => import_config5.loadConfig(ENDPOINT_CONFIG_OPTIONS)(), getFromEndpointModeConfig = async () => {
|
|
17882
17882
|
const endpointMode = await import_config5.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
|
|
17883
17883
|
switch (endpointMode) {
|
|
@@ -17898,7 +17898,7 @@ var init_getInstanceMetadataEndpoint = __esm(() => {
|
|
|
17898
17898
|
import_protocols = __toESM(require_protocols(), 1);
|
|
17899
17899
|
});
|
|
17900
17900
|
|
|
17901
|
-
//
|
|
17901
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js
|
|
17902
17902
|
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) => {
|
|
17903
17903
|
const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
|
|
17904
17904
|
const newExpiration = new Date(Date.now() + refreshInterval * 1000);
|
|
@@ -17916,7 +17916,7 @@ var init_getExtendedInstanceMetadataCredentials = __esm(() => {
|
|
|
17916
17916
|
STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
|
|
17917
17917
|
});
|
|
17918
17918
|
|
|
17919
|
-
//
|
|
17919
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js
|
|
17920
17920
|
var staticStabilityProvider = (provider, options = {}) => {
|
|
17921
17921
|
const logger = options?.logger || console;
|
|
17922
17922
|
let pastCredentials;
|
|
@@ -17943,7 +17943,7 @@ var init_staticStabilityProvider = __esm(() => {
|
|
|
17943
17943
|
init_getExtendedInstanceMetadataCredentials();
|
|
17944
17944
|
});
|
|
17945
17945
|
|
|
17946
|
-
//
|
|
17946
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
|
|
17947
17947
|
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 = {}) => {
|
|
17948
17948
|
let disableFetchToken = false;
|
|
17949
17949
|
const { logger, profile } = init;
|
|
@@ -18063,7 +18063,7 @@ var init_fromInstanceMetadata = __esm(() => {
|
|
|
18063
18063
|
import_config6 = __toESM(require_config(), 1);
|
|
18064
18064
|
});
|
|
18065
18065
|
|
|
18066
|
-
//
|
|
18066
|
+
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/index.js
|
|
18067
18067
|
var exports_dist_es2 = {};
|
|
18068
18068
|
__export(exports_dist_es2, {
|
|
18069
18069
|
providerConfigFromInit: () => providerConfigFromInit,
|
|
@@ -18086,7 +18086,7 @@ var init_dist_es2 = __esm(() => {
|
|
|
18086
18086
|
init_Endpoint();
|
|
18087
18087
|
});
|
|
18088
18088
|
|
|
18089
|
-
//
|
|
18089
|
+
// ../../node_modules/.bun/@smithy+node-http-handler@4.12.1/node_modules/@smithy/node-http-handler/dist-cjs/index.js
|
|
18090
18090
|
var require_dist_cjs6 = __commonJS((exports) => {
|
|
18091
18091
|
var { hasOwn } = require_serde();
|
|
18092
18092
|
var { streamCollector } = require_serde();
|
|
@@ -18912,7 +18912,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
18912
18912
|
exports.NodeHttpHandler = NodeHttpHandler;
|
|
18913
18913
|
});
|
|
18914
18914
|
|
|
18915
|
-
//
|
|
18915
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
18916
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) => {
|
|
18917
18917
|
if (url.protocol === "https:") {
|
|
18918
18918
|
return;
|
|
@@ -18946,7 +18946,7 @@ var init_checkUrl = __esm(() => {
|
|
|
18946
18946
|
import_config7 = __toESM(require_config(), 1);
|
|
18947
18947
|
});
|
|
18948
18948
|
|
|
18949
|
-
//
|
|
18949
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
18950
18950
|
function createGetRequest(url) {
|
|
18951
18951
|
return new import_protocols2.HttpRequest({
|
|
18952
18952
|
protocol: url.protocol,
|
|
@@ -18995,7 +18995,7 @@ var init_requestHelpers = __esm(() => {
|
|
|
18995
18995
|
import_serde2 = __toESM(require_serde(), 1);
|
|
18996
18996
|
});
|
|
18997
18997
|
|
|
18998
|
-
//
|
|
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
|
|
18999
18999
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
19000
19000
|
return async () => {
|
|
19001
19001
|
for (let i2 = 0;i2 < maxRetries; ++i2) {
|
|
@@ -19009,7 +19009,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
19009
19009
|
};
|
|
19010
19010
|
};
|
|
19011
19011
|
|
|
19012
|
-
//
|
|
19012
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
19013
19013
|
import fs from "fs/promises";
|
|
19014
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 = {}) => {
|
|
19015
19015
|
options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
@@ -19075,7 +19075,7 @@ var init_fromHttp = __esm(() => {
|
|
|
19075
19075
|
import_node_http_handler = __toESM(require_dist_cjs6(), 1);
|
|
19076
19076
|
});
|
|
19077
19077
|
|
|
19078
|
-
//
|
|
19078
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js
|
|
19079
19079
|
var exports_dist_es3 = {};
|
|
19080
19080
|
__export(exports_dist_es3, {
|
|
19081
19081
|
fromHttp: () => fromHttp
|
|
@@ -19084,16 +19084,16 @@ var init_dist_es3 = __esm(() => {
|
|
|
19084
19084
|
init_fromHttp();
|
|
19085
19085
|
});
|
|
19086
19086
|
|
|
19087
|
-
//
|
|
19087
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
19088
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");
|
|
19089
19089
|
|
|
19090
|
-
//
|
|
19090
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
19091
19091
|
var EXPIRE_WINDOW_MS, REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
19092
19092
|
var init_constants = __esm(() => {
|
|
19093
19093
|
EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
19094
19094
|
});
|
|
19095
19095
|
|
|
19096
|
-
//
|
|
19096
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
|
|
19097
19097
|
var require_sso_oidc = __commonJS((exports) => {
|
|
19098
19098
|
var { awsEndpointFunctions: awsEndpointFunctions2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client2();
|
|
19099
19099
|
var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs2();
|
|
@@ -19848,7 +19848,7 @@ var require_sso_oidc = __commonJS((exports) => {
|
|
|
19848
19848
|
exports.errorTypeRegistries = errorTypeRegistries2;
|
|
19849
19849
|
});
|
|
19850
19850
|
|
|
19851
|
-
//
|
|
19851
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
19852
19852
|
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
19853
19853
|
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
19854
19854
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
@@ -19860,7 +19860,7 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
19860
19860
|
return ssoOidcClient;
|
|
19861
19861
|
};
|
|
19862
19862
|
|
|
19863
|
-
//
|
|
19863
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
19864
19864
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
19865
19865
|
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
19866
19866
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
@@ -19873,7 +19873,7 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConf
|
|
|
19873
19873
|
};
|
|
19874
19874
|
var init_getNewSsoOidcToken = () => {};
|
|
19875
19875
|
|
|
19876
|
-
//
|
|
19876
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
19877
19877
|
var import_config11, validateTokenExpiry = (token) => {
|
|
19878
19878
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
19879
19879
|
throw new import_config11.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
@@ -19884,7 +19884,7 @@ var init_validateTokenExpiry = __esm(() => {
|
|
|
19884
19884
|
import_config11 = __toESM(require_config(), 1);
|
|
19885
19885
|
});
|
|
19886
19886
|
|
|
19887
|
-
//
|
|
19887
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
19888
19888
|
var import_config12, validateTokenKey = (key, value, forRefresh = false) => {
|
|
19889
19889
|
if (typeof value === "undefined") {
|
|
19890
19890
|
throw new import_config12.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
@@ -19895,7 +19895,7 @@ var init_validateTokenKey = __esm(() => {
|
|
|
19895
19895
|
import_config12 = __toESM(require_config(), 1);
|
|
19896
19896
|
});
|
|
19897
19897
|
|
|
19898
|
-
//
|
|
19898
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
19899
19899
|
import { promises as fsPromises } from "fs";
|
|
19900
19900
|
var import_config13, writeFile, writeSSOTokenToFile = (id, ssoToken) => {
|
|
19901
19901
|
const tokenFilepath = import_config13.getSSOTokenFilepath(id);
|
|
@@ -19907,7 +19907,7 @@ var init_writeSSOTokenToFile = __esm(() => {
|
|
|
19907
19907
|
({ writeFile } = fsPromises);
|
|
19908
19908
|
});
|
|
19909
19909
|
|
|
19910
|
-
//
|
|
19910
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
19911
19911
|
var import_config14, lastRefreshAttemptTimes, fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
19912
19912
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
19913
19913
|
const profiles = await import_config14.parseKnownFiles(init);
|
|
@@ -19990,12 +19990,12 @@ var init_fromSso = __esm(() => {
|
|
|
19990
19990
|
lastRefreshAttemptTimes = new Map;
|
|
19991
19991
|
});
|
|
19992
19992
|
|
|
19993
|
-
//
|
|
19993
|
+
// ../../node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/index.js
|
|
19994
19994
|
var init_dist_es4 = __esm(() => {
|
|
19995
19995
|
init_fromSso();
|
|
19996
19996
|
});
|
|
19997
19997
|
|
|
19998
|
-
//
|
|
19998
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
|
|
19999
19999
|
function createAwsAuthSigv4HttpAuthOption2(authParameters) {
|
|
20000
20000
|
return {
|
|
20001
20001
|
schemeId: "aws.auth#sigv4",
|
|
@@ -20443,7 +20443,7 @@ var init_sso = __esm(() => {
|
|
|
20443
20443
|
$SSOClient = SSOClient;
|
|
20444
20444
|
});
|
|
20445
20445
|
|
|
20446
|
-
//
|
|
20446
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js
|
|
20447
20447
|
var exports_loadSso = {};
|
|
20448
20448
|
__export(exports_loadSso, {
|
|
20449
20449
|
SSOClient: () => $SSOClient,
|
|
@@ -20453,7 +20453,7 @@ var init_loadSso = __esm(() => {
|
|
|
20453
20453
|
init_sso();
|
|
20454
20454
|
});
|
|
20455
20455
|
|
|
20456
|
-
//
|
|
20456
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
20457
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 }) => {
|
|
20458
20458
|
let token;
|
|
20459
20459
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
@@ -20542,7 +20542,7 @@ var init_resolveSSOCredentials = __esm(() => {
|
|
|
20542
20542
|
import_config15 = __toESM(require_config(), 1);
|
|
20543
20543
|
});
|
|
20544
20544
|
|
|
20545
|
-
//
|
|
20545
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
20546
20546
|
var import_config16, validateSsoProfile = (profile, logger) => {
|
|
20547
20547
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
20548
20548
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
@@ -20555,7 +20555,7 @@ var init_validateSsoProfile = __esm(() => {
|
|
|
20555
20555
|
import_config16 = __toESM(require_config(), 1);
|
|
20556
20556
|
});
|
|
20557
20557
|
|
|
20558
|
-
//
|
|
20558
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
20559
20559
|
var import_config17, fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
20560
20560
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
20561
20561
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
@@ -20637,7 +20637,7 @@ var init_fromSSO = __esm(() => {
|
|
|
20637
20637
|
import_config17 = __toESM(require_config(), 1);
|
|
20638
20638
|
});
|
|
20639
20639
|
|
|
20640
|
-
//
|
|
20640
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js
|
|
20641
20641
|
var exports_dist_es4 = {};
|
|
20642
20642
|
__export(exports_dist_es4, {
|
|
20643
20643
|
validateSsoProfile: () => validateSsoProfile,
|
|
@@ -20649,7 +20649,7 @@ var init_dist_es5 = __esm(() => {
|
|
|
20649
20649
|
init_validateSsoProfile();
|
|
20650
20650
|
});
|
|
20651
20651
|
|
|
20652
|
-
//
|
|
20652
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
20653
20653
|
var import_client8, import_config18, resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
20654
20654
|
const sourceProvidersMap = {
|
|
20655
20655
|
EcsContainer: async (options) => {
|
|
@@ -20680,7 +20680,7 @@ var init_resolveCredentialSource = __esm(() => {
|
|
|
20680
20680
|
import_config18 = __toESM(require_config(), 1);
|
|
20681
20681
|
});
|
|
20682
20682
|
|
|
20683
|
-
//
|
|
20683
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
|
|
20684
20684
|
var require_sts = __commonJS((exports) => {
|
|
20685
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();
|
|
20686
20686
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
@@ -21702,7 +21702,7 @@ var require_sts = __commonJS((exports) => {
|
|
|
21702
21702
|
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
|
21703
21703
|
});
|
|
21704
21704
|
|
|
21705
|
-
//
|
|
21705
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
21706
21706
|
var import_client9, import_config19, isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
21707
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 }));
|
|
21708
21708
|
}, isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
|
|
@@ -21770,7 +21770,7 @@ var init_resolveAssumeRoleCredentials = __esm(() => {
|
|
|
21770
21770
|
import_config19 = __toESM(require_config(), 1);
|
|
21771
21771
|
});
|
|
21772
21772
|
|
|
21773
|
-
//
|
|
21773
|
+
// ../../node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
|
|
21774
21774
|
var require_signin = __commonJS((exports) => {
|
|
21775
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();
|
|
21776
21776
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
@@ -22502,7 +22502,7 @@ var require_signin = __commonJS((exports) => {
|
|
|
22502
22502
|
exports.errorTypeRegistries = errorTypeRegistries3;
|
|
22503
22503
|
});
|
|
22504
22504
|
|
|
22505
|
-
//
|
|
22505
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.77/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
22506
22506
|
import { createHash as createHash2, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
22507
22507
|
import { promises as fs2 } from "fs";
|
|
22508
22508
|
import { homedir } from "os";
|
|
@@ -22766,7 +22766,7 @@ var init_LoginCredentialsFetcher = __esm(() => {
|
|
|
22766
22766
|
};
|
|
22767
22767
|
});
|
|
22768
22768
|
|
|
22769
|
-
//
|
|
22769
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.77/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
22770
22770
|
var import_client10, import_config21, fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
22771
22771
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
22772
22772
|
const profiles = await import_config21.parseKnownFiles(init || {});
|
|
@@ -22790,7 +22790,7 @@ var init_fromLoginCredentials = __esm(() => {
|
|
|
22790
22790
|
import_config21 = __toESM(require_config(), 1);
|
|
22791
22791
|
});
|
|
22792
22792
|
|
|
22793
|
-
//
|
|
22793
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-login@3.972.77/node_modules/@aws-sdk/credential-provider-login/dist-es/index.js
|
|
22794
22794
|
var exports_dist_es5 = {};
|
|
22795
22795
|
__export(exports_dist_es5, {
|
|
22796
22796
|
fromLoginCredentials: () => fromLoginCredentials
|
|
@@ -22799,7 +22799,7 @@ var init_dist_es6 = __esm(() => {
|
|
|
22799
22799
|
init_fromLoginCredentials();
|
|
22800
22800
|
});
|
|
22801
22801
|
|
|
22802
|
-
//
|
|
22802
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
22803
22803
|
var import_client11, isLoginProfile = (data) => {
|
|
22804
22804
|
return Boolean(data && data.login_session);
|
|
22805
22805
|
}, resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
@@ -22814,7 +22814,7 @@ var init_resolveLoginCredentials = __esm(() => {
|
|
|
22814
22814
|
import_client11 = __toESM(require_client2(), 1);
|
|
22815
22815
|
});
|
|
22816
22816
|
|
|
22817
|
-
//
|
|
22817
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
22818
22818
|
var import_client12, getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
22819
22819
|
if (data.Version !== 1) {
|
|
22820
22820
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
@@ -22848,7 +22848,7 @@ var init_getValidatedProcessCredentials = __esm(() => {
|
|
|
22848
22848
|
import_client12 = __toESM(require_client2(), 1);
|
|
22849
22849
|
});
|
|
22850
22850
|
|
|
22851
|
-
//
|
|
22851
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
22852
22852
|
import { exec } from "child_process";
|
|
22853
22853
|
import { promisify } from "util";
|
|
22854
22854
|
var import_config22, resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
@@ -22883,7 +22883,7 @@ var init_resolveProcessCredentials = __esm(() => {
|
|
|
22883
22883
|
import_config22 = __toESM(require_config(), 1);
|
|
22884
22884
|
});
|
|
22885
22885
|
|
|
22886
|
-
//
|
|
22886
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
22887
22887
|
var import_config23, fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
22888
22888
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
22889
22889
|
const profiles = await import_config23.parseKnownFiles(init);
|
|
@@ -22896,7 +22896,7 @@ var init_fromProcess = __esm(() => {
|
|
|
22896
22896
|
import_config23 = __toESM(require_config(), 1);
|
|
22897
22897
|
});
|
|
22898
22898
|
|
|
22899
|
-
//
|
|
22899
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/index.js
|
|
22900
22900
|
var exports_dist_es6 = {};
|
|
22901
22901
|
__export(exports_dist_es6, {
|
|
22902
22902
|
fromProcess: () => fromProcess
|
|
@@ -22905,7 +22905,7 @@ var init_dist_es7 = __esm(() => {
|
|
|
22905
22905
|
init_fromProcess();
|
|
22906
22906
|
});
|
|
22907
22907
|
|
|
22908
|
-
//
|
|
22908
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
22909
22909
|
var import_client13, isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", resolveProcessCredentials2 = async (options, profile) => {
|
|
22910
22910
|
const { fromProcess: fromProcess2 } = await Promise.resolve().then(() => (init_dist_es7(), exports_dist_es6));
|
|
22911
22911
|
const credentials = await fromProcess2({
|
|
@@ -22918,7 +22918,7 @@ var init_resolveProcessCredentials2 = __esm(() => {
|
|
|
22918
22918
|
import_client13 = __toESM(require_client2(), 1);
|
|
22919
22919
|
});
|
|
22920
22920
|
|
|
22921
|
-
//
|
|
22921
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
22922
22922
|
var import_client14, resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
22923
22923
|
const { fromSSO: fromSSO2 } = await Promise.resolve().then(() => (init_dist_es5(), exports_dist_es4));
|
|
22924
22924
|
return fromSSO2({
|
|
@@ -22940,7 +22940,7 @@ var init_resolveSsoCredentials = __esm(() => {
|
|
|
22940
22940
|
import_client14 = __toESM(require_client2(), 1);
|
|
22941
22941
|
});
|
|
22942
22942
|
|
|
22943
|
-
//
|
|
22943
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
22944
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) => {
|
|
22945
22945
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
22946
22946
|
const credentials = {
|
|
@@ -22956,7 +22956,7 @@ var init_resolveStaticCredentials = __esm(() => {
|
|
|
22956
22956
|
import_client15 = __toESM(require_client2(), 1);
|
|
22957
22957
|
});
|
|
22958
22958
|
|
|
22959
|
-
//
|
|
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
|
|
22960
22960
|
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
22961
22961
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
22962
22962
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
@@ -22983,7 +22983,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
22983
22983
|
});
|
|
22984
22984
|
};
|
|
22985
22985
|
|
|
22986
|
-
//
|
|
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
|
|
22987
22987
|
import { readFileSync as readFileSync2 } from "fs";
|
|
22988
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) => {
|
|
22989
22989
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
@@ -23011,7 +23011,7 @@ var init_fromTokenFile = __esm(() => {
|
|
|
23011
23011
|
import_config24 = __toESM(require_config(), 1);
|
|
23012
23012
|
});
|
|
23013
23013
|
|
|
23014
|
-
//
|
|
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
|
|
23015
23015
|
var exports_dist_es7 = {};
|
|
23016
23016
|
__export(exports_dist_es7, {
|
|
23017
23017
|
fromWebToken: () => fromWebToken,
|
|
@@ -23021,7 +23021,7 @@ var init_dist_es8 = __esm(() => {
|
|
|
23021
23021
|
init_fromTokenFile();
|
|
23022
23022
|
});
|
|
23023
23023
|
|
|
23024
|
-
//
|
|
23024
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
23025
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) => {
|
|
23026
23026
|
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => (init_dist_es8(), exports_dist_es7));
|
|
23027
23027
|
const credentials = await fromTokenFile2({
|
|
@@ -23040,7 +23040,7 @@ var init_resolveWebIdentityCredentials = __esm(() => {
|
|
|
23040
23040
|
import_client17 = __toESM(require_client2(), 1);
|
|
23041
23041
|
});
|
|
23042
23042
|
|
|
23043
|
-
//
|
|
23043
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
23044
23044
|
var import_config25, resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
23045
23045
|
const data = profiles[profileName];
|
|
23046
23046
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
@@ -23076,7 +23076,7 @@ var init_resolveProfileData = __esm(() => {
|
|
|
23076
23076
|
import_config25 = __toESM(require_config(), 1);
|
|
23077
23077
|
});
|
|
23078
23078
|
|
|
23079
|
-
//
|
|
23079
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
23080
23080
|
var import_config26, fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
23081
23081
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
23082
23082
|
const profiles = await import_config26.parseKnownFiles(init);
|
|
@@ -23089,7 +23089,7 @@ var init_fromIni = __esm(() => {
|
|
|
23089
23089
|
import_config26 = __toESM(require_config(), 1);
|
|
23090
23090
|
});
|
|
23091
23091
|
|
|
23092
|
-
//
|
|
23092
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js
|
|
23093
23093
|
var exports_dist_es8 = {};
|
|
23094
23094
|
__export(exports_dist_es8, {
|
|
23095
23095
|
fromIni: () => fromIni
|
|
@@ -23100,7 +23100,7 @@ var init_dist_es9 = __esm(() => {
|
|
|
23100
23100
|
// package.json
|
|
23101
23101
|
var package_default = {
|
|
23102
23102
|
name: "@hasna/skills",
|
|
23103
|
-
version: "0.5.
|
|
23103
|
+
version: "0.5.9",
|
|
23104
23104
|
description: "Skills library for AI coding agents",
|
|
23105
23105
|
type: "module",
|
|
23106
23106
|
bin: {
|
|
@@ -23140,7 +23140,9 @@ var package_default = {
|
|
|
23140
23140
|
"docs/skill-standard.md",
|
|
23141
23141
|
"schemas/",
|
|
23142
23142
|
"LICENSE",
|
|
23143
|
-
"README.md"
|
|
23143
|
+
"README.md",
|
|
23144
|
+
"!dist/**/*test-utils.d.ts",
|
|
23145
|
+
"!dist/**/*fixtures.d.ts"
|
|
23144
23146
|
],
|
|
23145
23147
|
main: "./dist/index.js",
|
|
23146
23148
|
types: "./dist/index.d.ts",
|
|
@@ -23682,7 +23684,7 @@ function signBundleBytes(bytes, key) {
|
|
|
23682
23684
|
return `${SIGNATURE_PREFIX}${createHmac("sha256", key).update(bytes).digest("hex")}`;
|
|
23683
23685
|
}
|
|
23684
23686
|
|
|
23685
|
-
//
|
|
23687
|
+
// ../../node_modules/.bun/@aws-sdk+checksums@3.1000.29/node_modules/@aws-sdk/checksums/dist-cjs/submodules/flexible-checksums/index.js
|
|
23686
23688
|
var { setFeature } = require_client2();
|
|
23687
23689
|
var { HttpRequest } = require_protocols();
|
|
23688
23690
|
var { isArrayBuffer, toUint8Array, createBufferedReadable, createChecksumStream } = require_serde();
|
|
@@ -24075,10 +24077,10 @@ var $NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = NODE_RESPONSE_CHECKSUM_V
|
|
|
24075
24077
|
var $getFlexibleChecksumsPlugin = getFlexibleChecksumsPlugin;
|
|
24076
24078
|
var $resolveFlexibleChecksumsConfig = resolveFlexibleChecksumsConfig;
|
|
24077
24079
|
|
|
24078
|
-
//
|
|
24080
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
24079
24081
|
var import_client23 = __toESM(require_client2(), 1);
|
|
24080
24082
|
|
|
24081
|
-
//
|
|
24083
|
+
// ../../node_modules/.bun/@aws-sdk+middleware-sdk-s3@3.972.75/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js
|
|
24082
24084
|
var { NoOpLogger, getSmithyContext } = require_client();
|
|
24083
24085
|
var { HttpRequest: HttpRequest2, HttpResponse } = require_protocols();
|
|
24084
24086
|
var { parseRfc7231DateTime } = require_serde();
|
|
@@ -24683,7 +24685,7 @@ var $getThrow200ExceptionsPlugin = getThrow200ExceptionsPlugin;
|
|
|
24683
24685
|
var $getValidateBucketNamePlugin = getValidateBucketNamePlugin;
|
|
24684
24686
|
var $resolveS3Config = resolveS3Config;
|
|
24685
24687
|
|
|
24686
|
-
//
|
|
24688
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
24687
24689
|
var import_core = __toESM(require_dist_cjs2(), 1);
|
|
24688
24690
|
var import_client24 = __toESM(require_client(), 1);
|
|
24689
24691
|
var import_config29 = __toESM(require_config(), 1);
|
|
@@ -24693,17 +24695,17 @@ var import_protocols6 = __toESM(require_protocols(), 1);
|
|
|
24693
24695
|
var import_retry4 = __toESM(require_retry(), 1);
|
|
24694
24696
|
var import_schema2 = __toESM(require_schema(), 1);
|
|
24695
24697
|
|
|
24696
|
-
//
|
|
24698
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
|
|
24697
24699
|
var import_httpAuthSchemes = __toESM(require_httpAuthSchemes(), 1);
|
|
24698
24700
|
var import_signature_v4_multi_region = __toESM(require_dist_cjs4(), 1);
|
|
24699
24701
|
var import_client2 = __toESM(require_client(), 1);
|
|
24700
24702
|
var import_endpoints3 = __toESM(require_endpoints(), 1);
|
|
24701
24703
|
|
|
24702
|
-
//
|
|
24704
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
|
|
24703
24705
|
var import_client = __toESM(require_client2(), 1);
|
|
24704
24706
|
var import_endpoints2 = __toESM(require_endpoints(), 1);
|
|
24705
24707
|
|
|
24706
|
-
//
|
|
24708
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/bdd.js
|
|
24707
24709
|
var import_endpoints = __toESM(require_endpoints(), 1);
|
|
24708
24710
|
var aw = "ref";
|
|
24709
24711
|
var ax = "argv";
|
|
@@ -26647,7 +26649,7 @@ var nodes = new Int32Array([
|
|
|
26647
26649
|
]);
|
|
26648
26650
|
var bdd = import_endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
26649
26651
|
|
|
26650
|
-
//
|
|
26652
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
|
|
26651
26653
|
var cache = new import_endpoints2.EndpointCache({
|
|
26652
26654
|
size: 50,
|
|
26653
26655
|
params: [
|
|
@@ -26675,7 +26677,7 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
26675
26677
|
};
|
|
26676
26678
|
import_endpoints2.customEndpointFunctions.aws = import_client.awsEndpointFunctions;
|
|
26677
26679
|
|
|
26678
|
-
//
|
|
26680
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
|
|
26679
26681
|
var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
26680
26682
|
if (!input) {
|
|
26681
26683
|
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
@@ -26791,11 +26793,11 @@ var resolveHttpAuthSchemeConfig = (config) => {
|
|
|
26791
26793
|
});
|
|
26792
26794
|
};
|
|
26793
26795
|
|
|
26794
|
-
//
|
|
26796
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
|
|
26795
26797
|
var import_client3 = __toESM(require_client(), 1);
|
|
26796
26798
|
var import_endpoints4 = __toESM(require_endpoints(), 1);
|
|
26797
26799
|
|
|
26798
|
-
//
|
|
26800
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/EndpointParameters.js
|
|
26799
26801
|
var resolveClientEndpointParameters = (options) => {
|
|
26800
26802
|
return Object.assign(options, {
|
|
26801
26803
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
@@ -26821,7 +26823,7 @@ var commonParams = {
|
|
|
26821
26823
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
26822
26824
|
};
|
|
26823
26825
|
|
|
26824
|
-
//
|
|
26826
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
|
|
26825
26827
|
var command = import_client3.makeBuilder(commonParams, "AmazonS3", "S3Client", import_endpoints4.getEndpointPlugin);
|
|
26826
26828
|
var _ep0 = {
|
|
26827
26829
|
Bucket: { type: "contextParams", name: "Bucket" },
|
|
@@ -26853,10 +26855,10 @@ var _mw11 = (Command, cs, config, o2) => [
|
|
|
26853
26855
|
$getSsecPlugin(config)
|
|
26854
26856
|
];
|
|
26855
26857
|
|
|
26856
|
-
//
|
|
26858
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js
|
|
26857
26859
|
var import_schema = __toESM(require_schema(), 1);
|
|
26858
26860
|
|
|
26859
|
-
//
|
|
26861
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js
|
|
26860
26862
|
var import_client4 = __toESM(require_client(), 1);
|
|
26861
26863
|
class S3ServiceException extends import_client4.ServiceException {
|
|
26862
26864
|
constructor(options) {
|
|
@@ -26865,7 +26867,7 @@ class S3ServiceException extends import_client4.ServiceException {
|
|
|
26865
26867
|
}
|
|
26866
26868
|
}
|
|
26867
26869
|
|
|
26868
|
-
//
|
|
26870
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js
|
|
26869
26871
|
class NoSuchUpload extends S3ServiceException {
|
|
26870
26872
|
name = "NoSuchUpload";
|
|
26871
26873
|
$fault = "client";
|
|
@@ -27143,7 +27145,7 @@ class ObjectAlreadyInActiveTierError extends S3ServiceException {
|
|
|
27143
27145
|
}
|
|
27144
27146
|
}
|
|
27145
27147
|
|
|
27146
|
-
//
|
|
27148
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js
|
|
27147
27149
|
var _A = "Account";
|
|
27148
27150
|
var _AAO = "AnalyticsAndOperator";
|
|
27149
27151
|
var _AC = "AccelerateConfiguration";
|
|
@@ -32595,10 +32597,10 @@ var WriteGetObjectResponse$ = [
|
|
|
32595
32597
|
() => __Unit
|
|
32596
32598
|
];
|
|
32597
32599
|
|
|
32598
|
-
//
|
|
32600
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateSessionCommand.js
|
|
32599
32601
|
class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSession$) {
|
|
32600
32602
|
}
|
|
32601
|
-
//
|
|
32603
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/package.json
|
|
32602
32604
|
var package_default2 = {
|
|
32603
32605
|
name: "@aws-sdk/client-s3",
|
|
32604
32606
|
version: "3.1127.0",
|
|
@@ -32683,15 +32685,15 @@ var package_default2 = {
|
|
|
32683
32685
|
}
|
|
32684
32686
|
};
|
|
32685
32687
|
|
|
32686
|
-
//
|
|
32688
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32687
32689
|
var import_client19 = __toESM(require_client2(), 1);
|
|
32688
32690
|
var import_httpAuthSchemes3 = __toESM(require_httpAuthSchemes(), 1);
|
|
32689
32691
|
|
|
32690
|
-
//
|
|
32692
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
32691
32693
|
init_dist_es();
|
|
32692
32694
|
var import_config27 = __toESM(require_config(), 1);
|
|
32693
32695
|
|
|
32694
|
-
//
|
|
32696
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
|
|
32695
32697
|
var import_config10 = __toESM(require_config(), 1);
|
|
32696
32698
|
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
32697
32699
|
var remoteProvider = async (init) => {
|
|
@@ -32710,7 +32712,7 @@ var remoteProvider = async (init) => {
|
|
|
32710
32712
|
return fromInstanceMetadata2(init);
|
|
32711
32713
|
};
|
|
32712
32714
|
|
|
32713
|
-
//
|
|
32715
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js
|
|
32714
32716
|
function memoizeChain(providers, treatAsExpired) {
|
|
32715
32717
|
const chain2 = internalCreateChain(providers);
|
|
32716
32718
|
let activeLock;
|
|
@@ -32774,7 +32776,7 @@ var internalCreateChain = (providers) => async (awsIdentityProperties) => {
|
|
|
32774
32776
|
throw lastProviderError;
|
|
32775
32777
|
};
|
|
32776
32778
|
|
|
32777
|
-
//
|
|
32779
|
+
// ../../node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
32778
32780
|
var multipleCredentialSourceWarningEmitted = false;
|
|
32779
32781
|
var defaultProvider = (init = {}) => memoizeChain([
|
|
32780
32782
|
async () => {
|
|
@@ -32840,7 +32842,7 @@ var defaultProvider = (init = {}) => memoizeChain([
|
|
|
32840
32842
|
}
|
|
32841
32843
|
], credentialsTreatedAsExpired);
|
|
32842
32844
|
var credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
|
|
32843
|
-
//
|
|
32845
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32844
32846
|
var import_checksum2 = __toESM(require_checksum(), 1);
|
|
32845
32847
|
var import_client20 = __toESM(require_client(), 1);
|
|
32846
32848
|
var import_config28 = __toESM(require_config(), 1);
|
|
@@ -32849,7 +32851,7 @@ var import_retry3 = __toESM(require_retry(), 1);
|
|
|
32849
32851
|
var import_serde4 = __toESM(require_serde(), 1);
|
|
32850
32852
|
var import_node_http_handler2 = __toESM(require_dist_cjs6(), 1);
|
|
32851
32853
|
|
|
32852
|
-
//
|
|
32854
|
+
// ../../node_modules/.bun/@aws-sdk+checksums@3.1000.29/node_modules/@aws-sdk/checksums/dist-cjs/submodules/sha/index.js
|
|
32853
32855
|
var { toUint8Array: toUint8Array2, concatBytes } = require_serde();
|
|
32854
32856
|
var { createHmac: createHmac2, createHash: createHash3 } = __require("crypto");
|
|
32855
32857
|
var { Sha256: Sha2562, Sha256Js, Sha256Node } = require_checksum();
|
|
@@ -33078,7 +33080,7 @@ var subtle = typeof digest === "function" && typeof sign2 === "function" && type
|
|
|
33078
33080
|
var MAX_PENDING_BYTES = 8 * 1024 * 1024;
|
|
33079
33081
|
var $Sha1 = Sha1Node;
|
|
33080
33082
|
|
|
33081
|
-
//
|
|
33083
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js
|
|
33082
33084
|
var import_httpAuthSchemes2 = __toESM(require_httpAuthSchemes(), 1);
|
|
33083
33085
|
var import_signature_v4_multi_region2 = __toESM(require_dist_cjs4(), 1);
|
|
33084
33086
|
var import_checksum = __toESM(require_checksum(), 1);
|
|
@@ -33130,7 +33132,7 @@ var getRuntimeConfig2 = (config) => {
|
|
|
33130
33132
|
};
|
|
33131
33133
|
};
|
|
33132
33134
|
|
|
33133
|
-
//
|
|
33135
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
33134
33136
|
var getRuntimeConfig3 = (config) => {
|
|
33135
33137
|
import_client20.emitWarningIfUnsupportedVersion(process.version);
|
|
33136
33138
|
const defaultsMode = import_config28.resolveDefaultsModeConfig(config);
|
|
@@ -33171,12 +33173,12 @@ var getRuntimeConfig3 = (config) => {
|
|
|
33171
33173
|
};
|
|
33172
33174
|
};
|
|
33173
33175
|
|
|
33174
|
-
//
|
|
33176
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
|
|
33175
33177
|
var import_client21 = __toESM(require_client2(), 1);
|
|
33176
33178
|
var import_client22 = __toESM(require_client(), 1);
|
|
33177
33179
|
var import_protocols5 = __toESM(require_protocols(), 1);
|
|
33178
33180
|
|
|
33179
|
-
//
|
|
33181
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthExtensionConfiguration.js
|
|
33180
33182
|
var getHttpAuthExtensionConfiguration2 = (runtimeConfig) => {
|
|
33181
33183
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
33182
33184
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -33215,14 +33217,14 @@ var resolveHttpAuthRuntimeConfig2 = (config) => {
|
|
|
33215
33217
|
};
|
|
33216
33218
|
};
|
|
33217
33219
|
|
|
33218
|
-
//
|
|
33220
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
|
|
33219
33221
|
var resolveRuntimeExtensions2 = (runtimeConfig, extensions) => {
|
|
33220
33222
|
const extensionConfiguration = Object.assign(import_client21.getAwsRegionExtensionConfiguration(runtimeConfig), import_client22.getDefaultExtensionConfiguration(runtimeConfig), import_protocols5.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig));
|
|
33221
33223
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
33222
33224
|
return Object.assign(runtimeConfig, import_client21.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client22.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols5.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration));
|
|
33223
33225
|
};
|
|
33224
33226
|
|
|
33225
|
-
//
|
|
33227
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
33226
33228
|
class S3Client extends import_client24.Client {
|
|
33227
33229
|
config;
|
|
33228
33230
|
constructor(...[configuration]) {
|
|
@@ -33267,15 +33269,15 @@ class S3Client extends import_client24.Client {
|
|
|
33267
33269
|
}
|
|
33268
33270
|
}
|
|
33269
33271
|
|
|
33270
|
-
//
|
|
33272
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectCommand.js
|
|
33271
33273
|
class DeleteObjectCommand extends command(_ep0, _mw0, "DeleteObject", DeleteObject$) {
|
|
33272
33274
|
}
|
|
33273
33275
|
|
|
33274
|
-
//
|
|
33276
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectCommand.js
|
|
33275
33277
|
class GetObjectCommand extends command(_ep0, _mw7, "GetObject", GetObject$) {
|
|
33276
33278
|
}
|
|
33277
33279
|
|
|
33278
|
-
//
|
|
33280
|
+
// ../../node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js
|
|
33279
33281
|
class PutObjectCommand extends command(_ep0, _mw11, "PutObject", PutObject$) {
|
|
33280
33282
|
}
|
|
33281
33283
|
|
|
@@ -33605,6 +33607,19 @@ function createCancelService(options) {
|
|
|
33605
33607
|
};
|
|
33606
33608
|
}
|
|
33607
33609
|
|
|
33610
|
+
// src/sdk/amounts.ts
|
|
33611
|
+
function assertCents(value, field) {
|
|
33612
|
+
if (!Number.isSafeInteger(value) || value < 0) {
|
|
33613
|
+
throw new RangeError(field + " must be a nonnegative safe integer number of cents");
|
|
33614
|
+
}
|
|
33615
|
+
}
|
|
33616
|
+
function assertReservationCents(value, field) {
|
|
33617
|
+
assertCents(value, field);
|
|
33618
|
+
if (value > 2147483647) {
|
|
33619
|
+
throw new RangeError(field + " must not exceed 2147483647 cents per reservation");
|
|
33620
|
+
}
|
|
33621
|
+
}
|
|
33622
|
+
|
|
33608
33623
|
// src/sdk/governance-store.ts
|
|
33609
33624
|
import { Database as Database2 } from "bun:sqlite";
|
|
33610
33625
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
@@ -34895,7 +34910,9 @@ class SqliteGovernanceStore {
|
|
|
34895
34910
|
}));
|
|
34896
34911
|
}
|
|
34897
34912
|
async createReservation(input) {
|
|
34898
|
-
const
|
|
34913
|
+
const estimatedCents = input.estimatedCents;
|
|
34914
|
+
assertReservationCents(estimatedCents, "estimatedCents");
|
|
34915
|
+
const reservation = { ...input, estimatedCents, id: reservationId(), status: "reserved", createdAt: nowIso() };
|
|
34899
34916
|
this.db.run(`INSERT INTO skills_credit_reservations (id, org_id, run_id, estimated_cents, status, created_at)
|
|
34900
34917
|
VALUES (?, ?, ?, ?, ?, ?)`, [reservation.id, reservation.orgId, reservation.runId, reservation.estimatedCents, reservation.status, reservation.createdAt]);
|
|
34901
34918
|
return reservation;
|
|
@@ -34905,6 +34922,7 @@ class SqliteGovernanceStore {
|
|
|
34905
34922
|
return rows.map((row) => this.reservationFrom(row));
|
|
34906
34923
|
}
|
|
34907
34924
|
async reconcileReservation(reservationId2, actualCents, status) {
|
|
34925
|
+
assertReservationCents(actualCents, "actualCents");
|
|
34908
34926
|
const updated = this.db.query(`UPDATE skills_credit_reservations SET actual_cents = ?, status = ?, reconciled_at = ?
|
|
34909
34927
|
WHERE id = ? AND status = 'reserved' RETURNING *`).get(actualCents, status, nowIso(), reservationId2);
|
|
34910
34928
|
if (updated)
|
|
@@ -34990,7 +35008,9 @@ class PostgresGovernanceStore {
|
|
|
34990
35008
|
}));
|
|
34991
35009
|
}
|
|
34992
35010
|
async createReservation(input) {
|
|
34993
|
-
const
|
|
35011
|
+
const estimatedCents = input.estimatedCents;
|
|
35012
|
+
assertReservationCents(estimatedCents, "estimatedCents");
|
|
35013
|
+
const reservation = { ...input, estimatedCents, id: reservationId(), status: "reserved", createdAt: nowIso() };
|
|
34994
35014
|
await this.sql`
|
|
34995
35015
|
INSERT INTO skills_credit_reservations (id, org_id, run_id, estimated_cents, status)
|
|
34996
35016
|
VALUES (${reservation.id}, ${reservation.orgId}, ${reservation.runId}, ${reservation.estimatedCents}, ${reservation.status})
|
|
@@ -35004,6 +35024,7 @@ class PostgresGovernanceStore {
|
|
|
35004
35024
|
return rows.map((row) => this.reservationFrom(row));
|
|
35005
35025
|
}
|
|
35006
35026
|
async reconcileReservation(reservationId2, actualCents, status) {
|
|
35027
|
+
assertReservationCents(actualCents, "actualCents");
|
|
35007
35028
|
const rows = await this.sql`
|
|
35008
35029
|
UPDATE skills_credit_reservations
|
|
35009
35030
|
SET actual_cents = ${actualCents}, status = ${status}, reconciled_at = now()
|