@introspection-ai/recipes 0.25.0 → 0.26.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/mcp-chunks/{auth-command-4WFRNU2I.js → auth-command-JBYNHHMV.js} +23 -27
- package/dist/mcp-chunks/call-arguments-S4EGFKUQ.js +15 -0
- package/dist/mcp-chunks/{call-command-JBIKXOGC.js → call-command-467BVXTE.js} +32 -33
- package/dist/mcp-chunks/{chunk-IPNSPKQK.js → chunk-3Q2Q7SBU.js} +12 -14
- package/dist/mcp-chunks/chunk-66P5FXP3.js +31 -0
- package/dist/mcp-chunks/{chunk-TF2YTYE4.js → chunk-6DVS7RBO.js} +1 -1
- package/dist/mcp-chunks/{chunk-IME7DGLJ.js → chunk-AK5ZEDEF.js} +2 -2
- package/dist/mcp-chunks/{chunk-OP3IW2V6.js → chunk-AP5VHS73.js} +2 -2
- package/dist/mcp-chunks/{chunk-B2LNXGAP.js → chunk-AS27BTCS.js} +1 -1
- package/dist/mcp-chunks/{chunk-MOEZ43ZL.js → chunk-BC2HDCYV.js} +1 -1
- package/dist/mcp-chunks/{chunk-RSTKSBVF.js → chunk-BSCNF4NY.js} +2 -2
- package/dist/mcp-chunks/chunk-BTU34BUG.js +1182 -0
- package/dist/mcp-chunks/{chunk-HN7WPMCA.js → chunk-CN5YF3IQ.js} +21042 -3688
- package/dist/mcp-chunks/{chunk-G6OMDUNG.js → chunk-CZ43ZITK.js} +1 -1
- package/dist/mcp-chunks/{chunk-JG4TRUPF.js → chunk-D2P2IV4H.js} +1 -1
- package/dist/mcp-chunks/{chunk-3R2WK3NB.js → chunk-DMBE47LM.js} +6 -6
- package/dist/mcp-chunks/{chunk-WTMJMM3B.js → chunk-EP22XMWK.js} +3 -30
- package/dist/mcp-chunks/{chunk-ITCCROID.js → chunk-EUDC3ICZ.js} +5 -5
- package/dist/mcp-chunks/{chunk-FX5NYWBH.js → chunk-G4H535MI.js} +3 -21
- package/dist/mcp-chunks/{chunk-HCOKLSOB.js → chunk-GA4ZYSRX.js} +4 -4
- package/dist/mcp-chunks/{chunk-C2KNLFZR.js → chunk-GEVQ2GJW.js} +2 -2
- package/dist/mcp-chunks/{chunk-WYLHHXI6.js → chunk-GK4LA4E6.js} +26 -11
- package/dist/mcp-chunks/{chunk-QZUC2T72.js → chunk-GL4AA5QV.js} +2 -2
- package/dist/mcp-chunks/{chunk-KW3ANJ36.js → chunk-HBN3ESMH.js} +4 -4
- package/dist/mcp-chunks/{chunk-ELA77TDC.js → chunk-HKZZGSDV.js} +4 -4
- package/dist/mcp-chunks/{chunk-36VIJRYY.js → chunk-HTXQPQPB.js} +4 -4
- package/dist/mcp-chunks/{chunk-3JGS7LQB.js → chunk-I7JR2GIC.js} +2 -2
- package/dist/mcp-chunks/{chunk-AIKLVBYU.js → chunk-IO2IMWYS.js} +2 -2
- package/dist/mcp-chunks/{chunk-RD7NHCRK.js → chunk-J2WP6ERZ.js} +39 -42
- package/dist/mcp-chunks/{chunk-HLRCUHNO.js → chunk-KJNNO5Z6.js} +1 -1
- package/dist/mcp-chunks/{chunk-4ZNBWL65.js → chunk-L2LGMX5P.js} +2 -2
- package/dist/mcp-chunks/chunk-LG3GLOSA.js +513 -0
- package/dist/mcp-chunks/{chunk-CZKDJZER.js → chunk-LTR626QF.js} +1 -1
- package/dist/mcp-chunks/{chunk-FS5JIKT6.js → chunk-LYWEATXZ.js} +6 -6
- package/dist/mcp-chunks/{chunk-YIRGLKDA.js → chunk-M62ESEOY.js} +45 -14
- package/dist/mcp-chunks/{chunk-V5AYEKSL.js → chunk-MJHMXYMO.js} +52 -81
- package/dist/mcp-chunks/{chunk-7WOKCV6Q.js → chunk-N7ZWX3WW.js} +1 -1
- package/dist/mcp-chunks/chunk-NTABJCUL.js +123 -0
- package/dist/mcp-chunks/{chunk-EPT4MYOF.js → chunk-OABFKFSL.js} +11 -11
- package/dist/mcp-chunks/{chunk-SCOMDV54.js → chunk-OB256NMD.js} +1 -1
- package/dist/mcp-chunks/{chunk-IYWYVHHD.js → chunk-OZQTZWW4.js} +1 -1
- package/dist/mcp-chunks/{chunk-ITR7FQM3.js → chunk-QIBGY4IX.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZOAQDFAO.js → chunk-REEFOL44.js} +1 -1
- package/dist/mcp-chunks/{chunk-ED2WN5BI.js → chunk-SUNOYTQJ.js} +3 -3
- package/dist/mcp-chunks/{chunk-Y3EDWN2P.js → chunk-TFU4NKFJ.js} +1 -1
- package/dist/mcp-chunks/{chunk-EMSNQHZZ.js → chunk-TGPIW6F6.js} +1 -1
- package/dist/mcp-chunks/{chunk-SNKXMWDB.js → chunk-UCJ7YDFN.js} +1 -1
- package/dist/mcp-chunks/{chunk-TPHPAEDH.js → chunk-WUEDIOR5.js} +1 -1
- package/dist/mcp-chunks/{chunk-FAJPJTOC.js → chunk-XCNWICLD.js} +1 -1
- package/dist/mcp-chunks/{chunk-6YZW3XAE.js → chunk-XFQSUC7T.js} +5 -5
- package/dist/mcp-chunks/{chunk-GQ6NSIDS.js → chunk-Y3L5LWBY.js} +3037 -747
- package/dist/mcp-chunks/{chunk-53NRFMB3.js → chunk-YI5SMRFH.js} +46 -25
- package/dist/mcp-chunks/{chunk-GUXMP7QB.js → chunk-YPTN46JQ.js} +2 -2
- package/dist/mcp-chunks/{chunk-I5GI2A2D.js → chunk-YVH36MGQ.js} +2 -2
- package/dist/mcp-chunks/{chunk-ASG4OY3M.js → chunk-Z6QEOUMK.js} +22 -23
- package/dist/mcp-chunks/{cli-XU26MUCN.js → cli-TN6JTLTS.js} +108 -77
- package/dist/mcp-chunks/client-G33HPQAC.js +29 -0
- package/dist/mcp-chunks/{config-command-UQMMIK2U.js → config-command-LICU56ZH.js} +27 -28
- package/dist/mcp-chunks/daemon-command-JLVHGWHB.js +29 -0
- package/dist/mcp-chunks/{dist-DM2RXZMU.js → dist-MFAWSKGH.js} +80 -46
- package/dist/mcp-chunks/{emit-ts-command-KAOL6DAN.js → emit-ts-command-FVX3JMSN.js} +18 -18
- package/dist/mcp-chunks/{generate-cli-runner-AK6XNRTK.js → generate-cli-runner-L2L7VMCA.js} +53 -51
- package/dist/mcp-chunks/generated-daemon-runtime-DC6IL7E7.js +29 -0
- package/dist/mcp-chunks/{inspect-cli-command-6FVJO7H2.js → inspect-cli-command-Y5D3GRE2.js} +9 -10
- package/dist/mcp-chunks/{launch-EIT73HX4.js → launch-ZFY6CM2A.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-QH4TUI3K.js → lifecycle-H7DIW5DM.js} +1 -1
- package/dist/mcp-chunks/{list-command-UOB2XZK7.js → list-command-55LCLW4S.js} +34 -35
- package/dist/mcp-chunks/{output-utils-6YXH23T7.js → output-utils-YYHI637S.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-ZB6RFAXR.js → prompt-CH6TK0bC-DZLFAAPK.js} +1 -1
- package/dist/mcp-chunks/{record-command-FO5TTERC.js → record-command-PWIBYC5J.js} +5 -5
- package/dist/mcp-chunks/{replay-command-SCBPCGQ7.js → replay-command-QHZZZMXF.js} +6 -6
- package/dist/mcp-chunks/{resource-command-S2J7XEMV.js → resource-command-HMR2KXWK.js} +9 -10
- package/dist/mcp-chunks/{result-utils-OME6HGS6.js → result-utils-UGCQSRJ4.js} +3 -4
- package/dist/mcp-chunks/runtime-ZNFPZXKE.js +36 -0
- package/dist/mcp-chunks/runtime-wrapper-I4B3OROR.js +10 -0
- package/dist/mcp-chunks/{serve-command-DDBZZSG6.js → serve-command-NTDI3YPN.js} +29 -34
- package/dist/mcp-chunks/{timeouts-HNGNKDQN.js → timeouts-35UDWFA7.js} +3 -3
- package/dist/mcp-chunks/{vault-command-TJZYS3YI.js → vault-command-D5QZL4FI.js} +4 -6
- package/dist/mcp-daemon.js +26 -31
- package/dist/mcp-run-worker.js +26 -31
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +27 -0
- package/dist/pi-extension.js.map +1 -1
- package/docs/pi-extension.md +1 -1
- package/docs/recipe-format.md +7 -3
- package/docs/recipe-templates.md +46 -0
- package/package.json +14 -14
- package/dist/mcp-chunks/call-arguments-4DWPBLQP.js +0 -15
- package/dist/mcp-chunks/chunk-3Z7MFS6K.js +0 -86
- package/dist/mcp-chunks/chunk-AD3FQ73K.js +0 -39
- package/dist/mcp-chunks/chunk-BWW4XRUC.js +0 -1931
- package/dist/mcp-chunks/chunk-DTZHEVKC.js +0 -12
- package/dist/mcp-chunks/chunk-H3JCYHGS.js +0 -1018
- package/dist/mcp-chunks/chunk-IRTJXFWA.js +0 -28
- package/dist/mcp-chunks/chunk-NTHUNCXJ.js +0 -526
- package/dist/mcp-chunks/chunk-OD3MSMXY.js +0 -15
- package/dist/mcp-chunks/chunk-PZ323CXI.js +0 -17394
- package/dist/mcp-chunks/client-OT34CKRH.js +0 -21
- package/dist/mcp-chunks/daemon-command-YCIOZGPZ.js +0 -35
- package/dist/mcp-chunks/runtime-QIPMLIJI.js +0 -39
- package/dist/mcp-chunks/runtime-wrapper-X4YFKMJI.js +0 -16
|
@@ -3,53 +3,49 @@ import {
|
|
|
3
3
|
getActiveLogger,
|
|
4
4
|
logInfo,
|
|
5
5
|
logWarn
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YPTN46JQ.js";
|
|
7
7
|
import {
|
|
8
8
|
persistPreparedEphemeralServer,
|
|
9
9
|
prepareEphemeralServerTarget,
|
|
10
10
|
renderAdhocServerHelpLines
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-EUDC3ICZ.js";
|
|
12
|
+
import "./chunk-AK5ZEDEF.js";
|
|
13
|
+
import "./chunk-DMBE47LM.js";
|
|
14
14
|
import {
|
|
15
15
|
buildConnectionIssueEnvelope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UCJ7YDFN.js";
|
|
17
17
|
import {
|
|
18
18
|
extractEphemeralServerFlags
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BC2HDCYV.js";
|
|
20
20
|
import {
|
|
21
21
|
looksLikeHttpUrl
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CZ43ZITK.js";
|
|
23
23
|
import {
|
|
24
24
|
consumeOutputFormat
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TFU4NKFJ.js";
|
|
26
26
|
import {
|
|
27
27
|
isOAuthFlowError,
|
|
28
|
-
resolveOAuthTimeoutFromEnv
|
|
29
|
-
|
|
28
|
+
resolveOAuthTimeoutFromEnv,
|
|
29
|
+
suppressBrowserLaunchFromEnv
|
|
30
|
+
} from "./chunk-M62ESEOY.js";
|
|
30
31
|
import {
|
|
31
32
|
clearOAuthCaches
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-Z6QEOUMK.js";
|
|
34
|
+
import "./chunk-YI5SMRFH.js";
|
|
35
|
+
import "./chunk-N7ZWX3WW.js";
|
|
36
|
+
import "./chunk-J2WP6ERZ.js";
|
|
37
|
+
import "./chunk-QIBGY4IX.js";
|
|
38
|
+
import "./chunk-G4H535MI.js";
|
|
39
|
+
import "./chunk-LYWEATXZ.js";
|
|
40
|
+
import "./chunk-EP22XMWK.js";
|
|
41
|
+
import "./chunk-D2P2IV4H.js";
|
|
36
42
|
import {
|
|
37
43
|
analyzeConnectionError
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import {
|
|
41
|
-
suppressBrowserLaunchFromEnv
|
|
42
|
-
} from "./chunk-DTZHEVKC.js";
|
|
43
|
-
import "./chunk-RD7NHCRK.js";
|
|
44
|
-
import "./chunk-ITR7FQM3.js";
|
|
45
|
-
import "./chunk-FX5NYWBH.js";
|
|
46
|
-
import "./chunk-FS5JIKT6.js";
|
|
47
|
-
import "./chunk-WTMJMM3B.js";
|
|
48
|
-
import "./chunk-JG4TRUPF.js";
|
|
49
|
-
import "./chunk-HN7WPMCA.js";
|
|
44
|
+
} from "./chunk-GL4AA5QV.js";
|
|
45
|
+
import "./chunk-CN5YF3IQ.js";
|
|
50
46
|
import "./chunk-LRKZP7DJ.js";
|
|
51
47
|
|
|
52
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
48
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/auth-command.js
|
|
53
49
|
import { spawn } from "node:child_process";
|
|
54
50
|
async function handleAuth(runtime, args, options = {}) {
|
|
55
51
|
const browserSuppression = consumeBrowserSuppression(args, process.env);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
parseCallArguments
|
|
4
|
+
} from "./chunk-OABFKFSL.js";
|
|
5
|
+
import "./chunk-LTR626QF.js";
|
|
6
|
+
import "./chunk-IO2IMWYS.js";
|
|
7
|
+
import "./chunk-BC2HDCYV.js";
|
|
8
|
+
import "./chunk-CZ43ZITK.js";
|
|
9
|
+
import "./chunk-TFU4NKFJ.js";
|
|
10
|
+
import "./chunk-YVH36MGQ.js";
|
|
11
|
+
import "./chunk-EP22XMWK.js";
|
|
12
|
+
import "./chunk-LRKZP7DJ.js";
|
|
13
|
+
export {
|
|
14
|
+
parseCallArguments
|
|
15
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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-I7JR2GIC.js";
|
|
5
5
|
import {
|
|
6
6
|
CALL_HELP_ARGUMENT_LINES,
|
|
7
7
|
CALL_HELP_EXAMPLE_LINES,
|
|
@@ -9,68 +9,67 @@ import {
|
|
|
9
9
|
buildUnknownCallFlagMessage,
|
|
10
10
|
buildUnvalidatedCallFlagMessage,
|
|
11
11
|
parseCallArguments
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OABFKFSL.js";
|
|
13
13
|
import {
|
|
14
14
|
CliUsageError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LTR626QF.js";
|
|
16
16
|
import {
|
|
17
17
|
printCallOutput,
|
|
18
18
|
tailLogIfRequested
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-GEVQ2GJW.js";
|
|
20
|
+
import "./chunk-YPTN46JQ.js";
|
|
21
21
|
import {
|
|
22
22
|
loadToolMetadata
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BSCNF4NY.js";
|
|
24
24
|
import {
|
|
25
25
|
chooseClosestIdentifier,
|
|
26
26
|
normalizeIdentifier,
|
|
27
27
|
renderIdentifierResolutionMessages
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-KJNNO5Z6.js";
|
|
29
|
+
import "./chunk-WUEDIOR5.js";
|
|
30
30
|
import {
|
|
31
31
|
dimText,
|
|
32
32
|
redText,
|
|
33
33
|
yellowText
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OB256NMD.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveCallTimeout,
|
|
37
37
|
withTimeout
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-IO2IMWYS.js";
|
|
39
39
|
import {
|
|
40
40
|
persistPreparedEphemeralServer,
|
|
41
41
|
prepareEphemeralServerTarget,
|
|
42
42
|
renderAdhocServerHelpLines
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-EUDC3ICZ.js";
|
|
44
|
+
import "./chunk-AK5ZEDEF.js";
|
|
45
|
+
import "./chunk-DMBE47LM.js";
|
|
46
46
|
import {
|
|
47
47
|
buildConnectionIssueEnvelope
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-UCJ7YDFN.js";
|
|
49
|
+
import "./chunk-BC2HDCYV.js";
|
|
50
50
|
import {
|
|
51
51
|
looksLikeHttpUrl,
|
|
52
52
|
normalizeHttpUrlCandidate
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-CZ43ZITK.js";
|
|
54
|
+
import "./chunk-TFU4NKFJ.js";
|
|
55
55
|
import {
|
|
56
56
|
wrapCallResult
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-L2LGMX5P.js";
|
|
58
|
+
import "./chunk-N7ZWX3WW.js";
|
|
59
|
+
import "./chunk-YVH36MGQ.js";
|
|
60
|
+
import "./chunk-J2WP6ERZ.js";
|
|
61
|
+
import "./chunk-QIBGY4IX.js";
|
|
62
|
+
import "./chunk-G4H535MI.js";
|
|
63
|
+
import "./chunk-LYWEATXZ.js";
|
|
64
|
+
import "./chunk-EP22XMWK.js";
|
|
65
|
+
import "./chunk-D2P2IV4H.js";
|
|
59
66
|
import {
|
|
60
67
|
analyzeConnectionError
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-I5GI2A2D.js";
|
|
64
|
-
import "./chunk-RD7NHCRK.js";
|
|
65
|
-
import "./chunk-ITR7FQM3.js";
|
|
66
|
-
import "./chunk-FX5NYWBH.js";
|
|
67
|
-
import "./chunk-FS5JIKT6.js";
|
|
68
|
-
import "./chunk-WTMJMM3B.js";
|
|
69
|
-
import "./chunk-JG4TRUPF.js";
|
|
70
|
-
import "./chunk-HN7WPMCA.js";
|
|
68
|
+
} from "./chunk-GL4AA5QV.js";
|
|
69
|
+
import "./chunk-CN5YF3IQ.js";
|
|
71
70
|
import "./chunk-LRKZP7DJ.js";
|
|
72
71
|
|
|
73
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
72
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/image-output.js
|
|
74
73
|
import fs from "node:fs";
|
|
75
74
|
import path from "node:path";
|
|
76
75
|
function saveCallImagesIfRequested(wrapped, outputDir) {
|
|
@@ -128,7 +127,7 @@ function resolveImageOutputPath(outputDir, baseName, extension) {
|
|
|
128
127
|
}
|
|
129
128
|
}
|
|
130
129
|
|
|
131
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
130
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/call-command.js
|
|
132
131
|
async function handleCall(runtime, args) {
|
|
133
132
|
let prepared;
|
|
134
133
|
try {
|
|
@@ -295,7 +294,7 @@ async function maybeDescribeServer(runtime, server, tool, outputFormat, disableO
|
|
|
295
294
|
if (outputFormat === "json") {
|
|
296
295
|
listArgs2.push("--json");
|
|
297
296
|
}
|
|
298
|
-
const { handleList: handleList2 } = await import("./list-command-
|
|
297
|
+
const { handleList: handleList2 } = await import("./list-command-55LCLW4S.js");
|
|
299
298
|
await handleList2(runtime, listArgs2);
|
|
300
299
|
return true;
|
|
301
300
|
}
|
|
@@ -318,7 +317,7 @@ async function maybeDescribeServer(runtime, server, tool, outputFormat, disableO
|
|
|
318
317
|
if (outputFormat === "json") {
|
|
319
318
|
listArgs.push("--json");
|
|
320
319
|
}
|
|
321
|
-
const { handleList } = await import("./list-command-
|
|
320
|
+
const { handleList } = await import("./list-command-55LCLW4S.js");
|
|
322
321
|
await handleList(runtime, listArgs);
|
|
323
322
|
return true;
|
|
324
323
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
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-XFQSUC7T.js";
|
|
5
5
|
import {
|
|
6
6
|
buildEmbeddedSchemaMap,
|
|
7
7
|
toCliOptionKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WUEDIOR5.js";
|
|
9
9
|
import {
|
|
10
10
|
parsePositiveInteger
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IO2IMWYS.js";
|
|
12
12
|
import {
|
|
13
13
|
stableJsonStringify
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AS27BTCS.js";
|
|
15
15
|
import {
|
|
16
16
|
MCPORTER_VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NTABJCUL.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
19
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/flag-parser.js
|
|
20
20
|
function extractGeneratorFlags(args, options = {}) {
|
|
21
21
|
const result = {};
|
|
22
22
|
let index = 0;
|
|
@@ -58,12 +58,12 @@ function extractGeneratorFlags(args, options = {}) {
|
|
|
58
58
|
return result;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
61
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/template.js
|
|
62
62
|
import { realpathSync } from "node:fs";
|
|
63
63
|
import fs2 from "node:fs/promises";
|
|
64
64
|
import path from "node:path";
|
|
65
65
|
|
|
66
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
66
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/fs-helpers.js
|
|
67
67
|
import fs from "node:fs/promises";
|
|
68
68
|
async function markExecutable(filePath) {
|
|
69
69
|
try {
|
|
@@ -94,7 +94,7 @@ function shouldIgnorePosixPermissionError(error) {
|
|
|
94
94
|
return code === "EPERM" || code === "EINVAL" || code === "ENOSYS" || code === "EACCES";
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
97
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/template-help.js
|
|
98
98
|
function renderEmbeddedHelpSource() {
|
|
99
99
|
return `function configureGeneratedCommandHelp(command: Command): void {
|
|
100
100
|
command.configureHelp({
|
|
@@ -208,7 +208,7 @@ function quickStartExamples(): Array<[string, string]> {
|
|
|
208
208
|
`;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
211
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/template.js
|
|
212
212
|
async function writeTemplate(input) {
|
|
213
213
|
const resolvedOutput = input.outputPath ? path.resolve(input.outputPath) : path.resolve(process.cwd(), `${input.serverName}.ts`);
|
|
214
214
|
const runtimeScriptPath = input.runtimeScriptPath ? path.resolve(input.runtimeScriptPath) : resolvedOutput;
|
|
@@ -503,6 +503,7 @@ async function ensureRuntime() {
|
|
|
503
503
|
const server = normalizeEmbeddedServer(embeddedServer);
|
|
504
504
|
const baseRuntime = await createRuntime({
|
|
505
505
|
servers: [server as any],
|
|
506
|
+
clientInfo: { name: 'mcporter', version: ${JSON.stringify(MCPORTER_VERSION)} },
|
|
506
507
|
});
|
|
507
508
|
return await createGeneratedKeepAliveRuntime(baseRuntime, server as any);
|
|
508
509
|
}
|
|
@@ -559,10 +560,7 @@ function parseGeneratedDaemonInvocation(rawArgs: string[]): { args: string[]; co
|
|
|
559
560
|
if (args[0] !== 'daemon') {
|
|
560
561
|
return null;
|
|
561
562
|
}
|
|
562
|
-
|
|
563
|
-
throw new Error('Generated daemon invocation is missing --config.');
|
|
564
|
-
}
|
|
565
|
-
return { args: args.slice(1), configPath, rootDir };
|
|
563
|
+
return { args: args.slice(1), configPath: configPath ?? '', rootDir };
|
|
566
564
|
}
|
|
567
565
|
|
|
568
566
|
async function runCli(): Promise<void> {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
createKeepAliveRuntime
|
|
4
|
+
} from "./chunk-MJHMXYMO.js";
|
|
5
|
+
import {
|
|
6
|
+
DaemonClient
|
|
7
|
+
} from "./chunk-BTU34BUG.js";
|
|
8
|
+
import {
|
|
9
|
+
isKeepAliveServer
|
|
10
|
+
} from "./chunk-D2P2IV4H.js";
|
|
11
|
+
|
|
12
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/generated-daemon-runtime.js
|
|
13
|
+
async function createGeneratedKeepAliveRuntime(base, server) {
|
|
14
|
+
if (!isKeepAliveServer(server)) {
|
|
15
|
+
return {
|
|
16
|
+
runtime: base,
|
|
17
|
+
close: async (target) => {
|
|
18
|
+
await base.close(target);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
const runtime = createKeepAliveRuntime(base, {
|
|
23
|
+
daemonClient: new DaemonClient({ configPath: "", configExplicit: false }),
|
|
24
|
+
keepAliveServers: /* @__PURE__ */ new Set([server.name])
|
|
25
|
+
});
|
|
26
|
+
return { runtime, close: () => runtime.close() };
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
createGeneratedKeepAliveRuntime
|
|
31
|
+
};
|
|
@@ -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.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/flag-utils.js
|
|
4
4
|
function extractFlags(args, keys) {
|
|
5
5
|
const flags = {};
|
|
6
6
|
let index = 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
normalizeHttpUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CZ43ZITK.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/server-lookup.js
|
|
7
7
|
function findServerByHttpUrl(definitions, urlString) {
|
|
8
8
|
const normalizedTarget = normalizeHttpUrl(urlString);
|
|
9
9
|
if (!normalizedTarget) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
legacyMcporterDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LYWEATXZ.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/runtime/record-transport.js
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
var initializedRecordingPaths = /* @__PURE__ */ new Map();
|
|
@@ -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.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/stable-json.js
|
|
4
4
|
function stableJsonStringify(value, space) {
|
|
5
5
|
const json = JSON.stringify(sortJsonValue(value), void 0, space);
|
|
6
6
|
if (json === void 0) {
|
|
@@ -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.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/ephemeral-flags.js
|
|
4
4
|
function extractEphemeralServerFlags(args, options = {}) {
|
|
5
5
|
let spec;
|
|
6
6
|
const ensureSpec = () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
buildToolMetadataList
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WUEDIOR5.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/tool-cache.js
|
|
7
7
|
var runtimeCache = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
function cacheKey(serverName, options) {
|
|
9
9
|
const includeSchema = options.includeSchema !== false;
|