@introspection-ai/recipes 0.27.4 → 0.29.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/agents.d.ts +34 -0
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +87 -0
- package/dist/agents.js.map +1 -1
- package/dist/child/agent.d.ts +5 -0
- package/dist/child/agent.d.ts.map +1 -1
- package/dist/child/agent.js +19 -8
- package/dist/child/agent.js.map +1 -1
- package/dist/child/session.d.ts +31 -4
- package/dist/child/session.d.ts.map +1 -1
- package/dist/child/session.js +65 -3
- package/dist/child/session.js.map +1 -1
- package/dist/mcp-chunks/{auth-command-GQFV6QYP.js → auth-command-SDTBVC2R.js} +22 -21
- package/dist/mcp-chunks/call-arguments-ER7NWEPS.js +16 -0
- package/dist/mcp-chunks/{call-command-LMAREWKD.js → call-command-WOZT2DLX.js} +33 -32
- package/dist/mcp-chunks/{chunk-5B7GRMUK.js → chunk-27XDYSXJ.js} +1 -1
- package/dist/mcp-chunks/{chunk-FONFU4G5.js → chunk-2IO3FXZJ.js} +1 -1
- package/dist/mcp-chunks/{chunk-O4JIUOWF.js → chunk-35JUFDQI.js} +2 -2
- package/dist/mcp-chunks/{chunk-UYJZJXC2.js → chunk-43QNQO5C.js} +3 -3
- package/dist/mcp-chunks/{chunk-LIEFPSSB.js → chunk-4IXQQER3.js} +5 -5
- package/dist/mcp-chunks/{chunk-O2VOMKAS.js → chunk-6XBQDCGX.js} +10 -10
- package/dist/mcp-chunks/{chunk-S2YF442K.js → chunk-7CI6DKEP.js} +2 -2
- package/dist/mcp-chunks/{chunk-H7ARMBV7.js → chunk-7OQUF6V6.js} +26 -10
- package/dist/mcp-chunks/{chunk-S6GJ42I2.js → chunk-7X3JHUMH.js} +1 -1
- package/dist/mcp-chunks/{chunk-D6B2M5V7.js → chunk-7ZZZ7MR2.js} +1 -1
- package/dist/mcp-chunks/{chunk-WHJUDBPR.js → chunk-AHDUZPNI.js} +2 -1
- package/dist/mcp-chunks/{chunk-QALB3DRW.js → chunk-ALLS7CUV.js} +1 -1
- package/dist/mcp-chunks/{chunk-6RG6AD5X.js → chunk-ASFI5AJK.js} +17 -11
- package/dist/mcp-chunks/{chunk-LQIE4PKL.js → chunk-CMDB57MS.js} +2 -2
- package/dist/mcp-chunks/{chunk-HZ2SX5U6.js → chunk-CO4CYU5W.js} +11 -11
- package/dist/mcp-chunks/{chunk-TUQGOYK6.js → chunk-CRX2G22W.js} +1 -1
- package/dist/mcp-chunks/{chunk-UKM35J67.js → chunk-DUJ5WAHC.js} +2 -2
- package/dist/mcp-chunks/{chunk-RIHPVCGI.js → chunk-EIF7GALA.js} +1 -1
- package/dist/mcp-chunks/{chunk-QJNF3A3F.js → chunk-EIXFNLU6.js} +1 -1
- package/dist/mcp-chunks/{chunk-77BZYP72.js → chunk-FMYP6JXX.js} +1 -1
- package/dist/mcp-chunks/{chunk-LXHPDKEF.js → chunk-FQAJT6U2.js} +1 -1
- package/dist/mcp-chunks/{chunk-7WL4TMON.js → chunk-FUKRLUU7.js} +4 -4
- package/dist/mcp-chunks/{chunk-L6OOGZVA.js → chunk-FVZKQMZS.js} +21 -7
- package/dist/mcp-chunks/{chunk-RZIJUJGL.js → chunk-FWWPRZ37.js} +31 -40
- package/dist/mcp-chunks/{chunk-KQCLM7R7.js → chunk-GJ7DWMRT.js} +1 -1
- package/dist/mcp-chunks/{chunk-LCBDVFVA.js → chunk-HM26TIPK.js} +1 -1
- package/dist/mcp-chunks/{chunk-JVYCENPP.js → chunk-IJTZ2ZRM.js} +4 -4
- package/dist/mcp-chunks/{chunk-S5F3HEZZ.js → chunk-IR5SMKTP.js} +425 -445
- package/dist/mcp-chunks/{chunk-7PFJCLXL.js → chunk-IWXEOLJL.js} +20 -16
- package/dist/mcp-chunks/{chunk-D6SVCPN6.js → chunk-JQCSGX6E.js} +1 -1
- package/dist/mcp-chunks/{chunk-P463YBJM.js → chunk-JRU5LZJQ.js} +1 -1
- package/dist/mcp-chunks/{chunk-XNHGMWN2.js → chunk-M7VINGHY.js} +9 -7
- package/dist/mcp-chunks/{chunk-IF6LRV3J.js → chunk-OURSGEZX.js} +8 -8
- package/dist/mcp-chunks/{chunk-H4KL74PV.js → chunk-P3S4OJPI.js} +9 -9
- package/dist/mcp-chunks/{chunk-P3UVILEW.js → chunk-POYT6GCW.js} +29 -5
- package/dist/mcp-chunks/{chunk-5BMCVE2J.js → chunk-R636HUNL.js} +17 -13
- package/dist/mcp-chunks/{chunk-TYYSBILI.js → chunk-SONMFI3S.js} +70 -28
- package/dist/mcp-chunks/{chunk-I6UMKX5E.js → chunk-SVCKS5MW.js} +4 -4
- package/dist/mcp-chunks/{chunk-NQW3ES2G.js → chunk-TDBM2UIR.js} +1 -1
- package/dist/mcp-chunks/{chunk-VJIAHZZG.js → chunk-TKZA4MPW.js} +4 -4
- package/dist/mcp-chunks/{chunk-2P2HVZ3G.js → chunk-UHXTAPEC.js} +1 -1
- package/dist/mcp-chunks/{chunk-CLR6DJV3.js → chunk-UXI26V4F.js} +1 -1
- package/dist/mcp-chunks/{chunk-UIPG6W7N.js → chunk-UYG7PAN2.js} +2 -2
- package/dist/mcp-chunks/{chunk-2HOMVWSA.js → chunk-VCPUZFU7.js} +2 -2
- package/dist/mcp-chunks/{chunk-FBVRU4Y3.js → chunk-VRTH73R5.js} +40 -33
- package/dist/mcp-chunks/{chunk-KOWNVUL2.js → chunk-VWNF5PIF.js} +2 -2
- package/dist/mcp-chunks/{chunk-MJFZM5EV.js → chunk-WQBESOWG.js} +22 -5
- package/dist/mcp-chunks/chunk-XDARNDP3.js +25 -0
- package/dist/mcp-chunks/{chunk-OSYB5GNF.js → chunk-XUJQ6U6M.js} +3 -3
- package/dist/mcp-chunks/{chunk-PJCMJ65D.js → chunk-YGRORKGT.js} +226 -101
- package/dist/mcp-chunks/{chunk-C2VLY7ED.js → chunk-YM7ZVYI2.js} +4 -4
- package/dist/mcp-chunks/{chunk-6QZQZXDJ.js → chunk-YTO7DITJ.js} +3 -3
- package/dist/mcp-chunks/{chunk-UHO6KIUJ.js → chunk-ZLV5S5UP.js} +2 -2
- package/dist/mcp-chunks/{cli-JI7MEAAX.js → cli-67GWFF4R.js} +69 -68
- package/dist/mcp-chunks/client-MQMNAYYW.js +31 -0
- package/dist/mcp-chunks/{config-command-GRZLKD3R.js → config-command-3IKIRWMW.js} +41 -27
- package/dist/mcp-chunks/daemon-command-OMOZ5MP7.js +31 -0
- package/dist/mcp-chunks/{dist-USMCQ22V.js → dist-YL3LFKVP.js} +219 -202
- package/dist/mcp-chunks/{emit-ts-command-7VLESP7H.js → emit-ts-command-YWKROLL2.js} +84 -70
- package/dist/mcp-chunks/{generate-cli-runner-SSW2B72K.js → generate-cli-runner-CZEVY2Y7.js} +51 -48
- package/dist/mcp-chunks/generated-daemon-runtime-SRFULTIT.js +31 -0
- package/dist/mcp-chunks/{inspect-cli-command-NCGCMOIS.js → inspect-cli-command-5Y2LORK5.js} +9 -9
- package/dist/mcp-chunks/{launch-NBONSPNK.js → launch-43TA3HYF.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-CXAKUCN4.js → lifecycle-BY2ILXTB.js} +1 -1
- package/dist/mcp-chunks/{list-command-5T4UF4PF.js → list-command-7RU7NNAV.js} +56 -43
- package/dist/mcp-chunks/{output-utils-YFTWQZ5V.js → output-utils-2R3SA6KR.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-6DI4RA4E.js → prompt-CH6TK0bC-GKQOEUY4.js} +1 -1
- package/dist/mcp-chunks/{record-command-TE5O7WBL.js → record-command-ROIRRNFS.js} +5 -5
- package/dist/mcp-chunks/{replay-command-QCUL5ASR.js → replay-command-Y2MYVQTL.js} +6 -6
- package/dist/mcp-chunks/{resource-command-XMGF7EAK.js → resource-command-VUV7AYYQ.js} +9 -9
- package/dist/mcp-chunks/{result-utils-HKB42M7Y.js → result-utils-5U7NVXDZ.js} +3 -3
- package/dist/mcp-chunks/runtime-Q4SCCOQE.js +38 -0
- package/dist/mcp-chunks/{runtime-wrapper-MI3HF45J.js → runtime-wrapper-3BVFTSWJ.js} +3 -3
- package/dist/mcp-chunks/{serve-command-5HV3ZE25.js → serve-command-BXLQWHFW.js} +8969 -1147
- package/dist/mcp-chunks/{timeouts-YBFBTLV2.js → timeouts-6GL2F44N.js} +3 -3
- package/dist/mcp-chunks/{vault-command-FC2PD5U6.js → vault-command-JCMW3DQA.js} +4 -4
- package/dist/mcp-chunks/{webapi-IFUPO72B.js → webapi-UMWFGMQV.js} +46 -46
- package/dist/mcp-daemon.js +27 -26
- package/dist/mcp-run-worker.js +27 -26
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +22 -19
- package/dist/pi-extension.js.map +1 -1
- package/dist/recipe/model.d.ts.map +1 -1
- package/dist/recipe/model.js +25 -1
- package/dist/recipe/model.js.map +1 -1
- package/dist/run-controller.d.ts +10 -3
- package/dist/run-controller.d.ts.map +1 -1
- package/dist/run-controller.js +23 -11
- package/dist/run-controller.js.map +1 -1
- package/dist/session.d.ts +13 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +15 -9
- package/dist/session.js.map +1 -1
- package/docs/agent-composition.md +27 -6
- package/docs/host-api.md +32 -4
- package/docs/mcp-configuration.md +12 -3
- package/docs/pi-extension.md +7 -4
- package/docs/recipe-format.md +14 -5
- package/package.json +11 -11
- package/dist/mcp-chunks/call-arguments-VT7JLNJY.js +0 -16
- package/dist/mcp-chunks/client-QU7ABSNB.js +0 -30
- package/dist/mcp-chunks/daemon-command-3266CYHO.js +0 -30
- package/dist/mcp-chunks/generated-daemon-runtime-7CFVWLC7.js +0 -30
- package/dist/mcp-chunks/runtime-3X2XVS6X.js +0 -37
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
resolveListTimeout,
|
|
9
9
|
resolveServerCallTimeout,
|
|
10
10
|
withTimeout
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-VWNF5PIF.js";
|
|
12
|
+
import "./chunk-P3S4OJPI.js";
|
|
13
13
|
import "./chunk-T4MQCFIK.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-JQCSGX6E.js";
|
|
15
15
|
import "./chunk-LRKZP7DJ.js";
|
|
16
16
|
export {
|
|
17
17
|
STDOUT_FLUSH_TIMEOUT_MS,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
CliUsageError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ALLS7CUV.js";
|
|
5
5
|
import {
|
|
6
6
|
clearVaultEntry,
|
|
7
7
|
getOAuthVaultPath,
|
|
8
8
|
prepareStoredTokens,
|
|
9
9
|
saveVaultEntry
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-M7VINGHY.js";
|
|
11
|
+
import "./chunk-7OQUF6V6.js";
|
|
12
12
|
import "./chunk-LRKZP7DJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/mcporter@0.
|
|
14
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/vault-command.js
|
|
15
15
|
import fs from "node:fs/promises";
|
|
16
16
|
async function handleVault(runtime, args, options = {}) {
|
|
17
17
|
const subcommand = args.shift();
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__export
|
|
4
4
|
} from "./chunk-LRKZP7DJ.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.14.2/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/
|
|
74
|
+
// node_modules/.pnpm/mcporter@0.14.2/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/
|
|
186
|
+
// node_modules/.pnpm/mcporter@0.14.2/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/
|
|
204
|
+
// node_modules/.pnpm/mcporter@0.14.2/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/
|
|
309
|
+
// node_modules/.pnpm/mcporter@0.14.2/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/
|
|
450
|
+
// node_modules/.pnpm/mcporter@0.14.2/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/
|
|
531
|
+
// node_modules/.pnpm/mcporter@0.14.2/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/
|
|
539
|
+
// node_modules/.pnpm/mcporter@0.14.2/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/
|
|
652
|
+
// node_modules/.pnpm/mcporter@0.14.2/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");
|
|
@@ -835,7 +835,7 @@ async function encryptKeyManagement(entry, enc, inputKey, joseHeader, providedCe
|
|
|
835
835
|
return [cek, encryptedKey, parameters];
|
|
836
836
|
}
|
|
837
837
|
|
|
838
|
-
// node_modules/.pnpm/
|
|
838
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/lib/deflate.js
|
|
839
839
|
function validateZip(joseHeader, protectedHeader) {
|
|
840
840
|
if (joseHeader.zip !== void 0 && joseHeader.zip !== "DEF")
|
|
841
841
|
throw new JOSENotSupported('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value.');
|
|
@@ -870,7 +870,7 @@ async function decompress(input, maxLength) {
|
|
|
870
870
|
return supported("DecompressionStream"), transform(new DecompressionStream("deflate-raw"), input, maxLength);
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
// node_modules/.pnpm/
|
|
873
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jwe_decrypt.js
|
|
874
874
|
function snapshotSharedJWE(jwe) {
|
|
875
875
|
const { aad, ciphertext, iv, protected: encodedProtected, tag: tag2, unprotected } = jwe;
|
|
876
876
|
if (iv !== void 0 && (typeof iv != "string" || !iv))
|
|
@@ -1042,12 +1042,12 @@ async function decryptCompact(jwe, shared, key) {
|
|
|
1042
1042
|
}, shared, key);
|
|
1043
1043
|
}
|
|
1044
1044
|
|
|
1045
|
-
// node_modules/.pnpm/
|
|
1045
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/compact/decrypt.js
|
|
1046
1046
|
async function compactDecrypt(jwe, key, options) {
|
|
1047
1047
|
return decryptCompact(jwe, prepareDecrypt(options), key);
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
// node_modules/.pnpm/
|
|
1050
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js
|
|
1051
1051
|
async function flattenedDecrypt(jwe, key, options) {
|
|
1052
1052
|
if (!isObject(jwe))
|
|
1053
1053
|
throw new JWEInvalid("Flattened JWE must be an object");
|
|
@@ -1058,7 +1058,7 @@ async function flattenedDecrypt(jwe, key, options) {
|
|
|
1058
1058
|
return checkRecipient(snapshot), decryptJWE(snapshot, prepareDecrypt(options), key);
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
-
// node_modules/.pnpm/
|
|
1061
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/general/decrypt.js
|
|
1062
1062
|
async function generalDecrypt(jwe, key, options) {
|
|
1063
1063
|
if (!isObject(jwe))
|
|
1064
1064
|
throw new JWEInvalid("General JWE must be an object");
|
|
@@ -1093,7 +1093,7 @@ async function generalDecrypt(jwe, key, options) {
|
|
|
1093
1093
|
throw new JWEDecryptionFailed();
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
|
-
// node_modules/.pnpm/
|
|
1096
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jwe_encrypt.js
|
|
1097
1097
|
function checkDisjoint(protectedHeader, unprotectedHeader, sharedUnprotectedHeader) {
|
|
1098
1098
|
if (!isDisjoint(protectedHeader, unprotectedHeader, sharedUnprotectedHeader))
|
|
1099
1099
|
throw new JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");
|
|
@@ -1154,7 +1154,7 @@ function compactJWE(jwe) {
|
|
|
1154
1154
|
return [jwe.protected, jwe.encrypted_key, jwe.iv, jwe.ciphertext, jwe.tag].join(".");
|
|
1155
1155
|
}
|
|
1156
1156
|
|
|
1157
|
-
// node_modules/.pnpm/
|
|
1157
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/general/encrypt.js
|
|
1158
1158
|
var IndividualRecipient = class {
|
|
1159
1159
|
#parent;
|
|
1160
1160
|
state;
|
|
@@ -1251,7 +1251,7 @@ var GeneralEncrypt = class {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
};
|
|
1253
1253
|
|
|
1254
|
-
// node_modules/.pnpm/
|
|
1254
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jws_algorithms.js
|
|
1255
1255
|
var sig = [["verify"], ["sign"]];
|
|
1256
1256
|
function hmac(bits) {
|
|
1257
1257
|
const subtle = { name: "HMAC", hash: `SHA-${bits}` };
|
|
@@ -1321,7 +1321,7 @@ function jwsAlgorithm(alg) {
|
|
|
1321
1321
|
return entry;
|
|
1322
1322
|
}
|
|
1323
1323
|
|
|
1324
|
-
// node_modules/.pnpm/
|
|
1324
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jws_verify.js
|
|
1325
1325
|
function snapshotJws(jws, sharedPayload) {
|
|
1326
1326
|
const encodedProtected = jws.protected, inputHeader = jws.header, header = isObject(inputHeader) ? { ...inputHeader } : inputHeader;
|
|
1327
1327
|
let payload = sharedPayload ? sharedPayload[0] : jws.payload;
|
|
@@ -1396,13 +1396,13 @@ async function verifyCompact(jws, shared, key) {
|
|
|
1396
1396
|
return verifySignature({ payload, protected: protectedHeader, signature }, shared, key, encodeCompactUnencodedPayload);
|
|
1397
1397
|
}
|
|
1398
1398
|
|
|
1399
|
-
// node_modules/.pnpm/
|
|
1399
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jws/compact/verify.js
|
|
1400
1400
|
async function compactVerify(jws, key, options) {
|
|
1401
1401
|
const [result] = await verifyCompact(jws, prepareVerify(options), key);
|
|
1402
1402
|
return result;
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
|
-
// node_modules/.pnpm/
|
|
1405
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jws/flattened/verify.js
|
|
1406
1406
|
async function flattenedVerify(jws, key, options) {
|
|
1407
1407
|
if (!isObject(jws))
|
|
1408
1408
|
throw new JWSInvalid("Flattened JWS must be an object");
|
|
@@ -1410,7 +1410,7 @@ async function flattenedVerify(jws, key, options) {
|
|
|
1410
1410
|
return result;
|
|
1411
1411
|
}
|
|
1412
1412
|
|
|
1413
|
-
// node_modules/.pnpm/
|
|
1413
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jws/general/verify.js
|
|
1414
1414
|
function snapshotSignature(signature, payload) {
|
|
1415
1415
|
try {
|
|
1416
1416
|
const jws = snapshotJws(signature, [payload]), protectedHeader = parseProtectedHeader(jws.protected), { b64, crit } = protectedHeader;
|
|
@@ -1454,7 +1454,7 @@ async function generalVerify(jws, key, options) {
|
|
|
1454
1454
|
throw new JWSSignatureVerificationFailed();
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
|
-
// node_modules/.pnpm/
|
|
1457
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jwt_claims_set.js
|
|
1458
1458
|
var epoch = (date) => Math.floor(date.getTime() / 1e3);
|
|
1459
1459
|
var multipliers = {
|
|
1460
1460
|
s: 1,
|
|
@@ -1596,7 +1596,7 @@ var JWTClaimsBuilder = class {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
};
|
|
1598
1598
|
|
|
1599
|
-
// node_modules/.pnpm/
|
|
1599
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/verify.js
|
|
1600
1600
|
async function jwtVerify(jwt, key, options) {
|
|
1601
1601
|
const [verified, b64] = await verifyCompact(jwt, prepareVerify(options), key);
|
|
1602
1602
|
if (!b64)
|
|
@@ -1605,7 +1605,7 @@ async function jwtVerify(jwt, key, options) {
|
|
|
1605
1605
|
return { ...verified, payload };
|
|
1606
1606
|
}
|
|
1607
1607
|
|
|
1608
|
-
// node_modules/.pnpm/
|
|
1608
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/decrypt.js
|
|
1609
1609
|
async function jwtDecrypt(jwt, key, options) {
|
|
1610
1610
|
const { plaintext, ...result } = await decryptCompact(jwt, prepareDecrypt(options), key), { protectedHeader } = result, payload = validateClaimsSet(protectedHeader, plaintext, options);
|
|
1611
1611
|
for (const claim of ["iss", "sub", "aud"])
|
|
@@ -1614,7 +1614,7 @@ async function jwtDecrypt(jwt, key, options) {
|
|
|
1614
1614
|
return { payload, ...result };
|
|
1615
1615
|
}
|
|
1616
1616
|
|
|
1617
|
-
// node_modules/.pnpm/
|
|
1617
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/compact/encrypt.js
|
|
1618
1618
|
var CompactEncrypt = class {
|
|
1619
1619
|
#input;
|
|
1620
1620
|
constructor(plaintext) {
|
|
@@ -1637,7 +1637,7 @@ var CompactEncrypt = class {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
};
|
|
1639
1639
|
|
|
1640
|
-
// node_modules/.pnpm/
|
|
1640
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js
|
|
1641
1641
|
var FlattenedEncrypt = class {
|
|
1642
1642
|
#input;
|
|
1643
1643
|
constructor(plaintext) {
|
|
@@ -1669,7 +1669,7 @@ var FlattenedEncrypt = class {
|
|
|
1669
1669
|
}
|
|
1670
1670
|
};
|
|
1671
1671
|
|
|
1672
|
-
// node_modules/.pnpm/
|
|
1672
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/lib/jws_sign.js
|
|
1673
1673
|
async function createSignature(input, key, rejectUnencoded) {
|
|
1674
1674
|
let [payload, protectedHeader, unprotectedHeader, crit] = input, protectedHeaderString = "";
|
|
1675
1675
|
if (protectedHeader !== void 0) {
|
|
@@ -1707,7 +1707,7 @@ async function createCompactSignature(payload, protectedHeader, crit, key, rejec
|
|
|
1707
1707
|
return `${jws.protected}.${jws.payload}.${jws.signature}`;
|
|
1708
1708
|
}
|
|
1709
1709
|
|
|
1710
|
-
// node_modules/.pnpm/
|
|
1710
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jws/compact/sign.js
|
|
1711
1711
|
var CompactSign = class {
|
|
1712
1712
|
#payload;
|
|
1713
1713
|
#protectedHeader;
|
|
@@ -1724,7 +1724,7 @@ var CompactSign = class {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
};
|
|
1726
1726
|
|
|
1727
|
-
// node_modules/.pnpm/
|
|
1727
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jws/flattened/sign.js
|
|
1728
1728
|
var FlattenedSign = class {
|
|
1729
1729
|
#input;
|
|
1730
1730
|
constructor(payload) {
|
|
@@ -1744,7 +1744,7 @@ var FlattenedSign = class {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
};
|
|
1746
1746
|
|
|
1747
|
-
// node_modules/.pnpm/
|
|
1747
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jws/general/sign.js
|
|
1748
1748
|
var IndividualSignature = class {
|
|
1749
1749
|
#parent;
|
|
1750
1750
|
state;
|
|
@@ -1798,7 +1798,7 @@ var GeneralSign = class {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
};
|
|
1800
1800
|
|
|
1801
|
-
// node_modules/.pnpm/
|
|
1801
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/sign.js
|
|
1802
1802
|
var SignJWT_base = JWTClaimsBuilder;
|
|
1803
1803
|
var SignJWT = class extends SignJWT_base {
|
|
1804
1804
|
#protectedHeader;
|
|
@@ -1812,7 +1812,7 @@ var SignJWT = class extends SignJWT_base {
|
|
|
1812
1812
|
}
|
|
1813
1813
|
};
|
|
1814
1814
|
|
|
1815
|
-
// node_modules/.pnpm/
|
|
1815
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/encrypt.js
|
|
1816
1816
|
var EncryptJWT_base = JWTClaimsBuilder;
|
|
1817
1817
|
var EncryptJWT = class extends EncryptJWT_base {
|
|
1818
1818
|
#input = [void 0];
|
|
@@ -1853,7 +1853,7 @@ var EncryptJWT = class extends EncryptJWT_base {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
1855
|
|
|
1856
|
-
// node_modules/.pnpm/
|
|
1856
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/lib/key_algorithm.js
|
|
1857
1857
|
var algArgument = '"alg" (Algorithm)';
|
|
1858
1858
|
function unsupportedAlg(source = 'JWK "alg" (Algorithm) Parameter') {
|
|
1859
1859
|
throw new JOSENotSupported(`Invalid or unsupported ${source} value`);
|
|
@@ -1862,7 +1862,7 @@ function keyAlgorithm(alg, source) {
|
|
|
1862
1862
|
return (typeof alg == "string" ? JWS[alg] ?? JWE[alg] : void 0) ?? unsupportedAlg(source);
|
|
1863
1863
|
}
|
|
1864
1864
|
|
|
1865
|
-
// node_modules/.pnpm/
|
|
1865
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/lib/asn1.js
|
|
1866
1866
|
var formatPEM = (b64, descriptor) => {
|
|
1867
1867
|
const newlined = (b64.match(/.{1,64}/g) || []).join(`
|
|
1868
1868
|
`);
|
|
@@ -2006,7 +2006,7 @@ var fromX509 = (pem, alg, options) => {
|
|
|
2006
2006
|
return genericImport("spki", spki, alg, options);
|
|
2007
2007
|
};
|
|
2008
2008
|
|
|
2009
|
-
// node_modules/.pnpm/
|
|
2009
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/key/export.js
|
|
2010
2010
|
function exportSPKI(key) {
|
|
2011
2011
|
return toSPKI(key);
|
|
2012
2012
|
}
|
|
@@ -2035,7 +2035,7 @@ async function exportJWK(key) {
|
|
|
2035
2035
|
return jwk;
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
|
-
// node_modules/.pnpm/
|
|
2038
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwk/thumbprint.js
|
|
2039
2039
|
var check = (value, description) => {
|
|
2040
2040
|
if (typeof value != "string" || !value)
|
|
2041
2041
|
throw new JWKInvalid(`${description} missing or invalid`);
|
|
@@ -2082,7 +2082,7 @@ async function calculateJwkThumbprintUri(key, digestAlgorithm) {
|
|
|
2082
2082
|
return `urn:ietf:params:oauth:jwk-thumbprint:sha-${digestAlgorithm.slice(-3)}:${thumbprint}`;
|
|
2083
2083
|
}
|
|
2084
2084
|
|
|
2085
|
-
// node_modules/.pnpm/
|
|
2085
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwk/embedded.js
|
|
2086
2086
|
async function EmbeddedJWK(protectedHeader, token) {
|
|
2087
2087
|
const joseHeader = {
|
|
2088
2088
|
...protectedHeader,
|
|
@@ -2107,7 +2107,7 @@ async function EmbeddedJWK(protectedHeader, token) {
|
|
|
2107
2107
|
return key;
|
|
2108
2108
|
}
|
|
2109
2109
|
|
|
2110
|
-
// node_modules/.pnpm/
|
|
2110
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwks/local.js
|
|
2111
2111
|
function isUsableJWK(jwk, entry, alg, kid) {
|
|
2112
2112
|
const { kty, key_ops: keyOps, ext, kid: jwkKid, alg: jwkAlg, use, crv } = jwk;
|
|
2113
2113
|
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);
|
|
@@ -2161,7 +2161,7 @@ function createLocalJWKSet(jwks) {
|
|
|
2161
2161
|
});
|
|
2162
2162
|
}
|
|
2163
2163
|
|
|
2164
|
-
// node_modules/.pnpm/
|
|
2164
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwks/remote.js
|
|
2165
2165
|
function isCloudflareWorkers() {
|
|
2166
2166
|
return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
|
|
2167
2167
|
}
|
|
@@ -2256,7 +2256,7 @@ function createRemoteJWKSet(url, options) {
|
|
|
2256
2256
|
});
|
|
2257
2257
|
}
|
|
2258
2258
|
|
|
2259
|
-
// node_modules/.pnpm/
|
|
2259
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/jwt/unsecured.js
|
|
2260
2260
|
var UnsecuredJWT_base = JWTClaimsBuilder;
|
|
2261
2261
|
var UnsecuredJWT = class extends UnsecuredJWT_base {
|
|
2262
2262
|
encode() {
|
|
@@ -2285,7 +2285,7 @@ var UnsecuredJWT = class extends UnsecuredJWT_base {
|
|
|
2285
2285
|
}
|
|
2286
2286
|
};
|
|
2287
2287
|
|
|
2288
|
-
// node_modules/.pnpm/
|
|
2288
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/key/import.js
|
|
2289
2289
|
async function importSPKI(spki, alg, options) {
|
|
2290
2290
|
if (typeof spki != "string" || spki.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
|
2291
2291
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
@@ -2328,7 +2328,7 @@ async function importJWK(jwk, alg, options) {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
2330
2330
|
|
|
2331
|
-
// node_modules/.pnpm/
|
|
2331
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/util/decode_protected_header.js
|
|
2332
2332
|
function decodeProtectedHeader(token) {
|
|
2333
2333
|
let protectedB64u;
|
|
2334
2334
|
if (typeof token == "string") {
|
|
@@ -2345,7 +2345,7 @@ function decodeProtectedHeader(token) {
|
|
|
2345
2345
|
return parseJoseHeader(protectedB64u, TypeError, invalid2);
|
|
2346
2346
|
}
|
|
2347
2347
|
|
|
2348
|
-
// node_modules/.pnpm/
|
|
2348
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/util/decode_jwt.js
|
|
2349
2349
|
function decodeJwt(jwt) {
|
|
2350
2350
|
if (typeof jwt != "string")
|
|
2351
2351
|
throw new JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
@@ -2373,7 +2373,7 @@ function decodeJwt(jwt) {
|
|
|
2373
2373
|
return result;
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
2376
|
-
// node_modules/.pnpm/
|
|
2376
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/key/generate_key_pair.js
|
|
2377
2377
|
function getModulusLengthOption(options) {
|
|
2378
2378
|
const modulusLength = options?.modulusLength ?? 2048;
|
|
2379
2379
|
if (typeof modulusLength != "number" || !Number.isInteger(modulusLength) || modulusLength < 2048)
|
|
@@ -2404,7 +2404,7 @@ async function generateKeyPair(alg, options) {
|
|
|
2404
2404
|
]);
|
|
2405
2405
|
}
|
|
2406
2406
|
|
|
2407
|
-
// node_modules/.pnpm/
|
|
2407
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/key/generate_secret.js
|
|
2408
2408
|
async function generateSecret(alg, options) {
|
|
2409
2409
|
const extractable = validateExtractableOption(options?.extractable);
|
|
2410
2410
|
let length, algorithm, keyUsages;
|
|
@@ -2437,7 +2437,7 @@ async function generateSecret(alg, options) {
|
|
|
2437
2437
|
return crypto.subtle.generateKey(algorithm, extractable ?? false, keyUsages);
|
|
2438
2438
|
}
|
|
2439
2439
|
|
|
2440
|
-
// node_modules/.pnpm/
|
|
2440
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/node_modules/jose/dist/webapi/index.js
|
|
2441
2441
|
var cryptoRuntime = "WebCryptoAPI";
|
|
2442
2442
|
export {
|
|
2443
2443
|
CompactEncrypt,
|
package/dist/mcp-daemon.js
CHANGED
|
@@ -12,35 +12,36 @@ import {
|
|
|
12
12
|
installMcpCommandIoRouting,
|
|
13
13
|
mcpDaemonRequestContext,
|
|
14
14
|
serializeMcpDaemonEnvelope
|
|
15
|
-
} from "./mcp-chunks/chunk-
|
|
16
|
-
import "./mcp-chunks/chunk-
|
|
17
|
-
import "./mcp-chunks/chunk-
|
|
18
|
-
import "./mcp-chunks/chunk-
|
|
19
|
-
import "./mcp-chunks/chunk-
|
|
20
|
-
import "./mcp-chunks/chunk-
|
|
21
|
-
import "./mcp-chunks/chunk-
|
|
15
|
+
} from "./mcp-chunks/chunk-XUJQ6U6M.js";
|
|
16
|
+
import "./mcp-chunks/chunk-FUKRLUU7.js";
|
|
17
|
+
import "./mcp-chunks/chunk-YTO7DITJ.js";
|
|
18
|
+
import "./mcp-chunks/chunk-R636HUNL.js";
|
|
19
|
+
import "./mcp-chunks/chunk-7CI6DKEP.js";
|
|
20
|
+
import "./mcp-chunks/chunk-FQAJT6U2.js";
|
|
21
|
+
import "./mcp-chunks/chunk-VRTH73R5.js";
|
|
22
22
|
import {
|
|
23
23
|
createRuntime
|
|
24
|
-
} from "./mcp-chunks/chunk-
|
|
25
|
-
import "./mcp-chunks/chunk-
|
|
26
|
-
import "./mcp-chunks/chunk-
|
|
27
|
-
import "./mcp-chunks/chunk-
|
|
28
|
-
import "./mcp-chunks/chunk-
|
|
29
|
-
import "./mcp-chunks/chunk-
|
|
30
|
-
import "./mcp-chunks/chunk-
|
|
31
|
-
import "./mcp-chunks/chunk-
|
|
32
|
-
import "./mcp-chunks/chunk-
|
|
33
|
-
import "./mcp-chunks/chunk-
|
|
34
|
-
import "./mcp-chunks/chunk-
|
|
35
|
-
import "./mcp-chunks/chunk-
|
|
36
|
-
import "./mcp-chunks/chunk-
|
|
37
|
-
import "./mcp-chunks/chunk-
|
|
38
|
-
import "./mcp-chunks/chunk-
|
|
24
|
+
} from "./mcp-chunks/chunk-YGRORKGT.js";
|
|
25
|
+
import "./mcp-chunks/chunk-GJ7DWMRT.js";
|
|
26
|
+
import "./mcp-chunks/chunk-7ZZZ7MR2.js";
|
|
27
|
+
import "./mcp-chunks/chunk-FVZKQMZS.js";
|
|
28
|
+
import "./mcp-chunks/chunk-SONMFI3S.js";
|
|
29
|
+
import "./mcp-chunks/chunk-OURSGEZX.js";
|
|
30
|
+
import "./mcp-chunks/chunk-M7VINGHY.js";
|
|
31
|
+
import "./mcp-chunks/chunk-JRU5LZJQ.js";
|
|
32
|
+
import "./mcp-chunks/chunk-2IO3FXZJ.js";
|
|
33
|
+
import "./mcp-chunks/chunk-IWXEOLJL.js";
|
|
34
|
+
import "./mcp-chunks/chunk-P3S4OJPI.js";
|
|
35
|
+
import "./mcp-chunks/chunk-FWWPRZ37.js";
|
|
36
|
+
import "./mcp-chunks/chunk-XDARNDP3.js";
|
|
37
|
+
import "./mcp-chunks/chunk-7OQUF6V6.js";
|
|
38
|
+
import "./mcp-chunks/chunk-43QNQO5C.js";
|
|
39
|
+
import "./mcp-chunks/chunk-ZLV5S5UP.js";
|
|
39
40
|
import "./mcp-chunks/chunk-T4MQCFIK.js";
|
|
40
|
-
import "./mcp-chunks/chunk-
|
|
41
|
-
import "./mcp-chunks/chunk-
|
|
42
|
-
import "./mcp-chunks/chunk-
|
|
43
|
-
import "./mcp-chunks/chunk-
|
|
41
|
+
import "./mcp-chunks/chunk-JQCSGX6E.js";
|
|
42
|
+
import "./mcp-chunks/chunk-EIXFNLU6.js";
|
|
43
|
+
import "./mcp-chunks/chunk-35JUFDQI.js";
|
|
44
|
+
import "./mcp-chunks/chunk-IR5SMKTP.js";
|
|
44
45
|
import "./mcp-chunks/chunk-LRKZP7DJ.js";
|
|
45
46
|
|
|
46
47
|
// src/mcp/daemon/index.ts
|
package/dist/mcp-run-worker.js
CHANGED
|
@@ -2,33 +2,34 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
executeMcpCommand,
|
|
4
4
|
installMcpCommandIoRouting
|
|
5
|
-
} from "./mcp-chunks/chunk-
|
|
6
|
-
import "./mcp-chunks/chunk-
|
|
7
|
-
import "./mcp-chunks/chunk-
|
|
8
|
-
import "./mcp-chunks/chunk-
|
|
9
|
-
import "./mcp-chunks/chunk-
|
|
10
|
-
import "./mcp-chunks/chunk-
|
|
11
|
-
import "./mcp-chunks/chunk-
|
|
12
|
-
import "./mcp-chunks/chunk-
|
|
13
|
-
import "./mcp-chunks/chunk-
|
|
14
|
-
import "./mcp-chunks/chunk-
|
|
15
|
-
import "./mcp-chunks/chunk-
|
|
16
|
-
import "./mcp-chunks/chunk-
|
|
17
|
-
import "./mcp-chunks/chunk-
|
|
18
|
-
import "./mcp-chunks/chunk-
|
|
19
|
-
import "./mcp-chunks/chunk-
|
|
20
|
-
import "./mcp-chunks/chunk-
|
|
21
|
-
import "./mcp-chunks/chunk-
|
|
22
|
-
import "./mcp-chunks/chunk-
|
|
23
|
-
import "./mcp-chunks/chunk-
|
|
24
|
-
import "./mcp-chunks/chunk-
|
|
25
|
-
import "./mcp-chunks/chunk-
|
|
26
|
-
import "./mcp-chunks/chunk-
|
|
5
|
+
} from "./mcp-chunks/chunk-XUJQ6U6M.js";
|
|
6
|
+
import "./mcp-chunks/chunk-FUKRLUU7.js";
|
|
7
|
+
import "./mcp-chunks/chunk-YTO7DITJ.js";
|
|
8
|
+
import "./mcp-chunks/chunk-R636HUNL.js";
|
|
9
|
+
import "./mcp-chunks/chunk-7CI6DKEP.js";
|
|
10
|
+
import "./mcp-chunks/chunk-FQAJT6U2.js";
|
|
11
|
+
import "./mcp-chunks/chunk-VRTH73R5.js";
|
|
12
|
+
import "./mcp-chunks/chunk-YGRORKGT.js";
|
|
13
|
+
import "./mcp-chunks/chunk-GJ7DWMRT.js";
|
|
14
|
+
import "./mcp-chunks/chunk-7ZZZ7MR2.js";
|
|
15
|
+
import "./mcp-chunks/chunk-FVZKQMZS.js";
|
|
16
|
+
import "./mcp-chunks/chunk-SONMFI3S.js";
|
|
17
|
+
import "./mcp-chunks/chunk-OURSGEZX.js";
|
|
18
|
+
import "./mcp-chunks/chunk-M7VINGHY.js";
|
|
19
|
+
import "./mcp-chunks/chunk-JRU5LZJQ.js";
|
|
20
|
+
import "./mcp-chunks/chunk-2IO3FXZJ.js";
|
|
21
|
+
import "./mcp-chunks/chunk-IWXEOLJL.js";
|
|
22
|
+
import "./mcp-chunks/chunk-P3S4OJPI.js";
|
|
23
|
+
import "./mcp-chunks/chunk-FWWPRZ37.js";
|
|
24
|
+
import "./mcp-chunks/chunk-XDARNDP3.js";
|
|
25
|
+
import "./mcp-chunks/chunk-7OQUF6V6.js";
|
|
26
|
+
import "./mcp-chunks/chunk-43QNQO5C.js";
|
|
27
|
+
import "./mcp-chunks/chunk-ZLV5S5UP.js";
|
|
27
28
|
import "./mcp-chunks/chunk-T4MQCFIK.js";
|
|
28
|
-
import "./mcp-chunks/chunk-
|
|
29
|
-
import "./mcp-chunks/chunk-
|
|
30
|
-
import "./mcp-chunks/chunk-
|
|
31
|
-
import "./mcp-chunks/chunk-
|
|
29
|
+
import "./mcp-chunks/chunk-JQCSGX6E.js";
|
|
30
|
+
import "./mcp-chunks/chunk-EIXFNLU6.js";
|
|
31
|
+
import "./mcp-chunks/chunk-35JUFDQI.js";
|
|
32
|
+
import "./mcp-chunks/chunk-IR5SMKTP.js";
|
|
32
33
|
import "./mcp-chunks/chunk-LRKZP7DJ.js";
|
|
33
34
|
|
|
34
35
|
// src/mcp/cli/run-worker.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pi-extension.d.ts","sourceRoot":"","sources":["../src/pi-extension.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAGL,KAAK,4BAA4B,EAGlC,MAAM,kBAAkB,CAAC;AAmB1B,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,aAAa,CAAC;AA0CrB,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,sBAAsB,CAAC,EAAE,4BAA4B,CAAC;IACtD,wDAAwD;IACxD,eAAe,CAAC,EAAE,qBAAqB,CAAC;CACzC;AA2XD,wBAAgB,sBAAsB,CACpC,IAAI,GAAE,uBAA4B,GACjC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"pi-extension.d.ts","sourceRoot":"","sources":["../src/pi-extension.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAGL,KAAK,4BAA4B,EAGlC,MAAM,kBAAkB,CAAC;AAmB1B,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,aAAa,CAAC;AA0CrB,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,sBAAsB,CAAC,EAAE,4BAA4B,CAAC;IACtD,wDAAwD;IACxD,eAAe,CAAC,EAAE,qBAAqB,CAAC;CACzC;AA2XD,wBAAgB,sBAAsB,CACpC,IAAI,GAAE,uBAA4B,GACjC,gBAAgB,CAmiClB"}
|
package/dist/pi-extension.js
CHANGED
|
@@ -859,16 +859,32 @@ export function createRecipesExtension(opts = {}) {
|
|
|
859
859
|
// cosmetic and must not stop the child or completion delivery.
|
|
860
860
|
}
|
|
861
861
|
};
|
|
862
|
+
const recordRunEvent = (envelope) => {
|
|
863
|
+
notifyAgentRunEvent(opts.onAgentRunEvent, envelope);
|
|
864
|
+
// Custom entries join Pi's canonical session event stream without
|
|
865
|
+
// entering model context. JSON mode serializes the resulting single
|
|
866
|
+
// `entry_appended` event through Pi's guarded output writer.
|
|
867
|
+
try {
|
|
868
|
+
extensionApi?.appendEntry(AGENT_RUN_EVENT_ENTRY_TYPE, envelope);
|
|
869
|
+
}
|
|
870
|
+
catch {
|
|
871
|
+
// Event capture is auxiliary. Session persistence failures must not
|
|
872
|
+
// change the outcome of the child work being observed.
|
|
873
|
+
}
|
|
874
|
+
};
|
|
862
875
|
const runner = createChildAgentRunner({
|
|
863
876
|
recipe: launchState.resolvedRecipe,
|
|
864
877
|
workspaceDir: launchState.cwd,
|
|
865
878
|
env,
|
|
866
879
|
agentName,
|
|
867
880
|
modelRegistry: ctx.modelRegistry,
|
|
881
|
+
agentRunId: id,
|
|
882
|
+
// Runs the child starts in turn arrive already attributed to it.
|
|
883
|
+
onAgentRunEvent: recordRunEvent,
|
|
868
884
|
onEvent(event) {
|
|
869
885
|
if (!run)
|
|
870
886
|
return;
|
|
871
|
-
|
|
887
|
+
recordRunEvent({
|
|
872
888
|
type: "agent_run_event",
|
|
873
889
|
agent_run_id: run.id,
|
|
874
890
|
parent_agent_run_id: "root",
|
|
@@ -876,18 +892,7 @@ export function createRecipesExtension(opts = {}) {
|
|
|
876
892
|
invocation_name: run.agent,
|
|
877
893
|
depth: 1,
|
|
878
894
|
event,
|
|
879
|
-
};
|
|
880
|
-
notifyAgentRunEvent(opts.onAgentRunEvent, envelope);
|
|
881
|
-
// Custom entries join Pi's canonical session event stream without
|
|
882
|
-
// entering model context. JSON mode serializes the resulting single
|
|
883
|
-
// `entry_appended` event through Pi's guarded output writer.
|
|
884
|
-
try {
|
|
885
|
-
extensionApi?.appendEntry(AGENT_RUN_EVENT_ENTRY_TYPE, envelope);
|
|
886
|
-
}
|
|
887
|
-
catch {
|
|
888
|
-
// Event capture is auxiliary. Session persistence failures must not
|
|
889
|
-
// change the outcome of the child work being observed.
|
|
890
|
-
}
|
|
895
|
+
});
|
|
891
896
|
},
|
|
892
897
|
onAssistantMessage(text, stream) {
|
|
893
898
|
if (!run)
|
|
@@ -931,12 +936,10 @@ export function createRecipesExtension(opts = {}) {
|
|
|
931
936
|
await run.runner.start();
|
|
932
937
|
const result = await run.runner.prompt(prompt);
|
|
933
938
|
const finalOutput = promptResultText(result);
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
run.output = "(no final response)";
|
|
939
|
-
}
|
|
939
|
+
// The streamed buffer spans every turn the child took (a nested
|
|
940
|
+
// child also takes a turn per batch of its own results), so the
|
|
941
|
+
// final answer replaces it.
|
|
942
|
+
run.output = finalOutput || "(no final response)";
|
|
940
943
|
if (run.status === "running")
|
|
941
944
|
run.status = "completed";
|
|
942
945
|
}
|