@hasna/skills 0.5.4 → 0.5.6
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 +72 -7
- package/bin/index.js +2181 -901
- package/bin/mcp.js +1960 -508
- package/bin/migrate.js +176 -4
- package/bin/server.js +419 -195
- package/bin/worker.js +413 -222
- package/dist/admin-contract.js +174 -176
- package/dist/cli/commands/private-publications.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1074 -421
- package/dist/lib/fleet-credentials.d.ts +6 -1
- package/dist/lib/home-adoption.d.ts +2 -7
- package/dist/lib/mcp-contracts.d.ts +1 -0
- package/dist/lib/private-publication-customer.d.ts +10 -0
- package/dist/lib/private-publication-recovery.d.ts +43 -0
- package/dist/lib/remote-account.d.ts +5 -0
- package/dist/lib/remote-auth.d.ts +3 -0
- package/dist/lib/remote-client.d.ts +2 -2
- package/dist/lib/remote-private-publications.d.ts +74 -0
- package/dist/mcp/private-publication-tools.d.ts +2 -0
- package/dist/sdk/execution/dispatchers/ecs.d.ts +25 -14
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/index.js +1291 -617
- package/dist/server/types.d.ts +2 -0
- package/dist/storage.js +39 -37
- package/package.json +1 -1
package/bin/server.js
CHANGED
|
@@ -20,14 +20,12 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
20
20
|
}
|
|
21
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
22
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
}
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
31
29
|
if (canCache)
|
|
32
30
|
cache.set(mod, to);
|
|
33
31
|
return to;
|
|
@@ -49,8 +47,8 @@ var __export = (target, all) => {
|
|
|
49
47
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
50
48
|
var __require = import.meta.require;
|
|
51
49
|
|
|
52
|
-
//
|
|
53
|
-
var require_dist_cjs = __commonJS(
|
|
50
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+types@4.18.0/node_modules/@smithy/types/dist-cjs/index.js
|
|
51
|
+
var require_dist_cjs = __commonJS((exports) => {
|
|
54
52
|
var HttpAuthLocation;
|
|
55
53
|
(function(HttpAuthLocation2) {
|
|
56
54
|
HttpAuthLocation2["HEADER"] = "header";
|
|
@@ -140,8 +138,8 @@ var require_dist_cjs = __commonJS(function(exports) {
|
|
|
140
138
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
|
141
139
|
});
|
|
142
140
|
|
|
143
|
-
//
|
|
144
|
-
var require_transport = __commonJS(
|
|
141
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js
|
|
142
|
+
var require_transport = __commonJS((exports) => {
|
|
145
143
|
var { SMITHY_CONTEXT_KEY } = require_dist_cjs();
|
|
146
144
|
var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
|
|
147
145
|
function hasOwn(o, k) {
|
|
@@ -313,8 +311,8 @@ var require_transport = __commonJS(function(exports) {
|
|
|
313
311
|
exports.toEndpointV1 = toEndpointV1;
|
|
314
312
|
});
|
|
315
313
|
|
|
316
|
-
//
|
|
317
|
-
var require_schema = __commonJS(
|
|
314
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
|
|
315
|
+
var require_schema = __commonJS((exports) => {
|
|
318
316
|
var { getSmithyContext, HttpResponse, toEndpointV1 } = require_transport();
|
|
319
317
|
var deref = (schemaRef) => {
|
|
320
318
|
if (typeof schemaRef === "function") {
|
|
@@ -982,8 +980,8 @@ var require_schema = __commonJS(function(exports) {
|
|
|
982
980
|
exports.translateTraits = translateTraits;
|
|
983
981
|
});
|
|
984
982
|
|
|
985
|
-
//
|
|
986
|
-
var require_client = __commonJS(
|
|
983
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/client/index.js
|
|
984
|
+
var require_client = __commonJS((exports) => {
|
|
987
985
|
var { hasOwn } = require_transport();
|
|
988
986
|
var { getSmithyContext, normalizeProvider } = require_transport();
|
|
989
987
|
exports.getSmithyContext = getSmithyContext;
|
|
@@ -2062,8 +2060,8 @@ var require_client = __commonJS(function(exports) {
|
|
|
2062
2060
|
exports.withBaseException = withBaseException;
|
|
2063
2061
|
});
|
|
2064
2062
|
|
|
2065
|
-
//
|
|
2066
|
-
var require_config = __commonJS(
|
|
2063
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/config/index.js
|
|
2064
|
+
var require_config = __commonJS((exports) => {
|
|
2067
2065
|
var { homedir } = __require("os");
|
|
2068
2066
|
var { sep, join: join2 } = __require("path");
|
|
2069
2067
|
var { createHash: createHash2 } = __require("crypto");
|
|
@@ -2757,8 +2755,8 @@ var require_config = __commonJS(function(exports) {
|
|
|
2757
2755
|
exports.resolveRegionConfig = resolveRegionConfig;
|
|
2758
2756
|
});
|
|
2759
2757
|
|
|
2760
|
-
//
|
|
2761
|
-
var require_endpoints = __commonJS(
|
|
2758
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
|
|
2759
|
+
var require_endpoints = __commonJS((exports) => {
|
|
2762
2760
|
var { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require_config();
|
|
2763
2761
|
var { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require_transport();
|
|
2764
2762
|
exports.isValidHostLabel = isValidHostLabel;
|
|
@@ -3571,8 +3569,8 @@ var require_endpoints = __commonJS(function(exports) {
|
|
|
3571
3569
|
exports.resolveParams = resolveParams;
|
|
3572
3570
|
});
|
|
3573
3571
|
|
|
3574
|
-
//
|
|
3575
|
-
var require_serde = __commonJS(
|
|
3572
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
3573
|
+
var require_serde = __commonJS((exports) => {
|
|
3576
3574
|
var { createHmac: createHmac2, createHash: createHash2, getRandomValues } = __require("crypto");
|
|
3577
3575
|
var { hasOwn, HttpResponse } = require_transport();
|
|
3578
3576
|
exports.hasOwn = hasOwn;
|
|
@@ -5212,8 +5210,8 @@ ${value}\r
|
|
|
5212
5210
|
exports.v4 = v4;
|
|
5213
5211
|
});
|
|
5214
5212
|
|
|
5215
|
-
//
|
|
5216
|
-
var require_checksum = __commonJS(
|
|
5213
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js
|
|
5214
|
+
var require_checksum = __commonJS((exports) => {
|
|
5217
5215
|
var { createReadStream } = __require("fs");
|
|
5218
5216
|
var { Writable } = __require("stream");
|
|
5219
5217
|
var { toUint8Array, concatBytes } = require_serde();
|
|
@@ -5828,8 +5826,8 @@ var require_checksum = __commonJS(function(exports) {
|
|
|
5828
5826
|
exports.readableStreamHasher = readableStreamHasher;
|
|
5829
5827
|
});
|
|
5830
5828
|
|
|
5831
|
-
//
|
|
5832
|
-
var require_event_streams = __commonJS(
|
|
5829
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js
|
|
5830
|
+
var require_event_streams = __commonJS((exports) => {
|
|
5833
5831
|
var { Crc32 } = require_checksum();
|
|
5834
5832
|
var { hasOwn } = require_transport();
|
|
5835
5833
|
var { toHex, fromHex, toUtf8, fromUtf8 } = require_serde();
|
|
@@ -6720,8 +6718,8 @@ var require_event_streams = __commonJS(function(exports) {
|
|
|
6720
6718
|
exports.universalEventStreamSerdeProvider = eventStreamSerdeProvider$1;
|
|
6721
6719
|
});
|
|
6722
6720
|
|
|
6723
|
-
//
|
|
6724
|
-
var require_protocols = __commonJS(
|
|
6721
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
|
|
6722
|
+
var require_protocols = __commonJS((exports) => {
|
|
6725
6723
|
var { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = require_serde();
|
|
6726
6724
|
var { HttpRequest, HttpResponse, hasOwn, isValidHostname } = require_transport();
|
|
6727
6725
|
var { parseQueryString, parseUrl } = require_transport();
|
|
@@ -7724,8 +7722,8 @@ var require_protocols = __commonJS(function(exports) {
|
|
|
7724
7722
|
exports.resolvedPath = resolvedPath;
|
|
7725
7723
|
});
|
|
7726
7724
|
|
|
7727
|
-
//
|
|
7728
|
-
var require_retry = __commonJS(
|
|
7725
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js
|
|
7726
|
+
var require_retry = __commonJS((exports) => {
|
|
7729
7727
|
var { Readable } = __require("stream");
|
|
7730
7728
|
var { NoOpLogger, normalizeProvider } = require_client();
|
|
7731
7729
|
var { HttpResponse, HttpRequest } = require_protocols();
|
|
@@ -8524,8 +8522,8 @@ var require_retry = __commonJS(function(exports) {
|
|
|
8524
8522
|
exports.retryMiddlewareOptions = retryMiddlewareOptions;
|
|
8525
8523
|
});
|
|
8526
8524
|
|
|
8527
|
-
//
|
|
8528
|
-
var require_invoke_store = __commonJS(
|
|
8525
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws+lambda-invoke-store@0.3.0/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js
|
|
8526
|
+
var require_invoke_store = __commonJS((exports) => {
|
|
8529
8527
|
var PROTECTED_KEYS = {
|
|
8530
8528
|
REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
|
|
8531
8529
|
X_RAY_TRACE_ID: Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),
|
|
@@ -8653,8 +8651,8 @@ var require_invoke_store = __commonJS(function(exports) {
|
|
|
8653
8651
|
exports.InvokeStoreBase = InvokeStoreBase;
|
|
8654
8652
|
});
|
|
8655
8653
|
|
|
8656
|
-
//
|
|
8657
|
-
var require_dist_cjs2 = __commonJS(
|
|
8654
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/index.js
|
|
8655
|
+
var require_dist_cjs2 = __commonJS((exports) => {
|
|
8658
8656
|
var { getSmithyContext, hasOwn } = require_transport();
|
|
8659
8657
|
exports.getSmithyContext = getSmithyContext;
|
|
8660
8658
|
var { HttpRequest } = require_protocols();
|
|
@@ -8981,8 +8979,8 @@ var require_dist_cjs2 = __commonJS(function(exports) {
|
|
|
8981
8979
|
exports.setFeature = setFeature;
|
|
8982
8980
|
});
|
|
8983
8981
|
|
|
8984
|
-
//
|
|
8985
|
-
var require_es5 = __commonJS(
|
|
8982
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/bowser@2.14.1/node_modules/bowser/es5.js
|
|
8983
|
+
var require_es5 = __commonJS((exports, module) => {
|
|
8986
8984
|
(function(e, t) {
|
|
8987
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();
|
|
8988
8986
|
})(exports, function() {
|
|
@@ -9821,8 +9819,8 @@ var require_es5 = __commonJS(function(exports, module) {
|
|
|
9821
9819
|
});
|
|
9822
9820
|
});
|
|
9823
9821
|
|
|
9824
|
-
//
|
|
9825
|
-
var require_client2 = __commonJS(
|
|
9822
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
|
|
9823
|
+
var require_client2 = __commonJS((exports) => {
|
|
9826
9824
|
var { Retry, RETRY_MODES } = require_retry();
|
|
9827
9825
|
var { HttpRequest, parseUrl } = require_protocols();
|
|
9828
9826
|
var { InvokeStore } = require_invoke_store();
|
|
@@ -10759,8 +10757,8 @@ More information can be found at: https://a.co/c895JFp`);
|
|
|
10759
10757
|
exports.userAgentMiddleware = userAgentMiddleware;
|
|
10760
10758
|
});
|
|
10761
10759
|
|
|
10762
|
-
//
|
|
10763
|
-
var require_crc = __commonJS(
|
|
10760
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+checksums@3.1000.29/node_modules/@aws-sdk/checksums/dist-cjs/submodules/crc/index.js
|
|
10761
|
+
var require_crc = __commonJS((exports) => {
|
|
10764
10762
|
var { Crc32, Crc32Js, Crc32Node } = require_checksum();
|
|
10765
10763
|
exports.Crc32 = Crc32;
|
|
10766
10764
|
exports.Crc32Js = Crc32Js;
|
|
@@ -10916,8 +10914,8 @@ var require_crc = __commonJS(function(exports) {
|
|
|
10916
10914
|
exports.crc64NvmeCrtContainer = crc64NvmeCrtContainer;
|
|
10917
10915
|
});
|
|
10918
10916
|
|
|
10919
|
-
//
|
|
10920
|
-
var require_dist_cjs3 = __commonJS(
|
|
10917
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+signature-v4@5.7.3/node_modules/@smithy/signature-v4/dist-cjs/index.js
|
|
10918
|
+
var require_dist_cjs3 = __commonJS((exports) => {
|
|
10921
10919
|
var { hasOwn, fromUtf8, fromHex, toHex, toUint8Array: toUint8Array2, isArrayBuffer: isArrayBuffer2 } = require_serde();
|
|
10922
10920
|
var { normalizeProvider: normalizeProvider2 } = require_client();
|
|
10923
10921
|
var { escapeUri, HttpRequest: HttpRequest2 } = require_protocols();
|
|
@@ -11468,8 +11466,8 @@ ${toHex(hashedRequest)}`;
|
|
|
11468
11466
|
exports.signatureV4aContainer = signatureV4aContainer;
|
|
11469
11467
|
});
|
|
11470
11468
|
|
|
11471
|
-
//
|
|
11472
|
-
var require_dist_cjs4 = __commonJS(
|
|
11469
|
+
// ../../../skills-release-055-20260909/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
|
+
var require_dist_cjs4 = __commonJS((exports) => {
|
|
11473
11471
|
var { SignatureV4, signatureV4aContainer } = require_dist_cjs3();
|
|
11474
11472
|
var signatureV4CrtContainer = {
|
|
11475
11473
|
CrtSignerV4: null
|
|
@@ -11600,8 +11598,8 @@ var require_dist_cjs4 = __commonJS(function(exports) {
|
|
|
11600
11598
|
exports.signatureV4CrtContainer = signatureV4CrtContainer;
|
|
11601
11599
|
});
|
|
11602
11600
|
|
|
11603
|
-
//
|
|
11604
|
-
var require_util = __commonJS(
|
|
11601
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js
|
|
11602
|
+
var require_util = __commonJS((exports) => {
|
|
11605
11603
|
var { buildQueryString } = require_protocols();
|
|
11606
11604
|
var validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
|
|
11607
11605
|
var parse = (arn) => {
|
|
@@ -11658,8 +11656,8 @@ var require_util = __commonJS(function(exports) {
|
|
|
11658
11656
|
exports.validate = validate;
|
|
11659
11657
|
});
|
|
11660
11658
|
|
|
11661
|
-
//
|
|
11662
|
-
var require_cbor = __commonJS(
|
|
11659
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
|
|
11660
|
+
var require_cbor = __commonJS((exports) => {
|
|
11663
11661
|
var { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require_serde();
|
|
11664
11662
|
var { hasOwn, getSmithyContext } = require_transport();
|
|
11665
11663
|
var { HttpRequest: HttpRequest2, collectBody, SerdeContext, RpcProtocol } = require_protocols();
|
|
@@ -14108,8 +14106,8 @@ var require_cbor = __commonJS(function(exports) {
|
|
|
14108
14106
|
exports.tagSymbol = tagSymbol;
|
|
14109
14107
|
});
|
|
14110
14108
|
|
|
14111
|
-
//
|
|
14112
|
-
var require_dist_cjs5 = __commonJS(
|
|
14109
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+xml-builder@3.972.40/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
|
|
14110
|
+
var require_dist_cjs5 = __commonJS((exports) => {
|
|
14113
14111
|
var ATTR_ESCAPE_RE = /[&<>"]/g;
|
|
14114
14112
|
var ATTR_ESCAPE_MAP = {
|
|
14115
14113
|
"&": "&",
|
|
@@ -14476,8 +14474,8 @@ var require_dist_cjs5 = __commonJS(function(exports) {
|
|
|
14476
14474
|
exports.parseXML = parseXML;
|
|
14477
14475
|
});
|
|
14478
14476
|
|
|
14479
|
-
//
|
|
14480
|
-
var require_protocols2 = __commonJS(
|
|
14477
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
|
|
14478
|
+
var require_protocols2 = __commonJS((exports) => {
|
|
14481
14479
|
var { SmithyRpcV2CborProtocol, loadSmithyRpcV2CborErrorCode } = require_cbor();
|
|
14482
14480
|
var { TypeRegistry, NormalizedSchema, deref } = require_schema();
|
|
14483
14481
|
var { decorateServiceException, getValueFromTextNode } = require_client();
|
|
@@ -17317,8 +17315,8 @@ var require_protocols2 = __commonJS(function(exports) {
|
|
|
17317
17315
|
exports.parseXmlErrorBody = parseXmlErrorBody;
|
|
17318
17316
|
});
|
|
17319
17317
|
|
|
17320
|
-
//
|
|
17321
|
-
var require_httpAuthSchemes = __commonJS(
|
|
17318
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+core@3.977.9/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
|
|
17319
|
+
var require_httpAuthSchemes = __commonJS((exports) => {
|
|
17322
17320
|
var { ProviderError, booleanSelector: booleanSelector2, SelectorType: SelectorType3, loadConfig } = require_config();
|
|
17323
17321
|
var { setCredentialFeature } = require_client2();
|
|
17324
17322
|
var { normalizeProvider: normalizeProvider2, memoizeIdentityProvider, isIdentityExpired, doesIdentityRequireRefresh } = require_dist_cjs2();
|
|
@@ -17647,7 +17645,7 @@ var require_httpAuthSchemes = __commonJS(function(exports) {
|
|
|
17647
17645
|
exports.validateSigningProperties = validateSigningProperties;
|
|
17648
17646
|
});
|
|
17649
17647
|
|
|
17650
|
-
//
|
|
17648
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-env@3.972.70/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
17651
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 () => {
|
|
17652
17650
|
init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
|
|
17653
17651
|
const accessKeyId = process.env[ENV_KEY];
|
|
@@ -17675,22 +17673,22 @@ var init_fromEnv = __esm(() => {
|
|
|
17675
17673
|
import_config = __toESM(require_config(), 1);
|
|
17676
17674
|
});
|
|
17677
17675
|
|
|
17678
|
-
//
|
|
17676
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-env@3.972.70/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js
|
|
17679
17677
|
var exports_dist_es = {};
|
|
17680
17678
|
__export(exports_dist_es, {
|
|
17681
|
-
|
|
17682
|
-
ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
|
|
17683
|
-
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
|
17684
|
-
ENV_KEY: () => ENV_KEY,
|
|
17685
|
-
ENV_SECRET: () => ENV_SECRET,
|
|
17679
|
+
fromEnv: () => fromEnv,
|
|
17686
17680
|
ENV_SESSION: () => ENV_SESSION,
|
|
17687
|
-
|
|
17681
|
+
ENV_SECRET: () => ENV_SECRET,
|
|
17682
|
+
ENV_KEY: () => ENV_KEY,
|
|
17683
|
+
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
|
17684
|
+
ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
|
|
17685
|
+
ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID
|
|
17688
17686
|
});
|
|
17689
17687
|
var init_dist_es = __esm(() => {
|
|
17690
17688
|
init_fromEnv();
|
|
17691
17689
|
});
|
|
17692
17690
|
|
|
17693
|
-
//
|
|
17691
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js
|
|
17694
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) => ({
|
|
17695
17693
|
accessKeyId: creds.AccessKeyId,
|
|
17696
17694
|
secretAccessKey: creds.SecretAccessKey,
|
|
@@ -17699,14 +17697,14 @@ var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && type
|
|
|
17699
17697
|
...creds.AccountId && { accountId: creds.AccountId }
|
|
17700
17698
|
});
|
|
17701
17699
|
|
|
17702
|
-
//
|
|
17700
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js
|
|
17703
17701
|
var DEFAULT_TIMEOUT = 1000, DEFAULT_MAX_RETRIES = 0, providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout });
|
|
17704
17702
|
|
|
17705
|
-
//
|
|
17703
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js
|
|
17706
17704
|
import node_http from "http";
|
|
17707
17705
|
var init_node_http = () => {};
|
|
17708
17706
|
|
|
17709
|
-
//
|
|
17707
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js
|
|
17710
17708
|
function httpRequest(options) {
|
|
17711
17709
|
return new Promise((resolve, reject) => {
|
|
17712
17710
|
const req = node_http.request({
|
|
@@ -17746,7 +17744,7 @@ var init_httpRequest = __esm(() => {
|
|
|
17746
17744
|
import_config2 = __toESM(require_config(), 1);
|
|
17747
17745
|
});
|
|
17748
17746
|
|
|
17749
|
-
//
|
|
17747
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js
|
|
17750
17748
|
var retry = (toRetry, maxRetries) => {
|
|
17751
17749
|
let promise = toRetry();
|
|
17752
17750
|
for (let i2 = 0;i2 < maxRetries; i2++) {
|
|
@@ -17755,7 +17753,7 @@ var retry = (toRetry, maxRetries) => {
|
|
|
17755
17753
|
return promise;
|
|
17756
17754
|
};
|
|
17757
17755
|
|
|
17758
|
-
//
|
|
17756
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
|
|
17759
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 = {}) => {
|
|
17760
17758
|
const { timeout, maxRetries } = providerConfigFromInit(init);
|
|
17761
17759
|
return () => retry(async () => {
|
|
@@ -17825,7 +17823,7 @@ var init_fromContainerMetadata = __esm(() => {
|
|
|
17825
17823
|
GREENGRASS_PROTOCOLS = new Set(["http:", "https:"]);
|
|
17826
17824
|
});
|
|
17827
17825
|
|
|
17828
|
-
//
|
|
17826
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
|
|
17829
17827
|
var import_config4, InstanceMetadataV1FallbackError;
|
|
17830
17828
|
var init_InstanceMetadataV1FallbackError = __esm(() => {
|
|
17831
17829
|
import_config4 = __toESM(require_config(), 1);
|
|
@@ -17840,7 +17838,7 @@ var init_InstanceMetadataV1FallbackError = __esm(() => {
|
|
|
17840
17838
|
};
|
|
17841
17839
|
});
|
|
17842
17840
|
|
|
17843
|
-
//
|
|
17841
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js
|
|
17844
17842
|
var Endpoint;
|
|
17845
17843
|
var init_Endpoint = __esm(() => {
|
|
17846
17844
|
(function(Endpoint2) {
|
|
@@ -17849,7 +17847,7 @@ var init_Endpoint = __esm(() => {
|
|
|
17849
17847
|
})(Endpoint || (Endpoint = {}));
|
|
17850
17848
|
});
|
|
17851
17849
|
|
|
17852
|
-
//
|
|
17850
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js
|
|
17853
17851
|
var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT", CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint", ENDPOINT_CONFIG_OPTIONS;
|
|
17854
17852
|
var init_EndpointConfigOptions = __esm(() => {
|
|
17855
17853
|
ENDPOINT_CONFIG_OPTIONS = {
|
|
@@ -17859,7 +17857,7 @@ var init_EndpointConfigOptions = __esm(() => {
|
|
|
17859
17857
|
};
|
|
17860
17858
|
});
|
|
17861
17859
|
|
|
17862
|
-
//
|
|
17860
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js
|
|
17863
17861
|
var EndpointMode;
|
|
17864
17862
|
var init_EndpointMode = __esm(() => {
|
|
17865
17863
|
(function(EndpointMode2) {
|
|
@@ -17868,7 +17866,7 @@ var init_EndpointMode = __esm(() => {
|
|
|
17868
17866
|
})(EndpointMode || (EndpointMode = {}));
|
|
17869
17867
|
});
|
|
17870
17868
|
|
|
17871
|
-
//
|
|
17869
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js
|
|
17872
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;
|
|
17873
17871
|
var init_EndpointModeConfigOptions = __esm(() => {
|
|
17874
17872
|
init_EndpointMode();
|
|
@@ -17879,7 +17877,7 @@ var init_EndpointModeConfigOptions = __esm(() => {
|
|
|
17879
17877
|
};
|
|
17880
17878
|
});
|
|
17881
17879
|
|
|
17882
|
-
//
|
|
17880
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js
|
|
17883
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 () => {
|
|
17884
17882
|
const endpointMode = await import_config5.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
|
|
17885
17883
|
switch (endpointMode) {
|
|
@@ -17900,7 +17898,7 @@ var init_getInstanceMetadataEndpoint = __esm(() => {
|
|
|
17900
17898
|
import_protocols = __toESM(require_protocols(), 1);
|
|
17901
17899
|
});
|
|
17902
17900
|
|
|
17903
|
-
//
|
|
17901
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js
|
|
17904
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) => {
|
|
17905
17903
|
const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
|
|
17906
17904
|
const newExpiration = new Date(Date.now() + refreshInterval * 1000);
|
|
@@ -17918,7 +17916,7 @@ var init_getExtendedInstanceMetadataCredentials = __esm(() => {
|
|
|
17918
17916
|
STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
|
|
17919
17917
|
});
|
|
17920
17918
|
|
|
17921
|
-
//
|
|
17919
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js
|
|
17922
17920
|
var staticStabilityProvider = (provider, options = {}) => {
|
|
17923
17921
|
const logger = options?.logger || console;
|
|
17924
17922
|
let pastCredentials;
|
|
@@ -17945,7 +17943,7 @@ var init_staticStabilityProvider = __esm(() => {
|
|
|
17945
17943
|
init_getExtendedInstanceMetadataCredentials();
|
|
17946
17944
|
});
|
|
17947
17945
|
|
|
17948
|
-
//
|
|
17946
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
|
|
17949
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 = {}) => {
|
|
17950
17948
|
let disableFetchToken = false;
|
|
17951
17949
|
const { logger, profile } = init;
|
|
@@ -18065,20 +18063,20 @@ var init_fromInstanceMetadata = __esm(() => {
|
|
|
18065
18063
|
import_config6 = __toESM(require_config(), 1);
|
|
18066
18064
|
});
|
|
18067
18065
|
|
|
18068
|
-
//
|
|
18066
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/index.js
|
|
18069
18067
|
var exports_dist_es2 = {};
|
|
18070
18068
|
__export(exports_dist_es2, {
|
|
18071
|
-
|
|
18072
|
-
DEFAULT_TIMEOUT: () => DEFAULT_TIMEOUT,
|
|
18073
|
-
ENV_CMDS_AUTH_TOKEN: () => ENV_CMDS_AUTH_TOKEN,
|
|
18074
|
-
ENV_CMDS_FULL_URI: () => ENV_CMDS_FULL_URI,
|
|
18075
|
-
ENV_CMDS_RELATIVE_URI: () => ENV_CMDS_RELATIVE_URI,
|
|
18076
|
-
Endpoint: () => Endpoint,
|
|
18077
|
-
fromContainerMetadata: () => fromContainerMetadata,
|
|
18078
|
-
fromInstanceMetadata: () => fromInstanceMetadata,
|
|
18079
|
-
getInstanceMetadataEndpoint: () => getInstanceMetadataEndpoint,
|
|
18069
|
+
providerConfigFromInit: () => providerConfigFromInit,
|
|
18080
18070
|
httpRequest: () => httpRequest,
|
|
18081
|
-
|
|
18071
|
+
getInstanceMetadataEndpoint: () => getInstanceMetadataEndpoint,
|
|
18072
|
+
fromInstanceMetadata: () => fromInstanceMetadata,
|
|
18073
|
+
fromContainerMetadata: () => fromContainerMetadata,
|
|
18074
|
+
Endpoint: () => Endpoint,
|
|
18075
|
+
ENV_CMDS_RELATIVE_URI: () => ENV_CMDS_RELATIVE_URI,
|
|
18076
|
+
ENV_CMDS_FULL_URI: () => ENV_CMDS_FULL_URI,
|
|
18077
|
+
ENV_CMDS_AUTH_TOKEN: () => ENV_CMDS_AUTH_TOKEN,
|
|
18078
|
+
DEFAULT_TIMEOUT: () => DEFAULT_TIMEOUT,
|
|
18079
|
+
DEFAULT_MAX_RETRIES: () => DEFAULT_MAX_RETRIES
|
|
18082
18080
|
});
|
|
18083
18081
|
var init_dist_es2 = __esm(() => {
|
|
18084
18082
|
init_fromContainerMetadata();
|
|
@@ -18088,8 +18086,8 @@ var init_dist_es2 = __esm(() => {
|
|
|
18088
18086
|
init_Endpoint();
|
|
18089
18087
|
});
|
|
18090
18088
|
|
|
18091
|
-
//
|
|
18092
|
-
var require_dist_cjs6 = __commonJS(
|
|
18089
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@smithy+node-http-handler@4.12.1/node_modules/@smithy/node-http-handler/dist-cjs/index.js
|
|
18090
|
+
var require_dist_cjs6 = __commonJS((exports) => {
|
|
18093
18091
|
var { hasOwn } = require_serde();
|
|
18094
18092
|
var { streamCollector } = require_serde();
|
|
18095
18093
|
exports.streamCollector = streamCollector;
|
|
@@ -18914,7 +18912,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
18914
18912
|
exports.NodeHttpHandler = NodeHttpHandler;
|
|
18915
18913
|
});
|
|
18916
18914
|
|
|
18917
|
-
//
|
|
18915
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
18918
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) => {
|
|
18919
18917
|
if (url.protocol === "https:") {
|
|
18920
18918
|
return;
|
|
@@ -18948,7 +18946,7 @@ var init_checkUrl = __esm(() => {
|
|
|
18948
18946
|
import_config7 = __toESM(require_config(), 1);
|
|
18949
18947
|
});
|
|
18950
18948
|
|
|
18951
|
-
//
|
|
18949
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
18952
18950
|
function createGetRequest(url) {
|
|
18953
18951
|
return new import_protocols2.HttpRequest({
|
|
18954
18952
|
protocol: url.protocol,
|
|
@@ -18997,7 +18995,7 @@ var init_requestHelpers = __esm(() => {
|
|
|
18997
18995
|
import_serde2 = __toESM(require_serde(), 1);
|
|
18998
18996
|
});
|
|
18999
18997
|
|
|
19000
|
-
//
|
|
18998
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
19001
18999
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
19002
19000
|
return async () => {
|
|
19003
19001
|
for (let i2 = 0;i2 < maxRetries; ++i2) {
|
|
@@ -19011,7 +19009,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
19011
19009
|
};
|
|
19012
19010
|
};
|
|
19013
19011
|
|
|
19014
|
-
//
|
|
19012
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
19015
19013
|
import fs from "fs/promises";
|
|
19016
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 = {}) => {
|
|
19017
19015
|
options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");
|
|
@@ -19077,7 +19075,7 @@ var init_fromHttp = __esm(() => {
|
|
|
19077
19075
|
import_node_http_handler = __toESM(require_dist_cjs6(), 1);
|
|
19078
19076
|
});
|
|
19079
19077
|
|
|
19080
|
-
//
|
|
19078
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-http@3.972.72/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js
|
|
19081
19079
|
var exports_dist_es3 = {};
|
|
19082
19080
|
__export(exports_dist_es3, {
|
|
19083
19081
|
fromHttp: () => fromHttp
|
|
@@ -19086,17 +19084,17 @@ var init_dist_es3 = __esm(() => {
|
|
|
19086
19084
|
init_fromHttp();
|
|
19087
19085
|
});
|
|
19088
19086
|
|
|
19089
|
-
//
|
|
19087
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
19090
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");
|
|
19091
19089
|
|
|
19092
|
-
//
|
|
19090
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
19093
19091
|
var EXPIRE_WINDOW_MS, REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
19094
19092
|
var init_constants = __esm(() => {
|
|
19095
19093
|
EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
19096
19094
|
});
|
|
19097
19095
|
|
|
19098
|
-
//
|
|
19099
|
-
var require_sso_oidc = __commonJS(
|
|
19096
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js
|
|
19097
|
+
var require_sso_oidc = __commonJS((exports) => {
|
|
19100
19098
|
var { awsEndpointFunctions: awsEndpointFunctions2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client2();
|
|
19101
19099
|
var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs2();
|
|
19102
19100
|
var { normalizeProvider: normalizeProvider3, getSmithyContext: getSmithyContext3, ServiceException, NoOpLogger: NoOpLogger2, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder: makeBuilder2, createAggregatedClient } = require_client();
|
|
@@ -19850,7 +19848,7 @@ var require_sso_oidc = __commonJS(function(exports) {
|
|
|
19850
19848
|
exports.errorTypeRegistries = errorTypeRegistries2;
|
|
19851
19849
|
});
|
|
19852
19850
|
|
|
19853
|
-
//
|
|
19851
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
19854
19852
|
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
19855
19853
|
const { SSOOIDCClient } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
19856
19854
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
@@ -19862,7 +19860,7 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
19862
19860
|
return ssoOidcClient;
|
|
19863
19861
|
};
|
|
19864
19862
|
|
|
19865
|
-
//
|
|
19863
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
19866
19864
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
19867
19865
|
const { CreateTokenCommand } = await Promise.resolve().then(() => __toESM(require_sso_oidc(), 1));
|
|
19868
19866
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
@@ -19875,7 +19873,7 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConf
|
|
|
19875
19873
|
};
|
|
19876
19874
|
var init_getNewSsoOidcToken = () => {};
|
|
19877
19875
|
|
|
19878
|
-
//
|
|
19876
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
19879
19877
|
var import_config11, validateTokenExpiry = (token) => {
|
|
19880
19878
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
19881
19879
|
throw new import_config11.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
@@ -19886,7 +19884,7 @@ var init_validateTokenExpiry = __esm(() => {
|
|
|
19886
19884
|
import_config11 = __toESM(require_config(), 1);
|
|
19887
19885
|
});
|
|
19888
19886
|
|
|
19889
|
-
//
|
|
19887
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
19890
19888
|
var import_config12, validateTokenKey = (key, value, forRefresh = false) => {
|
|
19891
19889
|
if (typeof value === "undefined") {
|
|
19892
19890
|
throw new import_config12.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
@@ -19897,7 +19895,7 @@ var init_validateTokenKey = __esm(() => {
|
|
|
19897
19895
|
import_config12 = __toESM(require_config(), 1);
|
|
19898
19896
|
});
|
|
19899
19897
|
|
|
19900
|
-
//
|
|
19898
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
19901
19899
|
import { promises as fsPromises } from "fs";
|
|
19902
19900
|
var import_config13, writeFile, writeSSOTokenToFile = (id, ssoToken) => {
|
|
19903
19901
|
const tokenFilepath = import_config13.getSSOTokenFilepath(id);
|
|
@@ -19909,7 +19907,7 @@ var init_writeSSOTokenToFile = __esm(() => {
|
|
|
19909
19907
|
({ writeFile } = fsPromises);
|
|
19910
19908
|
});
|
|
19911
19909
|
|
|
19912
|
-
//
|
|
19910
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
19913
19911
|
var import_config14, lastRefreshAttemptTimes, fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
19914
19912
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
19915
19913
|
const profiles = await import_config14.parseKnownFiles(init);
|
|
@@ -19992,12 +19990,12 @@ var init_fromSso = __esm(() => {
|
|
|
19992
19990
|
lastRefreshAttemptTimes = new Map;
|
|
19993
19991
|
});
|
|
19994
19992
|
|
|
19995
|
-
//
|
|
19993
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+token-providers@3.1116.0/node_modules/@aws-sdk/token-providers/dist-es/index.js
|
|
19996
19994
|
var init_dist_es4 = __esm(() => {
|
|
19997
19995
|
init_fromSso();
|
|
19998
19996
|
});
|
|
19999
19997
|
|
|
20000
|
-
//
|
|
19998
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js
|
|
20001
19999
|
function createAwsAuthSigv4HttpAuthOption2(authParameters) {
|
|
20002
20000
|
return {
|
|
20003
20001
|
schemeId: "aws.auth#sigv4",
|
|
@@ -20445,17 +20443,17 @@ var init_sso = __esm(() => {
|
|
|
20445
20443
|
$SSOClient = SSOClient;
|
|
20446
20444
|
});
|
|
20447
20445
|
|
|
20448
|
-
//
|
|
20446
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js
|
|
20449
20447
|
var exports_loadSso = {};
|
|
20450
20448
|
__export(exports_loadSso, {
|
|
20451
|
-
|
|
20452
|
-
|
|
20449
|
+
SSOClient: () => $SSOClient,
|
|
20450
|
+
GetRoleCredentialsCommand: () => $GetRoleCredentialsCommand
|
|
20453
20451
|
});
|
|
20454
20452
|
var init_loadSso = __esm(() => {
|
|
20455
20453
|
init_sso();
|
|
20456
20454
|
});
|
|
20457
20455
|
|
|
20458
|
-
//
|
|
20456
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
20459
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 }) => {
|
|
20460
20458
|
let token;
|
|
20461
20459
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
|
@@ -20544,7 +20542,7 @@ var init_resolveSSOCredentials = __esm(() => {
|
|
|
20544
20542
|
import_config15 = __toESM(require_config(), 1);
|
|
20545
20543
|
});
|
|
20546
20544
|
|
|
20547
|
-
//
|
|
20545
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
20548
20546
|
var import_config16, validateSsoProfile = (profile, logger) => {
|
|
20549
20547
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
20550
20548
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
@@ -20557,7 +20555,7 @@ var init_validateSsoProfile = __esm(() => {
|
|
|
20557
20555
|
import_config16 = __toESM(require_config(), 1);
|
|
20558
20556
|
});
|
|
20559
20557
|
|
|
20560
|
-
//
|
|
20558
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
20561
20559
|
var import_config17, fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
20562
20560
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
20563
20561
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
@@ -20639,19 +20637,19 @@ var init_fromSSO = __esm(() => {
|
|
|
20639
20637
|
import_config17 = __toESM(require_config(), 1);
|
|
20640
20638
|
});
|
|
20641
20639
|
|
|
20642
|
-
//
|
|
20640
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js
|
|
20643
20641
|
var exports_dist_es4 = {};
|
|
20644
20642
|
__export(exports_dist_es4, {
|
|
20645
|
-
|
|
20643
|
+
validateSsoProfile: () => validateSsoProfile,
|
|
20646
20644
|
isSsoProfile: () => isSsoProfile,
|
|
20647
|
-
|
|
20645
|
+
fromSSO: () => fromSSO
|
|
20648
20646
|
});
|
|
20649
20647
|
var init_dist_es5 = __esm(() => {
|
|
20650
20648
|
init_fromSSO();
|
|
20651
20649
|
init_validateSsoProfile();
|
|
20652
20650
|
});
|
|
20653
20651
|
|
|
20654
|
-
//
|
|
20652
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
20655
20653
|
var import_client8, import_config18, resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
20656
20654
|
const sourceProvidersMap = {
|
|
20657
20655
|
EcsContainer: async (options) => {
|
|
@@ -20682,8 +20680,8 @@ var init_resolveCredentialSource = __esm(() => {
|
|
|
20682
20680
|
import_config18 = __toESM(require_config(), 1);
|
|
20683
20681
|
});
|
|
20684
20682
|
|
|
20685
|
-
//
|
|
20686
|
-
var require_sts = __commonJS(
|
|
20683
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js
|
|
20684
|
+
var require_sts = __commonJS((exports) => {
|
|
20687
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();
|
|
20688
20686
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
20689
20687
|
var { normalizeProvider: normalizeProvider4, getSmithyContext: getSmithyContext4, ServiceException: ServiceException2, NoOpLogger: NoOpLogger3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion2, loadConfigsForDefaultMode: loadConfigsForDefaultMode2, getDefaultExtensionConfiguration: getDefaultExtensionConfiguration2, resolveDefaultRuntimeConfig: resolveDefaultRuntimeConfig2, Client: Client2, makeBuilder: makeBuilder3, createAggregatedClient: createAggregatedClient2 } = require_client();
|
|
@@ -21704,7 +21702,7 @@ var require_sts = __commonJS(function(exports) {
|
|
|
21704
21702
|
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
|
21705
21703
|
});
|
|
21706
21704
|
|
|
21707
|
-
//
|
|
21705
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
21708
21706
|
var import_client9, import_config19, isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
21709
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 }));
|
|
21710
21708
|
}, isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
|
|
@@ -21772,8 +21770,8 @@ var init_resolveAssumeRoleCredentials = __esm(() => {
|
|
|
21772
21770
|
import_config19 = __toESM(require_config(), 1);
|
|
21773
21771
|
});
|
|
21774
21772
|
|
|
21775
|
-
//
|
|
21776
|
-
var require_signin = __commonJS(
|
|
21773
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+nested-clients@3.997.44/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js
|
|
21774
|
+
var require_signin = __commonJS((exports) => {
|
|
21777
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();
|
|
21778
21776
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
21779
21777
|
var { normalizeProvider: normalizeProvider4, getSmithyContext: getSmithyContext4, ServiceException: ServiceException2, NoOpLogger: NoOpLogger3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion2, loadConfigsForDefaultMode: loadConfigsForDefaultMode2, getDefaultExtensionConfiguration: getDefaultExtensionConfiguration2, resolveDefaultRuntimeConfig: resolveDefaultRuntimeConfig2, Client: Client2, makeBuilder: makeBuilder3, createAggregatedClient: createAggregatedClient2 } = require_client();
|
|
@@ -22504,7 +22502,7 @@ var require_signin = __commonJS(function(exports) {
|
|
|
22504
22502
|
exports.errorTypeRegistries = errorTypeRegistries3;
|
|
22505
22503
|
});
|
|
22506
22504
|
|
|
22507
|
-
//
|
|
22505
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-login@3.972.77/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
22508
22506
|
import { createHash as createHash2, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
22509
22507
|
import { promises as fs2 } from "fs";
|
|
22510
22508
|
import { homedir } from "os";
|
|
@@ -22768,7 +22766,7 @@ var init_LoginCredentialsFetcher = __esm(() => {
|
|
|
22768
22766
|
};
|
|
22769
22767
|
});
|
|
22770
22768
|
|
|
22771
|
-
//
|
|
22769
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-login@3.972.77/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
22772
22770
|
var import_client10, import_config21, fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
22773
22771
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
22774
22772
|
const profiles = await import_config21.parseKnownFiles(init || {});
|
|
@@ -22792,7 +22790,7 @@ var init_fromLoginCredentials = __esm(() => {
|
|
|
22792
22790
|
import_config21 = __toESM(require_config(), 1);
|
|
22793
22791
|
});
|
|
22794
22792
|
|
|
22795
|
-
//
|
|
22793
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-login@3.972.77/node_modules/@aws-sdk/credential-provider-login/dist-es/index.js
|
|
22796
22794
|
var exports_dist_es5 = {};
|
|
22797
22795
|
__export(exports_dist_es5, {
|
|
22798
22796
|
fromLoginCredentials: () => fromLoginCredentials
|
|
@@ -22801,7 +22799,7 @@ var init_dist_es6 = __esm(() => {
|
|
|
22801
22799
|
init_fromLoginCredentials();
|
|
22802
22800
|
});
|
|
22803
22801
|
|
|
22804
|
-
//
|
|
22802
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
22805
22803
|
var import_client11, isLoginProfile = (data) => {
|
|
22806
22804
|
return Boolean(data && data.login_session);
|
|
22807
22805
|
}, resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
@@ -22816,7 +22814,7 @@ var init_resolveLoginCredentials = __esm(() => {
|
|
|
22816
22814
|
import_client11 = __toESM(require_client2(), 1);
|
|
22817
22815
|
});
|
|
22818
22816
|
|
|
22819
|
-
//
|
|
22817
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
22820
22818
|
var import_client12, getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
22821
22819
|
if (data.Version !== 1) {
|
|
22822
22820
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
@@ -22850,7 +22848,7 @@ var init_getValidatedProcessCredentials = __esm(() => {
|
|
|
22850
22848
|
import_client12 = __toESM(require_client2(), 1);
|
|
22851
22849
|
});
|
|
22852
22850
|
|
|
22853
|
-
//
|
|
22851
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
22854
22852
|
import { exec } from "child_process";
|
|
22855
22853
|
import { promisify } from "util";
|
|
22856
22854
|
var import_config22, resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
@@ -22885,7 +22883,7 @@ var init_resolveProcessCredentials = __esm(() => {
|
|
|
22885
22883
|
import_config22 = __toESM(require_config(), 1);
|
|
22886
22884
|
});
|
|
22887
22885
|
|
|
22888
|
-
//
|
|
22886
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
22889
22887
|
var import_config23, fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
22890
22888
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
22891
22889
|
const profiles = await import_config23.parseKnownFiles(init);
|
|
@@ -22898,7 +22896,7 @@ var init_fromProcess = __esm(() => {
|
|
|
22898
22896
|
import_config23 = __toESM(require_config(), 1);
|
|
22899
22897
|
});
|
|
22900
22898
|
|
|
22901
|
-
//
|
|
22899
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-process@3.972.70/node_modules/@aws-sdk/credential-provider-process/dist-es/index.js
|
|
22902
22900
|
var exports_dist_es6 = {};
|
|
22903
22901
|
__export(exports_dist_es6, {
|
|
22904
22902
|
fromProcess: () => fromProcess
|
|
@@ -22907,7 +22905,7 @@ var init_dist_es7 = __esm(() => {
|
|
|
22907
22905
|
init_fromProcess();
|
|
22908
22906
|
});
|
|
22909
22907
|
|
|
22910
|
-
//
|
|
22908
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
22911
22909
|
var import_client13, isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", resolveProcessCredentials2 = async (options, profile) => {
|
|
22912
22910
|
const { fromProcess: fromProcess2 } = await Promise.resolve().then(() => (init_dist_es7(), exports_dist_es6));
|
|
22913
22911
|
const credentials = await fromProcess2({
|
|
@@ -22920,7 +22918,7 @@ var init_resolveProcessCredentials2 = __esm(() => {
|
|
|
22920
22918
|
import_client13 = __toESM(require_client2(), 1);
|
|
22921
22919
|
});
|
|
22922
22920
|
|
|
22923
|
-
//
|
|
22921
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
22924
22922
|
var import_client14, resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
22925
22923
|
const { fromSSO: fromSSO2 } = await Promise.resolve().then(() => (init_dist_es5(), exports_dist_es4));
|
|
22926
22924
|
return fromSSO2({
|
|
@@ -22942,7 +22940,7 @@ var init_resolveSsoCredentials = __esm(() => {
|
|
|
22942
22940
|
import_client14 = __toESM(require_client2(), 1);
|
|
22943
22941
|
});
|
|
22944
22942
|
|
|
22945
|
-
//
|
|
22943
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
22946
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) => {
|
|
22947
22945
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
22948
22946
|
const credentials = {
|
|
@@ -22958,7 +22956,7 @@ var init_resolveStaticCredentials = __esm(() => {
|
|
|
22958
22956
|
import_client15 = __toESM(require_client2(), 1);
|
|
22959
22957
|
});
|
|
22960
22958
|
|
|
22961
|
-
//
|
|
22959
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.76/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
22962
22960
|
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
22963
22961
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
22964
22962
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
@@ -22985,7 +22983,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
22985
22983
|
});
|
|
22986
22984
|
};
|
|
22987
22985
|
|
|
22988
|
-
//
|
|
22986
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.76/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
22989
22987
|
import { readFileSync as readFileSync2 } from "fs";
|
|
22990
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) => {
|
|
22991
22989
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
|
|
@@ -23013,17 +23011,17 @@ var init_fromTokenFile = __esm(() => {
|
|
|
23013
23011
|
import_config24 = __toESM(require_config(), 1);
|
|
23014
23012
|
});
|
|
23015
23013
|
|
|
23016
|
-
//
|
|
23014
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.76/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js
|
|
23017
23015
|
var exports_dist_es7 = {};
|
|
23018
23016
|
__export(exports_dist_es7, {
|
|
23019
|
-
|
|
23020
|
-
|
|
23017
|
+
fromWebToken: () => fromWebToken,
|
|
23018
|
+
fromTokenFile: () => fromTokenFile
|
|
23021
23019
|
});
|
|
23022
23020
|
var init_dist_es8 = __esm(() => {
|
|
23023
23021
|
init_fromTokenFile();
|
|
23024
23022
|
});
|
|
23025
23023
|
|
|
23026
|
-
//
|
|
23024
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
23027
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) => {
|
|
23028
23026
|
const { fromTokenFile: fromTokenFile2 } = await Promise.resolve().then(() => (init_dist_es8(), exports_dist_es7));
|
|
23029
23027
|
const credentials = await fromTokenFile2({
|
|
@@ -23042,7 +23040,7 @@ var init_resolveWebIdentityCredentials = __esm(() => {
|
|
|
23042
23040
|
import_client17 = __toESM(require_client2(), 1);
|
|
23043
23041
|
});
|
|
23044
23042
|
|
|
23045
|
-
//
|
|
23043
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
23046
23044
|
var import_config25, resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
23047
23045
|
const data = profiles[profileName];
|
|
23048
23046
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
@@ -23078,7 +23076,7 @@ var init_resolveProfileData = __esm(() => {
|
|
|
23078
23076
|
import_config25 = __toESM(require_config(), 1);
|
|
23079
23077
|
});
|
|
23080
23078
|
|
|
23081
|
-
//
|
|
23079
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
23082
23080
|
var import_config26, fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
23083
23081
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
23084
23082
|
const profiles = await import_config26.parseKnownFiles(init);
|
|
@@ -23091,7 +23089,7 @@ var init_fromIni = __esm(() => {
|
|
|
23091
23089
|
import_config26 = __toESM(require_config(), 1);
|
|
23092
23090
|
});
|
|
23093
23091
|
|
|
23094
|
-
//
|
|
23092
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-ini@3.973.15/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js
|
|
23095
23093
|
var exports_dist_es8 = {};
|
|
23096
23094
|
__export(exports_dist_es8, {
|
|
23097
23095
|
fromIni: () => fromIni
|
|
@@ -23102,7 +23100,7 @@ var init_dist_es9 = __esm(() => {
|
|
|
23102
23100
|
// package.json
|
|
23103
23101
|
var package_default = {
|
|
23104
23102
|
name: "@hasna/skills",
|
|
23105
|
-
version: "0.5.
|
|
23103
|
+
version: "0.5.6",
|
|
23106
23104
|
description: "Skills library for AI coding agents",
|
|
23107
23105
|
type: "module",
|
|
23108
23106
|
bin: {
|
|
@@ -23234,6 +23232,40 @@ import { createHmac, timingSafeEqual } from "crypto";
|
|
|
23234
23232
|
import { createHash } from "crypto";
|
|
23235
23233
|
import { readFileSync, readdirSync, statSync } from "fs";
|
|
23236
23234
|
import { join, relative } from "path";
|
|
23235
|
+
|
|
23236
|
+
// src/lib/skill-entry-path.ts
|
|
23237
|
+
class SkillEntryPaths {
|
|
23238
|
+
files = new Set;
|
|
23239
|
+
directories = new Set;
|
|
23240
|
+
add(path, maxBytes, invalid, limit) {
|
|
23241
|
+
if (path.length > maxBytes)
|
|
23242
|
+
limit();
|
|
23243
|
+
const encoded = new TextEncoder().encode(path);
|
|
23244
|
+
if (encoded.byteLength > maxBytes)
|
|
23245
|
+
limit();
|
|
23246
|
+
if (new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(encoded) !== path)
|
|
23247
|
+
invalid("Invalid UTF-8 entry path");
|
|
23248
|
+
if (!path || /[\\:\x00-\x1f\x7f]/u.test(path))
|
|
23249
|
+
invalid("Unsafe entry path");
|
|
23250
|
+
if (path.split("/").some((segment) => !segment || segment === "." || segment === ".."))
|
|
23251
|
+
invalid("Unsafe entry path segment");
|
|
23252
|
+
const key = path.normalize("NFC").toLowerCase().normalize("NFC");
|
|
23253
|
+
if (this.files.has(key) || this.directories.has(key))
|
|
23254
|
+
invalid("Duplicate or conflicting entry path");
|
|
23255
|
+
const parents = key.split("/");
|
|
23256
|
+
parents.pop();
|
|
23257
|
+
while (parents.length) {
|
|
23258
|
+
const parent = parents.join("/");
|
|
23259
|
+
if (this.files.has(parent))
|
|
23260
|
+
invalid("Conflicting entry file ancestor");
|
|
23261
|
+
this.directories.add(parent);
|
|
23262
|
+
parents.pop();
|
|
23263
|
+
}
|
|
23264
|
+
this.files.add(key);
|
|
23265
|
+
}
|
|
23266
|
+
}
|
|
23267
|
+
|
|
23268
|
+
// src/lib/skill-bundle.ts
|
|
23237
23269
|
var BLOCK = 512;
|
|
23238
23270
|
var ANY_SEGMENT_EXCLUDES = new Set([
|
|
23239
23271
|
".git",
|
|
@@ -23514,13 +23546,143 @@ var SKILL_BUNDLE_INSPECTION_LIMITS = Object.freeze({
|
|
|
23514
23546
|
timeoutMs: 5000
|
|
23515
23547
|
});
|
|
23516
23548
|
|
|
23549
|
+
class SkillBundleInspectionError extends Error {
|
|
23550
|
+
code;
|
|
23551
|
+
constructor(code, message) {
|
|
23552
|
+
super(message);
|
|
23553
|
+
this.code = code;
|
|
23554
|
+
this.name = "SkillBundleInspectionError";
|
|
23555
|
+
}
|
|
23556
|
+
}
|
|
23557
|
+
function invalidBundle(message) {
|
|
23558
|
+
throw new SkillBundleInspectionError("BUNDLE_INVALID", message);
|
|
23559
|
+
}
|
|
23560
|
+
class BoundedTarReader {
|
|
23561
|
+
limits;
|
|
23562
|
+
check;
|
|
23563
|
+
header = new Uint8Array(BLOCK);
|
|
23564
|
+
headerOffset = 0;
|
|
23565
|
+
pending;
|
|
23566
|
+
bodyOffset = 0;
|
|
23567
|
+
padding = 0;
|
|
23568
|
+
zeroBlocks = 0;
|
|
23569
|
+
entries = [];
|
|
23570
|
+
paths = new SkillEntryPaths;
|
|
23571
|
+
fileBytes = 0;
|
|
23572
|
+
constructor(limits, check) {
|
|
23573
|
+
this.limits = limits;
|
|
23574
|
+
this.check = check;
|
|
23575
|
+
}
|
|
23576
|
+
push(chunk) {
|
|
23577
|
+
let offset = 0;
|
|
23578
|
+
while (offset < chunk.byteLength) {
|
|
23579
|
+
this.check();
|
|
23580
|
+
if (this.pending) {
|
|
23581
|
+
const count = Math.min(this.pending.bytes.byteLength - this.bodyOffset, chunk.byteLength - offset);
|
|
23582
|
+
this.pending.bytes.set(chunk.subarray(offset, offset + count), this.bodyOffset);
|
|
23583
|
+
offset += count;
|
|
23584
|
+
this.bodyOffset += count;
|
|
23585
|
+
if (this.bodyOffset === this.pending.bytes.byteLength) {
|
|
23586
|
+
this.entries.push(this.pending);
|
|
23587
|
+
this.pending = undefined;
|
|
23588
|
+
}
|
|
23589
|
+
} else if (this.padding) {
|
|
23590
|
+
const count = Math.min(this.padding, chunk.byteLength - offset);
|
|
23591
|
+
if (chunk.subarray(offset, offset + count).some((byte) => byte !== 0))
|
|
23592
|
+
invalidBundle("Nonzero tar body padding");
|
|
23593
|
+
offset += count;
|
|
23594
|
+
this.padding -= count;
|
|
23595
|
+
} else {
|
|
23596
|
+
const count = Math.min(BLOCK - this.headerOffset, chunk.byteLength - offset);
|
|
23597
|
+
this.header.set(chunk.subarray(offset, offset + count), this.headerOffset);
|
|
23598
|
+
offset += count;
|
|
23599
|
+
this.headerOffset += count;
|
|
23600
|
+
if (this.headerOffset === BLOCK) {
|
|
23601
|
+
this.readHeader();
|
|
23602
|
+
this.headerOffset = 0;
|
|
23603
|
+
}
|
|
23604
|
+
}
|
|
23605
|
+
}
|
|
23606
|
+
}
|
|
23607
|
+
finish() {
|
|
23608
|
+
this.check();
|
|
23609
|
+
if (this.pending || this.padding || this.headerOffset || this.zeroBlocks < 2)
|
|
23610
|
+
invalidBundle("Truncated tar bundle");
|
|
23611
|
+
return this.entries;
|
|
23612
|
+
}
|
|
23613
|
+
readHeader() {
|
|
23614
|
+
this.check();
|
|
23615
|
+
const h = this.header;
|
|
23616
|
+
if (h.every((byte) => byte === 0)) {
|
|
23617
|
+
this.zeroBlocks++;
|
|
23618
|
+
return;
|
|
23619
|
+
}
|
|
23620
|
+
if (this.zeroBlocks)
|
|
23621
|
+
invalidBundle("Nonzero tar data after terminator");
|
|
23622
|
+
if (this.entries.length >= this.limits.entries)
|
|
23623
|
+
throw new SkillBundleInspectionError("BUNDLE_LIMIT", "Bundle entry limit exceeded");
|
|
23624
|
+
let checksum = 0;
|
|
23625
|
+
for (let i = 0;i < BLOCK; i++)
|
|
23626
|
+
checksum += i >= 148 && i < 156 ? 32 : h[i];
|
|
23627
|
+
if (tarOctal(h.subarray(148, 156)) !== checksum)
|
|
23628
|
+
invalidBundle("Invalid tar header checksum");
|
|
23629
|
+
if (new TextDecoder().decode(h.subarray(257, 265)) !== "ustar\x00" + "00")
|
|
23630
|
+
invalidBundle("Unsupported tar format");
|
|
23631
|
+
if (h[156] !== 48 && h[156] !== 0 || h.subarray(157, 257).some((b) => b !== 0) || h.subarray(345).some((b) => b !== 0))
|
|
23632
|
+
invalidBundle("Unsupported tar entry or path prefix");
|
|
23633
|
+
const mode = tarOctal(h.subarray(100, 108));
|
|
23634
|
+
if (mode > 511)
|
|
23635
|
+
invalidBundle("Unsupported tar permission bits");
|
|
23636
|
+
tarOctal(h.subarray(108, 116));
|
|
23637
|
+
tarOctal(h.subarray(116, 124));
|
|
23638
|
+
tarOctal(h.subarray(136, 148));
|
|
23639
|
+
const size = tarOctal(h.subarray(124, 136));
|
|
23640
|
+
if (size > this.limits.fileBytes || this.fileBytes + size > this.limits.decompressedBytes) {
|
|
23641
|
+
throw new SkillBundleInspectionError("BUNDLE_LIMIT", "Bundle file byte limit exceeded");
|
|
23642
|
+
}
|
|
23643
|
+
const name = h.subarray(0, 100);
|
|
23644
|
+
const end = name.indexOf(0);
|
|
23645
|
+
if (end !== -1 && name.subarray(end).some((b) => b !== 0))
|
|
23646
|
+
invalidBundle("Invalid tar path padding");
|
|
23647
|
+
const raw = end === -1 ? name : name.subarray(0, end);
|
|
23648
|
+
if (raw.byteLength > this.limits.pathBytes)
|
|
23649
|
+
throw new SkillBundleInspectionError("BUNDLE_LIMIT", "Bundle path byte limit exceeded");
|
|
23650
|
+
let path;
|
|
23651
|
+
try {
|
|
23652
|
+
path = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(raw);
|
|
23653
|
+
} catch {
|
|
23654
|
+
return invalidBundle("Invalid UTF-8 bundle path");
|
|
23655
|
+
}
|
|
23656
|
+
this.paths.add(path, this.limits.pathBytes, invalidBundle, () => {
|
|
23657
|
+
throw new SkillBundleInspectionError("BUNDLE_LIMIT", "Bundle path byte limit exceeded");
|
|
23658
|
+
});
|
|
23659
|
+
this.fileBytes += size;
|
|
23660
|
+
this.pending = { path, mode, bytes: new Uint8Array(new ArrayBuffer(size)) };
|
|
23661
|
+
this.bodyOffset = 0;
|
|
23662
|
+
this.padding = (BLOCK - size % BLOCK) % BLOCK;
|
|
23663
|
+
if (!size) {
|
|
23664
|
+
this.entries.push(this.pending);
|
|
23665
|
+
this.pending = undefined;
|
|
23666
|
+
}
|
|
23667
|
+
}
|
|
23668
|
+
}
|
|
23669
|
+
function tarOctal(field) {
|
|
23670
|
+
const text = new TextDecoder().decode(field);
|
|
23671
|
+
if (!/^[0-7]+[\0 ]*$/.test(text))
|
|
23672
|
+
invalidBundle("Invalid tar octal field");
|
|
23673
|
+
const value = Number.parseInt(text, 8);
|
|
23674
|
+
if (!Number.isSafeInteger(value))
|
|
23675
|
+
invalidBundle("Tar integer is out of range");
|
|
23676
|
+
return value;
|
|
23677
|
+
}
|
|
23678
|
+
|
|
23517
23679
|
// src/lib/skill-bundles.ts
|
|
23518
23680
|
var SIGNATURE_PREFIX = "hmac-sha256:";
|
|
23519
23681
|
function signBundleBytes(bytes, key) {
|
|
23520
23682
|
return `${SIGNATURE_PREFIX}${createHmac("sha256", key).update(bytes).digest("hex")}`;
|
|
23521
23683
|
}
|
|
23522
23684
|
|
|
23523
|
-
//
|
|
23685
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+checksums@3.1000.29/node_modules/@aws-sdk/checksums/dist-cjs/submodules/flexible-checksums/index.js
|
|
23524
23686
|
var { setFeature } = require_client2();
|
|
23525
23687
|
var { HttpRequest } = require_protocols();
|
|
23526
23688
|
var { isArrayBuffer, toUint8Array, createBufferedReadable, createChecksumStream } = require_serde();
|
|
@@ -23913,10 +24075,10 @@ var $NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = NODE_RESPONSE_CHECKSUM_V
|
|
|
23913
24075
|
var $getFlexibleChecksumsPlugin = getFlexibleChecksumsPlugin;
|
|
23914
24076
|
var $resolveFlexibleChecksumsConfig = resolveFlexibleChecksumsConfig;
|
|
23915
24077
|
|
|
23916
|
-
//
|
|
24078
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
23917
24079
|
var import_client23 = __toESM(require_client2(), 1);
|
|
23918
24080
|
|
|
23919
|
-
//
|
|
24081
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+middleware-sdk-s3@3.972.75/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/submodules/s3/index.js
|
|
23920
24082
|
var { NoOpLogger, getSmithyContext } = require_client();
|
|
23921
24083
|
var { HttpRequest: HttpRequest2, HttpResponse } = require_protocols();
|
|
23922
24084
|
var { parseRfc7231DateTime } = require_serde();
|
|
@@ -24521,7 +24683,7 @@ var $getThrow200ExceptionsPlugin = getThrow200ExceptionsPlugin;
|
|
|
24521
24683
|
var $getValidateBucketNamePlugin = getValidateBucketNamePlugin;
|
|
24522
24684
|
var $resolveS3Config = resolveS3Config;
|
|
24523
24685
|
|
|
24524
|
-
//
|
|
24686
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
24525
24687
|
var import_core = __toESM(require_dist_cjs2(), 1);
|
|
24526
24688
|
var import_client24 = __toESM(require_client(), 1);
|
|
24527
24689
|
var import_config29 = __toESM(require_config(), 1);
|
|
@@ -24531,17 +24693,17 @@ var import_protocols6 = __toESM(require_protocols(), 1);
|
|
|
24531
24693
|
var import_retry4 = __toESM(require_retry(), 1);
|
|
24532
24694
|
var import_schema2 = __toESM(require_schema(), 1);
|
|
24533
24695
|
|
|
24534
|
-
//
|
|
24696
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
|
|
24535
24697
|
var import_httpAuthSchemes = __toESM(require_httpAuthSchemes(), 1);
|
|
24536
24698
|
var import_signature_v4_multi_region = __toESM(require_dist_cjs4(), 1);
|
|
24537
24699
|
var import_client2 = __toESM(require_client(), 1);
|
|
24538
24700
|
var import_endpoints3 = __toESM(require_endpoints(), 1);
|
|
24539
24701
|
|
|
24540
|
-
//
|
|
24702
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
|
|
24541
24703
|
var import_client = __toESM(require_client2(), 1);
|
|
24542
24704
|
var import_endpoints2 = __toESM(require_endpoints(), 1);
|
|
24543
24705
|
|
|
24544
|
-
//
|
|
24706
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/bdd.js
|
|
24545
24707
|
var import_endpoints = __toESM(require_endpoints(), 1);
|
|
24546
24708
|
var aw = "ref";
|
|
24547
24709
|
var ax = "argv";
|
|
@@ -26485,7 +26647,7 @@ var nodes = new Int32Array([
|
|
|
26485
26647
|
]);
|
|
26486
26648
|
var bdd = import_endpoints.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
26487
26649
|
|
|
26488
|
-
//
|
|
26650
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/endpointResolver.js
|
|
26489
26651
|
var cache = new import_endpoints2.EndpointCache({
|
|
26490
26652
|
size: 50,
|
|
26491
26653
|
params: [
|
|
@@ -26513,7 +26675,7 @@ var defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
26513
26675
|
};
|
|
26514
26676
|
import_endpoints2.customEndpointFunctions.aws = import_client.awsEndpointFunctions;
|
|
26515
26677
|
|
|
26516
|
-
//
|
|
26678
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js
|
|
26517
26679
|
var createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
26518
26680
|
if (!input) {
|
|
26519
26681
|
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
@@ -26629,11 +26791,11 @@ var resolveHttpAuthSchemeConfig = (config) => {
|
|
|
26629
26791
|
});
|
|
26630
26792
|
};
|
|
26631
26793
|
|
|
26632
|
-
//
|
|
26794
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
|
|
26633
26795
|
var import_client3 = __toESM(require_client(), 1);
|
|
26634
26796
|
var import_endpoints4 = __toESM(require_endpoints(), 1);
|
|
26635
26797
|
|
|
26636
|
-
//
|
|
26798
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/endpoint/EndpointParameters.js
|
|
26637
26799
|
var resolveClientEndpointParameters = (options) => {
|
|
26638
26800
|
return Object.assign(options, {
|
|
26639
26801
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
@@ -26659,7 +26821,7 @@ var commonParams = {
|
|
|
26659
26821
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
26660
26822
|
};
|
|
26661
26823
|
|
|
26662
|
-
//
|
|
26824
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commandBuilder.js
|
|
26663
26825
|
var command = import_client3.makeBuilder(commonParams, "AmazonS3", "S3Client", import_endpoints4.getEndpointPlugin);
|
|
26664
26826
|
var _ep0 = {
|
|
26665
26827
|
Bucket: { type: "contextParams", name: "Bucket" },
|
|
@@ -26691,10 +26853,10 @@ var _mw11 = (Command, cs, config, o2) => [
|
|
|
26691
26853
|
$getSsecPlugin(config)
|
|
26692
26854
|
];
|
|
26693
26855
|
|
|
26694
|
-
//
|
|
26856
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js
|
|
26695
26857
|
var import_schema = __toESM(require_schema(), 1);
|
|
26696
26858
|
|
|
26697
|
-
//
|
|
26859
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js
|
|
26698
26860
|
var import_client4 = __toESM(require_client(), 1);
|
|
26699
26861
|
class S3ServiceException extends import_client4.ServiceException {
|
|
26700
26862
|
constructor(options) {
|
|
@@ -26703,7 +26865,7 @@ class S3ServiceException extends import_client4.ServiceException {
|
|
|
26703
26865
|
}
|
|
26704
26866
|
}
|
|
26705
26867
|
|
|
26706
|
-
//
|
|
26868
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js
|
|
26707
26869
|
class NoSuchUpload extends S3ServiceException {
|
|
26708
26870
|
name = "NoSuchUpload";
|
|
26709
26871
|
$fault = "client";
|
|
@@ -26981,7 +27143,7 @@ class ObjectAlreadyInActiveTierError extends S3ServiceException {
|
|
|
26981
27143
|
}
|
|
26982
27144
|
}
|
|
26983
27145
|
|
|
26984
|
-
//
|
|
27146
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/schemas/schemas_0.js
|
|
26985
27147
|
var _A = "Account";
|
|
26986
27148
|
var _AAO = "AnalyticsAndOperator";
|
|
26987
27149
|
var _AC = "AccelerateConfiguration";
|
|
@@ -32433,10 +32595,10 @@ var WriteGetObjectResponse$ = [
|
|
|
32433
32595
|
() => __Unit
|
|
32434
32596
|
];
|
|
32435
32597
|
|
|
32436
|
-
//
|
|
32598
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commands/CreateSessionCommand.js
|
|
32437
32599
|
class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSession$) {
|
|
32438
32600
|
}
|
|
32439
|
-
//
|
|
32601
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/package.json
|
|
32440
32602
|
var package_default2 = {
|
|
32441
32603
|
name: "@aws-sdk/client-s3",
|
|
32442
32604
|
version: "3.1127.0",
|
|
@@ -32521,15 +32683,15 @@ var package_default2 = {
|
|
|
32521
32683
|
}
|
|
32522
32684
|
};
|
|
32523
32685
|
|
|
32524
|
-
//
|
|
32686
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32525
32687
|
var import_client19 = __toESM(require_client2(), 1);
|
|
32526
32688
|
var import_httpAuthSchemes3 = __toESM(require_httpAuthSchemes(), 1);
|
|
32527
32689
|
|
|
32528
|
-
//
|
|
32690
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
32529
32691
|
init_dist_es();
|
|
32530
32692
|
var import_config27 = __toESM(require_config(), 1);
|
|
32531
32693
|
|
|
32532
|
-
//
|
|
32694
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js
|
|
32533
32695
|
var import_config10 = __toESM(require_config(), 1);
|
|
32534
32696
|
var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
|
|
32535
32697
|
var remoteProvider = async (init) => {
|
|
@@ -32548,7 +32710,7 @@ var remoteProvider = async (init) => {
|
|
|
32548
32710
|
return fromInstanceMetadata2(init);
|
|
32549
32711
|
};
|
|
32550
32712
|
|
|
32551
|
-
//
|
|
32713
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js
|
|
32552
32714
|
function memoizeChain(providers, treatAsExpired) {
|
|
32553
32715
|
const chain2 = internalCreateChain(providers);
|
|
32554
32716
|
let activeLock;
|
|
@@ -32612,7 +32774,7 @@ var internalCreateChain = (providers) => async (awsIdentityProperties) => {
|
|
|
32612
32774
|
throw lastProviderError;
|
|
32613
32775
|
};
|
|
32614
32776
|
|
|
32615
|
-
//
|
|
32777
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+credential-provider-node@3.972.82/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js
|
|
32616
32778
|
var multipleCredentialSourceWarningEmitted = false;
|
|
32617
32779
|
var defaultProvider = (init = {}) => memoizeChain([
|
|
32618
32780
|
async () => {
|
|
@@ -32678,7 +32840,7 @@ var defaultProvider = (init = {}) => memoizeChain([
|
|
|
32678
32840
|
}
|
|
32679
32841
|
], credentialsTreatedAsExpired);
|
|
32680
32842
|
var credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000;
|
|
32681
|
-
//
|
|
32843
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32682
32844
|
var import_checksum2 = __toESM(require_checksum(), 1);
|
|
32683
32845
|
var import_client20 = __toESM(require_client(), 1);
|
|
32684
32846
|
var import_config28 = __toESM(require_config(), 1);
|
|
@@ -32687,7 +32849,7 @@ var import_retry3 = __toESM(require_retry(), 1);
|
|
|
32687
32849
|
var import_serde4 = __toESM(require_serde(), 1);
|
|
32688
32850
|
var import_node_http_handler2 = __toESM(require_dist_cjs6(), 1);
|
|
32689
32851
|
|
|
32690
|
-
//
|
|
32852
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+checksums@3.1000.29/node_modules/@aws-sdk/checksums/dist-cjs/submodules/sha/index.js
|
|
32691
32853
|
var { toUint8Array: toUint8Array2, concatBytes } = require_serde();
|
|
32692
32854
|
var { createHmac: createHmac2, createHash: createHash3 } = __require("crypto");
|
|
32693
32855
|
var { Sha256: Sha2562, Sha256Js, Sha256Node } = require_checksum();
|
|
@@ -32916,7 +33078,7 @@ var subtle = typeof digest === "function" && typeof sign2 === "function" && type
|
|
|
32916
33078
|
var MAX_PENDING_BYTES = 8 * 1024 * 1024;
|
|
32917
33079
|
var $Sha1 = Sha1Node;
|
|
32918
33080
|
|
|
32919
|
-
//
|
|
33081
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js
|
|
32920
33082
|
var import_httpAuthSchemes2 = __toESM(require_httpAuthSchemes(), 1);
|
|
32921
33083
|
var import_signature_v4_multi_region2 = __toESM(require_dist_cjs4(), 1);
|
|
32922
33084
|
var import_checksum = __toESM(require_checksum(), 1);
|
|
@@ -32968,7 +33130,7 @@ var getRuntimeConfig2 = (config) => {
|
|
|
32968
33130
|
};
|
|
32969
33131
|
};
|
|
32970
33132
|
|
|
32971
|
-
//
|
|
33133
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.js
|
|
32972
33134
|
var getRuntimeConfig3 = (config) => {
|
|
32973
33135
|
import_client20.emitWarningIfUnsupportedVersion(process.version);
|
|
32974
33136
|
const defaultsMode = import_config28.resolveDefaultsModeConfig(config);
|
|
@@ -33009,12 +33171,12 @@ var getRuntimeConfig3 = (config) => {
|
|
|
33009
33171
|
};
|
|
33010
33172
|
};
|
|
33011
33173
|
|
|
33012
|
-
//
|
|
33174
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
|
|
33013
33175
|
var import_client21 = __toESM(require_client2(), 1);
|
|
33014
33176
|
var import_client22 = __toESM(require_client(), 1);
|
|
33015
33177
|
var import_protocols5 = __toESM(require_protocols(), 1);
|
|
33016
33178
|
|
|
33017
|
-
//
|
|
33179
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthExtensionConfiguration.js
|
|
33018
33180
|
var getHttpAuthExtensionConfiguration2 = (runtimeConfig) => {
|
|
33019
33181
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
33020
33182
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -33053,14 +33215,14 @@ var resolveHttpAuthRuntimeConfig2 = (config) => {
|
|
|
33053
33215
|
};
|
|
33054
33216
|
};
|
|
33055
33217
|
|
|
33056
|
-
//
|
|
33218
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/runtimeExtensions.js
|
|
33057
33219
|
var resolveRuntimeExtensions2 = (runtimeConfig, extensions) => {
|
|
33058
33220
|
const extensionConfiguration = Object.assign(import_client21.getAwsRegionExtensionConfiguration(runtimeConfig), import_client22.getDefaultExtensionConfiguration(runtimeConfig), import_protocols5.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration2(runtimeConfig));
|
|
33059
33221
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
33060
33222
|
return Object.assign(runtimeConfig, import_client21.resolveAwsRegionExtensionConfiguration(extensionConfiguration), import_client22.resolveDefaultRuntimeConfig(extensionConfiguration), import_protocols5.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig2(extensionConfiguration));
|
|
33061
33223
|
};
|
|
33062
33224
|
|
|
33063
|
-
//
|
|
33225
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/S3Client.js
|
|
33064
33226
|
class S3Client extends import_client24.Client {
|
|
33065
33227
|
config;
|
|
33066
33228
|
constructor(...[configuration]) {
|
|
@@ -33105,15 +33267,15 @@ class S3Client extends import_client24.Client {
|
|
|
33105
33267
|
}
|
|
33106
33268
|
}
|
|
33107
33269
|
|
|
33108
|
-
//
|
|
33270
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commands/DeleteObjectCommand.js
|
|
33109
33271
|
class DeleteObjectCommand extends command(_ep0, _mw0, "DeleteObject", DeleteObject$) {
|
|
33110
33272
|
}
|
|
33111
33273
|
|
|
33112
|
-
//
|
|
33274
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commands/GetObjectCommand.js
|
|
33113
33275
|
class GetObjectCommand extends command(_ep0, _mw7, "GetObject", GetObject$) {
|
|
33114
33276
|
}
|
|
33115
33277
|
|
|
33116
|
-
//
|
|
33278
|
+
// ../../../skills-release-055-20260909/node_modules/.bun/@aws-sdk+client-s3@3.1127.0/node_modules/@aws-sdk/client-s3/dist-es/commands/PutObjectCommand.js
|
|
33117
33279
|
class PutObjectCommand extends command(_ep0, _mw11, "PutObject", PutObject$) {
|
|
33118
33280
|
}
|
|
33119
33281
|
|
|
@@ -34310,10 +34472,16 @@ class SqliteSkillsStore {
|
|
|
34310
34472
|
const orgId = input.principal.orgId;
|
|
34311
34473
|
const now = nowIso();
|
|
34312
34474
|
return this.db.transaction(() => {
|
|
34313
|
-
const previous = this.get("SELECT revision_id, revision_number, bundle_sha256, bundle_byte_size, skill_md, tombstoned_at FROM skills_registry WHERE org_id = ? AND slug = ?", [orgId, input.slug]);
|
|
34475
|
+
const previous = this.get("SELECT revision_id, revision_number, bundle_sha256, bundle_byte_size, skill_md, tombstoned_at, source FROM skills_registry WHERE org_id = ? AND slug = ?", [orgId, input.slug]);
|
|
34314
34476
|
const previousSha = typeof previous?.bundle_sha256 === "string" ? previous.bundle_sha256 : null;
|
|
34315
34477
|
const previousRevisionId = typeof previous?.revision_id === "string" && previous.revision_id ? previous.revision_id : null;
|
|
34316
34478
|
const tombstoned = previous?.tombstoned_at != null;
|
|
34479
|
+
if (input.seedBundledOnly && input.expectedRevisionId && !previous) {
|
|
34480
|
+
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, null);
|
|
34481
|
+
}
|
|
34482
|
+
if (input.seedBundledOnly && previous && (tombstoned || previous.source !== "bundled")) {
|
|
34483
|
+
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, previousRevisionId);
|
|
34484
|
+
}
|
|
34317
34485
|
const carriedSkillMd = typeof input.skillMd === "string" ? input.skillMd : typeof previous?.skill_md === "string" ? previous.skill_md : null;
|
|
34318
34486
|
if (previous && !tombstoned && input.expectedRevisionId !== previousRevisionId) {
|
|
34319
34487
|
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, previousRevisionId);
|
|
@@ -34387,8 +34555,9 @@ class SqliteSkillsStore {
|
|
|
34387
34555
|
tombstoned_at = NULL,
|
|
34388
34556
|
tombstone_purge_after = NULL,
|
|
34389
34557
|
updated_at = excluded.updated_at
|
|
34390
|
-
WHERE skills_registry.tombstoned_at IS NOT NULL
|
|
34391
|
-
|
|
34558
|
+
WHERE (skills_registry.tombstoned_at IS NOT NULL OR skills_registry.revision_id = ?)
|
|
34559
|
+
AND (? = 0 OR (skills_registry.tombstoned_at IS NULL AND skills_registry.source = 'bundled'
|
|
34560
|
+
AND skills_registry.revision_id = ?))
|
|
34392
34561
|
RETURNING *`, [
|
|
34393
34562
|
orgId,
|
|
34394
34563
|
input.slug,
|
|
@@ -34406,6 +34575,8 @@ class SqliteSkillsStore {
|
|
|
34406
34575
|
revisionId,
|
|
34407
34576
|
now,
|
|
34408
34577
|
now,
|
|
34578
|
+
input.expectedRevisionId ?? NO_REVISION_SENTINEL,
|
|
34579
|
+
input.seedBundledOnly ? 1 : 0,
|
|
34409
34580
|
input.expectedRevisionId ?? NO_REVISION_SENTINEL
|
|
34410
34581
|
]);
|
|
34411
34582
|
if (!row) {
|
|
@@ -36713,6 +36884,12 @@ async function storePublishedSkill(store, artifactStorage, principal, parsed, ex
|
|
|
36713
36884
|
principal,
|
|
36714
36885
|
...expectedRevisionId ? { expectedRevisionId } : {}
|
|
36715
36886
|
};
|
|
36887
|
+
if (input.seedBundledOnly && expectedRevisionId && !current) {
|
|
36888
|
+
throw new SkillRevisionConflictError(input.slug, expectedRevisionId, null);
|
|
36889
|
+
}
|
|
36890
|
+
if (input.seedBundledOnly && current && (current.tombstonedAt || current.source !== "bundled")) {
|
|
36891
|
+
throw new SkillRevisionConflictError(input.slug, expectedRevisionId, current.revisionId);
|
|
36892
|
+
}
|
|
36716
36893
|
if (current && !current.tombstonedAt && expectedRevisionId !== current.revisionId) {
|
|
36717
36894
|
throw new SkillRevisionConflictError(input.slug, expectedRevisionId, current.revisionId);
|
|
36718
36895
|
}
|
|
@@ -36962,6 +37139,15 @@ async function seedBundledCorpus(options) {
|
|
|
36962
37139
|
result.skipped.push(slug);
|
|
36963
37140
|
continue;
|
|
36964
37141
|
}
|
|
37142
|
+
const current = await options.store.getSkill(options.principal, slug);
|
|
37143
|
+
if (current) {
|
|
37144
|
+
const previousVersion = current.version ? await options.store.getSkillVersion(options.principal, slug, current.version) : null;
|
|
37145
|
+
const provenance = previousVersion?.manifest.provenance;
|
|
37146
|
+
if (current.tombstonedAt || current.source !== "bundled" || provenance?.seededFrom !== "bundled-corpus" || provenance.seededRevisionId !== current.revisionId) {
|
|
37147
|
+
result.skipped.push(slug);
|
|
37148
|
+
continue;
|
|
37149
|
+
}
|
|
37150
|
+
}
|
|
36965
37151
|
const dir = getSkillPath(slug);
|
|
36966
37152
|
if (!existsSync11(dir)) {
|
|
36967
37153
|
result.skipped.push(slug);
|
|
@@ -36971,32 +37157,40 @@ async function seedBundledCorpus(options) {
|
|
|
36971
37157
|
const packed = packSkillBundle(dir, { maxUnpackedBytes: 50000000 });
|
|
36972
37158
|
const skillMdPath = join14(dir, "SKILL.md");
|
|
36973
37159
|
const skillMd = existsSync11(skillMdPath) ? readFileSync11(skillMdPath, "utf-8") : undefined;
|
|
36974
|
-
const
|
|
37160
|
+
const content = {
|
|
37161
|
+
slug,
|
|
37162
|
+
displayName: manifest.displayName ?? skill.displayName ?? slug,
|
|
37163
|
+
description: manifest.description ?? skill.description ?? slug,
|
|
37164
|
+
category: manifest.category ?? skill.category ?? "Development Tools",
|
|
37165
|
+
tags: manifest.tags ?? skill.tags ?? [],
|
|
37166
|
+
source: "bundled",
|
|
37167
|
+
kind: manifest.kind ?? "instruction",
|
|
37168
|
+
version: version2,
|
|
37169
|
+
...skillMd ? { skillMd } : {},
|
|
37170
|
+
bundleSha256: packed.sha256,
|
|
37171
|
+
bundleByteSize: packed.bytes.byteLength
|
|
37172
|
+
};
|
|
36975
37173
|
const { record } = await storePublishedSkill(options.store, options.artifactStorage, options.principal, {
|
|
36976
37174
|
input: {
|
|
36977
|
-
|
|
36978
|
-
|
|
36979
|
-
description: manifest.description ?? skill.description ?? slug,
|
|
36980
|
-
category: manifest.category ?? skill.category ?? "Development Tools",
|
|
36981
|
-
tags: manifest.tags ?? skill.tags ?? [],
|
|
36982
|
-
source: "bundled",
|
|
36983
|
-
kind: manifest.kind ?? "instruction",
|
|
36984
|
-
version: version2,
|
|
36985
|
-
...skillMd ? { skillMd } : {},
|
|
37175
|
+
...content,
|
|
37176
|
+
seedBundledOnly: true,
|
|
36986
37177
|
bundle: { sha256: packed.sha256, byteSize: packed.bytes.byteLength, contentType: "application/gzip", storageKind: "db" },
|
|
36987
37178
|
versionManifest: {
|
|
36988
37179
|
files: packed.paths,
|
|
36989
37180
|
fileCount: packed.fileCount,
|
|
36990
37181
|
unpackedByteSize: packed.unpackedByteSize,
|
|
36991
37182
|
bundleSha256: packed.sha256,
|
|
36992
|
-
provenance: { seededFrom: "bundled-corpus", packageVersion: package_default.version }
|
|
37183
|
+
provenance: { seededFrom: "bundled-corpus", packageVersion: package_default.version, seededRevisionId: revisionIdOfRecord(content) }
|
|
36993
37184
|
}
|
|
36994
37185
|
},
|
|
36995
37186
|
bundleBytes: packed.bytes
|
|
36996
37187
|
}, current?.revisionId);
|
|
36997
37188
|
result.seeded.push(`${record.slug}@${version2}`);
|
|
36998
37189
|
} catch (error) {
|
|
36999
|
-
|
|
37190
|
+
if (error instanceof SkillRevisionConflictError)
|
|
37191
|
+
result.skipped.push(slug);
|
|
37192
|
+
else
|
|
37193
|
+
result.failed.push({ slug, error: error.message });
|
|
37000
37194
|
}
|
|
37001
37195
|
}
|
|
37002
37196
|
log(`skills: bundled corpus seed v${version2}: ${result.seeded.length} seeded, ${result.skipped.length} skipped, ${result.failed.length} failed`);
|
|
@@ -37206,6 +37400,12 @@ class MemorySkillsStore {
|
|
|
37206
37400
|
const key = skillKey(input.principal.orgId, input.slug);
|
|
37207
37401
|
const now = nowIso();
|
|
37208
37402
|
const previous = this.skills.get(key);
|
|
37403
|
+
if (input.seedBundledOnly && input.expectedRevisionId && !previous) {
|
|
37404
|
+
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, null);
|
|
37405
|
+
}
|
|
37406
|
+
if (input.seedBundledOnly && previous && (previous.tombstonedAt || previous.source !== "bundled")) {
|
|
37407
|
+
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, previous.revisionId);
|
|
37408
|
+
}
|
|
37209
37409
|
if (previous && !previous.tombstonedAt && input.expectedRevisionId !== previous.revisionId) {
|
|
37210
37410
|
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, previous.revisionId);
|
|
37211
37411
|
}
|
|
@@ -37659,13 +37859,19 @@ class PostgresSkillsStore {
|
|
|
37659
37859
|
const orgId = input.principal.orgId;
|
|
37660
37860
|
return await this.sql.begin(async (tx) => {
|
|
37661
37861
|
const previousRows = await tx`
|
|
37662
|
-
SELECT revision_id, revision_number, bundle_sha256, bundle_byte_size, skill_md, tombstoned_at
|
|
37862
|
+
SELECT revision_id, revision_number, bundle_sha256, bundle_byte_size, skill_md, tombstoned_at, source
|
|
37663
37863
|
FROM skills_registry WHERE org_id = ${orgId} AND slug = ${input.slug} LIMIT 1
|
|
37664
37864
|
`;
|
|
37665
37865
|
const previous = previousRows[0];
|
|
37666
37866
|
const previousSha = typeof previous?.bundle_sha256 === "string" ? String(previous.bundle_sha256) : null;
|
|
37667
37867
|
const previousRevisionId = typeof previous?.revision_id === "string" && previous.revision_id ? String(previous.revision_id) : null;
|
|
37668
37868
|
const tombstoned = previous?.tombstoned_at != null;
|
|
37869
|
+
if (input.seedBundledOnly && input.expectedRevisionId && !previous) {
|
|
37870
|
+
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, null);
|
|
37871
|
+
}
|
|
37872
|
+
if (input.seedBundledOnly && previous && (tombstoned || previous.source !== "bundled")) {
|
|
37873
|
+
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, previousRevisionId);
|
|
37874
|
+
}
|
|
37669
37875
|
const carriedSkillMd = typeof input.skillMd === "string" ? input.skillMd : typeof previous?.skill_md === "string" ? String(previous.skill_md) : null;
|
|
37670
37876
|
if (previous && !tombstoned && input.expectedRevisionId !== previousRevisionId) {
|
|
37671
37877
|
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, previousRevisionId);
|
|
@@ -37706,6 +37912,12 @@ class PostgresSkillsStore {
|
|
|
37706
37912
|
body_blob = EXCLUDED.body_blob
|
|
37707
37913
|
`;
|
|
37708
37914
|
}
|
|
37915
|
+
if (input.seedBundledOnly) {
|
|
37916
|
+
const seedRows = await tx`SELECT revision_id FROM skills_registry WHERE org_id = ${orgId} AND slug = ${input.slug} FOR UPDATE`;
|
|
37917
|
+
if (input.expectedRevisionId && !seedRows[0]) {
|
|
37918
|
+
throw new SkillRevisionConflictError(input.slug, input.expectedRevisionId, null);
|
|
37919
|
+
}
|
|
37920
|
+
}
|
|
37709
37921
|
const rows = await tx`
|
|
37710
37922
|
INSERT INTO skills_registry (org_id, slug, display_name, description, category, tags_json, source, kind, version, skill_md,
|
|
37711
37923
|
bundle_sha256, bundle_byte_size, published_by_user_id, revision_id, revision_number, updated_at)
|
|
@@ -37734,8 +37946,11 @@ class PostgresSkillsStore {
|
|
|
37734
37946
|
tombstoned_at = NULL,
|
|
37735
37947
|
tombstone_purge_after = NULL,
|
|
37736
37948
|
updated_at = EXCLUDED.updated_at
|
|
37737
|
-
WHERE skills_registry.tombstoned_at IS NOT NULL
|
|
37738
|
-
OR skills_registry.revision_id = ${input.expectedRevisionId ?? NO_REVISION_SENTINEL2}
|
|
37949
|
+
WHERE (skills_registry.tombstoned_at IS NOT NULL
|
|
37950
|
+
OR skills_registry.revision_id = ${input.expectedRevisionId ?? NO_REVISION_SENTINEL2})
|
|
37951
|
+
AND (NOT ${Boolean(input.seedBundledOnly)} OR
|
|
37952
|
+
(skills_registry.tombstoned_at IS NULL AND skills_registry.source = 'bundled'
|
|
37953
|
+
AND skills_registry.revision_id = ${input.expectedRevisionId ?? NO_REVISION_SENTINEL2}))
|
|
37739
37954
|
RETURNING *
|
|
37740
37955
|
`;
|
|
37741
37956
|
if (!rows[0]) {
|
|
@@ -38150,6 +38365,15 @@ async function createSkillsFetchHandler(options = {}) {
|
|
|
38150
38365
|
}
|
|
38151
38366
|
return async function fetch(request) {
|
|
38152
38367
|
const url = new URL(request.url);
|
|
38368
|
+
const versionedAliases = {
|
|
38369
|
+
"/v1/health": "/health",
|
|
38370
|
+
"/v1/auth/whoami": "/api/auth/whoami"
|
|
38371
|
+
};
|
|
38372
|
+
const alias = versionedAliases[url.pathname] ?? (url.pathname === "/v1" || url.pathname.startsWith("/v1/") ? `/api${url.pathname}` : undefined);
|
|
38373
|
+
if (alias) {
|
|
38374
|
+
url.pathname = alias;
|
|
38375
|
+
request = new Request(url, request);
|
|
38376
|
+
}
|
|
38153
38377
|
const segments = pathSegments(url.pathname);
|
|
38154
38378
|
try {
|
|
38155
38379
|
if (request.method === "GET" && url.pathname === "/health") {
|