@introspection-ai/recipes 0.61.0 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/documents/module.d.ts.map +1 -1
- package/dist/documents/module.js +2 -3
- package/dist/documents/module.js.map +1 -1
- package/dist/issues/module.d.ts.map +1 -1
- package/dist/issues/module.js +2 -2
- package/dist/issues/module.js.map +1 -1
- package/dist/mcp-chunks/{auth-command-WE7QY6RH.js → auth-command-ENP2QQ5Z.js} +67 -27
- package/dist/mcp-chunks/call-arguments-Z5REZUAX.js +16 -0
- package/dist/mcp-chunks/{call-command-OOBUGVTM.js → call-command-LOWTMLJD.js} +59 -43
- package/dist/mcp-chunks/{chunk-32UZRZIL.js → chunk-27PQUO34.js} +1 -1
- package/dist/mcp-chunks/{chunk-NJR33E7V.js → chunk-2OSM5WUI.js} +4 -4
- package/dist/mcp-chunks/{chunk-BI6L3SYV.js → chunk-33P3PYCH.js} +28 -20
- package/dist/mcp-chunks/{chunk-2PTK6KBV.js → chunk-3MELXKB4.js} +12 -9
- package/dist/mcp-chunks/{chunk-Z5XOB522.js → chunk-3P3Z5PKQ.js} +1 -1
- package/dist/mcp-chunks/{chunk-ZEMVGFKG.js → chunk-3TZZPKQP.js} +2 -2
- package/dist/mcp-chunks/{chunk-73TMUGJL.js → chunk-3UONQ24E.js} +3 -3
- package/dist/mcp-chunks/{chunk-W47YAN6W.js → chunk-5AVROWKC.js} +3 -3
- package/dist/mcp-chunks/{chunk-SYBDN4SV.js → chunk-6HA2S26Q.js} +5 -5
- package/dist/mcp-chunks/{chunk-MG6EVYIM.js → chunk-6IKBK334.js} +13 -13
- package/dist/mcp-chunks/{chunk-7SQZWTDU.js → chunk-6VAFZAST.js} +1 -1
- package/dist/mcp-chunks/{chunk-2R7UGABC.js → chunk-6WTCG4OR.js} +113 -89
- package/dist/mcp-chunks/{chunk-ZJZ53NIB.js → chunk-7JRVQRQ4.js} +10 -7
- package/dist/mcp-chunks/{chunk-AIUZOMBB.js → chunk-7LKVFBEL.js} +12 -12
- package/dist/mcp-chunks/{chunk-44KI6DPL.js → chunk-ACSE24O5.js} +15 -18
- package/dist/mcp-chunks/{chunk-5ZQKSEUN.js → chunk-B6YFFSTP.js} +6 -3
- package/dist/mcp-chunks/{chunk-3KSDZBUJ.js → chunk-BA3QLN3P.js} +5 -5
- package/dist/mcp-chunks/{chunk-MSPGQEWX.js → chunk-BMOK7SQE.js} +12 -12
- package/dist/mcp-chunks/{chunk-H44A4G2O.js → chunk-CPAQ4API.js} +2 -2
- package/dist/mcp-chunks/{chunk-Y7JQJ352.js → chunk-CSUDITHP.js} +16 -16
- package/dist/mcp-chunks/{chunk-UY2QWZB3.js → chunk-DSBXRWGJ.js} +64 -65
- package/dist/mcp-chunks/{chunk-DEYGZRBD.js → chunk-EUT2CVFE.js} +8 -5
- package/dist/mcp-chunks/{chunk-HPFIAALB.js → chunk-F4UVQBNV.js} +16 -13
- package/dist/mcp-chunks/{chunk-VLJQSE6L.js → chunk-F5XGHRRC.js} +9 -9
- package/dist/mcp-chunks/{chunk-YFPPHEDE.js → chunk-FMLYITVD.js} +1 -1
- package/dist/mcp-chunks/{chunk-37VJZIFW.js → chunk-FYRRJZPO.js} +8 -8
- package/dist/mcp-chunks/{chunk-2R2HWX2E.js → chunk-GJKH5KNE.js} +1 -1
- package/dist/mcp-chunks/{chunk-HGEKP2E5.js → chunk-H4TU7J5F.js} +9 -6
- package/dist/mcp-chunks/{chunk-4ACA5GWL.js → chunk-IX6HNQSH.js} +1 -1
- package/dist/mcp-chunks/{chunk-FJNWUAGR.js → chunk-KKM3M3F7.js} +13 -10
- package/dist/mcp-chunks/{chunk-Z43KJRXY.js → chunk-KUP2GHFE.js} +1 -1
- package/dist/mcp-chunks/{chunk-CWM4RO33.js → chunk-L3BBHB3E.js} +1 -1
- package/dist/mcp-chunks/{chunk-XU4D5QN2.js → chunk-M4RI6BN4.js} +1 -1
- package/dist/mcp-chunks/{chunk-EUHXZKP2.js → chunk-N53HQB4G.js} +108 -108
- package/dist/mcp-chunks/{chunk-HKMH4N3Z.js → chunk-NAGTWK62.js} +1 -1
- package/dist/mcp-chunks/{chunk-ABPXAKP7.js → chunk-OH3HVZE7.js} +40 -32
- package/dist/mcp-chunks/{chunk-4SO2DY7F.js → chunk-OHAXEQ22.js} +2 -2
- package/dist/mcp-chunks/{chunk-OSK2JGFH.js → chunk-PBYZ5QZW.js} +1 -1
- package/dist/mcp-chunks/{chunk-QYR3UKJS.js → chunk-PJH2FNYO.js} +3 -3
- package/dist/mcp-chunks/{chunk-FDVES4CU.js → chunk-PJSLJ3YK.js} +2 -2
- package/dist/mcp-chunks/{chunk-MW3YO24Q.js → chunk-PPJWHK7M.js} +3 -3
- package/dist/mcp-chunks/{chunk-4NABHXDS.js → chunk-QA6AKKCT.js} +11 -8
- package/dist/mcp-chunks/{chunk-DL3GVI4M.js → chunk-QDLNI6YU.js} +2 -2
- package/dist/mcp-chunks/{chunk-TTVO6RCP.js → chunk-QRC4AH7I.js} +2 -2
- package/dist/mcp-chunks/{chunk-Y7UTXETL.js → chunk-QRD3PAVF.js} +1 -1
- package/dist/mcp-chunks/{chunk-G5DK4L6M.js → chunk-RAUI7O2B.js} +2 -2
- package/dist/mcp-chunks/{chunk-VJ45Y5IO.js → chunk-RF3HIBXO.js} +1 -1
- package/dist/mcp-chunks/{chunk-CIQX62WO.js → chunk-RFQCNCWI.js} +2 -2
- package/dist/mcp-chunks/{chunk-GQM53HF7.js → chunk-SL74CLNX.js} +1 -1
- package/dist/mcp-chunks/{chunk-EVEVCVYR.js → chunk-TAEXC3CS.js} +5 -5
- package/dist/mcp-chunks/{chunk-QHD5RXW4.js → chunk-U4NDKPOH.js} +24 -17
- package/dist/mcp-chunks/{chunk-CFRA424Y.js → chunk-UP3I6WR3.js} +4 -4
- package/dist/mcp-chunks/{chunk-VJ5VDK6D.js → chunk-UZ5WW52A.js} +1 -1
- package/dist/mcp-chunks/{chunk-TT3LOCMN.js → chunk-V65N6VX7.js} +2 -2
- package/dist/mcp-chunks/{chunk-7KOGD2JK.js → chunk-VKRJV2OQ.js} +2 -2
- package/dist/mcp-chunks/{chunk-YGT57XUN.js → chunk-VNQIAJ4I.js} +2 -2
- package/dist/mcp-chunks/{chunk-EV3SP7ME.js → chunk-W3HK334E.js} +1 -1
- package/dist/mcp-chunks/{chunk-KUJUYFDC.js → chunk-XCAIV2CS.js} +4 -4
- package/dist/mcp-chunks/{chunk-TQ5T5VO7.js → chunk-YINZMSAI.js} +2 -2
- package/dist/mcp-chunks/{cli-TJFAYJO4.js → cli-QNVUCDJE.js} +70 -70
- package/dist/mcp-chunks/client-VL2MU7HF.js +32 -0
- package/dist/mcp-chunks/{config-command-YGNK2VVL.js → config-command-NMIYA3HF.js} +31 -31
- package/dist/mcp-chunks/daemon-command-SLRKTEMY.js +36 -0
- package/dist/mcp-chunks/dist-GMDBFGJD.js +69 -0
- package/dist/mcp-chunks/{dist-IFOLXE2R.js → dist-P7P5T6YZ.js} +1362 -1231
- package/dist/mcp-chunks/{emit-ts-command-4EVF6CIG.js → emit-ts-command-CH34ZIJL.js} +18 -18
- package/dist/mcp-chunks/{generate-cli-runner-UFVSXJVK.js → generate-cli-runner-3X2GEPPY.js} +57 -55
- package/dist/mcp-chunks/generated-daemon-runtime-BL7IYY6T.js +32 -0
- package/dist/mcp-chunks/{inspect-cli-command-L3JGLLTG.js → inspect-cli-command-JCKHV5GL.js} +16 -13
- package/dist/mcp-chunks/{launch-LUKDWKH4.js → launch-YFY4X7YJ.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-H57PYAZ5.js → lifecycle-UUTEE5WE.js} +1 -1
- package/dist/mcp-chunks/{list-command-QBO4LK5Q.js → list-command-VDZVNILR.js} +36 -36
- package/dist/mcp-chunks/{logger-LvdykevT-BQ5B4N5O.js → logger-CpvFcLaq-27JFRZ4G.js} +3 -3
- package/dist/mcp-chunks/{output-utils-MB3PEV2M.js → output-utils-SYVU3XAD.js} +3 -3
- package/dist/mcp-chunks/{pi-mcp-runtime-OIMIJV5A.js → pi-mcp-runtime-V2OMZAIR.js} +1 -1
- package/dist/mcp-chunks/{prompt-DkftHXS7-TE2LNPAM.js → prompt-DkftHXS7-6LABGWLG.js} +1 -1
- package/dist/mcp-chunks/{record-command-RYDP3Y2A.js → record-command-U7L3OGJZ.js} +6 -5
- package/dist/mcp-chunks/{replay-command-QDJCQ5JU.js → replay-command-4AZZBGXO.js} +7 -6
- package/dist/mcp-chunks/{resource-command-RKHHQBFP.js → resource-command-BZZBELBM.js} +14 -11
- package/dist/mcp-chunks/{result-utils-ZD5GFX7P.js → result-utils-XNXSDC6N.js} +3 -3
- package/dist/mcp-chunks/runtime-OVVVPYHO.js +39 -0
- package/dist/mcp-chunks/{runtime-wrapper-AV4JCNRF.js → runtime-wrapper-6BUJRMQL.js} +3 -3
- package/dist/mcp-chunks/{serve-command-MRPTK4XX.js → serve-command-ZY3PLYNM.js} +39 -36
- package/dist/mcp-chunks/server-6DQUPUFW.js +43 -0
- package/dist/mcp-chunks/{timeouts-2SQIDYBE.js → timeouts-EEXKP36K.js} +4 -4
- package/dist/mcp-chunks/{vault-command-6JVDCFWU.js → vault-command-PRTY3B4I.js} +5 -5
- package/dist/mcp-chunks/{webapi-CI4O7AUX.js → webapi-SSFFKLRR.js} +1 -1
- package/dist/mcp-daemon.js +35 -35
- package/dist/mcp-run-worker.js +34 -34
- package/dist/memory-context.d.ts +16 -0
- package/dist/memory-context.d.ts.map +1 -0
- package/dist/memory-context.js +100 -0
- package/dist/memory-context.js.map +1 -0
- package/dist/memory.d.ts +2 -0
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +13 -0
- package/dist/memory.js.map +1 -1
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +6 -0
- package/dist/pi-extension.js.map +1 -1
- package/dist/productivity/module.js +2 -2
- package/dist/productivity/module.js.map +1 -1
- package/dist/recipe/companions.d.ts +14 -0
- package/dist/recipe/companions.d.ts.map +1 -1
- package/dist/recipe/companions.js +23 -0
- package/dist/recipe/companions.js.map +1 -1
- package/dist/recipe/manifest.generated.d.ts +1 -1
- package/dist/recipe/manifest.generated.js +1 -1
- package/dist/recipe/python.d.ts.map +1 -1
- package/dist/recipe/python.js +2 -5
- package/dist/recipe/python.js.map +1 -1
- package/dist/recipe/resolve.d.ts +1 -0
- package/dist/recipe/resolve.d.ts.map +1 -1
- package/dist/recipe/resolve.js +1 -0
- package/dist/recipe/resolve.js.map +1 -1
- package/dist/search/tool.d.ts.map +1 -1
- package/dist/search/tool.js +2 -2
- package/dist/search/tool.js.map +1 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +27 -9
- package/dist/session.js.map +1 -1
- package/dist/signature/module.d.ts.map +1 -1
- package/dist/signature/module.js +2 -2
- package/dist/signature/module.js.map +1 -1
- package/docs/host-api.md +18 -10
- package/docs/pi-extension.md +11 -0
- package/docs/recipe-format.md +6 -0
- package/package.json +8 -8
- package/dist/mcp-chunks/call-arguments-2ABANGLE.js +0 -16
- package/dist/mcp-chunks/client-LDKUW5K5.js +0 -32
- package/dist/mcp-chunks/daemon-command-UYAYRHVD.js +0 -36
- package/dist/mcp-chunks/dist-5JNZD3JV.js +0 -69
- package/dist/mcp-chunks/generated-daemon-runtime-LTH36X2R.js +0 -32
- package/dist/mcp-chunks/runtime-F7PP4V25.js +0 -39
- package/dist/mcp-chunks/server-2WSYXDII.js +0 -43
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__export
|
|
4
4
|
} from "./chunk-LRKZP7DJ.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/buffer_utils.js
|
|
7
7
|
var encoder = new TextEncoder();
|
|
8
8
|
var decoder = new TextDecoder();
|
|
9
9
|
var strictDecoder = new TextDecoder("utf-8", { fatal: true });
|
|
@@ -71,7 +71,7 @@ async function digest(algorithm, data) {
|
|
|
71
71
|
return new Uint8Array(await crypto.subtle.digest(subtleDigest, data));
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
74
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/util/errors.js
|
|
75
75
|
var errors_exports = {};
|
|
76
76
|
__export(errors_exports, {
|
|
77
77
|
JOSEAlgNotAllowed: () => JOSEAlgNotAllowed,
|
|
@@ -183,7 +183,7 @@ var JWSSignatureVerificationFailed = class extends JOSEError {
|
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
|
|
186
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
186
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/util/base64url.js
|
|
187
187
|
var base64url_exports = {};
|
|
188
188
|
__export(base64url_exports, {
|
|
189
189
|
decode: () => decode,
|
|
@@ -201,7 +201,7 @@ function encode2(input) {
|
|
|
201
201
|
return encodeBase64(typeof input == "string" ? encoder.encode(input) : input, true);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
204
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/validate.js
|
|
205
205
|
function assertUint8Array(input, label) {
|
|
206
206
|
if (!(input instanceof Uint8Array))
|
|
207
207
|
throw new TypeError(`${label} must be an instance of Uint8Array`);
|
|
@@ -306,7 +306,7 @@ function serializeJoseHeader(Err, header) {
|
|
|
306
306
|
return [parsed, serialized];
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
309
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/key.js
|
|
310
310
|
var tag = (key) => key[Symbol.toStringTag];
|
|
311
311
|
var jwkMatchesOp = (entry, key, usage) => {
|
|
312
312
|
const { alg } = entry;
|
|
@@ -447,7 +447,7 @@ async function rawKey(key, expected, usage, extractable = false) {
|
|
|
447
447
|
return key instanceof Uint8Array && (key = await crypto.subtle.importKey("raw", key, expected, extractable, [usage])), checkCryptoKey(key, expected, usage), key;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
450
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/content_encryption.js
|
|
451
451
|
var generateCek = (enc) => crypto.getRandomValues(new Uint8Array(enc.cekBits >> 3));
|
|
452
452
|
function checkCekLength(cek, expected) {
|
|
453
453
|
const actual = cek.byteLength << 3;
|
|
@@ -528,7 +528,7 @@ async function decrypt(enc, cek, ciphertext, iv, tag2, aad) {
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
531
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/key_descriptor.js
|
|
532
532
|
function table(entries) {
|
|
533
533
|
const out = { __proto__: null };
|
|
534
534
|
for (const alg in entries)
|
|
@@ -536,7 +536,7 @@ function table(entries) {
|
|
|
536
536
|
return out;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
539
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jwe_algorithms.js
|
|
540
540
|
var wrap = [
|
|
541
541
|
["encrypt", "wrapKey"],
|
|
542
542
|
["decrypt", "unwrapKey"]
|
|
@@ -649,7 +649,7 @@ function jweEncryption(enc) {
|
|
|
649
649
|
return (typeof enc == "string" ? ENC[enc] : void 0) ?? unsupported("enc", "Encryption Algorithm");
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
652
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/key_management.js
|
|
653
653
|
function checkEcdhCryptoKey(key, usage) {
|
|
654
654
|
if (key.algorithm.name !== "ECDH" && key.algorithm.name !== "X25519")
|
|
655
655
|
throw new TypeError("CryptoKey does not support this operation, its algorithm.name must be ECDH or X25519");
|
|
@@ -756,7 +756,6 @@ async function decryptKeyManagement(entry, enc, key, encryptedKey, joseHeader, m
|
|
|
756
756
|
case "PBKDF2": {
|
|
757
757
|
if (typeof joseHeader.p2c != "number")
|
|
758
758
|
throw new JWEInvalid('JOSE Header "p2c" (PBES2 Count) missing or invalid');
|
|
759
|
-
validateMaxPBES2Count(maxPBES2Count);
|
|
760
759
|
const p2cLimit = maxPBES2Count ?? 1e4;
|
|
761
760
|
if (joseHeader.p2c > p2cLimit)
|
|
762
761
|
throw new JWEInvalid('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');
|
|
@@ -835,7 +834,7 @@ async function encryptKeyManagement(entry, enc, inputKey, joseHeader, providedCe
|
|
|
835
834
|
return [cek, encryptedKey, parameters];
|
|
836
835
|
}
|
|
837
836
|
|
|
838
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
837
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/deflate.js
|
|
839
838
|
function validateZip(joseHeader, protectedHeader) {
|
|
840
839
|
if (joseHeader.zip !== void 0 && joseHeader.zip !== "DEF")
|
|
841
840
|
throw new JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value.');
|
|
@@ -871,7 +870,7 @@ async function decompress(input, maxLength) {
|
|
|
871
870
|
return supported("DecompressionStream"), transform(new DecompressionStream("deflate-raw"), input, maxLength);
|
|
872
871
|
}
|
|
873
872
|
|
|
874
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
873
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jwe_decrypt.js
|
|
875
874
|
function snapshotSharedJWE(jwe) {
|
|
876
875
|
const { aad, ciphertext, iv, protected: encodedProtected, tag: tag2, unprotected } = jwe;
|
|
877
876
|
if (iv !== void 0 && (typeof iv != "string" || !iv))
|
|
@@ -935,12 +934,17 @@ function shareJWE(jwe) {
|
|
|
935
934
|
];
|
|
936
935
|
}
|
|
937
936
|
function prepareDecrypt(options) {
|
|
937
|
+
const keyManagementAlgorithms = options && validateAlgorithms("keyManagementAlgorithms", options.keyManagementAlgorithms), contentEncryptionAlgorithms = options && validateAlgorithms("contentEncryptionAlgorithms", options.contentEncryptionAlgorithms), { crit, maxPBES2Count, maxDecompressedLength } = options ?? {};
|
|
938
|
+
validateMaxPBES2Count(maxPBES2Count);
|
|
939
|
+
const decompressionLimit = maxDecompressedLength ?? 25e4;
|
|
940
|
+
if (decompressionLimit !== 0 && decompressionLimit !== 1 / 0 && (!Number.isSafeInteger(decompressionLimit) || decompressionLimit < 1))
|
|
941
|
+
throw new TypeError("maxDecompressedLength must be 0, a positive safe integer, or Infinity");
|
|
938
942
|
return [
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
943
|
+
keyManagementAlgorithms,
|
|
944
|
+
contentEncryptionAlgorithms,
|
|
945
|
+
crit,
|
|
946
|
+
maxPBES2Count,
|
|
947
|
+
maxDecompressedLength
|
|
944
948
|
];
|
|
945
949
|
}
|
|
946
950
|
async function decryptJWE(jwe, shared, key, token = shareJWE(jwe)) {
|
|
@@ -1011,8 +1015,6 @@ async function decryptJWE(jwe, shared, key, token = shareJWE(jwe)) {
|
|
|
1011
1015
|
const decompressionLimit = maxDecompressedLength ?? 25e4;
|
|
1012
1016
|
if (decompressionLimit === 0)
|
|
1013
1017
|
throw new JOSENotSupported('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');
|
|
1014
|
-
if (decompressionLimit !== 1 / 0 && (!Number.isSafeInteger(decompressionLimit) || decompressionLimit < 1))
|
|
1015
|
-
throw new TypeError("maxDecompressedLength must be 0, a positive safe integer, or Infinity");
|
|
1016
1018
|
plaintext = await decompress(plaintext, decompressionLimit).catch((cause) => {
|
|
1017
1019
|
throw cause instanceof JWEInvalid ? cause : new JWEInvalid("Failed to decompress plaintext", { cause });
|
|
1018
1020
|
});
|
|
@@ -1043,12 +1045,12 @@ async function decryptCompact(jwe, shared, key) {
|
|
|
1043
1045
|
}, shared, key);
|
|
1044
1046
|
}
|
|
1045
1047
|
|
|
1046
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1048
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/compact/decrypt.js
|
|
1047
1049
|
async function compactDecrypt(jwe, key, options) {
|
|
1048
1050
|
return decryptCompact(jwe, prepareDecrypt(options), key);
|
|
1049
1051
|
}
|
|
1050
1052
|
|
|
1051
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1053
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js
|
|
1052
1054
|
async function flattenedDecrypt(jwe, key, options) {
|
|
1053
1055
|
if (!isObject(jwe))
|
|
1054
1056
|
throw new JWEInvalid("Flattened JWE must be an object");
|
|
@@ -1059,7 +1061,7 @@ async function flattenedDecrypt(jwe, key, options) {
|
|
|
1059
1061
|
return checkRecipient(snapshot), decryptJWE(snapshot, prepareDecrypt(options), key);
|
|
1060
1062
|
}
|
|
1061
1063
|
|
|
1062
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1064
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/general/decrypt.js
|
|
1063
1065
|
async function generalDecrypt(jwe, key, options) {
|
|
1064
1066
|
if (!isObject(jwe))
|
|
1065
1067
|
throw new JWEInvalid("General JWE must be an object");
|
|
@@ -1071,9 +1073,10 @@ async function generalDecrypt(jwe, key, options) {
|
|
|
1071
1073
|
throw new JWEInvalid("JWE Recipients missing or incorrect type");
|
|
1072
1074
|
if (!recipients.length)
|
|
1073
1075
|
throw new JWEInvalid("JWE Recipients has no members");
|
|
1074
|
-
|
|
1076
|
+
const shared = prepareDecrypt(options);
|
|
1077
|
+
let sharedJwe, token;
|
|
1075
1078
|
try {
|
|
1076
|
-
|
|
1079
|
+
sharedJwe = snapshotSharedJWE(jwe), token = shareJWE(sharedJwe);
|
|
1077
1080
|
} catch {
|
|
1078
1081
|
throw new JWEDecryptionFailed();
|
|
1079
1082
|
}
|
|
@@ -1094,7 +1097,7 @@ async function generalDecrypt(jwe, key, options) {
|
|
|
1094
1097
|
throw new JWEDecryptionFailed();
|
|
1095
1098
|
}
|
|
1096
1099
|
|
|
1097
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1100
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jwe_encrypt.js
|
|
1098
1101
|
function checkDisjoint(protectedHeader, unprotectedHeader, sharedUnprotectedHeader) {
|
|
1099
1102
|
if (!isDisjoint(protectedHeader, unprotectedHeader, sharedUnprotectedHeader))
|
|
1100
1103
|
throw new JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");
|
|
@@ -1155,7 +1158,7 @@ function compactJWE(jwe) {
|
|
|
1155
1158
|
return [jwe.protected, jwe.encrypted_key, jwe.iv, jwe.ciphertext, jwe.tag].join(".");
|
|
1156
1159
|
}
|
|
1157
1160
|
|
|
1158
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1161
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/general/encrypt.js
|
|
1159
1162
|
var IndividualRecipient = class {
|
|
1160
1163
|
#parent;
|
|
1161
1164
|
state;
|
|
@@ -1252,7 +1255,7 @@ var GeneralEncrypt = class {
|
|
|
1252
1255
|
}
|
|
1253
1256
|
};
|
|
1254
1257
|
|
|
1255
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1258
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jws_algorithms.js
|
|
1256
1259
|
var sig = [["verify"], ["sign"]];
|
|
1257
1260
|
function hmac(bits) {
|
|
1258
1261
|
const subtle = { name: "HMAC", hash: `SHA-${bits}` };
|
|
@@ -1322,7 +1325,7 @@ function jwsAlgorithm(alg) {
|
|
|
1322
1325
|
return entry;
|
|
1323
1326
|
}
|
|
1324
1327
|
|
|
1325
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1328
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jws_verify.js
|
|
1326
1329
|
function snapshotJws(jws, sharedPayload) {
|
|
1327
1330
|
const encodedProtectedHeader = jws.protected, inputHeader = jws.header, header = isObject(inputHeader) ? { ...inputHeader } : inputHeader;
|
|
1328
1331
|
let payload = sharedPayload ? sharedPayload[0] : jws.payload;
|
|
@@ -1400,13 +1403,13 @@ async function verifyCompact(jws, shared, key) {
|
|
|
1400
1403
|
return verifySignature({ payload, protected: protectedHeader, signature }, shared, key, encodeCompactUnencodedPayload);
|
|
1401
1404
|
}
|
|
1402
1405
|
|
|
1403
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1406
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jws/compact/verify.js
|
|
1404
1407
|
async function compactVerify(jws, key, options) {
|
|
1405
1408
|
const [result] = await verifyCompact(jws, prepareVerify(options), key);
|
|
1406
1409
|
return result;
|
|
1407
1410
|
}
|
|
1408
1411
|
|
|
1409
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1412
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jws/flattened/verify.js
|
|
1410
1413
|
async function flattenedVerify(jws, key, options) {
|
|
1411
1414
|
if (!isObject(jws))
|
|
1412
1415
|
throw new JWSInvalid("Flattened JWS must be an object");
|
|
@@ -1414,7 +1417,7 @@ async function flattenedVerify(jws, key, options) {
|
|
|
1414
1417
|
return result;
|
|
1415
1418
|
}
|
|
1416
1419
|
|
|
1417
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1420
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jws/general/verify.js
|
|
1418
1421
|
function snapshotSignature(signature, payload) {
|
|
1419
1422
|
try {
|
|
1420
1423
|
const jws = snapshotJws(signature, [payload]), protectedHeader = parseProtectedHeader(jws.protected), { b64, crit } = protectedHeader;
|
|
@@ -1436,15 +1439,9 @@ async function generalVerify(jws, key, options) {
|
|
|
1436
1439
|
const signatureEntries = Array.from(signatures);
|
|
1437
1440
|
if (!signatureEntries.every(isObject))
|
|
1438
1441
|
throw new JWSInvalid("JWS Signatures missing or incorrect type");
|
|
1439
|
-
|
|
1440
|
-
try {
|
|
1441
|
-
if (inputPayload === void 0)
|
|
1442
|
-
throw new Error();
|
|
1443
|
-
shared = prepareVerify(options);
|
|
1444
|
-
} catch {
|
|
1442
|
+
if (inputPayload === void 0)
|
|
1445
1443
|
throw new JWSSignatureVerificationFailed();
|
|
1446
|
-
|
|
1447
|
-
const payload = inputPayload instanceof Uint8Array ? new Uint8Array(inputPayload) : inputPayload, candidates = signatureEntries.map((signature) => snapshotSignature(signature, payload)).filter((candidate) => candidate !== void 0);
|
|
1444
|
+
const shared = prepareVerify(options), payload = inputPayload instanceof Uint8Array ? new Uint8Array(inputPayload) : inputPayload, candidates = signatureEntries.map((signature) => snapshotSignature(signature, payload)).filter((candidate) => candidate !== void 0);
|
|
1448
1445
|
let payloadEncodings = 0;
|
|
1449
1446
|
for (const [, , payloadEncoding] of candidates)
|
|
1450
1447
|
if (payloadEncodings |= payloadEncoding, payloadEncodings === 3)
|
|
@@ -1458,7 +1455,7 @@ async function generalVerify(jws, key, options) {
|
|
|
1458
1455
|
throw new JWSSignatureVerificationFailed();
|
|
1459
1456
|
}
|
|
1460
1457
|
|
|
1461
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1458
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jwt_claims_set.js
|
|
1462
1459
|
var epoch = (date) => Math.floor(date.getTime() / 1e3);
|
|
1463
1460
|
var multipliers = {
|
|
1464
1461
|
s: 1,
|
|
@@ -1549,6 +1546,8 @@ function validateClaimsSet(protectedHeader, claimsSetBytes, options = {}) {
|
|
|
1549
1546
|
throw new JWTExpired('"exp" claim timestamp check failed', claimsSet, "exp", checkFailed);
|
|
1550
1547
|
if (maxTokenAge !== void 0) {
|
|
1551
1548
|
const age = now - iat, max = validateInput("maxTokenAge option", typeof maxTokenAge == "number" ? maxTokenAge : secs(maxTokenAge));
|
|
1549
|
+
if (max < 0)
|
|
1550
|
+
throw new TypeError("Invalid maxTokenAge option input");
|
|
1552
1551
|
if (age - tolerance > max)
|
|
1553
1552
|
throw new JWTExpired('"iat" claim timestamp check failed (too far in the past)', claimsSet, "iat", checkFailed);
|
|
1554
1553
|
if (age < -tolerance)
|
|
@@ -1602,7 +1601,7 @@ var JWTClaimsBuilder = class {
|
|
|
1602
1601
|
}
|
|
1603
1602
|
};
|
|
1604
1603
|
|
|
1605
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1604
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/verify.js
|
|
1606
1605
|
async function jwtVerify(jwt, key, options) {
|
|
1607
1606
|
const [verified, b64] = await verifyCompact(jwt, prepareVerify(options), key);
|
|
1608
1607
|
if (!b64)
|
|
@@ -1611,7 +1610,7 @@ async function jwtVerify(jwt, key, options) {
|
|
|
1611
1610
|
return { ...verified, payload };
|
|
1612
1611
|
}
|
|
1613
1612
|
|
|
1614
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1613
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/decrypt.js
|
|
1615
1614
|
async function jwtDecrypt(jwt, key, options) {
|
|
1616
1615
|
const { plaintext, ...result } = await decryptCompact(jwt, prepareDecrypt(options), key), { protectedHeader } = result, payload = validateClaimsSet(protectedHeader, plaintext, options);
|
|
1617
1616
|
for (const claim of ["iss", "sub", "aud"])
|
|
@@ -1620,7 +1619,7 @@ async function jwtDecrypt(jwt, key, options) {
|
|
|
1620
1619
|
return { payload, ...result };
|
|
1621
1620
|
}
|
|
1622
1621
|
|
|
1623
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1622
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/compact/encrypt.js
|
|
1624
1623
|
var CompactEncrypt = class {
|
|
1625
1624
|
#input;
|
|
1626
1625
|
constructor(plaintext) {
|
|
@@ -1643,7 +1642,7 @@ var CompactEncrypt = class {
|
|
|
1643
1642
|
}
|
|
1644
1643
|
};
|
|
1645
1644
|
|
|
1646
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1645
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js
|
|
1647
1646
|
var FlattenedEncrypt = class {
|
|
1648
1647
|
#input;
|
|
1649
1648
|
constructor(plaintext) {
|
|
@@ -1675,7 +1674,7 @@ var FlattenedEncrypt = class {
|
|
|
1675
1674
|
}
|
|
1676
1675
|
};
|
|
1677
1676
|
|
|
1678
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1677
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jws_sign.js
|
|
1679
1678
|
async function createSignature(input, key, rejectUnencoded) {
|
|
1680
1679
|
let [payload, protectedHeader, unprotectedHeader, crit] = input, encodedProtectedHeader = "";
|
|
1681
1680
|
if (protectedHeader !== void 0) {
|
|
@@ -1713,7 +1712,7 @@ async function createCompactSignature(payload, protectedHeader, crit, key, rejec
|
|
|
1713
1712
|
return `${jws.protected}.${jws.payload}.${jws.signature}`;
|
|
1714
1713
|
}
|
|
1715
1714
|
|
|
1716
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1715
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jws/compact/sign.js
|
|
1717
1716
|
var CompactSign = class {
|
|
1718
1717
|
#payload;
|
|
1719
1718
|
#protectedHeader;
|
|
@@ -1730,7 +1729,7 @@ var CompactSign = class {
|
|
|
1730
1729
|
}
|
|
1731
1730
|
};
|
|
1732
1731
|
|
|
1733
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1732
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jws/flattened/sign.js
|
|
1734
1733
|
var FlattenedSign = class {
|
|
1735
1734
|
#input;
|
|
1736
1735
|
constructor(payload) {
|
|
@@ -1750,7 +1749,7 @@ var FlattenedSign = class {
|
|
|
1750
1749
|
}
|
|
1751
1750
|
};
|
|
1752
1751
|
|
|
1753
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1752
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jws/general/sign.js
|
|
1754
1753
|
var IndividualSignature = class {
|
|
1755
1754
|
#parent;
|
|
1756
1755
|
state;
|
|
@@ -1804,7 +1803,7 @@ var GeneralSign = class {
|
|
|
1804
1803
|
}
|
|
1805
1804
|
};
|
|
1806
1805
|
|
|
1807
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1806
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/sign.js
|
|
1808
1807
|
var SignJWT_base = JWTClaimsBuilder;
|
|
1809
1808
|
var SignJWT = class extends SignJWT_base {
|
|
1810
1809
|
#protectedHeader;
|
|
@@ -1818,7 +1817,7 @@ var SignJWT = class extends SignJWT_base {
|
|
|
1818
1817
|
}
|
|
1819
1818
|
};
|
|
1820
1819
|
|
|
1821
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1820
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/encrypt.js
|
|
1822
1821
|
var EncryptJWT_base = JWTClaimsBuilder;
|
|
1823
1822
|
var EncryptJWT = class extends EncryptJWT_base {
|
|
1824
1823
|
#input = [void 0];
|
|
@@ -1859,7 +1858,7 @@ var EncryptJWT = class extends EncryptJWT_base {
|
|
|
1859
1858
|
}
|
|
1860
1859
|
};
|
|
1861
1860
|
|
|
1862
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1861
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/key_algorithm.js
|
|
1863
1862
|
var algArgument = '"alg" (Algorithm)';
|
|
1864
1863
|
function unsupportedAlg(source = 'JWK "alg" (Algorithm) Parameter') {
|
|
1865
1864
|
throw new JOSENotSupported(`Invalid or unsupported ${source} value`);
|
|
@@ -1868,7 +1867,7 @@ function keyAlgorithm(alg, source) {
|
|
|
1868
1867
|
return (typeof alg == "string" ? JWS[alg] ?? JWE[alg] : void 0) ?? unsupportedAlg(source);
|
|
1869
1868
|
}
|
|
1870
1869
|
|
|
1871
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
1870
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/lib/asn1.js
|
|
1872
1871
|
var formatPEM = (b64, descriptor) => {
|
|
1873
1872
|
const newlined = (b64.match(/.{1,64}/g) || []).join(`
|
|
1874
1873
|
`);
|
|
@@ -2012,7 +2011,7 @@ var fromX509 = (pem, alg, options) => {
|
|
|
2012
2011
|
return genericImport("spki", spki, alg, options);
|
|
2013
2012
|
};
|
|
2014
2013
|
|
|
2015
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2014
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/key/export.js
|
|
2016
2015
|
function exportSPKI(key) {
|
|
2017
2016
|
return toSPKI(key);
|
|
2018
2017
|
}
|
|
@@ -2041,7 +2040,7 @@ async function exportJWK(key) {
|
|
|
2041
2040
|
return jwk;
|
|
2042
2041
|
}
|
|
2043
2042
|
|
|
2044
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2043
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwk/thumbprint.js
|
|
2045
2044
|
var check = (value, description) => {
|
|
2046
2045
|
if (typeof value != "string" || !value)
|
|
2047
2046
|
throw new JWKInvalid(`${description} missing or invalid`);
|
|
@@ -2088,7 +2087,7 @@ async function calculateJwkThumbprintUri(key, digestAlgorithm) {
|
|
|
2088
2087
|
return `urn:ietf:params:oauth:jwk-thumbprint:sha-${digestAlgorithm.slice(-3)}:${thumbprint}`;
|
|
2089
2088
|
}
|
|
2090
2089
|
|
|
2091
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2090
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwk/embedded.js
|
|
2092
2091
|
async function EmbeddedJWK(protectedHeader, token) {
|
|
2093
2092
|
const joseHeader = {
|
|
2094
2093
|
...protectedHeader,
|
|
@@ -2113,7 +2112,7 @@ async function EmbeddedJWK(protectedHeader, token) {
|
|
|
2113
2112
|
return key;
|
|
2114
2113
|
}
|
|
2115
2114
|
|
|
2116
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2115
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwks/local.js
|
|
2117
2116
|
function isUsableJWK(jwk, entry, alg, kid) {
|
|
2118
2117
|
const { kty, key_ops: keyOps, ext, kid: jwkKid, alg: jwkAlg, use, crv } = jwk;
|
|
2119
2118
|
return (ext === void 0 || typeof ext == "boolean") && (keyOps === void 0 || Array.isArray(keyOps) && keyOps.every((operation, index) => typeof operation == "string" && keyOps.indexOf(operation) === index) && keyOps.includes("verify")) && entry.kty.includes(kty) && (kid === void 0 || typeof kid == "string" && kid === jwkKid) && (jwkAlg === void 0 ? kty !== "AKP" : alg === jwkAlg) && (use === void 0 || use === "sig") && (!entry.crv || crv === entry.crv);
|
|
@@ -2168,12 +2167,12 @@ function createLocalJWKSet(jwks) {
|
|
|
2168
2167
|
});
|
|
2169
2168
|
}
|
|
2170
2169
|
|
|
2171
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2170
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwks/remote.js
|
|
2172
2171
|
function isCloudflareWorkers() {
|
|
2173
2172
|
return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
|
|
2174
2173
|
}
|
|
2175
2174
|
var USER_AGENT;
|
|
2176
|
-
(typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.
|
|
2175
|
+
(typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.17");
|
|
2177
2176
|
var customFetch = /* @__PURE__ */ Symbol();
|
|
2178
2177
|
async function fetchJwks(url, headers, signal, fetchImpl = fetch) {
|
|
2179
2178
|
const response = await fetchImpl(url, {
|
|
@@ -2265,7 +2264,7 @@ function createRemoteJWKSet(url, options) {
|
|
|
2265
2264
|
});
|
|
2266
2265
|
}
|
|
2267
2266
|
|
|
2268
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2267
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/unsecured.js
|
|
2269
2268
|
var UnsecuredJWT_base = JWTClaimsBuilder;
|
|
2270
2269
|
var UnsecuredJWT = class extends UnsecuredJWT_base {
|
|
2271
2270
|
encode() {
|
|
@@ -2294,7 +2293,7 @@ var UnsecuredJWT = class extends UnsecuredJWT_base {
|
|
|
2294
2293
|
}
|
|
2295
2294
|
};
|
|
2296
2295
|
|
|
2297
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2296
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/key/import.js
|
|
2298
2297
|
async function importSPKI(spki, alg, options) {
|
|
2299
2298
|
if (typeof spki != "string" || spki.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
|
2300
2299
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
@@ -2337,7 +2336,7 @@ async function importJWK(jwk, alg, options) {
|
|
|
2337
2336
|
}
|
|
2338
2337
|
}
|
|
2339
2338
|
|
|
2340
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2339
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/util/decode_protected_header.js
|
|
2341
2340
|
function decodeProtectedHeader(token) {
|
|
2342
2341
|
let encodedProtectedHeader;
|
|
2343
2342
|
if (typeof token == "string") {
|
|
@@ -2354,7 +2353,7 @@ function decodeProtectedHeader(token) {
|
|
|
2354
2353
|
return parseJoseHeader(encodedProtectedHeader, TypeError, invalid2);
|
|
2355
2354
|
}
|
|
2356
2355
|
|
|
2357
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2356
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/util/decode_jwt.js
|
|
2358
2357
|
function decodeJwt(jwt) {
|
|
2359
2358
|
if (typeof jwt != "string")
|
|
2360
2359
|
throw new JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
@@ -2382,7 +2381,7 @@ function decodeJwt(jwt) {
|
|
|
2382
2381
|
return claimsSet;
|
|
2383
2382
|
}
|
|
2384
2383
|
|
|
2385
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2384
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/key/generate_key_pair.js
|
|
2386
2385
|
function getModulusLengthOption(options) {
|
|
2387
2386
|
const modulusLength = options?.modulusLength ?? 2048;
|
|
2388
2387
|
if (typeof modulusLength != "number" || !Number.isInteger(modulusLength) || modulusLength < 2048)
|
|
@@ -2413,7 +2412,7 @@ async function generateKeyPair(alg, options) {
|
|
|
2413
2412
|
]);
|
|
2414
2413
|
}
|
|
2415
2414
|
|
|
2416
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2415
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/key/generate_secret.js
|
|
2417
2416
|
async function generateSecret(alg, options) {
|
|
2418
2417
|
const extractable = validateExtractableOption(options?.extractable);
|
|
2419
2418
|
let keyLengthBits, algorithm, keyUsages;
|
|
@@ -2446,7 +2445,7 @@ async function generateSecret(alg, options) {
|
|
|
2446
2445
|
return crypto.subtle.generateKey(algorithm, extractable ?? false, keyUsages);
|
|
2447
2446
|
}
|
|
2448
2447
|
|
|
2449
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
2448
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/node_modules/jose/dist/webapi/index.js
|
|
2450
2449
|
var cryptoRuntime = "WebCryptoAPI";
|
|
2451
2450
|
|
|
2452
2451
|
export {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createCallResult
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QDLNI6YU.js";
|
|
5
5
|
import {
|
|
6
6
|
readJsonFile,
|
|
7
7
|
writeJsonFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QRC4AH7I.js";
|
|
9
9
|
import {
|
|
10
10
|
mcporterDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RAUI7O2B.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
13
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/schema-cache.js
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
var SCHEMA_FILENAME = "schema.json";
|
|
16
16
|
function resolveSchemaCacheDir(definition) {
|
|
@@ -41,7 +41,7 @@ async function writeSchemaCache(definition, snapshot) {
|
|
|
41
41
|
await writeJsonFile(resolveSchemaCachePath(definition), snapshot);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
44
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/server-proxy.js
|
|
45
45
|
var KNOWN_OPTION_KEYS = /* @__PURE__ */ new Set([
|
|
46
46
|
"disableOAuth",
|
|
47
47
|
"tailLog",
|
|
@@ -309,6 +309,9 @@ function createServerProxy(runtime, serverName, mapOrOptions, maybeOptions) {
|
|
|
309
309
|
if (Object.hasOwn(target, property)) {
|
|
310
310
|
return Reflect.get(target, property, receiver);
|
|
311
311
|
}
|
|
312
|
+
if (property === "then") {
|
|
313
|
+
return void 0;
|
|
314
|
+
}
|
|
312
315
|
const propertyKey = property;
|
|
313
316
|
const canonicalKey = typeof propertyKey === "string" ? canonicalizeToolName(propertyKey) : null;
|
|
314
317
|
let resolvedToolName = typeof propertyKey === "string" && canonicalKey ? mapPropertyToTool === defaultToolNameMapper && toolSchemaCache.has(propertyKey) ? propertyKey : toolAliasMap.get(canonicalKey) ?? mapPropertyToTool(propertyKey) : mapPropertyToTool(propertyKey);
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
buildToolDoc
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BA3QLN3P.js";
|
|
5
5
|
import {
|
|
6
6
|
buildEmbeddedSchemaMap,
|
|
7
7
|
toCliOptionKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6VAFZAST.js";
|
|
9
9
|
import {
|
|
10
10
|
parsePositiveInteger
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PJH2FNYO.js";
|
|
12
|
+
import {
|
|
13
|
+
CliUsageError
|
|
14
|
+
} from "./chunk-W3HK334E.js";
|
|
12
15
|
import {
|
|
13
16
|
stableJsonStringify
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3P3Z5PKQ.js";
|
|
15
18
|
import {
|
|
16
19
|
MCPORTER_VERSION
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BMOK7SQE.js";
|
|
18
21
|
|
|
19
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
22
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/generate/flag-parser.js
|
|
20
23
|
function extractGeneratorFlags(args, options = {}) {
|
|
21
24
|
const result = {};
|
|
22
25
|
let index = 0;
|
|
@@ -29,7 +32,7 @@ function extractGeneratorFlags(args, options = {}) {
|
|
|
29
32
|
if (token === "--runtime") {
|
|
30
33
|
const value = args[index + 1];
|
|
31
34
|
if (value !== "node" && value !== "bun") {
|
|
32
|
-
throw new
|
|
35
|
+
throw new CliUsageError("--runtime must be 'node' or 'bun'.");
|
|
33
36
|
}
|
|
34
37
|
result.runtime = value;
|
|
35
38
|
args.splice(index, 2);
|
|
@@ -38,11 +41,11 @@ function extractGeneratorFlags(args, options = {}) {
|
|
|
38
41
|
if (token === "--timeout") {
|
|
39
42
|
const raw = args[index + 1];
|
|
40
43
|
if (!raw) {
|
|
41
|
-
throw new
|
|
44
|
+
throw new CliUsageError("Flag '--timeout' requires a value.");
|
|
42
45
|
}
|
|
43
46
|
const parsed = parsePositiveInteger(raw);
|
|
44
47
|
if (parsed === void 0) {
|
|
45
|
-
throw new
|
|
48
|
+
throw new CliUsageError("--timeout must be a positive integer.");
|
|
46
49
|
}
|
|
47
50
|
result.timeout = parsed;
|
|
48
51
|
args.splice(index, 2);
|
|
@@ -58,12 +61,12 @@ function extractGeneratorFlags(args, options = {}) {
|
|
|
58
61
|
return result;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
64
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/generate/template.js
|
|
62
65
|
import { realpathSync } from "node:fs";
|
|
63
66
|
import fs2 from "node:fs/promises";
|
|
64
67
|
import path from "node:path";
|
|
65
68
|
|
|
66
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
69
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/generate/fs-helpers.js
|
|
67
70
|
import fs from "node:fs/promises";
|
|
68
71
|
async function markExecutable(filePath) {
|
|
69
72
|
try {
|
|
@@ -94,7 +97,7 @@ function shouldIgnorePosixPermissionError(error) {
|
|
|
94
97
|
return code === "EPERM" || code === "EINVAL" || code === "ENOSYS" || code === "EACCES";
|
|
95
98
|
}
|
|
96
99
|
|
|
97
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
100
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/generate/template-help.js
|
|
98
101
|
function renderEmbeddedHelpSource() {
|
|
99
102
|
return `function configureGeneratedCommandHelp(command: Command): void {
|
|
100
103
|
command.configureHelp({
|
|
@@ -208,7 +211,7 @@ function quickStartExamples(): Array<[string, string]> {
|
|
|
208
211
|
`;
|
|
209
212
|
}
|
|
210
213
|
|
|
211
|
-
// node_modules/.pnpm/mcporter@0.17.
|
|
214
|
+
// node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/generate/template.js
|
|
212
215
|
async function writeTemplate(input) {
|
|
213
216
|
const resolvedOutput = input.outputPath ? path.resolve(input.outputPath) : path.resolve(process.cwd(), `${input.serverName}.ts`);
|
|
214
217
|
const runtimeScriptPath = input.runtimeScriptPath ? path.resolve(input.runtimeScriptPath) : resolvedOutput;
|