@introspection-ai/recipes 0.56.0 → 0.58.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/index.d.ts +2 -0
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js +2 -1
- package/dist/batch/index.js.map +1 -1
- package/dist/batch/runner.d.ts +5 -0
- package/dist/batch/runner.d.ts.map +1 -1
- package/dist/batch/runner.js +6 -0
- package/dist/batch/runner.js.map +1 -1
- 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/judges/classifier.d.ts +8 -0
- package/dist/judges/classifier.d.ts.map +1 -0
- package/dist/judges/classifier.js +30 -0
- package/dist/judges/classifier.js.map +1 -0
- package/dist/judges/cli-main.d.ts +41 -0
- package/dist/judges/cli-main.d.ts.map +1 -0
- package/dist/judges/cli-main.js +182 -0
- package/dist/judges/cli-main.js.map +1 -0
- package/dist/judges/cli.d.ts +2 -0
- package/dist/judges/cli.d.ts.map +1 -0
- package/dist/judges/cli.js +43 -0
- package/dist/judges/cli.js.map +1 -0
- package/dist/judges/controller.d.ts +78 -0
- package/dist/judges/controller.d.ts.map +1 -0
- package/dist/judges/controller.js +243 -0
- package/dist/judges/controller.js.map +1 -0
- package/dist/judges/definition.d.ts +86 -0
- package/dist/judges/definition.d.ts.map +1 -0
- package/dist/judges/definition.js +100 -0
- package/dist/judges/definition.js.map +1 -0
- package/dist/judges/gate.d.ts +46 -0
- package/dist/judges/gate.d.ts.map +1 -0
- package/dist/judges/gate.js +256 -0
- package/dist/judges/gate.js.map +1 -0
- package/dist/judges/identity.d.ts +21 -0
- package/dist/judges/identity.d.ts.map +1 -0
- package/dist/judges/identity.js +48 -0
- package/dist/judges/identity.js.map +1 -0
- package/dist/judges/index.d.ts +10 -0
- package/dist/judges/index.d.ts.map +1 -0
- package/dist/judges/index.js +10 -0
- package/dist/judges/index.js.map +1 -0
- package/dist/judges/resolve-hooks.d.ts +10 -0
- package/dist/judges/resolve-hooks.d.ts.map +1 -0
- package/dist/judges/resolve-hooks.js +25 -0
- package/dist/judges/resolve-hooks.js.map +1 -0
- package/dist/judges/run.d.ts +123 -0
- package/dist/judges/run.d.ts.map +1 -0
- package/dist/judges/run.js +319 -0
- package/dist/judges/run.js.map +1 -0
- package/dist/judges/session.d.ts +9 -0
- package/dist/judges/session.d.ts.map +1 -0
- package/dist/judges/session.js +109 -0
- package/dist/judges/session.js.map +1 -0
- package/dist/judges/trajectory.d.ts +91 -0
- package/dist/judges/trajectory.d.ts.map +1 -0
- package/dist/judges/trajectory.js +223 -0
- package/dist/judges/trajectory.js.map +1 -0
- package/dist/judges/verdict.d.ts +31 -0
- package/dist/judges/verdict.d.ts.map +1 -0
- package/dist/judges/verdict.js +121 -0
- package/dist/judges/verdict.js.map +1 -0
- 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 +44 -3
- package/dist/model-binding.d.ts.map +1 -1
- package/dist/model-binding.js +195 -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 +7 -12
- package/dist/recipe/model.d.ts.map +1 -1
- package/dist/recipe/model.js +197 -249
- package/dist/recipe/model.js.map +1 -1
- package/dist/session.d.ts +11 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +59 -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/README.md +1 -0
- package/docs/batch.md +2 -2
- package/docs/judges.md +269 -0
- package/docs/recipe-format.md +23 -12
- package/docs/recipe-judges.md +119 -59
- package/package.json +20 -16
- 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,42 +1,45 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
loadToolMetadata
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TQ5T5VO7.js";
|
|
5
5
|
import {
|
|
6
6
|
extractGeneratorFlags,
|
|
7
7
|
readPackageMetadata
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HPFIAALB.js";
|
|
9
9
|
import {
|
|
10
10
|
buildToolDoc,
|
|
11
11
|
formatParameterObjectType
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-TC2JPBFB.js";
|
|
12
|
+
} from "./chunk-3KSDZBUJ.js";
|
|
13
|
+
import "./chunk-7SQZWTDU.js";
|
|
14
|
+
import "./chunk-QYR3UKJS.js";
|
|
16
15
|
import {
|
|
17
16
|
findServerByHttpUrl
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZEMVGFKG.js";
|
|
19
18
|
import {
|
|
20
19
|
extractHttpServerTarget
|
|
21
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-32UZRZIL.js";
|
|
22
21
|
import {
|
|
23
22
|
consumeOutputFormat
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import
|
|
27
|
-
|
|
23
|
+
} from "./chunk-ZJZ53NIB.js";
|
|
24
|
+
import "./chunk-VJ5VDK6D.js";
|
|
25
|
+
import {
|
|
26
|
+
CliUsageError
|
|
27
|
+
} from "./chunk-EV3SP7ME.js";
|
|
28
|
+
import "./chunk-Z5XOB522.js";
|
|
29
|
+
import "./chunk-MSPGQEWX.js";
|
|
30
|
+
import "./chunk-VLJQSE6L.js";
|
|
28
31
|
import {
|
|
29
32
|
isRecord
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OSK2JGFH.js";
|
|
31
34
|
import "./chunk-T4MQCFIK.js";
|
|
32
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-4ACA5GWL.js";
|
|
33
36
|
import "./chunk-LRKZP7DJ.js";
|
|
34
37
|
|
|
35
|
-
// node_modules/.pnpm/mcporter@0.
|
|
38
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/emit-ts-command.js
|
|
36
39
|
import fs from "node:fs/promises";
|
|
37
40
|
import path2 from "node:path";
|
|
38
41
|
|
|
39
|
-
// node_modules/.pnpm/mcporter@0.
|
|
42
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/emit-ts-templates.js
|
|
40
43
|
import path from "node:path";
|
|
41
44
|
function renderTypesModule(input) {
|
|
42
45
|
const lines = [];
|
|
@@ -205,7 +208,7 @@ function describeSource(definition) {
|
|
|
205
208
|
return void 0;
|
|
206
209
|
}
|
|
207
210
|
|
|
208
|
-
// node_modules/.pnpm/mcporter@0.
|
|
211
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/emit-ts-command.js
|
|
209
212
|
async function handleEmitTs(runtime, args) {
|
|
210
213
|
const options = parseEmitTsArgs(args);
|
|
211
214
|
const definition = getServerDefinition(runtime, options.server);
|
|
@@ -294,7 +297,7 @@ function parseEmitTsArgs(args) {
|
|
|
294
297
|
if (token === "--out") {
|
|
295
298
|
const value = args[index + 1];
|
|
296
299
|
if (!value) {
|
|
297
|
-
throw new
|
|
300
|
+
throw new CliUsageError("Flag '--out' requires a path.");
|
|
298
301
|
}
|
|
299
302
|
flags.outPath = value;
|
|
300
303
|
args.splice(index, 2);
|
|
@@ -303,7 +306,7 @@ function parseEmitTsArgs(args) {
|
|
|
303
306
|
if (token === "--types-out") {
|
|
304
307
|
const value = args[index + 1];
|
|
305
308
|
if (!value) {
|
|
306
|
-
throw new
|
|
309
|
+
throw new CliUsageError("Flag '--types-out' requires a path.");
|
|
307
310
|
}
|
|
308
311
|
flags.typesOutPath = value;
|
|
309
312
|
args.splice(index, 2);
|
|
@@ -312,30 +315,30 @@ function parseEmitTsArgs(args) {
|
|
|
312
315
|
if (token === "--mode") {
|
|
313
316
|
const value = args[index + 1];
|
|
314
317
|
if (value !== "types" && value !== "client") {
|
|
315
|
-
throw new
|
|
318
|
+
throw new CliUsageError("--mode must be 'types' or 'client'.");
|
|
316
319
|
}
|
|
317
320
|
flags.mode = value;
|
|
318
321
|
args.splice(index, 2);
|
|
319
322
|
continue;
|
|
320
323
|
}
|
|
321
324
|
if (token.startsWith("--")) {
|
|
322
|
-
throw new
|
|
325
|
+
throw new CliUsageError(`Unknown flag '${token}' for emit-ts.`);
|
|
323
326
|
}
|
|
324
327
|
index += 1;
|
|
325
328
|
}
|
|
326
329
|
const server = args.shift();
|
|
327
330
|
if (!server) {
|
|
328
|
-
throw new
|
|
331
|
+
throw new CliUsageError("Usage: mcporter emit-ts <server> --out <file> [--mode types|client]");
|
|
329
332
|
}
|
|
330
333
|
const outPath = flags.outPath;
|
|
331
334
|
if (!outPath) {
|
|
332
|
-
throw new
|
|
335
|
+
throw new CliUsageError("Flag '--out' is required for emit-ts.");
|
|
333
336
|
}
|
|
334
337
|
if (flags.mode === "client" && !outPath.endsWith(".ts")) {
|
|
335
|
-
throw new
|
|
338
|
+
throw new CliUsageError("--out should point to a .ts file when --mode client is used.");
|
|
336
339
|
}
|
|
337
340
|
if (flags.mode === "types" && !outPath.endsWith(".ts") && !outPath.endsWith(".d.ts")) {
|
|
338
|
-
throw new
|
|
341
|
+
throw new CliUsageError("--out should be a .ts or .d.ts file for --mode types.");
|
|
339
342
|
}
|
|
340
343
|
return {
|
|
341
344
|
server,
|
|
@@ -5,76 +5,77 @@ import {
|
|
|
5
5
|
readPackageMetadata,
|
|
6
6
|
safeCopyFile,
|
|
7
7
|
writeTemplate
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-HPFIAALB.js";
|
|
9
|
+
import "./chunk-3KSDZBUJ.js";
|
|
10
10
|
import {
|
|
11
11
|
buildToolMetadataList,
|
|
12
12
|
toolsTestHelpers
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7SQZWTDU.js";
|
|
14
14
|
import {
|
|
15
15
|
buildGenerateCliCommand,
|
|
16
16
|
readCliMetadata,
|
|
17
17
|
resolveGenerateRequestFromArtifact,
|
|
18
18
|
serializeDefinition,
|
|
19
19
|
validateToolSelection
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import
|
|
23
|
-
expectValue
|
|
24
|
-
} from "./chunk-I6UFV7RW.js";
|
|
25
|
-
import "./chunk-IRARVOUM.js";
|
|
26
|
-
import "./chunk-TC2JPBFB.js";
|
|
20
|
+
} from "./chunk-4NABHXDS.js";
|
|
21
|
+
import "./chunk-Z43KJRXY.js";
|
|
22
|
+
import "./chunk-QYR3UKJS.js";
|
|
27
23
|
import {
|
|
28
24
|
splitCommandLine,
|
|
29
25
|
toAsciiSlug
|
|
30
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QHD5RXW4.js";
|
|
31
27
|
import {
|
|
32
28
|
extractHttpServerTarget,
|
|
33
29
|
looksLikeHttpUrl,
|
|
34
30
|
normalizeHttpUrl,
|
|
35
31
|
normalizeHttpUrlCandidate,
|
|
36
32
|
splitHttpToolSelector
|
|
37
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-32UZRZIL.js";
|
|
34
|
+
import {
|
|
35
|
+
expectValue
|
|
36
|
+
} from "./chunk-5ZQKSEUN.js";
|
|
37
|
+
import "./chunk-VJ5VDK6D.js";
|
|
38
|
+
import "./chunk-EV3SP7ME.js";
|
|
38
39
|
import {
|
|
39
40
|
createRuntime
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-2R7UGABC.js";
|
|
42
|
+
import "./chunk-H44A4G2O.js";
|
|
42
43
|
import {
|
|
43
44
|
stableJsonStringify
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-Z5XOB522.js";
|
|
46
|
+
import "./chunk-2R2HWX2E.js";
|
|
47
|
+
import "./chunk-GQM53HF7.js";
|
|
47
48
|
import {
|
|
48
49
|
MCPORTER_VERSION
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
50
|
+
} from "./chunk-MSPGQEWX.js";
|
|
51
|
+
import "./chunk-VLJQSE6L.js";
|
|
52
|
+
import "./chunk-AIUZOMBB.js";
|
|
53
|
+
import "./chunk-37VJZIFW.js";
|
|
54
|
+
import "./chunk-BI6L3SYV.js";
|
|
55
|
+
import "./chunk-YFPPHEDE.js";
|
|
54
56
|
import {
|
|
55
57
|
RawEntrySchema,
|
|
56
58
|
VaultEncryptionPolicySchema,
|
|
57
59
|
loadServerDefinitions,
|
|
58
60
|
normalizeServerEntry
|
|
59
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-Y7JQJ352.js";
|
|
60
62
|
import {
|
|
61
63
|
parseJsonBuffer
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-O3RTM5HD.js";
|
|
64
|
+
} from "./chunk-OSK2JGFH.js";
|
|
65
|
+
import "./chunk-TTVO6RCP.js";
|
|
66
|
+
import "./chunk-MW3YO24Q.js";
|
|
67
|
+
import "./chunk-G5DK4L6M.js";
|
|
67
68
|
import "./chunk-T4MQCFIK.js";
|
|
68
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-4ACA5GWL.js";
|
|
69
70
|
import {
|
|
70
71
|
resolveLifecycle
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
72
|
+
} from "./chunk-CWM4RO33.js";
|
|
73
|
+
import "./chunk-UY2QWZB3.js";
|
|
74
|
+
import "./chunk-7KOGD2JK.js";
|
|
75
|
+
import "./chunk-EUHXZKP2.js";
|
|
75
76
|
import "./chunk-LRKZP7DJ.js";
|
|
76
77
|
|
|
77
|
-
// node_modules/.pnpm/mcporter@0.
|
|
78
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/name-utils.js
|
|
78
79
|
function inferNameFromCommand(command) {
|
|
79
80
|
if (typeof command === "string") {
|
|
80
81
|
const normalizedHttp = normalizeHttpUrlCandidate(command);
|
|
@@ -233,7 +234,7 @@ function deriveNameFromUrl(url) {
|
|
|
233
234
|
return void 0;
|
|
234
235
|
}
|
|
235
236
|
|
|
236
|
-
// node_modules/.pnpm/mcporter@0.
|
|
237
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/flags.js
|
|
237
238
|
function parseGenerateFlags(args) {
|
|
238
239
|
const common = extractGeneratorFlags(args);
|
|
239
240
|
let server;
|
|
@@ -416,12 +417,12 @@ function normalizeCommandInput2(value) {
|
|
|
416
417
|
return command;
|
|
417
418
|
}
|
|
418
419
|
|
|
419
|
-
// node_modules/.pnpm/mcporter@0.
|
|
420
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/generate-cli.js
|
|
420
421
|
import fs3 from "node:fs/promises";
|
|
421
422
|
import { createHash } from "node:crypto";
|
|
422
423
|
import path4 from "node:path";
|
|
423
424
|
|
|
424
|
-
// node_modules/.pnpm/mcporter@0.
|
|
425
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/artifacts.js
|
|
425
426
|
import { execFile as execFile2 } from "node:child_process";
|
|
426
427
|
import fsSync from "node:fs";
|
|
427
428
|
import fs from "node:fs/promises";
|
|
@@ -429,7 +430,7 @@ import { builtinModules, createRequire } from "node:module";
|
|
|
429
430
|
import path2 from "node:path";
|
|
430
431
|
import { fileURLToPath } from "node:url";
|
|
431
432
|
|
|
432
|
-
// node_modules/.pnpm/mcporter@0.
|
|
433
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/runtime.js
|
|
433
434
|
import { execFile } from "node:child_process";
|
|
434
435
|
import path from "node:path";
|
|
435
436
|
import { devNull } from "node:os";
|
|
@@ -493,7 +494,7 @@ async function isBunAvailable() {
|
|
|
493
494
|
}
|
|
494
495
|
}
|
|
495
496
|
|
|
496
|
-
// node_modules/.pnpm/mcporter@0.
|
|
497
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/artifacts.js
|
|
497
498
|
var localRequire = createRequire(import.meta.url);
|
|
498
499
|
var packageRoot = fileURLToPath(new URL("../../..", import.meta.url));
|
|
499
500
|
var BUNDLED_DEPENDENCIES = ["commander", "mcporter", "jsonc-parser"];
|
|
@@ -508,7 +509,7 @@ async function bundleOutput({ sourcePath, targetPath, runtimeKind, minify, bundl
|
|
|
508
509
|
async function bundleWithRolldown({ sourcePath, targetPath, runtimeKind, minify }) {
|
|
509
510
|
let rolldownImpl;
|
|
510
511
|
try {
|
|
511
|
-
({ rolldown: rolldownImpl } = await import("./dist-
|
|
512
|
+
({ rolldown: rolldownImpl } = await import("./dist-IFOLXE2R.js"));
|
|
512
513
|
} catch (error) {
|
|
513
514
|
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.";
|
|
514
515
|
if (error instanceof Error) {
|
|
@@ -621,7 +622,14 @@ function resolveBundleTarget({ bundle, compile, outputPath }) {
|
|
|
621
622
|
return bundle;
|
|
622
623
|
}
|
|
623
624
|
if (bundle) {
|
|
624
|
-
|
|
625
|
+
if (compile) {
|
|
626
|
+
throw new Error("--bundle requires an explicit output path when used with --compile.");
|
|
627
|
+
}
|
|
628
|
+
const ext = path2.extname(outputPath);
|
|
629
|
+
if (ext.toLowerCase() === ".js") {
|
|
630
|
+
throw new Error("--bundle requires an explicit output path when --output already ends in .js.");
|
|
631
|
+
}
|
|
632
|
+
return path2.join(path2.dirname(outputPath), `${path2.basename(outputPath, ext)}.js`);
|
|
625
633
|
}
|
|
626
634
|
if (typeof compile === "string") {
|
|
627
635
|
const ext = path2.extname(compile);
|
|
@@ -793,7 +801,7 @@ function resolveUniquePath(directory, baseName) {
|
|
|
793
801
|
return attempt;
|
|
794
802
|
}
|
|
795
803
|
|
|
796
|
-
// node_modules/.pnpm/mcporter@0.
|
|
804
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/definition.js
|
|
797
805
|
import fs2 from "node:fs/promises";
|
|
798
806
|
import path3 from "node:path";
|
|
799
807
|
function ensureInvocationDefaults(invocation, definition) {
|
|
@@ -878,7 +886,7 @@ async function fetchTools(definition, serverName, configPath, rootDir) {
|
|
|
878
886
|
rootDir,
|
|
879
887
|
servers: [definition]
|
|
880
888
|
});
|
|
881
|
-
const { createGeneratedKeepAliveRuntime } = await import("./generated-daemon-runtime-
|
|
889
|
+
const { createGeneratedKeepAliveRuntime } = await import("./generated-daemon-runtime-LTH36X2R.js");
|
|
882
890
|
const context = await createGeneratedKeepAliveRuntime(base, definition);
|
|
883
891
|
const runtime = context.runtime;
|
|
884
892
|
try {
|
|
@@ -1163,7 +1171,7 @@ function toStringRecord(value) {
|
|
|
1163
1171
|
return Object.keys(result).length > 0 ? result : void 0;
|
|
1164
1172
|
}
|
|
1165
1173
|
|
|
1166
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1174
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/generate-cli.js
|
|
1167
1175
|
var REPRODUCIBLE_GENERATED_AT = "1970-01-01T00:00:00.000Z";
|
|
1168
1176
|
async function generateCli(options) {
|
|
1169
1177
|
const runtimeKind = await resolveRuntimeKind(options.runtime, options.compile);
|
|
@@ -1178,7 +1186,7 @@ async function generateCli(options) {
|
|
|
1178
1186
|
const definition = baseDefinition.description || !derivedDescription ? baseDefinition : { ...baseDefinition, description: derivedDescription };
|
|
1179
1187
|
const embeddedDefinition = stripBuildSources(definition);
|
|
1180
1188
|
const serializedDefinition = serializeDefinition(embeddedDefinition);
|
|
1181
|
-
const toolMetadata = buildToolMetadataList(tools);
|
|
1189
|
+
const toolMetadata = buildToolMetadataList(tools, { reservedOptionNames: ["raw"] });
|
|
1182
1190
|
const generator = await readPackageMetadata();
|
|
1183
1191
|
const baseInvocation = ensureInvocationDefaults({
|
|
1184
1192
|
serverRef: options.serverRef,
|
|
@@ -1223,7 +1231,8 @@ async function generateCli(options) {
|
|
|
1223
1231
|
resolvedBundleTarget = path4.resolve(resolveBundleTarget({
|
|
1224
1232
|
bundle: options.bundle,
|
|
1225
1233
|
compile: options.compile,
|
|
1226
|
-
|
|
1234
|
+
// Without --output the template sits in a temp dir; a bare --bundle still belongs in the cwd.
|
|
1235
|
+
outputPath: options.outputPath ? templateSourcePath : path4.resolve(`${sanitizePathSegment(name) || "server"}.ts`)
|
|
1227
1236
|
}));
|
|
1228
1237
|
if (options.compile) {
|
|
1229
1238
|
resolvedCompileTarget = path4.resolve(computeCompileTarget(options.compile, resolvedBundleTarget, name));
|
|
@@ -1361,7 +1370,7 @@ function applyToolFilters(tools, includeTools, excludeTools) {
|
|
|
1361
1370
|
}
|
|
1362
1371
|
var __test = { ...toolsTestHelpers, applyToolFilters };
|
|
1363
1372
|
|
|
1364
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1373
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/output.js
|
|
1365
1374
|
async function performGenerateFromArtifact(metadata, request) {
|
|
1366
1375
|
const { outputPath, bundlePath, compilePath } = await generateCli(request);
|
|
1367
1376
|
if (metadata.artifact.kind === "binary" && compilePath) {
|
|
@@ -1385,7 +1394,7 @@ async function performGenerateFromRequest(request) {
|
|
|
1385
1394
|
}
|
|
1386
1395
|
}
|
|
1387
1396
|
|
|
1388
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1397
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/server-utils.js
|
|
1389
1398
|
function buildInlineServerDefinition(name, command, description) {
|
|
1390
1399
|
if (typeof command === "string") {
|
|
1391
1400
|
const url = normalizeHttpUrlCandidate(command) ?? command;
|
|
@@ -1418,7 +1427,7 @@ function buildInlineServerDefinition(name, command, description) {
|
|
|
1418
1427
|
};
|
|
1419
1428
|
}
|
|
1420
1429
|
|
|
1421
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1430
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate-cli-runner.js
|
|
1422
1431
|
async function handleGenerateCli(args, globalFlags) {
|
|
1423
1432
|
const parsed = parseGenerateFlags(args);
|
|
1424
1433
|
validateToolSelection(parsed.includeTools, parsed.excludeTools, {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
createGeneratedKeepAliveRuntime
|
|
4
|
+
} from "./chunk-CFRA424Y.js";
|
|
5
|
+
import "./chunk-W47YAN6W.js";
|
|
6
|
+
import "./chunk-ABPXAKP7.js";
|
|
7
|
+
import "./chunk-2R7UGABC.js";
|
|
8
|
+
import "./chunk-H44A4G2O.js";
|
|
9
|
+
import "./chunk-Z5XOB522.js";
|
|
10
|
+
import "./chunk-2R2HWX2E.js";
|
|
11
|
+
import "./chunk-GQM53HF7.js";
|
|
12
|
+
import "./chunk-MSPGQEWX.js";
|
|
13
|
+
import "./chunk-VLJQSE6L.js";
|
|
14
|
+
import "./chunk-AIUZOMBB.js";
|
|
15
|
+
import "./chunk-37VJZIFW.js";
|
|
16
|
+
import "./chunk-BI6L3SYV.js";
|
|
17
|
+
import "./chunk-YFPPHEDE.js";
|
|
18
|
+
import "./chunk-Y7JQJ352.js";
|
|
19
|
+
import "./chunk-OSK2JGFH.js";
|
|
20
|
+
import "./chunk-TTVO6RCP.js";
|
|
21
|
+
import "./chunk-MW3YO24Q.js";
|
|
22
|
+
import "./chunk-G5DK4L6M.js";
|
|
23
|
+
import "./chunk-T4MQCFIK.js";
|
|
24
|
+
import "./chunk-4ACA5GWL.js";
|
|
25
|
+
import "./chunk-CWM4RO33.js";
|
|
26
|
+
import "./chunk-UY2QWZB3.js";
|
|
27
|
+
import "./chunk-7KOGD2JK.js";
|
|
28
|
+
import "./chunk-EUHXZKP2.js";
|
|
29
|
+
import "./chunk-LRKZP7DJ.js";
|
|
30
|
+
export {
|
|
31
|
+
createGeneratedKeepAliveRuntime
|
|
32
|
+
};
|
|
@@ -2,25 +2,25 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
formatPathForDisplay,
|
|
4
4
|
formatSourceSuffix
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NJR33E7V.js";
|
|
6
6
|
import {
|
|
7
7
|
buildGenerateCliCommand,
|
|
8
8
|
readCliMetadata,
|
|
9
9
|
shellQuote
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
expectValue
|
|
14
|
-
} from "./chunk-I6UFV7RW.js";
|
|
15
|
-
import "./chunk-IRARVOUM.js";
|
|
10
|
+
} from "./chunk-4NABHXDS.js";
|
|
11
|
+
import "./chunk-Z43KJRXY.js";
|
|
16
12
|
import {
|
|
17
13
|
consumeOutputFormat
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import
|
|
20
|
-
|
|
14
|
+
} from "./chunk-ZJZ53NIB.js";
|
|
15
|
+
import {
|
|
16
|
+
expectValue
|
|
17
|
+
} from "./chunk-5ZQKSEUN.js";
|
|
18
|
+
import "./chunk-VJ5VDK6D.js";
|
|
19
|
+
import "./chunk-7KOGD2JK.js";
|
|
20
|
+
import "./chunk-EUHXZKP2.js";
|
|
21
21
|
import "./chunk-LRKZP7DJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/mcporter@0.
|
|
23
|
+
// node_modules/.pnpm/mcporter@0.17.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-VJ45Y5IO.js";
|
|
6
6
|
import "./chunk-LRKZP7DJ.js";
|
|
7
7
|
export {
|
|
8
8
|
buildDaemonLaunchInvocation,
|
|
@@ -1,68 +1,71 @@
|
|
|
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-HGEKP2E5.js";
|
|
5
5
|
import {
|
|
6
6
|
loadToolMetadata
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TQ5T5VO7.js";
|
|
8
8
|
import {
|
|
9
9
|
chooseClosestIdentifier,
|
|
10
10
|
renderIdentifierResolutionMessages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XU4D5QN2.js";
|
|
12
12
|
import {
|
|
13
13
|
buildToolDoc,
|
|
14
14
|
formatExampleBlock
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-3KSDZBUJ.js";
|
|
16
|
+
import "./chunk-7SQZWTDU.js";
|
|
17
17
|
import {
|
|
18
18
|
classifyListError,
|
|
19
19
|
formatSourceSuffix,
|
|
20
20
|
renderServerListRow
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
boldText,
|
|
24
|
-
dimText,
|
|
25
|
-
extraDimText,
|
|
26
|
-
supportsSpinner,
|
|
27
|
-
yellowText
|
|
28
|
-
} from "./chunk-IRARVOUM.js";
|
|
21
|
+
} from "./chunk-NJR33E7V.js";
|
|
29
22
|
import {
|
|
30
23
|
resolveListTimeout,
|
|
31
24
|
withTimeout
|
|
32
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QYR3UKJS.js";
|
|
33
26
|
import {
|
|
34
27
|
persistPreparedEphemeralServer,
|
|
35
28
|
prepareEphemeralServerTarget,
|
|
36
29
|
renderAdhocServerHelpLines
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-63L6SHK3.js";
|
|
39
|
-
import "./chunk-ZEA3Y5ZD.js";
|
|
30
|
+
} from "./chunk-SYBDN4SV.js";
|
|
40
31
|
import {
|
|
41
32
|
formatErrorMessage,
|
|
42
33
|
serializeConnectionIssue
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-Y7UTXETL.js";
|
|
35
|
+
import "./chunk-ZEMVGFKG.js";
|
|
36
|
+
import "./chunk-QHD5RXW4.js";
|
|
37
|
+
import "./chunk-FJNWUAGR.js";
|
|
45
38
|
import {
|
|
46
39
|
splitHttpToolSelector
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-32UZRZIL.js";
|
|
41
|
+
import "./chunk-ZJZ53NIB.js";
|
|
42
|
+
import {
|
|
43
|
+
boldText,
|
|
44
|
+
dimText,
|
|
45
|
+
extraDimText,
|
|
46
|
+
supportsSpinner,
|
|
47
|
+
yellowText
|
|
48
|
+
} from "./chunk-VJ5VDK6D.js";
|
|
49
|
+
import {
|
|
50
|
+
CliUsageError
|
|
51
|
+
} from "./chunk-EV3SP7ME.js";
|
|
49
52
|
import {
|
|
50
53
|
setStdioLogMode
|
|
51
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-GQM53HF7.js";
|
|
52
55
|
import {
|
|
53
56
|
MCPORTER_VERSION
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-MSPGQEWX.js";
|
|
58
|
+
import "./chunk-VLJQSE6L.js";
|
|
59
|
+
import "./chunk-Y7JQJ352.js";
|
|
60
|
+
import "./chunk-OSK2JGFH.js";
|
|
61
|
+
import "./chunk-TTVO6RCP.js";
|
|
62
|
+
import "./chunk-MW3YO24Q.js";
|
|
63
|
+
import "./chunk-G5DK4L6M.js";
|
|
61
64
|
import "./chunk-T4MQCFIK.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-4ACA5GWL.js";
|
|
66
|
+
import "./chunk-CWM4RO33.js";
|
|
67
|
+
import "./chunk-7KOGD2JK.js";
|
|
68
|
+
import "./chunk-EUHXZKP2.js";
|
|
66
69
|
import {
|
|
67
70
|
__export
|
|
68
71
|
} from "./chunk-LRKZP7DJ.js";
|
|
@@ -2760,13 +2763,16 @@ var success = green(_isUnicodeSupported ? "\u2714" : "\u221A");
|
|
|
2760
2763
|
var warning = yellow(_isUnicodeSupported ? "\u26A0" : "\u203C");
|
|
2761
2764
|
var error = red(_isUnicodeSupported ? "\u2716" : "\xD7");
|
|
2762
2765
|
|
|
2763
|
-
// node_modules/.pnpm/ansi-regex@6.
|
|
2766
|
+
// node_modules/.pnpm/ansi-regex@6.6.0/node_modules/ansi-regex/index.js
|
|
2767
|
+
var ST = String.raw`(?:\u001B\u005C|\u009C)`;
|
|
2768
|
+
var stringControls = String.raw`\u0018\u001A\u001B\u0080-\u009F`;
|
|
2769
|
+
var osc = String.raw`(?:\u001B\]|\u009D)[^\u0007${stringControls}]*(?:\u0007|${ST})`;
|
|
2770
|
+
var controlString = String.raw`(?:\u001B[PX^_k]|[\u0090\u0098\u009E\u009F])[^${stringControls}]*${ST}`;
|
|
2771
|
+
var linuxPalette = String.raw`\u001B\](?:P[\dA-Fa-f]{7}|R)(?:\u0007|${ST})?`;
|
|
2772
|
+
var csi = String.raw`(?:\u001B\[|\u009B)[\u0030-\u003F]*[\u0020-\u002F]*[\u0040-\u007E]`;
|
|
2773
|
+
var escape = String.raw`\u001B(?:[\u0020-\u002F]+[\u0030-\u007E]|[\dA-PR-TZcf-oq-uy=><~|}])`;
|
|
2774
|
+
var pattern = `${linuxPalette}|${osc}|${controlString}|${csi}|${escape}`;
|
|
2764
2775
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
2765
|
-
const ST = String.raw`(?:\u0007|\u001B\u005C|\u009C)`;
|
|
2766
|
-
const osc = String.raw`(?:(?:\u001B\]|\u009D)[^\u0007\u001B\u009C\u009D]*${ST})`;
|
|
2767
|
-
const csi = String.raw`[\u001B\u009B][[\]()#;?]*(?:\d{1,4}(?:[;:]\d{0,4})*)?[A-PR-TZcf-nq-uy=><~]`;
|
|
2768
|
-
const csiPrivate = String.raw`(?:\u001B\[|\u009B)[<=>][0-9;:]*[A-PR-TZcf-nq-uy~]`;
|
|
2769
|
-
const pattern = `${osc}|${csiPrivate}|${csi}`;
|
|
2770
2776
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
2771
2777
|
}
|
|
2772
2778
|
|
|
@@ -3523,7 +3529,7 @@ function ora(options) {
|
|
|
3523
3529
|
return new Ora(options);
|
|
3524
3530
|
}
|
|
3525
3531
|
|
|
3526
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3532
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/transport-utils.js
|
|
3527
3533
|
function formatTransportSummary(definition) {
|
|
3528
3534
|
if (definition.command.kind === "http") {
|
|
3529
3535
|
const url = definition.command.url instanceof URL ? definition.command.url.href : String(definition.command.url);
|
|
@@ -3533,7 +3539,7 @@ function formatTransportSummary(definition) {
|
|
|
3533
3539
|
return `STDIO ${rendered}`;
|
|
3534
3540
|
}
|
|
3535
3541
|
|
|
3536
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3542
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/list-output.js
|
|
3537
3543
|
function printSingleServerHeader(definition, toolCount, durationMs, transportSummary, sourcePath, options) {
|
|
3538
3544
|
const prefix = boldText(definition.name);
|
|
3539
3545
|
if (definition.description) {
|
|
@@ -3710,10 +3716,15 @@ function quoteCommandSegment(segment) {
|
|
|
3710
3716
|
return `'${segment.replace(/'/g, `'\\''`)}'`;
|
|
3711
3717
|
}
|
|
3712
3718
|
|
|
3713
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3719
|
+
// node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/list-command.js
|
|
3714
3720
|
async function handleList(runtime, args) {
|
|
3715
3721
|
const flags = extractListFlags(args);
|
|
3716
3722
|
let target = args.shift();
|
|
3723
|
+
const unknownOption = target?.startsWith("-") && !runtime.getDefinitions().some(({ name }) => name === target) && !resolveConfiguredToolSelector(runtime, target);
|
|
3724
|
+
const unexpected = unknownOption ? target : args[0];
|
|
3725
|
+
if (unexpected !== void 0) {
|
|
3726
|
+
throw new CliUsageError(`Unexpected list argument '${unexpected}'.`);
|
|
3727
|
+
}
|
|
3717
3728
|
let requestedTool;
|
|
3718
3729
|
if (target) {
|
|
3719
3730
|
const split = splitHttpToolSelector(target);
|