@introspection-ai/recipes 0.35.0 → 0.36.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-SDTBVC2R.js → auth-command-GMMLBU24.js} +23 -23
- package/dist/mcp-chunks/call-arguments-WSURHOLV.js +16 -0
- package/dist/mcp-chunks/{call-command-WOZT2DLX.js → call-command-2VF6IKAZ.js} +33 -33
- package/dist/mcp-chunks/{chunk-WQBESOWG.js → chunk-22WCLO4D.js} +7 -6
- package/dist/mcp-chunks/{chunk-2IO3FXZJ.js → chunk-2JTXIMGE.js} +1 -1
- package/dist/mcp-chunks/{chunk-SVCKS5MW.js → chunk-347GOMV4.js} +5 -5
- package/dist/mcp-chunks/{chunk-IR5SMKTP.js → chunk-35LLRCRA.js} +303 -128
- package/dist/mcp-chunks/{chunk-EIXFNLU6.js → chunk-3AAF3FSI.js} +1 -1
- package/dist/mcp-chunks/{chunk-TKZA4MPW.js → chunk-4PN2J74H.js} +4 -4
- package/dist/mcp-chunks/{chunk-FWWPRZ37.js → chunk-4U4BUXQD.js} +16 -16
- package/dist/mcp-chunks/{chunk-XDARNDP3.js → chunk-5OO6WVPL.js} +1 -1
- package/dist/mcp-chunks/{chunk-4IXQQER3.js → chunk-5UK2JLTN.js} +5 -5
- package/dist/mcp-chunks/{chunk-M7VINGHY.js → chunk-6TIU2CDB.js} +7 -7
- package/dist/mcp-chunks/{chunk-VRTH73R5.js → chunk-6XC5JJWD.js} +73 -36
- package/dist/mcp-chunks/{chunk-OURSGEZX.js → chunk-7BVYBZ4J.js} +8 -8
- package/dist/mcp-chunks/{chunk-HM26TIPK.js → chunk-7IVXKYTI.js} +42 -22
- package/dist/mcp-chunks/{chunk-CO4CYU5W.js → chunk-ANNJGB6F.js} +62 -32
- package/dist/mcp-chunks/{chunk-TL7V3OBY.js → chunk-BIVX2WFX.js} +3 -3
- package/dist/mcp-chunks/{chunk-JRU5LZJQ.js → chunk-C4TJGC4F.js} +1 -1
- package/dist/mcp-chunks/{chunk-7X3JHUMH.js → chunk-CN5KSNWG.js} +1 -1
- package/dist/mcp-chunks/{chunk-UXI26V4F.js → chunk-D2SZ7KRY.js} +1 -1
- package/dist/mcp-chunks/{chunk-VWNF5PIF.js → chunk-D65GOMYV.js} +2 -2
- package/dist/mcp-chunks/{chunk-27XDYSXJ.js → chunk-DBNBEWRX.js} +4 -1
- package/dist/mcp-chunks/{chunk-P3S4OJPI.js → chunk-DUBQHYW4.js} +9 -9
- package/dist/mcp-chunks/{chunk-FMYP6JXX.js → chunk-ENBJFQ6H.js} +1 -1
- package/dist/mcp-chunks/{chunk-YTO7DITJ.js → chunk-FLUF2FRN.js} +3 -3
- package/dist/mcp-chunks/{chunk-IJTZ2ZRM.js → chunk-HFHIY5TO.js} +4 -4
- package/dist/mcp-chunks/{chunk-35JUFDQI.js → chunk-HI6VG5LR.js} +2 -2
- package/dist/mcp-chunks/{chunk-7OQUF6V6.js → chunk-IHOU2BEL.js} +2 -2
- package/dist/mcp-chunks/{chunk-7CI6DKEP.js → chunk-IMXPLUKE.js} +20 -20
- package/dist/mcp-chunks/{chunk-UHXTAPEC.js → chunk-LISNXOIQ.js} +1 -1
- package/dist/mcp-chunks/{chunk-ASFI5AJK.js → chunk-LRGMFF5S.js} +7 -7
- package/dist/mcp-chunks/{chunk-ALLS7CUV.js → chunk-LUVLTUKR.js} +1 -1
- package/dist/mcp-chunks/{chunk-SONMFI3S.js → chunk-LZUKBEQZ.js} +12 -12
- package/dist/mcp-chunks/{chunk-FQAJT6U2.js → chunk-O2C3HXGS.js} +1 -1
- package/dist/mcp-chunks/{chunk-EIF7GALA.js → chunk-OI3RTQXY.js} +1 -1
- package/dist/mcp-chunks/{chunk-CRX2G22W.js → chunk-OSTHIELS.js} +1 -1
- package/dist/mcp-chunks/{chunk-R636HUNL.js → chunk-P5YLK5G2.js} +17 -12
- package/dist/mcp-chunks/{chunk-YGRORKGT.js → chunk-QDFL757K.js} +99 -74
- package/dist/mcp-chunks/{chunk-DUJ5WAHC.js → chunk-QNZGFUKC.js} +2 -2
- package/dist/mcp-chunks/{chunk-GJ7DWMRT.js → chunk-R4OYHQ4V.js} +1 -1
- package/dist/mcp-chunks/{chunk-7ZZZ7MR2.js → chunk-RHXZKYM7.js} +1 -1
- package/dist/mcp-chunks/{chunk-POYT6GCW.js → chunk-RKQC2EE6.js} +2 -2
- package/dist/mcp-chunks/{chunk-43QNQO5C.js → chunk-RZZO3ZD4.js} +4 -4
- package/dist/mcp-chunks/{chunk-FUKRLUU7.js → chunk-SS7V7GVT.js} +4 -4
- package/dist/mcp-chunks/{chunk-FVZKQMZS.js → chunk-TYL2NVXI.js} +2 -2
- package/dist/mcp-chunks/{chunk-TDBM2UIR.js → chunk-U5QZHPCC.js} +10 -1
- package/dist/mcp-chunks/{chunk-6XBQDCGX.js → chunk-UQUM7ICD.js} +36 -17
- package/dist/mcp-chunks/{chunk-JQCSGX6E.js → chunk-VWPKJFK4.js} +2 -5
- package/dist/mcp-chunks/{chunk-AHDUZPNI.js → chunk-WXNGATQ7.js} +1 -1
- package/dist/mcp-chunks/{chunk-VCPUZFU7.js → chunk-YFCNRWLV.js} +2 -2
- package/dist/mcp-chunks/{chunk-IWXEOLJL.js → chunk-YPSODIQX.js} +18 -18
- package/dist/mcp-chunks/{chunk-CMDB57MS.js → chunk-YWFQPA4D.js} +2 -2
- package/dist/mcp-chunks/{chunk-YM7ZVYI2.js → chunk-ZI5XYM4C.js} +23 -7
- package/dist/mcp-chunks/{chunk-UYG7PAN2.js → chunk-ZJWZY54X.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZLV5S5UP.js → chunk-ZXIF7MKN.js} +2 -2
- package/dist/mcp-chunks/{cli-67GWFF4R.js → cli-4OQD3H4N.js} +77 -70
- package/dist/mcp-chunks/client-LXKCCVMT.js +31 -0
- package/dist/mcp-chunks/{config-command-3IKIRWMW.js → config-command-72TCIWPV.js} +63 -36
- package/dist/mcp-chunks/daemon-command-QHS3ACBM.js +31 -0
- package/dist/mcp-chunks/{dist-YL3LFKVP.js → dist-74UCKZK5.js} +95 -69
- package/dist/mcp-chunks/{emit-ts-command-YWKROLL2.js → emit-ts-command-KD4ON2SE.js} +34 -22
- package/dist/mcp-chunks/{generate-cli-runner-CZEVY2Y7.js → generate-cli-runner-HWGI6HPL.js} +55 -49
- package/dist/mcp-chunks/generated-daemon-runtime-7ORS5KBR.js +31 -0
- package/dist/mcp-chunks/{inspect-cli-command-5Y2LORK5.js → inspect-cli-command-FT5JSB7V.js} +9 -9
- package/dist/mcp-chunks/{launch-43TA3HYF.js → launch-AHLKP2VM.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-BY2ILXTB.js → lifecycle-BJDITFWN.js} +1 -1
- package/dist/mcp-chunks/{list-command-7RU7NNAV.js → list-command-YKF7RN6Y.js} +30 -30
- package/dist/mcp-chunks/{output-utils-2R3SA6KR.js → output-utils-LYB5IJRD.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-GKQOEUY4.js → prompt-CH6TK0bC-B3USYOND.js} +1 -1
- package/dist/mcp-chunks/{record-command-ROIRRNFS.js → record-command-MJW3Z5E5.js} +5 -5
- package/dist/mcp-chunks/{replay-command-Y2MYVQTL.js → replay-command-5ZHBUOLE.js} +6 -6
- package/dist/mcp-chunks/{resource-command-VUV7AYYQ.js → resource-command-L4I24AX5.js} +9 -9
- package/dist/mcp-chunks/{result-utils-5U7NVXDZ.js → result-utils-5WRI66KV.js} +3 -3
- package/dist/mcp-chunks/runtime-IKWDQLZF.js +38 -0
- package/dist/mcp-chunks/{runtime-wrapper-3BVFTSWJ.js → runtime-wrapper-WFMNIHD5.js} +3 -3
- package/dist/mcp-chunks/{serve-command-BXLQWHFW.js → serve-command-KNCSJUXS.js} +185 -78
- package/dist/mcp-chunks/{timeouts-6GL2F44N.js → timeouts-2ZHGSB3R.js} +3 -3
- package/dist/mcp-chunks/{vault-command-JCMW3DQA.js → vault-command-7EDL45AA.js} +4 -4
- package/dist/mcp-chunks/{webapi-UMWFGMQV.js → webapi-NNCZGUMZ.js} +46 -46
- package/dist/mcp-daemon.js +27 -27
- package/dist/mcp-run-worker.js +27 -27
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +8 -1
- package/dist/pi-extension.js.map +1 -1
- package/docs/slack.md +6 -0
- package/package.json +10 -10
- package/dist/mcp-chunks/call-arguments-ER7NWEPS.js +0 -16
- package/dist/mcp-chunks/client-MQMNAYYW.js +0 -31
- package/dist/mcp-chunks/daemon-command-OMOZ5MP7.js +0 -31
- package/dist/mcp-chunks/generated-daemon-runtime-SRFULTIT.js +0 -31
- package/dist/mcp-chunks/runtime-Q4SCCOQE.js +0 -38
|
@@ -2,41 +2,41 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
extractGeneratorFlags,
|
|
4
4
|
readPackageMetadata
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UQUM7ICD.js";
|
|
6
6
|
import {
|
|
7
7
|
loadToolMetadata
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZJWZY54X.js";
|
|
9
9
|
import {
|
|
10
10
|
buildToolDoc,
|
|
11
11
|
formatParameterObjectType
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-22WCLO4D.js";
|
|
13
|
+
import "./chunk-U5QZHPCC.js";
|
|
14
|
+
import "./chunk-OSTHIELS.js";
|
|
15
|
+
import "./chunk-D65GOMYV.js";
|
|
16
16
|
import {
|
|
17
17
|
findServerByHttpUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QNZGFUKC.js";
|
|
19
19
|
import {
|
|
20
20
|
extractHttpServerTarget
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LISNXOIQ.js";
|
|
22
22
|
import {
|
|
23
23
|
consumeOutputFormat
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-DBNBEWRX.js";
|
|
25
|
+
import "./chunk-R4OYHQ4V.js";
|
|
26
|
+
import "./chunk-YPSODIQX.js";
|
|
27
|
+
import "./chunk-DUBQHYW4.js";
|
|
28
28
|
import {
|
|
29
29
|
isRecord
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5OO6WVPL.js";
|
|
31
31
|
import "./chunk-T4MQCFIK.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-VWPKJFK4.js";
|
|
33
33
|
import "./chunk-LRKZP7DJ.js";
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/mcporter@0.
|
|
35
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/emit-ts-command.js
|
|
36
36
|
import fs from "node:fs/promises";
|
|
37
37
|
import path2 from "node:path";
|
|
38
38
|
|
|
39
|
-
// node_modules/.pnpm/mcporter@0.
|
|
39
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/emit-ts-templates.js
|
|
40
40
|
import path from "node:path";
|
|
41
41
|
function renderTypesModule(input) {
|
|
42
42
|
const lines = [];
|
|
@@ -80,7 +80,13 @@ function renderClientModule(input) {
|
|
|
80
80
|
const memberName = toMemberName(entry.toolName);
|
|
81
81
|
const access = toMemberAccess(entry.toolName);
|
|
82
82
|
lines.push(` async ${memberName}(params) {`);
|
|
83
|
-
|
|
83
|
+
if (entry.toolName === "call" || entry.toolName === "listTools") {
|
|
84
|
+
lines.push(` const toolProxy = createServerProxy(runtime, ${JSON.stringify(serverName)}, () => ${JSON.stringify(entry.toolName)});`);
|
|
85
|
+
lines.push(" const invoke = Reflect.get(toolProxy, Symbol()) as (params: unknown) => Promise<CallResult>;");
|
|
86
|
+
lines.push(" return invoke(params === undefined ? {} : params);");
|
|
87
|
+
} else {
|
|
88
|
+
lines.push(` return tools${access}(params === undefined ? {} : params);`);
|
|
89
|
+
}
|
|
84
90
|
lines.push(" },");
|
|
85
91
|
lines.push("");
|
|
86
92
|
});
|
|
@@ -173,7 +179,7 @@ function toObjectParams(entry) {
|
|
|
173
179
|
}
|
|
174
180
|
var SAFE_IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
175
181
|
function toMemberName(name) {
|
|
176
|
-
return SAFE_IDENTIFIER.test(name) ? name : JSON.stringify(name);
|
|
182
|
+
return SAFE_IDENTIFIER.test(name) && name !== "new" ? name : JSON.stringify(name);
|
|
177
183
|
}
|
|
178
184
|
function toMemberAccess(name) {
|
|
179
185
|
return SAFE_IDENTIFIER.test(name) ? `.${name}` : `[${JSON.stringify(name)}]`;
|
|
@@ -199,7 +205,7 @@ function describeSource(definition) {
|
|
|
199
205
|
return void 0;
|
|
200
206
|
}
|
|
201
207
|
|
|
202
|
-
// node_modules/.pnpm/mcporter@0.
|
|
208
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/emit-ts-command.js
|
|
203
209
|
async function handleEmitTs(runtime, args) {
|
|
204
210
|
const options = parseEmitTsArgs(args);
|
|
205
211
|
const definition = getServerDefinition(runtime, options.server);
|
|
@@ -230,8 +236,13 @@ async function handleEmitTs(runtime, args) {
|
|
|
230
236
|
return;
|
|
231
237
|
}
|
|
232
238
|
const typesOutPath = options.typesOutPath ?? deriveTypesOutPath(options.outPath);
|
|
233
|
-
const
|
|
234
|
-
const
|
|
239
|
+
const reservedTools = docEntries.filter(({ toolName }) => toolName === "close" || toolName === "then");
|
|
240
|
+
const clientDocs = docEntries.filter((entry) => !reservedTools.includes(entry));
|
|
241
|
+
if (reservedTools.length > 0) {
|
|
242
|
+
console.warn(`Skipping client methods ${reservedTools.map(({ toolName }) => JSON.stringify(toolName)).join(", ")}: these names conflict with client cleanup or Promise resolution. Use runtime.callTool() for these tools; --mode types includes every tool.`);
|
|
243
|
+
}
|
|
244
|
+
const typesSource = renderTypesModule({ interfaceName, docs: clientDocs, metadata, signatureStyle: "object" });
|
|
245
|
+
const clientSource = renderClientModule({ interfaceName, docs: clientDocs, metadata });
|
|
235
246
|
await writeFile(typesOutPath, typesSource);
|
|
236
247
|
await writeFile(options.outPath, clientSource);
|
|
237
248
|
if (options.format === "json") {
|
|
@@ -379,7 +390,8 @@ function buildDocEntries(serverName, metadataEntries, includeOptional) {
|
|
|
379
390
|
function buildInterfaceName(serverName) {
|
|
380
391
|
const cleaned = serverName.split(/[^A-Za-z0-9]+/).filter(Boolean).map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)).join("");
|
|
381
392
|
const base = cleaned.length > 0 ? cleaned : "Server";
|
|
382
|
-
|
|
393
|
+
const identifier = /^[0-9]/.test(base) ? `Server${base}` : base;
|
|
394
|
+
return `${identifier}Tools`;
|
|
383
395
|
}
|
|
384
396
|
function deriveTypesOutPath(tsPath) {
|
|
385
397
|
const dir = path2.dirname(tsPath);
|
|
@@ -5,70 +5,74 @@ import {
|
|
|
5
5
|
readPackageMetadata,
|
|
6
6
|
safeCopyFile,
|
|
7
7
|
writeTemplate
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UQUM7ICD.js";
|
|
9
9
|
import {
|
|
10
10
|
buildGenerateCliCommand,
|
|
11
11
|
readCliMetadata,
|
|
12
12
|
resolveGenerateRequestFromArtifact,
|
|
13
13
|
serializeDefinition,
|
|
14
14
|
validateToolSelection
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-ZI5XYM4C.js";
|
|
16
|
+
import "./chunk-WXNGATQ7.js";
|
|
17
17
|
import {
|
|
18
18
|
expectValue
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-CN5KSNWG.js";
|
|
20
|
+
import "./chunk-22WCLO4D.js";
|
|
21
21
|
import {
|
|
22
22
|
buildToolMetadataList,
|
|
23
23
|
toolsTestHelpers
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-U5QZHPCC.js";
|
|
25
|
+
import "./chunk-OSTHIELS.js";
|
|
26
|
+
import "./chunk-D65GOMYV.js";
|
|
27
27
|
import {
|
|
28
28
|
splitCommandLine,
|
|
29
29
|
toAsciiSlug
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LRGMFF5S.js";
|
|
31
31
|
import {
|
|
32
32
|
extractHttpServerTarget,
|
|
33
33
|
looksLikeHttpUrl,
|
|
34
34
|
normalizeHttpUrl,
|
|
35
35
|
normalizeHttpUrlCandidate,
|
|
36
36
|
splitHttpToolSelector
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LISNXOIQ.js";
|
|
38
38
|
import {
|
|
39
39
|
createRuntime
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-QDFL757K.js";
|
|
41
41
|
import {
|
|
42
42
|
stableJsonStringify
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-R4OYHQ4V.js";
|
|
44
|
+
import "./chunk-RHXZKYM7.js";
|
|
45
|
+
import "./chunk-TYL2NVXI.js";
|
|
46
|
+
import "./chunk-LZUKBEQZ.js";
|
|
47
|
+
import "./chunk-7BVYBZ4J.js";
|
|
48
|
+
import "./chunk-6TIU2CDB.js";
|
|
49
|
+
import "./chunk-C4TJGC4F.js";
|
|
50
|
+
import "./chunk-2JTXIMGE.js";
|
|
51
51
|
import {
|
|
52
52
|
MCPORTER_VERSION
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-YPSODIQX.js";
|
|
54
|
+
import "./chunk-DUBQHYW4.js";
|
|
55
55
|
import {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
import
|
|
61
|
-
|
|
56
|
+
RawEntrySchema,
|
|
57
|
+
loadServerDefinitions,
|
|
58
|
+
normalizeServerEntry
|
|
59
|
+
} from "./chunk-4U4BUXQD.js";
|
|
60
|
+
import {
|
|
61
|
+
parseJsonBuffer
|
|
62
|
+
} from "./chunk-5OO6WVPL.js";
|
|
63
|
+
import "./chunk-IHOU2BEL.js";
|
|
64
|
+
import "./chunk-RZZO3ZD4.js";
|
|
65
|
+
import "./chunk-ZXIF7MKN.js";
|
|
62
66
|
import "./chunk-T4MQCFIK.js";
|
|
63
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-VWPKJFK4.js";
|
|
64
68
|
import {
|
|
65
69
|
resolveLifecycle
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-3AAF3FSI.js";
|
|
71
|
+
import "./chunk-HI6VG5LR.js";
|
|
72
|
+
import "./chunk-35LLRCRA.js";
|
|
69
73
|
import "./chunk-LRKZP7DJ.js";
|
|
70
74
|
|
|
71
|
-
// node_modules/.pnpm/mcporter@0.
|
|
75
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/name-utils.js
|
|
72
76
|
function inferNameFromCommand(command) {
|
|
73
77
|
if (typeof command === "string") {
|
|
74
78
|
const normalizedHttp = normalizeHttpUrlCandidate(command);
|
|
@@ -227,7 +231,7 @@ function deriveNameFromUrl(url) {
|
|
|
227
231
|
return void 0;
|
|
228
232
|
}
|
|
229
233
|
|
|
230
|
-
// node_modules/.pnpm/mcporter@0.
|
|
234
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/flags.js
|
|
231
235
|
function parseGenerateFlags(args) {
|
|
232
236
|
const common = extractGeneratorFlags(args);
|
|
233
237
|
let server;
|
|
@@ -410,12 +414,12 @@ function normalizeCommandInput2(value) {
|
|
|
410
414
|
return command;
|
|
411
415
|
}
|
|
412
416
|
|
|
413
|
-
// node_modules/.pnpm/mcporter@0.
|
|
417
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/generate-cli.js
|
|
414
418
|
import fs3 from "node:fs/promises";
|
|
415
419
|
import { createHash } from "node:crypto";
|
|
416
420
|
import path3 from "node:path";
|
|
417
421
|
|
|
418
|
-
// node_modules/.pnpm/mcporter@0.
|
|
422
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/artifacts.js
|
|
419
423
|
import { execFile as execFile2 } from "node:child_process";
|
|
420
424
|
import fsSync from "node:fs";
|
|
421
425
|
import fs from "node:fs/promises";
|
|
@@ -423,7 +427,7 @@ import { builtinModules, createRequire } from "node:module";
|
|
|
423
427
|
import path from "node:path";
|
|
424
428
|
import { fileURLToPath } from "node:url";
|
|
425
429
|
|
|
426
|
-
// node_modules/.pnpm/mcporter@0.
|
|
430
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/runtime.js
|
|
427
431
|
import { execFile } from "node:child_process";
|
|
428
432
|
async function resolveRuntimeKind(runtimeOption, compileOption) {
|
|
429
433
|
if (runtimeOption) {
|
|
@@ -457,7 +461,7 @@ async function isBunAvailable() {
|
|
|
457
461
|
}
|
|
458
462
|
}
|
|
459
463
|
|
|
460
|
-
// node_modules/.pnpm/mcporter@0.
|
|
464
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/artifacts.js
|
|
461
465
|
var localRequire = createRequire(import.meta.url);
|
|
462
466
|
var packageRoot = fileURLToPath(new URL("../../..", import.meta.url));
|
|
463
467
|
var BUNDLED_DEPENDENCIES = ["commander", "mcporter", "jsonc-parser"];
|
|
@@ -472,7 +476,7 @@ async function bundleOutput({ sourcePath, targetPath, runtimeKind, minify, bundl
|
|
|
472
476
|
async function bundleWithRolldown({ sourcePath, targetPath, runtimeKind, minify }) {
|
|
473
477
|
let rolldownImpl;
|
|
474
478
|
try {
|
|
475
|
-
({ rolldown: rolldownImpl } = await import("./dist-
|
|
479
|
+
({ rolldown: rolldownImpl } = await import("./dist-74UCKZK5.js"));
|
|
476
480
|
} catch (error) {
|
|
477
481
|
const message = "Rolldown bundling is unavailable in this build of mcporter; rerun with --bundler bun or install mcporter via npm (Node.js) to use the Rolldown bundler.";
|
|
478
482
|
if (error instanceof Error) {
|
|
@@ -757,7 +761,7 @@ function resolveUniquePath(directory, baseName) {
|
|
|
757
761
|
return attempt;
|
|
758
762
|
}
|
|
759
763
|
|
|
760
|
-
// node_modules/.pnpm/mcporter@0.
|
|
764
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/definition.js
|
|
761
765
|
import fs2 from "node:fs/promises";
|
|
762
766
|
import path2 from "node:path";
|
|
763
767
|
function ensureInvocationDefaults(invocation, definition) {
|
|
@@ -781,7 +785,7 @@ async function resolveServerDefinition(serverRef, configPath, rootDir) {
|
|
|
781
785
|
const possiblePath = path2.resolve(trimmed);
|
|
782
786
|
try {
|
|
783
787
|
const buffer = await fs2.readFile(possiblePath, "utf8");
|
|
784
|
-
const parsed =
|
|
788
|
+
const parsed = parseJsonBuffer(buffer);
|
|
785
789
|
if (!parsed.mcpServers || typeof parsed.mcpServers !== "object") {
|
|
786
790
|
throw new Error(`Config file ${possiblePath} does not contain mcpServers.`);
|
|
787
791
|
}
|
|
@@ -794,11 +798,13 @@ async function resolveServerDefinition(serverRef, configPath, rootDir) {
|
|
|
794
798
|
throw new Error(`Config file ${possiblePath} does not define any servers.`);
|
|
795
799
|
}
|
|
796
800
|
const [name, value] = first;
|
|
801
|
+
const raw = value;
|
|
802
|
+
if (typeof raw.command === "object" && !Array.isArray(raw.command) || typeof raw.command === "string" && /^https?:\/\//i.test(raw.command)) {
|
|
803
|
+
return { definition: normalizeDefinition({ name, ...raw }), name };
|
|
804
|
+
}
|
|
805
|
+
const source = { kind: "local", path: possiblePath };
|
|
797
806
|
return {
|
|
798
|
-
definition:
|
|
799
|
-
name,
|
|
800
|
-
...value
|
|
801
|
-
}),
|
|
807
|
+
definition: normalizeServerEntry(name, RawEntrySchema.parse(value), path2.dirname(possiblePath), source, [source]),
|
|
802
808
|
name
|
|
803
809
|
};
|
|
804
810
|
} catch (error) {
|
|
@@ -838,7 +844,7 @@ async function fetchTools(definition, serverName, configPath, rootDir) {
|
|
|
838
844
|
rootDir,
|
|
839
845
|
servers: [definition]
|
|
840
846
|
});
|
|
841
|
-
const { createGeneratedKeepAliveRuntime } = await import("./generated-daemon-runtime-
|
|
847
|
+
const { createGeneratedKeepAliveRuntime } = await import("./generated-daemon-runtime-7ORS5KBR.js");
|
|
842
848
|
const context = await createGeneratedKeepAliveRuntime(base, definition);
|
|
843
849
|
const runtime = context.runtime;
|
|
844
850
|
try {
|
|
@@ -1113,7 +1119,7 @@ function toStringRecord(value) {
|
|
|
1113
1119
|
return Object.keys(result).length > 0 ? result : void 0;
|
|
1114
1120
|
}
|
|
1115
1121
|
|
|
1116
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1122
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/generate-cli.js
|
|
1117
1123
|
var REPRODUCIBLE_GENERATED_AT = "1970-01-01T00:00:00.000Z";
|
|
1118
1124
|
async function generateCli(options) {
|
|
1119
1125
|
const runtimeKind = await resolveRuntimeKind(options.runtime, options.compile);
|
|
@@ -1311,7 +1317,7 @@ function applyToolFilters(tools, includeTools, excludeTools) {
|
|
|
1311
1317
|
}
|
|
1312
1318
|
var __test = { ...toolsTestHelpers, applyToolFilters };
|
|
1313
1319
|
|
|
1314
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1320
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/output.js
|
|
1315
1321
|
async function performGenerateFromArtifact(metadata, request) {
|
|
1316
1322
|
const { outputPath, bundlePath, compilePath } = await generateCli(request);
|
|
1317
1323
|
if (metadata.artifact.kind === "binary" && compilePath) {
|
|
@@ -1335,7 +1341,7 @@ async function performGenerateFromRequest(request) {
|
|
|
1335
1341
|
}
|
|
1336
1342
|
}
|
|
1337
1343
|
|
|
1338
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1344
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/server-utils.js
|
|
1339
1345
|
function buildInlineServerDefinition(name, command, description) {
|
|
1340
1346
|
if (typeof command === "string") {
|
|
1341
1347
|
const url = normalizeHttpUrlCandidate(command) ?? command;
|
|
@@ -1368,7 +1374,7 @@ function buildInlineServerDefinition(name, command, description) {
|
|
|
1368
1374
|
};
|
|
1369
1375
|
}
|
|
1370
1376
|
|
|
1371
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1377
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate-cli-runner.js
|
|
1372
1378
|
async function handleGenerateCli(args, globalFlags) {
|
|
1373
1379
|
const parsed = parseGenerateFlags(args);
|
|
1374
1380
|
validateToolSelection(parsed.includeTools, parsed.excludeTools, {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
createGeneratedKeepAliveRuntime
|
|
4
|
+
} from "./chunk-SS7V7GVT.js";
|
|
5
|
+
import "./chunk-FLUF2FRN.js";
|
|
6
|
+
import "./chunk-6XC5JJWD.js";
|
|
7
|
+
import "./chunk-QDFL757K.js";
|
|
8
|
+
import "./chunk-R4OYHQ4V.js";
|
|
9
|
+
import "./chunk-RHXZKYM7.js";
|
|
10
|
+
import "./chunk-TYL2NVXI.js";
|
|
11
|
+
import "./chunk-LZUKBEQZ.js";
|
|
12
|
+
import "./chunk-7BVYBZ4J.js";
|
|
13
|
+
import "./chunk-6TIU2CDB.js";
|
|
14
|
+
import "./chunk-C4TJGC4F.js";
|
|
15
|
+
import "./chunk-2JTXIMGE.js";
|
|
16
|
+
import "./chunk-YPSODIQX.js";
|
|
17
|
+
import "./chunk-DUBQHYW4.js";
|
|
18
|
+
import "./chunk-4U4BUXQD.js";
|
|
19
|
+
import "./chunk-5OO6WVPL.js";
|
|
20
|
+
import "./chunk-IHOU2BEL.js";
|
|
21
|
+
import "./chunk-RZZO3ZD4.js";
|
|
22
|
+
import "./chunk-ZXIF7MKN.js";
|
|
23
|
+
import "./chunk-T4MQCFIK.js";
|
|
24
|
+
import "./chunk-VWPKJFK4.js";
|
|
25
|
+
import "./chunk-3AAF3FSI.js";
|
|
26
|
+
import "./chunk-HI6VG5LR.js";
|
|
27
|
+
import "./chunk-35LLRCRA.js";
|
|
28
|
+
import "./chunk-LRKZP7DJ.js";
|
|
29
|
+
export {
|
|
30
|
+
createGeneratedKeepAliveRuntime
|
|
31
|
+
};
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
buildGenerateCliCommand,
|
|
4
4
|
readCliMetadata,
|
|
5
5
|
shellQuote
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ZI5XYM4C.js";
|
|
7
|
+
import "./chunk-WXNGATQ7.js";
|
|
8
8
|
import {
|
|
9
9
|
expectValue
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CN5KSNWG.js";
|
|
11
11
|
import {
|
|
12
12
|
formatPathForDisplay,
|
|
13
13
|
formatSourceSuffix
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-4PN2J74H.js";
|
|
15
|
+
import "./chunk-OSTHIELS.js";
|
|
16
16
|
import {
|
|
17
17
|
consumeOutputFormat
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-DBNBEWRX.js";
|
|
19
|
+
import "./chunk-HI6VG5LR.js";
|
|
20
|
+
import "./chunk-35LLRCRA.js";
|
|
21
21
|
import "./chunk-LRKZP7DJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/mcporter@0.
|
|
23
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/inspect-cli-command.js
|
|
24
24
|
async function handleInspectCli(args) {
|
|
25
25
|
const parsed = parseInspectFlags(args);
|
|
26
26
|
const metadata = await readCliMetadata(parsed.artifactPath);
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
buildDaemonLaunchInvocation,
|
|
4
4
|
launchDaemonDetached
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-O2C3HXGS.js";
|
|
6
6
|
import "./chunk-LRKZP7DJ.js";
|
|
7
7
|
export {
|
|
8
8
|
buildDaemonLaunchInvocation,
|
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
extractListFlags
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-347GOMV4.js";
|
|
5
5
|
import {
|
|
6
6
|
loadToolMetadata
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZJWZY54X.js";
|
|
8
8
|
import {
|
|
9
9
|
chooseClosestIdentifier,
|
|
10
10
|
renderIdentifierResolutionMessages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OI3RTQXY.js";
|
|
12
12
|
import {
|
|
13
13
|
buildToolDoc,
|
|
14
14
|
formatExampleBlock
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-22WCLO4D.js";
|
|
16
|
+
import "./chunk-U5QZHPCC.js";
|
|
17
17
|
import {
|
|
18
18
|
classifyListError,
|
|
19
19
|
formatSourceSuffix,
|
|
20
20
|
renderServerListRow
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4PN2J74H.js";
|
|
22
22
|
import {
|
|
23
23
|
boldText,
|
|
24
24
|
dimText,
|
|
25
25
|
extraDimText,
|
|
26
26
|
supportsSpinner,
|
|
27
27
|
yellowText
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OSTHIELS.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveListTimeout,
|
|
31
31
|
withTimeout
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-D65GOMYV.js";
|
|
33
33
|
import {
|
|
34
34
|
persistPreparedEphemeralServer,
|
|
35
35
|
prepareEphemeralServerTarget,
|
|
36
36
|
renderAdhocServerHelpLines
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-5UK2JLTN.js";
|
|
38
|
+
import "./chunk-QNZGFUKC.js";
|
|
39
|
+
import "./chunk-LRGMFF5S.js";
|
|
40
40
|
import {
|
|
41
41
|
formatErrorMessage,
|
|
42
42
|
serializeConnectionIssue
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-ENBJFQ6H.js";
|
|
44
|
+
import "./chunk-7IVXKYTI.js";
|
|
45
45
|
import {
|
|
46
46
|
splitHttpToolSelector
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-LISNXOIQ.js";
|
|
48
|
+
import "./chunk-DBNBEWRX.js";
|
|
49
49
|
import {
|
|
50
50
|
setStdioLogMode
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2JTXIMGE.js";
|
|
52
52
|
import {
|
|
53
53
|
MCPORTER_VERSION
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
54
|
+
} from "./chunk-YPSODIQX.js";
|
|
55
|
+
import "./chunk-DUBQHYW4.js";
|
|
56
|
+
import "./chunk-4U4BUXQD.js";
|
|
57
|
+
import "./chunk-5OO6WVPL.js";
|
|
58
|
+
import "./chunk-IHOU2BEL.js";
|
|
59
|
+
import "./chunk-RZZO3ZD4.js";
|
|
60
|
+
import "./chunk-ZXIF7MKN.js";
|
|
61
61
|
import "./chunk-T4MQCFIK.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-VWPKJFK4.js";
|
|
63
|
+
import "./chunk-3AAF3FSI.js";
|
|
64
|
+
import "./chunk-HI6VG5LR.js";
|
|
65
|
+
import "./chunk-35LLRCRA.js";
|
|
66
66
|
import {
|
|
67
67
|
__export
|
|
68
68
|
} from "./chunk-LRKZP7DJ.js";
|
|
@@ -3522,7 +3522,7 @@ function ora(options) {
|
|
|
3522
3522
|
return new Ora(options);
|
|
3523
3523
|
}
|
|
3524
3524
|
|
|
3525
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3525
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/transport-utils.js
|
|
3526
3526
|
function formatTransportSummary(definition) {
|
|
3527
3527
|
if (definition.command.kind === "http") {
|
|
3528
3528
|
const url = definition.command.url instanceof URL ? definition.command.url.href : String(definition.command.url);
|
|
@@ -3532,7 +3532,7 @@ function formatTransportSummary(definition) {
|
|
|
3532
3532
|
return `STDIO ${rendered}`;
|
|
3533
3533
|
}
|
|
3534
3534
|
|
|
3535
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3535
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/list-output.js
|
|
3536
3536
|
function printSingleServerHeader(definition, toolCount, durationMs, transportSummary, sourcePath, options) {
|
|
3537
3537
|
const prefix = boldText(definition.name);
|
|
3538
3538
|
if (definition.description) {
|
|
@@ -3709,7 +3709,7 @@ function quoteCommandSegment(segment) {
|
|
|
3709
3709
|
return `'${segment.replace(/'/g, `'\\''`)}'`;
|
|
3710
3710
|
}
|
|
3711
3711
|
|
|
3712
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3712
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/list-command.js
|
|
3713
3713
|
async function handleList(runtime, args) {
|
|
3714
3714
|
const flags = extractListFlags(args);
|
|
3715
3715
|
let target = args.shift();
|
|
@@ -2,9 +2,9 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
printCallOutput,
|
|
4
4
|
tailLogIfRequested
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-RKQC2EE6.js";
|
|
6
|
+
import "./chunk-YWFQPA4D.js";
|
|
7
|
+
import "./chunk-C4TJGC4F.js";
|
|
8
8
|
import "./chunk-LRKZP7DJ.js";
|
|
9
9
|
export {
|
|
10
10
|
printCallOutput,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import "./chunk-LRKZP7DJ.js";
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
4
|
+
// node_modules/.pnpm/rolldown@1.2.13/node_modules/rolldown/dist/shared/prompt-CH6TK0bC.mjs
|
|
5
5
|
import g$1, { stdin, stdout } from "node:process";
|
|
6
6
|
import { WriteStream } from "node:tty";
|
|
7
7
|
import f from "node:readline";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
parseRecordArgs,
|
|
5
5
|
parseReplayArgs,
|
|
6
6
|
printRecordHelp
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-HFHIY5TO.js";
|
|
8
|
+
import "./chunk-D2SZ7KRY.js";
|
|
9
|
+
import "./chunk-TYL2NVXI.js";
|
|
10
|
+
import "./chunk-ZXIF7MKN.js";
|
|
11
|
+
import "./chunk-VWPKJFK4.js";
|
|
12
12
|
import "./chunk-LRKZP7DJ.js";
|
|
13
13
|
export {
|
|
14
14
|
handleRecordCli,
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
parseReplayArgs,
|
|
5
5
|
runRecordReplayCommand,
|
|
6
6
|
writeRecordReplayConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HFHIY5TO.js";
|
|
8
8
|
import {
|
|
9
9
|
buildReplayCommandEnv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D2SZ7KRY.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveRecordingPath
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-TYL2NVXI.js";
|
|
14
|
+
import "./chunk-ZXIF7MKN.js";
|
|
15
|
+
import "./chunk-VWPKJFK4.js";
|
|
16
16
|
import "./chunk-LRKZP7DJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/mcporter@0.
|
|
18
|
+
// node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/replay-command.js
|
|
19
19
|
async function handleReplayCli(args) {
|
|
20
20
|
const parsed = parseReplayArgs(args);
|
|
21
21
|
const replayPath = resolveRecordingPath(parsed.sessionName);
|