@introspection-ai/recipes 0.56.0 → 0.57.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/batch/shards.d.ts +1 -1
- package/dist/batch/shards.d.ts.map +1 -1
- package/dist/batch/shards.js +3 -3
- package/dist/batch/shards.js.map +1 -1
- package/dist/child/agent.d.ts.map +1 -1
- package/dist/child/agent.js +6 -5
- package/dist/child/agent.js.map +1 -1
- package/dist/child/session.d.ts +1 -0
- package/dist/child/session.d.ts.map +1 -1
- package/dist/child/session.js +9 -6
- package/dist/child/session.js.map +1 -1
- package/dist/mcp/daemon/server.d.ts +0 -2
- package/dist/mcp/daemon/server.d.ts.map +1 -1
- package/dist/mcp/daemon/server.js +1 -1
- package/dist/mcp/daemon/server.js.map +1 -1
- package/dist/mcp-chunks/{auth-command-PZLSOYAT.js → auth-command-WE7QY6RH.js} +27 -27
- package/dist/mcp-chunks/call-arguments-2ABANGLE.js +16 -0
- package/dist/mcp-chunks/{call-command-VILJIFYG.js → call-command-OOBUGVTM.js} +56 -70
- package/dist/mcp-chunks/{chunk-N2U2FODH.js → chunk-2PTK6KBV.js} +4 -4
- package/dist/mcp-chunks/{chunk-F2X4Y2TQ.js → chunk-2R2HWX2E.js} +1 -1
- package/dist/mcp-chunks/{chunk-ORJND4AI.js → chunk-2R7UGABC.js} +70 -70
- package/dist/mcp-chunks/{chunk-US63Y6XE.js → chunk-32UZRZIL.js} +1 -1
- package/dist/mcp-chunks/{chunk-THRMUZZD.js → chunk-37VJZIFW.js} +8 -8
- package/dist/mcp-chunks/{chunk-5Z6WSV5D.js → chunk-3KSDZBUJ.js} +5 -5
- package/dist/mcp-chunks/{chunk-JTPTAO4M.js → chunk-44KI6DPL.js} +24 -15
- package/dist/mcp-chunks/{chunk-BHXCAVFP.js → chunk-4ACA5GWL.js} +1 -1
- package/dist/mcp-chunks/{chunk-E76ZUBOJ.js → chunk-4NABHXDS.js} +4 -4
- package/dist/mcp-chunks/{chunk-AJDK5Z7O.js → chunk-4SO2DY7F.js} +2 -3
- package/dist/mcp-chunks/{chunk-I6UFV7RW.js → chunk-5ZQKSEUN.js} +1 -1
- package/dist/mcp-chunks/{chunk-KZGUH7E2.js → chunk-73TMUGJL.js} +2039 -1148
- package/dist/mcp-chunks/{chunk-UVRJ3AAD.js → chunk-7KOGD2JK.js} +2 -2
- package/dist/mcp-chunks/{chunk-KJ5FPQF6.js → chunk-7SQZWTDU.js} +30 -26
- package/dist/mcp-chunks/{chunk-MYAMG6VL.js → chunk-ABPXAKP7.js} +89 -28
- package/dist/mcp-chunks/{chunk-2YV72LUA.js → chunk-AIUZOMBB.js} +12 -12
- package/dist/mcp-chunks/{chunk-V42T3QNK.js → chunk-BI6L3SYV.js} +9 -9
- package/dist/mcp-chunks/{chunk-757ZF552.js → chunk-CFRA424Y.js} +4 -4
- package/dist/mcp-chunks/{chunk-DU4SDPEV.js → chunk-CIQX62WO.js} +2 -2
- package/dist/mcp-chunks/{chunk-MHUMLEBO.js → chunk-CWM4RO33.js} +1 -1
- package/dist/mcp-chunks/{chunk-TUPFPO4L.js → chunk-DEYGZRBD.js} +5 -5
- package/dist/mcp-chunks/{chunk-3SXP4S2A.js → chunk-DL3GVI4M.js} +2 -2
- package/dist/mcp-chunks/{chunk-O7SIXJM6.js → chunk-EUHXZKP2.js} +108 -108
- package/dist/mcp-chunks/{chunk-H5PBSJP3.js → chunk-EV3SP7ME.js} +1 -1
- package/dist/mcp-chunks/chunk-EVEVCVYR.js +42 -0
- package/dist/mcp-chunks/{chunk-RUF27IUF.js → chunk-FDVES4CU.js} +2 -2
- package/dist/mcp-chunks/{chunk-L2MSWQDL.js → chunk-FJNWUAGR.js} +1 -1
- package/dist/mcp-chunks/{chunk-IWCVZ46B.js → chunk-G5DK4L6M.js} +2 -2
- package/dist/mcp-chunks/{chunk-3ETUDW7N.js → chunk-GQM53HF7.js} +1 -1
- package/dist/mcp-chunks/{chunk-2AKSS7WR.js → chunk-H44A4G2O.js} +2 -2
- package/dist/mcp-chunks/{chunk-WDWSA7RL.js → chunk-HGEKP2E5.js} +4 -4
- package/dist/mcp-chunks/{chunk-ELHS763C.js → chunk-HKMH4N3Z.js} +1 -1
- package/dist/mcp-chunks/{chunk-GZ53GNFP.js → chunk-HPFIAALB.js} +13 -10
- package/dist/mcp-chunks/chunk-KUJUYFDC.js +224 -0
- package/dist/mcp-chunks/{chunk-OIK5AH2S.js → chunk-MG6EVYIM.js} +41 -19
- package/dist/mcp-chunks/{chunk-QNXOIF5U.js → chunk-MSPGQEWX.js} +12 -12
- package/dist/mcp-chunks/{chunk-JEHI2YU4.js → chunk-MW3YO24Q.js} +3 -3
- package/dist/mcp-chunks/{chunk-WQL7FJQ3.js → chunk-NJR33E7V.js} +4 -4
- package/dist/mcp-chunks/{chunk-7U5NSQ5T.js → chunk-OSK2JGFH.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZEA3Y5ZD.js → chunk-QHD5RXW4.js} +7 -7
- package/dist/mcp-chunks/{chunk-TC2JPBFB.js → chunk-QYR3UKJS.js} +7 -4
- package/dist/mcp-chunks/{chunk-3FRLDHVD.js → chunk-SYBDN4SV.js} +5 -5
- package/dist/mcp-chunks/{chunk-3P3KGT4H.js → chunk-TQ5T5VO7.js} +2 -2
- package/dist/mcp-chunks/{chunk-OWGTNJNR.js → chunk-TT3LOCMN.js} +2 -2
- package/dist/mcp-chunks/{chunk-3LENTPGE.js → chunk-TTVO6RCP.js} +2 -2
- package/dist/mcp-chunks/{chunk-IRSL7JRH.js → chunk-UY2QWZB3.js} +53 -49
- package/dist/mcp-chunks/{chunk-B6S43WID.js → chunk-VJ45Y5IO.js} +1 -1
- package/dist/mcp-chunks/{chunk-IRARVOUM.js → chunk-VJ5VDK6D.js} +1 -1
- package/dist/mcp-chunks/{chunk-6O42UGLI.js → chunk-VLJQSE6L.js} +9 -9
- package/dist/mcp-chunks/{chunk-HNQSUT44.js → chunk-W47YAN6W.js} +3 -3
- package/dist/mcp-chunks/{chunk-66VSGFXA.js → chunk-XU4D5QN2.js} +1 -1
- package/dist/mcp-chunks/{chunk-CXST5CVH.js → chunk-Y7JQJ352.js} +22 -18
- package/dist/mcp-chunks/{chunk-3HSC6NHZ.js → chunk-Y7UTXETL.js} +1 -1
- package/dist/mcp-chunks/{chunk-O3RTM5HD.js → chunk-YFPPHEDE.js} +1 -1
- package/dist/mcp-chunks/{chunk-N6YUOYDS.js → chunk-YGT57XUN.js} +2 -2
- package/dist/mcp-chunks/{chunk-BUOGKTKK.js → chunk-Z43KJRXY.js} +1 -1
- package/dist/mcp-chunks/{chunk-6P3KAQ5N.js → chunk-Z5XOB522.js} +1 -1
- package/dist/mcp-chunks/{chunk-63L6SHK3.js → chunk-ZEMVGFKG.js} +2 -2
- package/dist/mcp-chunks/{chunk-MEQXX43K.js → chunk-ZJZ53NIB.js} +1 -1
- package/dist/mcp-chunks/{cli-UQ5QXFXU.js → cli-TJFAYJO4.js} +81 -283
- package/dist/mcp-chunks/client-LDKUW5K5.js +32 -0
- package/dist/mcp-chunks/{config-command-ZSPJI34E.js → config-command-YGNK2VVL.js} +29 -29
- package/dist/mcp-chunks/daemon-command-UYAYRHVD.js +36 -0
- package/dist/mcp-chunks/dist-5JNZD3JV.js +69 -0
- package/dist/mcp-chunks/{dist-Q7WSCBBK.js → dist-IFOLXE2R.js} +351 -1305
- package/dist/mcp-chunks/{emit-ts-command-SY4LQE4S.js → emit-ts-command-4EVF6CIG.js} +28 -25
- package/dist/mcp-chunks/{generate-cli-runner-LQBBQ7F5.js → generate-cli-runner-UFVSXJVK.js} +58 -49
- package/dist/mcp-chunks/generated-daemon-runtime-LTH36X2R.js +32 -0
- package/dist/mcp-chunks/{inspect-cli-command-JPX4ON6N.js → inspect-cli-command-L3JGLLTG.js} +11 -11
- package/dist/mcp-chunks/{launch-UG7IH27P.js → launch-LUKDWKH4.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-QBYGUHQ3.js → lifecycle-H57PYAZ5.js} +1 -1
- package/dist/mcp-chunks/{list-command-SDITI3ZM.js → list-command-QBO4LK5Q.js} +53 -42
- package/dist/mcp-chunks/logger-LvdykevT-BQ5B4N5O.js +995 -0
- package/dist/mcp-chunks/{output-utils-YTMZTA7J.js → output-utils-MB3PEV2M.js} +3 -3
- package/dist/mcp-chunks/{pi-mcp-runtime-OLO25D7A.js → pi-mcp-runtime-OIMIJV5A.js} +73 -17
- package/dist/mcp-chunks/{prompt-DkftHXS7-N7UENQ4C.js → prompt-DkftHXS7-TE2LNPAM.js} +1 -1
- package/dist/mcp-chunks/{record-command-JGTMATYI.js → record-command-RYDP3Y2A.js} +5 -5
- package/dist/mcp-chunks/{replay-command-S2VAC4RW.js → replay-command-QDJCQ5JU.js} +6 -6
- package/dist/mcp-chunks/{resource-command-SRFQQROJ.js → resource-command-RKHHQBFP.js} +9 -9
- package/dist/mcp-chunks/{result-utils-JASGNHXK.js → result-utils-ZD5GFX7P.js} +3 -3
- package/dist/mcp-chunks/runtime-F7PP4V25.js +39 -0
- package/dist/mcp-chunks/{runtime-wrapper-7HYO3NM5.js → runtime-wrapper-AV4JCNRF.js} +3 -3
- package/dist/mcp-chunks/{serve-command-YKSIXG7K.js → serve-command-MRPTK4XX.js} +26 -26
- package/dist/mcp-chunks/server-2WSYXDII.js +43 -0
- package/dist/mcp-chunks/{timeouts-BJWDJEMH.js → timeouts-2SQIDYBE.js} +4 -3
- package/dist/mcp-chunks/{vault-command-EYOIFWEY.js → vault-command-6JVDCFWU.js} +5 -5
- package/dist/mcp-chunks/{webapi-WMMA3OEC.js → webapi-CI4O7AUX.js} +1 -1
- package/dist/mcp-daemon.js +35 -31
- package/dist/mcp-run-worker.js +34 -30
- package/dist/model-binding.d.ts +34 -3
- package/dist/model-binding.d.ts.map +1 -1
- package/dist/model-binding.js +174 -4
- package/dist/model-binding.js.map +1 -1
- package/dist/recipe/manifest.generated.d.ts +2 -2
- package/dist/recipe/manifest.generated.d.ts.map +1 -1
- package/dist/recipe/manifest.generated.js +2 -2
- package/dist/recipe/manifest.generated.js.map +1 -1
- package/dist/recipe/model.d.ts +2 -0
- package/dist/recipe/model.d.ts.map +1 -1
- package/dist/recipe/model.js +15 -1
- package/dist/recipe/model.js.map +1 -1
- package/dist/session.d.ts +5 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +57 -6
- package/dist/session.js.map +1 -1
- package/dist/suggestion-picker.d.ts +2 -2
- package/dist/suggestion-picker.d.ts.map +1 -1
- package/dist/suggestion-picker.js +5 -3
- package/dist/suggestion-picker.js.map +1 -1
- package/docs/batch.md +2 -2
- package/docs/recipe-format.md +14 -3
- package/package.json +15 -15
- package/skills/documents/SKILL.md +6 -2
- package/skills/issues/SKILL.md +2 -1
- package/skills/search/SKILL.md +3 -0
- package/skills/signature/SKILL.md +4 -4
- package/dist/mcp-chunks/call-arguments-GCXZA4HC.js +0 -16
- package/dist/mcp-chunks/client-SBELHRAE.js +0 -32
- package/dist/mcp-chunks/daemon-command-MQS6AP2W.js +0 -32
- package/dist/mcp-chunks/dist-SDPPH7XQ.js +0 -65
- package/dist/mcp-chunks/generated-daemon-runtime-TUCZ3JEP.js +0 -32
- package/dist/mcp-chunks/runtime-5SOGEUTQ.js +0 -39
- package/dist/mcp-chunks/server-HQBFWAJR.js +0 -41
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
dumpActiveHandles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YGT57XUN.js";
|
|
5
|
+
import {
|
|
6
|
+
printCallOutput,
|
|
7
|
+
tailLogIfRequested
|
|
8
|
+
} from "./chunk-FDVES4CU.js";
|
|
5
9
|
import {
|
|
6
10
|
loadToolMetadata
|
|
7
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TQ5T5VO7.js";
|
|
8
12
|
import {
|
|
9
13
|
chooseClosestIdentifier,
|
|
10
14
|
normalizeIdentifier,
|
|
11
15
|
renderIdentifierResolutionMessages
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
dimText,
|
|
16
|
-
redText,
|
|
17
|
-
yellowText
|
|
18
|
-
} from "./chunk-IRARVOUM.js";
|
|
19
|
-
import {
|
|
20
|
-
printCallOutput,
|
|
21
|
-
tailLogIfRequested
|
|
22
|
-
} from "./chunk-RUF27IUF.js";
|
|
16
|
+
} from "./chunk-XU4D5QN2.js";
|
|
17
|
+
import "./chunk-7SQZWTDU.js";
|
|
23
18
|
import {
|
|
24
19
|
CALL_HELP_ARGUMENT_LINES,
|
|
25
20
|
CALL_HELP_EXAMPLE_LINES,
|
|
@@ -27,51 +22,56 @@ import {
|
|
|
27
22
|
buildUnknownCallFlagMessage,
|
|
28
23
|
buildUnvalidatedCallFlagMessage,
|
|
29
24
|
parseCallArguments
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
CliUsageError
|
|
33
|
-
} from "./chunk-H5PBSJP3.js";
|
|
25
|
+
} from "./chunk-44KI6DPL.js";
|
|
34
26
|
import {
|
|
35
27
|
resolveServerCallTimeout,
|
|
36
28
|
withTimeout
|
|
37
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QYR3UKJS.js";
|
|
30
|
+
import "./chunk-CIQX62WO.js";
|
|
38
31
|
import {
|
|
39
32
|
persistPreparedEphemeralServer,
|
|
40
33
|
prepareEphemeralServerTarget,
|
|
41
34
|
renderAdhocServerHelpLines
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-63L6SHK3.js";
|
|
44
|
-
import "./chunk-ZEA3Y5ZD.js";
|
|
45
|
-
import "./chunk-DU4SDPEV.js";
|
|
35
|
+
} from "./chunk-SYBDN4SV.js";
|
|
46
36
|
import {
|
|
47
37
|
buildConnectionIssueEnvelope
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-Y7UTXETL.js";
|
|
39
|
+
import "./chunk-ZEMVGFKG.js";
|
|
40
|
+
import "./chunk-QHD5RXW4.js";
|
|
41
|
+
import "./chunk-FJNWUAGR.js";
|
|
50
42
|
import {
|
|
51
43
|
looksLikeHttpUrl,
|
|
52
44
|
normalizeHttpUrlCandidate
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-32UZRZIL.js";
|
|
46
|
+
import "./chunk-ZJZ53NIB.js";
|
|
47
|
+
import {
|
|
48
|
+
dimText,
|
|
49
|
+
redText,
|
|
50
|
+
yellowText
|
|
51
|
+
} from "./chunk-VJ5VDK6D.js";
|
|
52
|
+
import {
|
|
53
|
+
CliUsageError
|
|
54
|
+
} from "./chunk-EV3SP7ME.js";
|
|
55
55
|
import {
|
|
56
56
|
wrapCallResult
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-DL3GVI4M.js";
|
|
58
|
+
import "./chunk-VLJQSE6L.js";
|
|
59
|
+
import "./chunk-YFPPHEDE.js";
|
|
60
|
+
import "./chunk-Y7JQJ352.js";
|
|
61
|
+
import "./chunk-OSK2JGFH.js";
|
|
62
|
+
import "./chunk-TTVO6RCP.js";
|
|
63
|
+
import "./chunk-MW3YO24Q.js";
|
|
64
|
+
import "./chunk-G5DK4L6M.js";
|
|
65
65
|
import "./chunk-T4MQCFIK.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-4ACA5GWL.js";
|
|
67
|
+
import "./chunk-CWM4RO33.js";
|
|
68
68
|
import {
|
|
69
69
|
analyzeConnectionError
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-7KOGD2JK.js";
|
|
71
|
+
import "./chunk-EUHXZKP2.js";
|
|
72
72
|
import "./chunk-LRKZP7DJ.js";
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/mcporter@0.
|
|
74
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/image-output.js
|
|
75
75
|
import fs from "node:fs";
|
|
76
76
|
import path from "node:path";
|
|
77
77
|
function saveCallImagesIfRequested(wrapped, outputDir) {
|
|
@@ -129,7 +129,7 @@ function resolveImageOutputPath(outputDir, baseName, extension) {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
// node_modules/.pnpm/mcporter@0.
|
|
132
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/call-command.js
|
|
133
133
|
async function handleCall(runtime, args) {
|
|
134
134
|
let prepared;
|
|
135
135
|
try {
|
|
@@ -301,7 +301,7 @@ async function maybeDescribeServer(runtime, server, tool, outputFormat, disableO
|
|
|
301
301
|
if (outputFormat === "json") {
|
|
302
302
|
listArgs2.push("--json");
|
|
303
303
|
}
|
|
304
|
-
const { handleList: handleList2 } = await import("./list-command-
|
|
304
|
+
const { handleList: handleList2 } = await import("./list-command-QBO4LK5Q.js");
|
|
305
305
|
await handleList2(runtime, listArgs2);
|
|
306
306
|
return true;
|
|
307
307
|
}
|
|
@@ -324,7 +324,7 @@ async function maybeDescribeServer(runtime, server, tool, outputFormat, disableO
|
|
|
324
324
|
if (outputFormat === "json") {
|
|
325
325
|
listArgs.push("--json");
|
|
326
326
|
}
|
|
327
|
-
const { handleList } = await import("./list-command-
|
|
327
|
+
const { handleList } = await import("./list-command-QBO4LK5Q.js");
|
|
328
328
|
await handleList(runtime, listArgs);
|
|
329
329
|
return true;
|
|
330
330
|
}
|
|
@@ -335,7 +335,7 @@ function resolveCallTarget(parsed, options = {}) {
|
|
|
335
335
|
if (selector && !server && selector.includes(".")) {
|
|
336
336
|
const split = splitServerToolSelector(selector);
|
|
337
337
|
server = split?.server ?? selector.slice(0, selector.indexOf("."));
|
|
338
|
-
tool = split?.tool;
|
|
338
|
+
tool = parsed.toolFromPositional ? split?.tool : tool ?? split?.tool;
|
|
339
339
|
} else if (selector && !server) {
|
|
340
340
|
server = selector;
|
|
341
341
|
} else if (selector && !tool && selector !== server) {
|
|
@@ -395,10 +395,16 @@ async function enforceSchemaAwareArgumentTypes(runtime, server, tool, args, stri
|
|
|
395
395
|
}
|
|
396
396
|
let corrected;
|
|
397
397
|
for (const [key, rawValue] of Object.entries(stringCandidates ?? {})) {
|
|
398
|
-
|
|
398
|
+
const value = args[key];
|
|
399
|
+
if (typeof value === "string") {
|
|
399
400
|
continue;
|
|
400
401
|
}
|
|
401
|
-
|
|
402
|
+
const descriptor = schemaProperties[key];
|
|
403
|
+
if (!schemaAllowsType(descriptor, "string")) {
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
const coercedType = value === null ? "null" : Array.isArray(value) ? "array" : typeof value;
|
|
407
|
+
if (coercedType !== "number" && schemaAllowsType(descriptor, coercedType)) {
|
|
402
408
|
continue;
|
|
403
409
|
}
|
|
404
410
|
corrected ??= { ...args };
|
|
@@ -409,7 +415,7 @@ async function enforceSchemaAwareArgumentTypes(runtime, server, tool, args, stri
|
|
|
409
415
|
continue;
|
|
410
416
|
}
|
|
411
417
|
const descriptor = schemaProperties[key];
|
|
412
|
-
if (!
|
|
418
|
+
if (!schemaAllowsType(descriptor, "array") || schemaAllowsType(descriptor, "string")) {
|
|
413
419
|
continue;
|
|
414
420
|
}
|
|
415
421
|
corrected ??= { ...args };
|
|
@@ -427,41 +433,21 @@ function readSchemaProperties(schema) {
|
|
|
427
433
|
}
|
|
428
434
|
return properties;
|
|
429
435
|
}
|
|
430
|
-
function
|
|
431
|
-
if (!descriptor || typeof descriptor !== "object") {
|
|
432
|
-
return false;
|
|
433
|
-
}
|
|
434
|
-
const record = descriptor;
|
|
435
|
-
const type = record.type;
|
|
436
|
-
if (type === "string") {
|
|
437
|
-
return true;
|
|
438
|
-
}
|
|
439
|
-
if (Array.isArray(type) && type.includes("string")) {
|
|
440
|
-
return true;
|
|
441
|
-
}
|
|
442
|
-
for (const key of ["anyOf", "oneOf", "allOf"]) {
|
|
443
|
-
const variants = record[key];
|
|
444
|
-
if (Array.isArray(variants) && variants.some(schemaAllowsString)) {
|
|
445
|
-
return true;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
return false;
|
|
449
|
-
}
|
|
450
|
-
function schemaAllowsArray(descriptor) {
|
|
436
|
+
function schemaAllowsType(descriptor, expected) {
|
|
451
437
|
if (!descriptor || typeof descriptor !== "object") {
|
|
452
438
|
return false;
|
|
453
439
|
}
|
|
454
440
|
const record = descriptor;
|
|
455
441
|
const type = record.type;
|
|
456
|
-
if (type ===
|
|
442
|
+
if (type === expected) {
|
|
457
443
|
return true;
|
|
458
444
|
}
|
|
459
|
-
if (Array.isArray(type) && type.includes(
|
|
445
|
+
if (Array.isArray(type) && type.includes(expected)) {
|
|
460
446
|
return true;
|
|
461
447
|
}
|
|
462
448
|
for (const key of ["anyOf", "oneOf", "allOf"]) {
|
|
463
449
|
const variants = record[key];
|
|
464
|
-
if (Array.isArray(variants) && variants.some(
|
|
450
|
+
if (Array.isArray(variants) && variants.some((variant) => schemaAllowsType(variant, expected))) {
|
|
465
451
|
return true;
|
|
466
452
|
}
|
|
467
453
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
buildRecordCommandEnv
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HKMH4N3Z.js";
|
|
5
5
|
import {
|
|
6
6
|
PRIVATE_RECORDING_FILE_MODE,
|
|
7
7
|
ensurePrivateRecordingDir,
|
|
8
8
|
resolveRecordingConfigPath,
|
|
9
9
|
resolveRecordingPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H44A4G2O.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/record-replay-command.js
|
|
13
13
|
import { spawn } from "node:child_process";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
async function writeRecordReplayConfig(parsed, mode) {
|
|
@@ -63,7 +63,7 @@ function buildRecordReplayInstructionEnv(mode, sessionName, server) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
// node_modules/.pnpm/mcporter@0.
|
|
66
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/record-command.js
|
|
67
67
|
async function handleRecordCli(args) {
|
|
68
68
|
const parsed = parseRecordArgs(args);
|
|
69
69
|
const recordPath = resolveRecordingPath(parsed.sessionName);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/runtime/elicitation.js
|
|
4
4
|
import readline from "node:readline";
|
|
5
5
|
var NON_INTERACTIVE_ELICITATION_HINT = "Server requested interactive input; run mcporter in a terminal.";
|
|
6
6
|
function createInteractiveElicitationResponder(options = {}) {
|