@hasna/skills 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +525 -585
- package/bin/mcp.js +376 -323
- package/bin/migrate.js +1 -164
- package/bin/server.js +58 -220
- package/bin/worker.js +97 -258
- package/dist/admin-contract.js +168 -166
- package/dist/index.d.ts +1 -1
- package/dist/index.js +448 -365
- package/dist/lib/remote-client.d.ts +7 -0
- package/dist/lib/remote-quote-errors.d.ts +12 -0
- package/dist/sdk/index.d.ts +2 -1
- package/dist/sdk/index.js +401 -301
- package/dist/storage.js +35 -33
- package/package.json +1 -1
package/bin/server.js
CHANGED
|
@@ -20,12 +20,14 @@ 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
|
-
|
|
23
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
24
|
+
for (let key of __getOwnPropNames(mod))
|
|
25
|
+
if (!__hasOwnProp.call(to, key))
|
|
26
|
+
__defProp(to, key, {
|
|
27
|
+
get: __accessProp.bind(mod, key),
|
|
28
|
+
enumerable: true
|
|
29
|
+
});
|
|
30
|
+
}
|
|
29
31
|
if (canCache)
|
|
30
32
|
cache.set(mod, to);
|
|
31
33
|
return to;
|
|
@@ -48,7 +50,7 @@ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
|
48
50
|
var __require = import.meta.require;
|
|
49
51
|
|
|
50
52
|
// ../../node_modules/.bun/@smithy+types@4.18.0/node_modules/@smithy/types/dist-cjs/index.js
|
|
51
|
-
var require_dist_cjs = __commonJS((exports)
|
|
53
|
+
var require_dist_cjs = __commonJS(function(exports) {
|
|
52
54
|
var HttpAuthLocation;
|
|
53
55
|
(function(HttpAuthLocation2) {
|
|
54
56
|
HttpAuthLocation2["HEADER"] = "header";
|
|
@@ -139,7 +141,7 @@ var require_dist_cjs = __commonJS((exports) => {
|
|
|
139
141
|
});
|
|
140
142
|
|
|
141
143
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js
|
|
142
|
-
var require_transport = __commonJS((exports)
|
|
144
|
+
var require_transport = __commonJS(function(exports) {
|
|
143
145
|
var { SMITHY_CONTEXT_KEY } = require_dist_cjs();
|
|
144
146
|
var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
|
|
145
147
|
function hasOwn(o, k) {
|
|
@@ -312,7 +314,7 @@ var require_transport = __commonJS((exports) => {
|
|
|
312
314
|
});
|
|
313
315
|
|
|
314
316
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js
|
|
315
|
-
var require_schema = __commonJS((exports)
|
|
317
|
+
var require_schema = __commonJS(function(exports) {
|
|
316
318
|
var { getSmithyContext, HttpResponse, toEndpointV1 } = require_transport();
|
|
317
319
|
var deref = (schemaRef) => {
|
|
318
320
|
if (typeof schemaRef === "function") {
|
|
@@ -981,7 +983,7 @@ var require_schema = __commonJS((exports) => {
|
|
|
981
983
|
});
|
|
982
984
|
|
|
983
985
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/client/index.js
|
|
984
|
-
var require_client = __commonJS((exports)
|
|
986
|
+
var require_client = __commonJS(function(exports) {
|
|
985
987
|
var { hasOwn } = require_transport();
|
|
986
988
|
var { getSmithyContext, normalizeProvider } = require_transport();
|
|
987
989
|
exports.getSmithyContext = getSmithyContext;
|
|
@@ -2061,7 +2063,7 @@ var require_client = __commonJS((exports) => {
|
|
|
2061
2063
|
});
|
|
2062
2064
|
|
|
2063
2065
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/config/index.js
|
|
2064
|
-
var require_config = __commonJS((exports)
|
|
2066
|
+
var require_config = __commonJS(function(exports) {
|
|
2065
2067
|
var { homedir } = __require("os");
|
|
2066
2068
|
var { sep, join: join2 } = __require("path");
|
|
2067
2069
|
var { createHash: createHash2 } = __require("crypto");
|
|
@@ -2756,7 +2758,7 @@ var require_config = __commonJS((exports) => {
|
|
|
2756
2758
|
});
|
|
2757
2759
|
|
|
2758
2760
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js
|
|
2759
|
-
var require_endpoints = __commonJS((exports)
|
|
2761
|
+
var require_endpoints = __commonJS(function(exports) {
|
|
2760
2762
|
var { CONFIG_PREFIX_SEPARATOR, booleanSelector, SelectorType, loadConfig } = require_config();
|
|
2761
2763
|
var { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel, hasOwn } = require_transport();
|
|
2762
2764
|
exports.isValidHostLabel = isValidHostLabel;
|
|
@@ -3570,7 +3572,7 @@ var require_endpoints = __commonJS((exports) => {
|
|
|
3570
3572
|
});
|
|
3571
3573
|
|
|
3572
3574
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js
|
|
3573
|
-
var require_serde = __commonJS((exports)
|
|
3575
|
+
var require_serde = __commonJS(function(exports) {
|
|
3574
3576
|
var { createHmac: createHmac2, createHash: createHash2, getRandomValues } = __require("crypto");
|
|
3575
3577
|
var { hasOwn, HttpResponse } = require_transport();
|
|
3576
3578
|
exports.hasOwn = hasOwn;
|
|
@@ -5211,7 +5213,7 @@ ${value}\r
|
|
|
5211
5213
|
});
|
|
5212
5214
|
|
|
5213
5215
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js
|
|
5214
|
-
var require_checksum = __commonJS((exports)
|
|
5216
|
+
var require_checksum = __commonJS(function(exports) {
|
|
5215
5217
|
var { createReadStream } = __require("fs");
|
|
5216
5218
|
var { Writable } = __require("stream");
|
|
5217
5219
|
var { toUint8Array, concatBytes } = require_serde();
|
|
@@ -5827,7 +5829,7 @@ var require_checksum = __commonJS((exports) => {
|
|
|
5827
5829
|
});
|
|
5828
5830
|
|
|
5829
5831
|
// ../../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)
|
|
5832
|
+
var require_event_streams = __commonJS(function(exports) {
|
|
5831
5833
|
var { Crc32 } = require_checksum();
|
|
5832
5834
|
var { hasOwn } = require_transport();
|
|
5833
5835
|
var { toHex, fromHex, toUtf8, fromUtf8 } = require_serde();
|
|
@@ -6719,7 +6721,7 @@ var require_event_streams = __commonJS((exports) => {
|
|
|
6719
6721
|
});
|
|
6720
6722
|
|
|
6721
6723
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js
|
|
6722
|
-
var require_protocols = __commonJS((exports)
|
|
6724
|
+
var require_protocols = __commonJS(function(exports) {
|
|
6723
6725
|
var { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = require_serde();
|
|
6724
6726
|
var { HttpRequest, HttpResponse, hasOwn, isValidHostname } = require_transport();
|
|
6725
6727
|
var { parseQueryString, parseUrl } = require_transport();
|
|
@@ -7723,7 +7725,7 @@ var require_protocols = __commonJS((exports) => {
|
|
|
7723
7725
|
});
|
|
7724
7726
|
|
|
7725
7727
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js
|
|
7726
|
-
var require_retry = __commonJS((exports)
|
|
7728
|
+
var require_retry = __commonJS(function(exports) {
|
|
7727
7729
|
var { Readable } = __require("stream");
|
|
7728
7730
|
var { NoOpLogger, normalizeProvider } = require_client();
|
|
7729
7731
|
var { HttpResponse, HttpRequest } = require_protocols();
|
|
@@ -8523,7 +8525,7 @@ var require_retry = __commonJS((exports) => {
|
|
|
8523
8525
|
});
|
|
8524
8526
|
|
|
8525
8527
|
// ../../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)
|
|
8528
|
+
var require_invoke_store = __commonJS(function(exports) {
|
|
8527
8529
|
var PROTECTED_KEYS = {
|
|
8528
8530
|
REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
|
|
8529
8531
|
X_RAY_TRACE_ID: Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),
|
|
@@ -8652,7 +8654,7 @@ var require_invoke_store = __commonJS((exports) => {
|
|
|
8652
8654
|
});
|
|
8653
8655
|
|
|
8654
8656
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/index.js
|
|
8655
|
-
var require_dist_cjs2 = __commonJS((exports)
|
|
8657
|
+
var require_dist_cjs2 = __commonJS(function(exports) {
|
|
8656
8658
|
var { getSmithyContext, hasOwn } = require_transport();
|
|
8657
8659
|
exports.getSmithyContext = getSmithyContext;
|
|
8658
8660
|
var { HttpRequest } = require_protocols();
|
|
@@ -8980,7 +8982,7 @@ var require_dist_cjs2 = __commonJS((exports) => {
|
|
|
8980
8982
|
});
|
|
8981
8983
|
|
|
8982
8984
|
// ../../node_modules/.bun/bowser@2.14.1/node_modules/bowser/es5.js
|
|
8983
|
-
var require_es5 = __commonJS((exports, module)
|
|
8985
|
+
var require_es5 = __commonJS(function(exports, module) {
|
|
8984
8986
|
(function(e, t) {
|
|
8985
8987
|
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();
|
|
8986
8988
|
})(exports, function() {
|
|
@@ -9820,7 +9822,7 @@ var require_es5 = __commonJS((exports, module) => {
|
|
|
9820
9822
|
});
|
|
9821
9823
|
|
|
9822
9824
|
// ../../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)
|
|
9825
|
+
var require_client2 = __commonJS(function(exports) {
|
|
9824
9826
|
var { Retry, RETRY_MODES } = require_retry();
|
|
9825
9827
|
var { HttpRequest, parseUrl } = require_protocols();
|
|
9826
9828
|
var { InvokeStore } = require_invoke_store();
|
|
@@ -10758,7 +10760,7 @@ More information can be found at: https://a.co/c895JFp`);
|
|
|
10758
10760
|
});
|
|
10759
10761
|
|
|
10760
10762
|
// ../../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)
|
|
10763
|
+
var require_crc = __commonJS(function(exports) {
|
|
10762
10764
|
var { Crc32, Crc32Js, Crc32Node } = require_checksum();
|
|
10763
10765
|
exports.Crc32 = Crc32;
|
|
10764
10766
|
exports.Crc32Js = Crc32Js;
|
|
@@ -10915,7 +10917,7 @@ var require_crc = __commonJS((exports) => {
|
|
|
10915
10917
|
});
|
|
10916
10918
|
|
|
10917
10919
|
// ../../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)
|
|
10920
|
+
var require_dist_cjs3 = __commonJS(function(exports) {
|
|
10919
10921
|
var { hasOwn, fromUtf8, fromHex, toHex, toUint8Array: toUint8Array2, isArrayBuffer: isArrayBuffer2 } = require_serde();
|
|
10920
10922
|
var { normalizeProvider: normalizeProvider2 } = require_client();
|
|
10921
10923
|
var { escapeUri, HttpRequest: HttpRequest2 } = require_protocols();
|
|
@@ -11467,7 +11469,7 @@ ${toHex(hashedRequest)}`;
|
|
|
11467
11469
|
});
|
|
11468
11470
|
|
|
11469
11471
|
// ../../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)
|
|
11472
|
+
var require_dist_cjs4 = __commonJS(function(exports) {
|
|
11471
11473
|
var { SignatureV4, signatureV4aContainer } = require_dist_cjs3();
|
|
11472
11474
|
var signatureV4CrtContainer = {
|
|
11473
11475
|
CrtSignerV4: null
|
|
@@ -11599,7 +11601,7 @@ var require_dist_cjs4 = __commonJS((exports) => {
|
|
|
11599
11601
|
});
|
|
11600
11602
|
|
|
11601
11603
|
// ../../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)
|
|
11604
|
+
var require_util = __commonJS(function(exports) {
|
|
11603
11605
|
var { buildQueryString } = require_protocols();
|
|
11604
11606
|
var validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
|
|
11605
11607
|
var parse = (arn) => {
|
|
@@ -11657,7 +11659,7 @@ var require_util = __commonJS((exports) => {
|
|
|
11657
11659
|
});
|
|
11658
11660
|
|
|
11659
11661
|
// ../../node_modules/.bun/@smithy+core@3.33.3/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
|
|
11660
|
-
var require_cbor = __commonJS((exports)
|
|
11662
|
+
var require_cbor = __commonJS(function(exports) {
|
|
11661
11663
|
var { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require_serde();
|
|
11662
11664
|
var { hasOwn, getSmithyContext } = require_transport();
|
|
11663
11665
|
var { HttpRequest: HttpRequest2, collectBody, SerdeContext, RpcProtocol } = require_protocols();
|
|
@@ -14107,7 +14109,7 @@ var require_cbor = __commonJS((exports) => {
|
|
|
14107
14109
|
});
|
|
14108
14110
|
|
|
14109
14111
|
// ../../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)
|
|
14112
|
+
var require_dist_cjs5 = __commonJS(function(exports) {
|
|
14111
14113
|
var ATTR_ESCAPE_RE = /[&<>"]/g;
|
|
14112
14114
|
var ATTR_ESCAPE_MAP = {
|
|
14113
14115
|
"&": "&",
|
|
@@ -14475,7 +14477,7 @@ var require_dist_cjs5 = __commonJS((exports) => {
|
|
|
14475
14477
|
});
|
|
14476
14478
|
|
|
14477
14479
|
// ../../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)
|
|
14480
|
+
var require_protocols2 = __commonJS(function(exports) {
|
|
14479
14481
|
var { SmithyRpcV2CborProtocol, loadSmithyRpcV2CborErrorCode } = require_cbor();
|
|
14480
14482
|
var { TypeRegistry, NormalizedSchema, deref } = require_schema();
|
|
14481
14483
|
var { decorateServiceException, getValueFromTextNode } = require_client();
|
|
@@ -17316,7 +17318,7 @@ var require_protocols2 = __commonJS((exports) => {
|
|
|
17316
17318
|
});
|
|
17317
17319
|
|
|
17318
17320
|
// ../../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)
|
|
17321
|
+
var require_httpAuthSchemes = __commonJS(function(exports) {
|
|
17320
17322
|
var { ProviderError, booleanSelector: booleanSelector2, SelectorType: SelectorType3, loadConfig } = require_config();
|
|
17321
17323
|
var { setCredentialFeature } = require_client2();
|
|
17322
17324
|
var { normalizeProvider: normalizeProvider2, memoizeIdentityProvider, isIdentityExpired, doesIdentityRequireRefresh } = require_dist_cjs2();
|
|
@@ -17676,13 +17678,13 @@ var init_fromEnv = __esm(() => {
|
|
|
17676
17678
|
// ../../node_modules/.bun/@aws-sdk+credential-provider-env@3.972.70/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js
|
|
17677
17679
|
var exports_dist_es = {};
|
|
17678
17680
|
__export(exports_dist_es, {
|
|
17679
|
-
|
|
17680
|
-
ENV_SESSION: () => ENV_SESSION,
|
|
17681
|
-
ENV_SECRET: () => ENV_SECRET,
|
|
17682
|
-
ENV_KEY: () => ENV_KEY,
|
|
17683
|
-
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
|
17681
|
+
ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID,
|
|
17684
17682
|
ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
|
|
17685
|
-
|
|
17683
|
+
ENV_EXPIRATION: () => ENV_EXPIRATION,
|
|
17684
|
+
ENV_KEY: () => ENV_KEY,
|
|
17685
|
+
ENV_SECRET: () => ENV_SECRET,
|
|
17686
|
+
ENV_SESSION: () => ENV_SESSION,
|
|
17687
|
+
fromEnv: () => fromEnv
|
|
17686
17688
|
});
|
|
17687
17689
|
var init_dist_es = __esm(() => {
|
|
17688
17690
|
init_fromEnv();
|
|
@@ -18066,17 +18068,17 @@ var init_fromInstanceMetadata = __esm(() => {
|
|
|
18066
18068
|
// ../../node_modules/.bun/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/index.js
|
|
18067
18069
|
var exports_dist_es2 = {};
|
|
18068
18070
|
__export(exports_dist_es2, {
|
|
18069
|
-
|
|
18070
|
-
httpRequest: () => httpRequest,
|
|
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,
|
|
18071
|
+
DEFAULT_MAX_RETRIES: () => DEFAULT_MAX_RETRIES,
|
|
18078
18072
|
DEFAULT_TIMEOUT: () => DEFAULT_TIMEOUT,
|
|
18079
|
-
|
|
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,
|
|
18080
|
+
httpRequest: () => httpRequest,
|
|
18081
|
+
providerConfigFromInit: () => providerConfigFromInit
|
|
18080
18082
|
});
|
|
18081
18083
|
var init_dist_es2 = __esm(() => {
|
|
18082
18084
|
init_fromContainerMetadata();
|
|
@@ -18087,7 +18089,7 @@ var init_dist_es2 = __esm(() => {
|
|
|
18087
18089
|
});
|
|
18088
18090
|
|
|
18089
18091
|
// ../../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)
|
|
18092
|
+
var require_dist_cjs6 = __commonJS(function(exports) {
|
|
18091
18093
|
var { hasOwn } = require_serde();
|
|
18092
18094
|
var { streamCollector } = require_serde();
|
|
18093
18095
|
exports.streamCollector = streamCollector;
|
|
@@ -19094,7 +19096,7 @@ var init_constants = __esm(() => {
|
|
|
19094
19096
|
});
|
|
19095
19097
|
|
|
19096
19098
|
// ../../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)
|
|
19099
|
+
var require_sso_oidc = __commonJS(function(exports) {
|
|
19098
19100
|
var { awsEndpointFunctions: awsEndpointFunctions2, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client2();
|
|
19099
19101
|
var { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require_dist_cjs2();
|
|
19100
19102
|
var { normalizeProvider: normalizeProvider3, getSmithyContext: getSmithyContext3, ServiceException, NoOpLogger: NoOpLogger2, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder: makeBuilder2, createAggregatedClient } = require_client();
|
|
@@ -20446,8 +20448,8 @@ var init_sso = __esm(() => {
|
|
|
20446
20448
|
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js
|
|
20447
20449
|
var exports_loadSso = {};
|
|
20448
20450
|
__export(exports_loadSso, {
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
+
GetRoleCredentialsCommand: () => $GetRoleCredentialsCommand,
|
|
20452
|
+
SSOClient: () => $SSOClient
|
|
20451
20453
|
});
|
|
20452
20454
|
var init_loadSso = __esm(() => {
|
|
20453
20455
|
init_sso();
|
|
@@ -20640,9 +20642,9 @@ var init_fromSSO = __esm(() => {
|
|
|
20640
20642
|
// ../../node_modules/.bun/@aws-sdk+credential-provider-sso@3.973.14/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js
|
|
20641
20643
|
var exports_dist_es4 = {};
|
|
20642
20644
|
__export(exports_dist_es4, {
|
|
20643
|
-
|
|
20645
|
+
fromSSO: () => fromSSO,
|
|
20644
20646
|
isSsoProfile: () => isSsoProfile,
|
|
20645
|
-
|
|
20647
|
+
validateSsoProfile: () => validateSsoProfile
|
|
20646
20648
|
});
|
|
20647
20649
|
var init_dist_es5 = __esm(() => {
|
|
20648
20650
|
init_fromSSO();
|
|
@@ -20681,7 +20683,7 @@ var init_resolveCredentialSource = __esm(() => {
|
|
|
20681
20683
|
});
|
|
20682
20684
|
|
|
20683
20685
|
// ../../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)
|
|
20686
|
+
var require_sts = __commonJS(function(exports) {
|
|
20685
20687
|
var { awsEndpointFunctions: awsEndpointFunctions3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$12, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2, setCredentialFeature: setCredentialFeature5, stsRegionDefaultResolver } = require_client2();
|
|
20686
20688
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
20687
20689
|
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();
|
|
@@ -21771,7 +21773,7 @@ var init_resolveAssumeRoleCredentials = __esm(() => {
|
|
|
21771
21773
|
});
|
|
21772
21774
|
|
|
21773
21775
|
// ../../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)
|
|
21776
|
+
var require_signin = __commonJS(function(exports) {
|
|
21775
21777
|
var { awsEndpointFunctions: awsEndpointFunctions3, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$12, createDefaultUserAgentProvider: createDefaultUserAgentProvider2, NODE_APP_ID_CONFIG_OPTIONS: NODE_APP_ID_CONFIG_OPTIONS2, getAwsRegionExtensionConfiguration: getAwsRegionExtensionConfiguration2, resolveAwsRegionExtensionConfiguration: resolveAwsRegionExtensionConfiguration2, resolveUserAgentConfig: resolveUserAgentConfig2, resolveHostHeaderConfig: resolveHostHeaderConfig2, getUserAgentPlugin: getUserAgentPlugin2, getHostHeaderPlugin: getHostHeaderPlugin2, getLoggerPlugin: getLoggerPlugin2, getRecursionDetectionPlugin: getRecursionDetectionPlugin2 } = require_client2();
|
|
21776
21778
|
var { NoAuthSigner: NoAuthSigner2, getHttpAuthSchemeEndpointRuleSetPlugin: getHttpAuthSchemeEndpointRuleSetPlugin2, DefaultIdentityProviderConfig: DefaultIdentityProviderConfig2, getHttpSigningPlugin: getHttpSigningPlugin2 } = require_dist_cjs2();
|
|
21777
21779
|
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();
|
|
@@ -23014,8 +23016,8 @@ var init_fromTokenFile = __esm(() => {
|
|
|
23014
23016
|
// ../../node_modules/.bun/@aws-sdk+credential-provider-web-identity@3.972.76/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js
|
|
23015
23017
|
var exports_dist_es7 = {};
|
|
23016
23018
|
__export(exports_dist_es7, {
|
|
23017
|
-
|
|
23018
|
-
|
|
23019
|
+
fromTokenFile: () => fromTokenFile,
|
|
23020
|
+
fromWebToken: () => fromWebToken
|
|
23019
23021
|
});
|
|
23020
23022
|
var init_dist_es8 = __esm(() => {
|
|
23021
23023
|
init_fromTokenFile();
|
|
@@ -23100,7 +23102,7 @@ var init_dist_es9 = __esm(() => {
|
|
|
23100
23102
|
// package.json
|
|
23101
23103
|
var package_default = {
|
|
23102
23104
|
name: "@hasna/skills",
|
|
23103
|
-
version: "0.5.
|
|
23105
|
+
version: "0.5.4",
|
|
23104
23106
|
description: "Skills library for AI coding agents",
|
|
23105
23107
|
type: "module",
|
|
23106
23108
|
bin: {
|
|
@@ -23232,40 +23234,6 @@ import { createHmac, timingSafeEqual } from "crypto";
|
|
|
23232
23234
|
import { createHash } from "crypto";
|
|
23233
23235
|
import { readFileSync, readdirSync, statSync } from "fs";
|
|
23234
23236
|
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
|
|
23269
23237
|
var BLOCK = 512;
|
|
23270
23238
|
var ANY_SEGMENT_EXCLUDES = new Set([
|
|
23271
23239
|
".git",
|
|
@@ -23546,136 +23514,6 @@ var SKILL_BUNDLE_INSPECTION_LIMITS = Object.freeze({
|
|
|
23546
23514
|
timeoutMs: 5000
|
|
23547
23515
|
});
|
|
23548
23516
|
|
|
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
|
-
|
|
23679
23517
|
// src/lib/skill-bundles.ts
|
|
23680
23518
|
var SIGNATURE_PREFIX = "hmac-sha256:";
|
|
23681
23519
|
function signBundleBytes(bytes, key) {
|