@introspection-ai/recipes 0.36.2 → 0.37.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/ask-user-question.d.ts +82 -0
- package/dist/ask-user-question.d.ts.map +1 -0
- package/dist/ask-user-question.js +314 -0
- package/dist/ask-user-question.js.map +1 -0
- package/dist/connector-tools.d.ts.map +1 -1
- package/dist/connector-tools.js +10 -2
- package/dist/connector-tools.js.map +1 -1
- package/dist/documents/index.d.ts +6 -0
- package/dist/documents/index.d.ts.map +1 -0
- package/dist/documents/index.js +3 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/module.d.ts +51 -0
- package/dist/documents/module.d.ts.map +1 -0
- package/dist/documents/module.js +116 -0
- package/dist/documents/module.js.map +1 -0
- package/dist/documents/tools.d.ts +40 -0
- package/dist/documents/tools.d.ts.map +1 -0
- package/dist/documents/tools.js +327 -0
- package/dist/documents/tools.js.map +1 -0
- package/dist/documents/types.d.ts +144 -0
- package/dist/documents/types.d.ts.map +1 -0
- package/dist/documents/types.js +10 -0
- package/dist/documents/types.js.map +1 -0
- package/dist/extensions.d.ts +2 -0
- package/dist/extensions.d.ts.map +1 -1
- package/dist/extensions.js +3 -0
- package/dist/extensions.js.map +1 -1
- package/dist/interaction-tui.d.ts +1 -1
- package/dist/interaction-tui.d.ts.map +1 -1
- package/dist/interaction-tui.js +2 -2
- package/dist/interaction-tui.js.map +1 -1
- package/dist/mcp-chunks/{auth-command-GMMLBU24.js → auth-command-M7TQE3AL.js} +26 -23
- package/dist/mcp-chunks/call-arguments-GCXZA4HC.js +16 -0
- package/dist/mcp-chunks/{call-command-2VF6IKAZ.js → call-command-7LD7UEFK.js} +33 -33
- package/dist/mcp-chunks/{chunk-TYL2NVXI.js → chunk-2AKSS7WR.js} +2 -2
- package/dist/mcp-chunks/{chunk-LZUKBEQZ.js → chunk-2YV72LUA.js} +12 -12
- package/dist/mcp-chunks/{chunk-2JTXIMGE.js → chunk-3ETUDW7N.js} +1 -1
- package/dist/mcp-chunks/{chunk-5UK2JLTN.js → chunk-3FRLDHVD.js} +5 -5
- package/dist/mcp-chunks/{chunk-ENBJFQ6H.js → chunk-3HSC6NHZ.js} +1 -1
- package/dist/mcp-chunks/{chunk-IHOU2BEL.js → chunk-3LENTPGE.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZJWZY54X.js → chunk-3P3KGT4H.js} +2 -2
- package/dist/mcp-chunks/{chunk-IMXPLUKE.js → chunk-3SXP4S2A.js} +2 -2
- package/dist/mcp-chunks/{chunk-22WCLO4D.js → chunk-5Z6WSV5D.js} +5 -5
- package/dist/mcp-chunks/{chunk-QNZGFUKC.js → chunk-63L6SHK3.js} +2 -2
- package/dist/mcp-chunks/{chunk-OI3RTQXY.js → chunk-66VSGFXA.js} +1 -1
- package/dist/mcp-chunks/{chunk-DUBQHYW4.js → chunk-6O42UGLI.js} +9 -9
- package/dist/mcp-chunks/{chunk-R4OYHQ4V.js → chunk-6P3KAQ5N.js} +1 -1
- package/dist/mcp-chunks/{chunk-5OO6WVPL.js → chunk-7U5NSQ5T.js} +1 -1
- package/dist/mcp-chunks/{chunk-O2C3HXGS.js → chunk-B6S43WID.js} +1 -1
- package/dist/mcp-chunks/{chunk-VWPKJFK4.js → chunk-BHXCAVFP.js} +1 -1
- package/dist/mcp-chunks/{chunk-WXNGATQ7.js → chunk-BUOGKTKK.js} +2 -1
- package/dist/mcp-chunks/{chunk-4U4BUXQD.js → chunk-CXST5CVH.js} +33 -17
- package/dist/mcp-chunks/{chunk-YWFQPA4D.js → chunk-DU4SDPEV.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZI5XYM4C.js → chunk-E76ZUBOJ.js} +4 -4
- package/dist/mcp-chunks/{chunk-D2SZ7KRY.js → chunk-ELHS763C.js} +1 -1
- package/dist/mcp-chunks/{chunk-RHXZKYM7.js → chunk-F2X4Y2TQ.js} +1 -1
- package/dist/mcp-chunks/{chunk-6XC5JJWD.js → chunk-GTETFUPQ.js} +28 -25
- package/dist/mcp-chunks/{chunk-UQUM7ICD.js → chunk-GZ53GNFP.js} +10 -10
- package/dist/mcp-chunks/{chunk-LUVLTUKR.js → chunk-H5PBSJP3.js} +1 -1
- package/dist/mcp-chunks/{chunk-FLUF2FRN.js → chunk-HNQSUT44.js} +3 -3
- package/dist/mcp-chunks/{chunk-CN5KSNWG.js → chunk-I6UFV7RW.js} +1 -1
- package/dist/mcp-chunks/{chunk-OSTHIELS.js → chunk-IRARVOUM.js} +1 -1
- package/dist/mcp-chunks/{webapi-NNCZGUMZ.js → chunk-IRSL7JRH.js} +255 -249
- package/dist/mcp-chunks/{chunk-ZXIF7MKN.js → chunk-IWCVZ46B.js} +2 -2
- package/dist/mcp-chunks/{chunk-RZZO3ZD4.js → chunk-JEHI2YU4.js} +3 -3
- package/dist/mcp-chunks/{chunk-ANNJGB6F.js → chunk-JTPTAO4M.js} +13 -13
- package/dist/mcp-chunks/{chunk-U5QZHPCC.js → chunk-KJ5FPQF6.js} +1 -1
- package/dist/mcp-chunks/{chunk-7IVXKYTI.js → chunk-L2MSWQDL.js} +1 -1
- package/dist/mcp-chunks/{chunk-DBNBEWRX.js → chunk-MEQXX43K.js} +1 -1
- package/dist/mcp-chunks/{chunk-3AAF3FSI.js → chunk-MHUMLEBO.js} +1 -1
- package/dist/mcp-chunks/{chunk-HFHIY5TO.js → chunk-N2U2FODH.js} +4 -4
- package/dist/mcp-chunks/{chunk-YFCNRWLV.js → chunk-N6YUOYDS.js} +2 -2
- package/dist/mcp-chunks/{chunk-C4TJGC4F.js → chunk-O3RTM5HD.js} +1 -1
- package/dist/mcp-chunks/{chunk-35LLRCRA.js → chunk-O7SIXJM6.js} +1308 -912
- package/dist/mcp-chunks/{chunk-QDFL757K.js → chunk-PSE442BC.js} +91 -77
- package/dist/mcp-chunks/{chunk-YPSODIQX.js → chunk-QNXOIF5U.js} +15 -14
- package/dist/mcp-chunks/{chunk-RKQC2EE6.js → chunk-RUF27IUF.js} +2 -2
- package/dist/mcp-chunks/{chunk-SS7V7GVT.js → chunk-S2F7DDP5.js} +4 -4
- package/dist/mcp-chunks/{chunk-D65GOMYV.js → chunk-TC2JPBFB.js} +2 -2
- package/dist/mcp-chunks/{chunk-7BVYBZ4J.js → chunk-THRMUZZD.js} +39 -14
- package/dist/mcp-chunks/{chunk-P5YLK5G2.js → chunk-UFV6SVQG.js} +11 -11
- package/dist/mcp-chunks/{chunk-LISNXOIQ.js → chunk-US63Y6XE.js} +1 -1
- package/dist/mcp-chunks/{chunk-BIVX2WFX.js → chunk-UVEZNUN3.js} +285 -322
- package/dist/mcp-chunks/{chunk-HI6VG5LR.js → chunk-UVRJ3AAD.js} +2 -2
- package/dist/mcp-chunks/{chunk-6TIU2CDB.js → chunk-V42T3QNK.js} +456 -64
- package/dist/mcp-chunks/{chunk-347GOMV4.js → chunk-WDWSA7RL.js} +4 -4
- package/dist/mcp-chunks/{chunk-4PN2J74H.js → chunk-WQL7FJQ3.js} +4 -4
- package/dist/mcp-chunks/{chunk-LRGMFF5S.js → chunk-ZEA3Y5ZD.js} +7 -7
- package/dist/mcp-chunks/{cli-4OQD3H4N.js → cli-IYD7Y7MO.js} +67 -67
- package/dist/mcp-chunks/client-5MNBV3Z7.js +32 -0
- package/dist/mcp-chunks/{config-command-72TCIWPV.js → config-command-6DXILFNO.js} +129 -34
- package/dist/mcp-chunks/daemon-command-V3B3EMXD.js +32 -0
- package/dist/mcp-chunks/{dist-74UCKZK5.js → dist-Q7WSCBBK.js} +74 -55
- package/dist/mcp-chunks/{emit-ts-command-KD4ON2SE.js → emit-ts-command-NDCDFDRM.js} +17 -17
- package/dist/mcp-chunks/{generate-cli-runner-HWGI6HPL.js → generate-cli-runner-PW5WJ7KI.js} +136 -92
- package/dist/mcp-chunks/generated-daemon-runtime-3C4NWGAU.js +32 -0
- package/dist/mcp-chunks/{inspect-cli-command-FT5JSB7V.js → inspect-cli-command-4MGF5CPP.js} +9 -9
- package/dist/mcp-chunks/{launch-AHLKP2VM.js → launch-UG7IH27P.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-BJDITFWN.js → lifecycle-QBYGUHQ3.js} +1 -1
- package/dist/mcp-chunks/{list-command-YKF7RN6Y.js → list-command-SDITI3ZM.js} +36 -35
- package/dist/mcp-chunks/{output-utils-LYB5IJRD.js → output-utils-YTMZTA7J.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-B3USYOND.js → prompt-DkftHXS7-N7UENQ4C.js} +1 -1
- package/dist/mcp-chunks/{record-command-MJW3Z5E5.js → record-command-JGTMATYI.js} +5 -5
- package/dist/mcp-chunks/{replay-command-5ZHBUOLE.js → replay-command-S2VAC4RW.js} +6 -6
- package/dist/mcp-chunks/{resource-command-L4I24AX5.js → resource-command-SRFQQROJ.js} +9 -9
- package/dist/mcp-chunks/{result-utils-5WRI66KV.js → result-utils-JASGNHXK.js} +3 -3
- package/dist/mcp-chunks/runtime-RMI3XCYJ.js +39 -0
- package/dist/mcp-chunks/{runtime-wrapper-WFMNIHD5.js → runtime-wrapper-7HYO3NM5.js} +3 -3
- package/dist/mcp-chunks/{serve-command-KNCSJUXS.js → serve-command-UF5SVREV.js} +1111 -697
- package/dist/mcp-chunks/{timeouts-2ZHGSB3R.js → timeouts-BJWDJEMH.js} +3 -3
- package/dist/mcp-chunks/{vault-command-7EDL45AA.js → vault-command-EYOIFWEY.js} +5 -4
- package/dist/mcp-chunks/webapi-WMMA3OEC.js +82 -0
- package/dist/mcp-daemon.js +28 -27
- package/dist/mcp-run-worker.js +28 -27
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +6 -0
- package/dist/pi-extension.js.map +1 -1
- package/dist/recipe/package.d.ts +7 -0
- package/dist/recipe/package.d.ts.map +1 -1
- package/dist/recipe/package.js +69 -0
- package/dist/recipe/package.js.map +1 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +6 -0
- package/dist/session.js.map +1 -1
- package/docs/documents.md +249 -0
- package/docs/index.md +1 -0
- package/docs/interactions.md +76 -8
- package/docs/mcp-configuration.md +10 -5
- package/docs/recipe-format.md +69 -1
- package/package.json +10 -6
- package/dist/mcp-chunks/call-arguments-WSURHOLV.js +0 -16
- package/dist/mcp-chunks/client-LXKCCVMT.js +0 -31
- package/dist/mcp-chunks/daemon-command-QHS3ACBM.js +0 -31
- package/dist/mcp-chunks/generated-daemon-runtime-7ORS5KBR.js +0 -31
- package/dist/mcp-chunks/runtime-IKWDQLZF.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-GZ53GNFP.js";
|
|
6
6
|
import {
|
|
7
7
|
loadToolMetadata
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3P3KGT4H.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-5Z6WSV5D.js";
|
|
13
|
+
import "./chunk-KJ5FPQF6.js";
|
|
14
|
+
import "./chunk-IRARVOUM.js";
|
|
15
|
+
import "./chunk-TC2JPBFB.js";
|
|
16
16
|
import {
|
|
17
17
|
findServerByHttpUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-63L6SHK3.js";
|
|
19
19
|
import {
|
|
20
20
|
extractHttpServerTarget
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-US63Y6XE.js";
|
|
22
22
|
import {
|
|
23
23
|
consumeOutputFormat
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-MEQXX43K.js";
|
|
25
|
+
import "./chunk-6P3KAQ5N.js";
|
|
26
|
+
import "./chunk-QNXOIF5U.js";
|
|
27
|
+
import "./chunk-6O42UGLI.js";
|
|
28
28
|
import {
|
|
29
29
|
isRecord
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7U5NSQ5T.js";
|
|
31
31
|
import "./chunk-T4MQCFIK.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-BHXCAVFP.js";
|
|
33
33
|
import "./chunk-LRKZP7DJ.js";
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/mcporter@0.
|
|
35
|
+
// node_modules/.pnpm/mcporter@0.16.1/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.16.1/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 = [];
|
|
@@ -205,7 +205,7 @@ function describeSource(definition) {
|
|
|
205
205
|
return void 0;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
// node_modules/.pnpm/mcporter@0.
|
|
208
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/emit-ts-command.js
|
|
209
209
|
async function handleEmitTs(runtime, args) {
|
|
210
210
|
const options = parseEmitTsArgs(args);
|
|
211
211
|
const definition = getServerDefinition(runtime, options.server);
|
|
@@ -5,74 +5,76 @@ import {
|
|
|
5
5
|
readPackageMetadata,
|
|
6
6
|
safeCopyFile,
|
|
7
7
|
writeTemplate
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GZ53GNFP.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-E76ZUBOJ.js";
|
|
16
|
+
import "./chunk-BUOGKTKK.js";
|
|
17
17
|
import {
|
|
18
18
|
expectValue
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-I6UFV7RW.js";
|
|
20
|
+
import "./chunk-5Z6WSV5D.js";
|
|
21
21
|
import {
|
|
22
22
|
buildToolMetadataList,
|
|
23
23
|
toolsTestHelpers
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-KJ5FPQF6.js";
|
|
25
|
+
import "./chunk-IRARVOUM.js";
|
|
26
|
+
import "./chunk-TC2JPBFB.js";
|
|
27
27
|
import {
|
|
28
28
|
splitCommandLine,
|
|
29
29
|
toAsciiSlug
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZEA3Y5ZD.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-US63Y6XE.js";
|
|
38
38
|
import {
|
|
39
39
|
createRuntime
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-PSE442BC.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-6P3KAQ5N.js";
|
|
44
|
+
import "./chunk-F2X4Y2TQ.js";
|
|
45
|
+
import "./chunk-2AKSS7WR.js";
|
|
46
|
+
import "./chunk-2YV72LUA.js";
|
|
47
|
+
import "./chunk-THRMUZZD.js";
|
|
48
|
+
import "./chunk-V42T3QNK.js";
|
|
49
|
+
import "./chunk-O3RTM5HD.js";
|
|
50
|
+
import "./chunk-3ETUDW7N.js";
|
|
51
51
|
import {
|
|
52
52
|
MCPORTER_VERSION
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-QNXOIF5U.js";
|
|
54
|
+
import "./chunk-6O42UGLI.js";
|
|
55
55
|
import {
|
|
56
56
|
RawEntrySchema,
|
|
57
|
+
VaultEncryptionPolicySchema,
|
|
57
58
|
loadServerDefinitions,
|
|
58
59
|
normalizeServerEntry
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-CXST5CVH.js";
|
|
60
61
|
import {
|
|
61
62
|
parseJsonBuffer
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-7U5NSQ5T.js";
|
|
64
|
+
import "./chunk-3LENTPGE.js";
|
|
65
|
+
import "./chunk-JEHI2YU4.js";
|
|
66
|
+
import "./chunk-IWCVZ46B.js";
|
|
66
67
|
import "./chunk-T4MQCFIK.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-BHXCAVFP.js";
|
|
68
69
|
import {
|
|
69
70
|
resolveLifecycle
|
|
70
|
-
} from "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
71
|
+
} from "./chunk-MHUMLEBO.js";
|
|
72
|
+
import "./chunk-IRSL7JRH.js";
|
|
73
|
+
import "./chunk-UVRJ3AAD.js";
|
|
74
|
+
import "./chunk-O7SIXJM6.js";
|
|
73
75
|
import "./chunk-LRKZP7DJ.js";
|
|
74
76
|
|
|
75
|
-
// node_modules/.pnpm/mcporter@0.
|
|
77
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/name-utils.js
|
|
76
78
|
function inferNameFromCommand(command) {
|
|
77
79
|
if (typeof command === "string") {
|
|
78
80
|
const normalizedHttp = normalizeHttpUrlCandidate(command);
|
|
@@ -231,7 +233,7 @@ function deriveNameFromUrl(url) {
|
|
|
231
233
|
return void 0;
|
|
232
234
|
}
|
|
233
235
|
|
|
234
|
-
// node_modules/.pnpm/mcporter@0.
|
|
236
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/flags.js
|
|
235
237
|
function parseGenerateFlags(args) {
|
|
236
238
|
const common = extractGeneratorFlags(args);
|
|
237
239
|
let server;
|
|
@@ -414,43 +416,73 @@ function normalizeCommandInput2(value) {
|
|
|
414
416
|
return command;
|
|
415
417
|
}
|
|
416
418
|
|
|
417
|
-
// node_modules/.pnpm/mcporter@0.
|
|
419
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/generate-cli.js
|
|
418
420
|
import fs3 from "node:fs/promises";
|
|
419
421
|
import { createHash } from "node:crypto";
|
|
420
|
-
import
|
|
422
|
+
import path4 from "node:path";
|
|
421
423
|
|
|
422
|
-
// node_modules/.pnpm/mcporter@0.
|
|
424
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/artifacts.js
|
|
423
425
|
import { execFile as execFile2 } from "node:child_process";
|
|
424
426
|
import fsSync from "node:fs";
|
|
425
427
|
import fs from "node:fs/promises";
|
|
426
428
|
import { builtinModules, createRequire } from "node:module";
|
|
427
|
-
import
|
|
429
|
+
import path2 from "node:path";
|
|
428
430
|
import { fileURLToPath } from "node:url";
|
|
429
431
|
|
|
430
|
-
// node_modules/.pnpm/mcporter@0.
|
|
432
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/runtime.js
|
|
431
433
|
import { execFile } from "node:child_process";
|
|
434
|
+
import path from "node:path";
|
|
435
|
+
import { devNull } from "node:os";
|
|
436
|
+
function assertSupportedBunVersion(version) {
|
|
437
|
+
const minimum = [1, 4, 4];
|
|
438
|
+
const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(version);
|
|
439
|
+
if (match) {
|
|
440
|
+
const major = Number(match[1]);
|
|
441
|
+
const minor = Number(match[2]);
|
|
442
|
+
const patch = Number(match[3]);
|
|
443
|
+
const [minimumMajor, minimumMinor, minimumPatch] = minimum;
|
|
444
|
+
if (major > minimumMajor || major === minimumMajor && minor > minimumMinor || major === minimumMajor && minor === minimumMinor && patch >= minimumPatch) {
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
throw new Error(`Bun ${minimum.join(".")} or newer is required for native builds; found ${version}. Install a current stable Bun release and rebuild.`);
|
|
449
|
+
}
|
|
432
450
|
async function resolveRuntimeKind(runtimeOption, compileOption) {
|
|
433
451
|
if (runtimeOption) {
|
|
434
452
|
return runtimeOption;
|
|
435
453
|
}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
454
|
+
if (compileOption) {
|
|
455
|
+
await verifyBunAvailable();
|
|
456
|
+
return "bun";
|
|
439
457
|
}
|
|
458
|
+
const bunAvailable = await isBunAvailable();
|
|
440
459
|
return bunAvailable ? "bun" : "node";
|
|
441
460
|
}
|
|
442
461
|
async function verifyBunAvailable() {
|
|
443
462
|
const bunBin = process.env.BUN_BIN ?? "bun";
|
|
444
|
-
|
|
445
|
-
execFile(bunBin, [
|
|
463
|
+
return new Promise((resolve, reject) => {
|
|
464
|
+
execFile(bunBin, [
|
|
465
|
+
`--config=${devNull}`,
|
|
466
|
+
"--no-env-file",
|
|
467
|
+
"--print",
|
|
468
|
+
"JSON.stringify({version: process.versions.bun, executable: process.execPath})"
|
|
469
|
+
], { cwd: process.cwd(), env: process.env, windowsHide: true }, (error, stdout) => {
|
|
446
470
|
if (error) {
|
|
447
|
-
reject(new Error("Unable to locate Bun runtime. Install Bun or set BUN_BIN to
|
|
471
|
+
reject(new Error("Unable to locate Bun runtime. Install current stable Bun or set BUN_BIN to its executable."));
|
|
448
472
|
return;
|
|
449
473
|
}
|
|
450
|
-
|
|
474
|
+
try {
|
|
475
|
+
const runtime = JSON.parse(stdout);
|
|
476
|
+
if (typeof runtime !== "object" || runtime === null || !("version" in runtime) || typeof runtime.version !== "string" || !("executable" in runtime) || typeof runtime.executable !== "string" || !path.isAbsolute(runtime.executable)) {
|
|
477
|
+
throw new Error("Unable to identify Bun runtime. Install current stable Bun or set BUN_BIN to its executable.");
|
|
478
|
+
}
|
|
479
|
+
assertSupportedBunVersion(runtime.version);
|
|
480
|
+
resolve(runtime.executable);
|
|
481
|
+
} catch (metadataError) {
|
|
482
|
+
reject(metadataError instanceof SyntaxError ? new Error("Unable to identify Bun runtime. Install current stable Bun or set BUN_BIN to its executable.", { cause: metadataError }) : metadataError);
|
|
483
|
+
}
|
|
451
484
|
});
|
|
452
485
|
});
|
|
453
|
-
return bunBin;
|
|
454
486
|
}
|
|
455
487
|
async function isBunAvailable() {
|
|
456
488
|
try {
|
|
@@ -461,7 +493,7 @@ async function isBunAvailable() {
|
|
|
461
493
|
}
|
|
462
494
|
}
|
|
463
495
|
|
|
464
|
-
// node_modules/.pnpm/mcporter@0.
|
|
496
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/artifacts.js
|
|
465
497
|
var localRequire = createRequire(import.meta.url);
|
|
466
498
|
var packageRoot = fileURLToPath(new URL("../../..", import.meta.url));
|
|
467
499
|
var BUNDLED_DEPENDENCIES = ["commander", "mcporter", "jsonc-parser"];
|
|
@@ -476,7 +508,7 @@ async function bundleOutput({ sourcePath, targetPath, runtimeKind, minify, bundl
|
|
|
476
508
|
async function bundleWithRolldown({ sourcePath, targetPath, runtimeKind, minify }) {
|
|
477
509
|
let rolldownImpl;
|
|
478
510
|
try {
|
|
479
|
-
({ rolldown: rolldownImpl } = await import("./dist-
|
|
511
|
+
({ rolldown: rolldownImpl } = await import("./dist-Q7WSCBBK.js"));
|
|
480
512
|
} catch (error) {
|
|
481
513
|
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.";
|
|
482
514
|
if (error instanceof Error) {
|
|
@@ -487,8 +519,8 @@ ${error.message}`;
|
|
|
487
519
|
}
|
|
488
520
|
throw new Error(message, { cause: error });
|
|
489
521
|
}
|
|
490
|
-
const absTarget =
|
|
491
|
-
await fs.mkdir(
|
|
522
|
+
const absTarget = path2.resolve(targetPath);
|
|
523
|
+
await fs.mkdir(path2.dirname(absTarget), { recursive: true });
|
|
492
524
|
const plugins = dependencyAliasPlugin ? [dependencyAliasPlugin] : void 0;
|
|
493
525
|
const bundle = await rolldownImpl({
|
|
494
526
|
input: sourcePath,
|
|
@@ -531,7 +563,7 @@ function buildEsmRequireBanner() {
|
|
|
531
563
|
].join("\n");
|
|
532
564
|
}
|
|
533
565
|
function outputFormatForTarget(targetPath, runtimeKind) {
|
|
534
|
-
const extension =
|
|
566
|
+
const extension = path2.extname(targetPath).toLowerCase();
|
|
535
567
|
if (extension === ".mjs") {
|
|
536
568
|
return "esm";
|
|
537
569
|
}
|
|
@@ -541,13 +573,13 @@ function outputFormatForTarget(targetPath, runtimeKind) {
|
|
|
541
573
|
return runtimeKind === "bun" ? "esm" : "cjs";
|
|
542
574
|
}
|
|
543
575
|
async function bundleWithBun({ sourcePath, targetPath, runtimeKind, minify }) {
|
|
544
|
-
const absTarget = path.resolve(targetPath);
|
|
545
|
-
await fs.mkdir(path.dirname(absTarget), { recursive: true });
|
|
546
576
|
const bunBin = await verifyBunAvailable();
|
|
547
|
-
const
|
|
577
|
+
const absTarget = path2.resolve(targetPath);
|
|
578
|
+
await fs.mkdir(path2.dirname(absTarget), { recursive: true });
|
|
579
|
+
const tmpRoot = path2.join(packageRoot, "tmp");
|
|
548
580
|
await fs.mkdir(tmpRoot, { recursive: true });
|
|
549
|
-
const stagingDir = await fs.mkdtemp(
|
|
550
|
-
const stagingEntry =
|
|
581
|
+
const stagingDir = await fs.mkdtemp(path2.join(tmpRoot, "bundle-"));
|
|
582
|
+
const stagingEntry = path2.join(stagingDir, path2.basename(sourcePath));
|
|
551
583
|
await safeCopyFile(sourcePath, stagingEntry);
|
|
552
584
|
await ensureBundlerDeps(stagingDir);
|
|
553
585
|
try {
|
|
@@ -592,14 +624,14 @@ function resolveBundleTarget({ bundle, compile, outputPath }) {
|
|
|
592
624
|
throw new Error("--bundle requires an explicit output path when used with --compile.");
|
|
593
625
|
}
|
|
594
626
|
if (typeof compile === "string") {
|
|
595
|
-
const ext =
|
|
596
|
-
const base =
|
|
627
|
+
const ext = path2.extname(compile);
|
|
628
|
+
const base = path2.join(path2.dirname(compile), path2.basename(compile, ext));
|
|
597
629
|
return `${base}.js`;
|
|
598
630
|
}
|
|
599
631
|
if (compile) {
|
|
600
|
-
const tmpDir =
|
|
601
|
-
const baseName =
|
|
602
|
-
return
|
|
632
|
+
const tmpDir = path2.join(process.cwd(), "tmp", "mcporter-cli-bundles");
|
|
633
|
+
const baseName = path2.basename(outputPath, path2.extname(outputPath)) || "bundle";
|
|
634
|
+
return path2.join(tmpDir, `${baseName}-${Date.now()}.bundle.js`);
|
|
603
635
|
}
|
|
604
636
|
throw new Error("--compile requires an explicit bundle target.");
|
|
605
637
|
}
|
|
@@ -630,11 +662,11 @@ function resolveLocalDependency(specifier) {
|
|
|
630
662
|
try {
|
|
631
663
|
if (specifier === "jsonc-parser") {
|
|
632
664
|
const pkgJsonPath = localRequire.resolve("jsonc-parser/package.json");
|
|
633
|
-
const pkgDir =
|
|
665
|
+
const pkgDir = path2.dirname(pkgJsonPath);
|
|
634
666
|
try {
|
|
635
667
|
const pkg = JSON.parse(fsSync.readFileSync(pkgJsonPath, "utf8"));
|
|
636
668
|
if (pkg.module) {
|
|
637
|
-
const esmEntry =
|
|
669
|
+
const esmEntry = path2.join(pkgDir, pkg.module);
|
|
638
670
|
if (fsSync.existsSync(esmEntry)) {
|
|
639
671
|
return esmEntry;
|
|
640
672
|
}
|
|
@@ -646,10 +678,10 @@ function resolveLocalDependency(specifier) {
|
|
|
646
678
|
} catch {
|
|
647
679
|
if (specifier === "mcporter") {
|
|
648
680
|
const fallbacks = [
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
681
|
+
path2.join(packageRoot, "dist", "index.js"),
|
|
682
|
+
path2.join(packageRoot, "dist", "index.mjs"),
|
|
683
|
+
path2.join(packageRoot, "src", "index.ts"),
|
|
684
|
+
path2.join(packageRoot, "src", "index.js")
|
|
653
685
|
];
|
|
654
686
|
for (const candidate of fallbacks) {
|
|
655
687
|
if (fsSync.existsSync(candidate)) {
|
|
@@ -661,14 +693,14 @@ function resolveLocalDependency(specifier) {
|
|
|
661
693
|
return void 0;
|
|
662
694
|
}
|
|
663
695
|
async function ensureBundlerDeps(stagingDir) {
|
|
664
|
-
const nodeModulesDir =
|
|
696
|
+
const nodeModulesDir = path2.join(stagingDir, "node_modules");
|
|
665
697
|
await fs.mkdir(nodeModulesDir, { recursive: true });
|
|
666
698
|
await Promise.all(BUNDLED_DEPENDENCIES.map(async (specifier) => {
|
|
667
699
|
const sourceDir = resolveDependencyDirectory(specifier);
|
|
668
700
|
if (!sourceDir) {
|
|
669
701
|
return;
|
|
670
702
|
}
|
|
671
|
-
const target =
|
|
703
|
+
const target = path2.join(nodeModulesDir, specifier);
|
|
672
704
|
await linkOrCopyDependency(sourceDir, target);
|
|
673
705
|
}));
|
|
674
706
|
const missing = await findMissingBundlerDeps(stagingDir);
|
|
@@ -679,7 +711,7 @@ async function ensureBundlerDeps(stagingDir) {
|
|
|
679
711
|
async function findMissingBundlerDeps(stagingDir) {
|
|
680
712
|
const missing = [];
|
|
681
713
|
for (const specifier of BUNDLED_DEPENDENCIES) {
|
|
682
|
-
const pkgPath =
|
|
714
|
+
const pkgPath = path2.join(stagingDir, "node_modules", specifier, "package.json");
|
|
683
715
|
try {
|
|
684
716
|
await fs.access(pkgPath);
|
|
685
717
|
} catch {
|
|
@@ -693,7 +725,7 @@ async function installPublishedBundlerDeps(stagingDir) {
|
|
|
693
725
|
if (installSpec === "0.0.0-dev") {
|
|
694
726
|
throw new Error("Unable to resolve generated-CLI bundler dependencies from this standalone mcporter binary. Install mcporter via npm/Homebrew or publish the matching mcporter package before using --compile.");
|
|
695
727
|
}
|
|
696
|
-
await fs.writeFile(
|
|
728
|
+
await fs.writeFile(path2.join(stagingDir, "package.json"), JSON.stringify({ private: true, type: "module", dependencies: { mcporter: installSpec } }, null, 2), "utf8");
|
|
697
729
|
await new Promise((resolve, reject) => {
|
|
698
730
|
execFile2("npm", ["install", "--ignore-scripts", "--no-audit", "--no-fund", "--min-release-age=0"], { cwd: stagingDir, env: process.env, windowsHide: true }, (error) => {
|
|
699
731
|
if (error) {
|
|
@@ -718,12 +750,12 @@ function resolveDependencyDirectory(specifier) {
|
|
|
718
750
|
}
|
|
719
751
|
try {
|
|
720
752
|
const entryPath = localRequire.resolve(specifier);
|
|
721
|
-
let candidate =
|
|
722
|
-
while (candidate !==
|
|
723
|
-
if (fsSync.existsSync(
|
|
753
|
+
let candidate = path2.dirname(entryPath);
|
|
754
|
+
while (candidate !== path2.dirname(candidate)) {
|
|
755
|
+
if (fsSync.existsSync(path2.join(candidate, "package.json"))) {
|
|
724
756
|
return candidate;
|
|
725
757
|
}
|
|
726
|
-
candidate =
|
|
758
|
+
candidate = path2.dirname(candidate);
|
|
727
759
|
}
|
|
728
760
|
} catch {
|
|
729
761
|
return void 0;
|
|
@@ -752,18 +784,18 @@ function sanitizeFileName(input) {
|
|
|
752
784
|
return toAsciiSlug(input);
|
|
753
785
|
}
|
|
754
786
|
function resolveUniquePath(directory, baseName) {
|
|
755
|
-
let attempt =
|
|
787
|
+
let attempt = path2.join(directory, baseName);
|
|
756
788
|
let suffix = 1;
|
|
757
789
|
while (fsSync.existsSync(attempt)) {
|
|
758
|
-
attempt =
|
|
790
|
+
attempt = path2.join(directory, `${baseName}-${suffix}`);
|
|
759
791
|
suffix += 1;
|
|
760
792
|
}
|
|
761
793
|
return attempt;
|
|
762
794
|
}
|
|
763
795
|
|
|
764
|
-
// node_modules/.pnpm/mcporter@0.
|
|
796
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/definition.js
|
|
765
797
|
import fs2 from "node:fs/promises";
|
|
766
|
-
import
|
|
798
|
+
import path3 from "node:path";
|
|
767
799
|
function ensureInvocationDefaults(invocation, definition) {
|
|
768
800
|
const serverRef = invocation.serverRef ?? definition.name;
|
|
769
801
|
const configPath = invocation.configPath ?? (definition.source && definition.source.kind === "local" ? definition.source.path : void 0);
|
|
@@ -782,7 +814,7 @@ async function resolveServerDefinition(serverRef, configPath, rootDir) {
|
|
|
782
814
|
}
|
|
783
815
|
return { definition: normalizeDefinition(parsed), name: parsed.name };
|
|
784
816
|
}
|
|
785
|
-
const possiblePath =
|
|
817
|
+
const possiblePath = path3.resolve(trimmed);
|
|
786
818
|
try {
|
|
787
819
|
const buffer = await fs2.readFile(possiblePath, "utf8");
|
|
788
820
|
const parsed = parseJsonBuffer(buffer);
|
|
@@ -799,12 +831,14 @@ async function resolveServerDefinition(serverRef, configPath, rootDir) {
|
|
|
799
831
|
}
|
|
800
832
|
const [name, value] = first;
|
|
801
833
|
const raw = value;
|
|
834
|
+
const policy = getVaultEncryptionPolicy(parsed.oauthVaultEncryption);
|
|
835
|
+
const withPolicy = (definition) => policy === void 0 ? definition : { ...definition, oauthVaultEncryption: policy };
|
|
802
836
|
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 };
|
|
837
|
+
return { definition: withPolicy(normalizeDefinition({ name, ...raw })), name };
|
|
804
838
|
}
|
|
805
839
|
const source = { kind: "local", path: possiblePath };
|
|
806
840
|
return {
|
|
807
|
-
definition: normalizeServerEntry(name, RawEntrySchema.parse(value),
|
|
841
|
+
definition: withPolicy(normalizeServerEntry(name, RawEntrySchema.parse(value), path3.dirname(possiblePath), source, [source])),
|
|
808
842
|
name
|
|
809
843
|
};
|
|
810
844
|
} catch (error) {
|
|
@@ -844,7 +878,7 @@ async function fetchTools(definition, serverName, configPath, rootDir) {
|
|
|
844
878
|
rootDir,
|
|
845
879
|
servers: [definition]
|
|
846
880
|
});
|
|
847
|
-
const { createGeneratedKeepAliveRuntime } = await import("./generated-daemon-runtime-
|
|
881
|
+
const { createGeneratedKeepAliveRuntime } = await import("./generated-daemon-runtime-3C4NWGAU.js");
|
|
848
882
|
const context = await createGeneratedKeepAliveRuntime(base, definition);
|
|
849
883
|
const runtime = context.runtime;
|
|
850
884
|
try {
|
|
@@ -903,6 +937,7 @@ function normalizeDefinition(def) {
|
|
|
903
937
|
const oauthClientMetadataUrl = stringFromAliases(record, "oauthClientMetadataUrl", "oauth_client_metadata_url");
|
|
904
938
|
const oauthScope = stringFromAliases(record, "oauthScope", "oauth_scope");
|
|
905
939
|
const oauthRequestedScope = stringFromAliases(record, "oauthRequestedScope", "oauth_requested_scope");
|
|
940
|
+
const oauthVaultEncryption = getVaultEncryptionPolicy(record.oauthVaultEncryption ?? record.oauth_vault_encryption);
|
|
906
941
|
const refresh = getRefresh(record.refresh);
|
|
907
942
|
const httpFetch = normalizeHttpFetch(stringFromAliases(record, "httpFetch", "http_fetch"));
|
|
908
943
|
const headers = toStringRecord(def.headers);
|
|
@@ -932,6 +967,7 @@ function normalizeDefinition(def) {
|
|
|
932
967
|
oauthCommand,
|
|
933
968
|
refresh,
|
|
934
969
|
httpFetch,
|
|
970
|
+
...oauthVaultEncryption === void 0 ? {} : { oauthVaultEncryption },
|
|
935
971
|
lifecycle: resolveLifecycle(name, rawLifecycle, command),
|
|
936
972
|
logging,
|
|
937
973
|
...allowedTools !== void 0 ? { allowedTools } : {},
|
|
@@ -1097,6 +1133,14 @@ function getProtocolVersion(value) {
|
|
|
1097
1133
|
function getChromeDevtoolsRelayPolicy(value) {
|
|
1098
1134
|
return value === "off" || value === "prefer" || value === "require" ? value : void 0;
|
|
1099
1135
|
}
|
|
1136
|
+
function getVaultEncryptionPolicy(value) {
|
|
1137
|
+
if (value === void 0)
|
|
1138
|
+
return void 0;
|
|
1139
|
+
const parsed = VaultEncryptionPolicySchema.safeParse(value);
|
|
1140
|
+
if (!parsed.success)
|
|
1141
|
+
throw new Error("oauthVaultEncryption must be 'optional' or 'required'.");
|
|
1142
|
+
return parsed.data;
|
|
1143
|
+
}
|
|
1100
1144
|
function stringFromAliases(record, ...keys) {
|
|
1101
1145
|
for (const key of keys) {
|
|
1102
1146
|
const value = record[key];
|
|
@@ -1119,7 +1163,7 @@ function toStringRecord(value) {
|
|
|
1119
1163
|
return Object.keys(result).length > 0 ? result : void 0;
|
|
1120
1164
|
}
|
|
1121
1165
|
|
|
1122
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1166
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/generate-cli.js
|
|
1123
1167
|
var REPRODUCIBLE_GENERATED_AT = "1970-01-01T00:00:00.000Z";
|
|
1124
1168
|
async function generateCli(options) {
|
|
1125
1169
|
const runtimeKind = await resolveRuntimeKind(options.runtime, options.compile);
|
|
@@ -1170,19 +1214,19 @@ async function generateCli(options) {
|
|
|
1170
1214
|
if (!templateOutputPath && shouldBundle) {
|
|
1171
1215
|
templateTmpDir = resolveImplicitTemplateDir(name, serializedDefinition);
|
|
1172
1216
|
await fs3.mkdir(templateTmpDir, { recursive: true });
|
|
1173
|
-
templateOutputPath =
|
|
1217
|
+
templateOutputPath = path4.join(templateTmpDir, `${sanitizePathSegment(name) || "server"}.ts`);
|
|
1174
1218
|
}
|
|
1175
|
-
const templateSourcePath =
|
|
1219
|
+
const templateSourcePath = path4.resolve(templateOutputPath ?? path4.resolve(process.cwd(), `${name}.ts`));
|
|
1176
1220
|
let resolvedBundleTarget;
|
|
1177
1221
|
let resolvedCompileTarget;
|
|
1178
1222
|
if (shouldBundle) {
|
|
1179
|
-
resolvedBundleTarget =
|
|
1223
|
+
resolvedBundleTarget = path4.resolve(resolveBundleTarget({
|
|
1180
1224
|
bundle: options.bundle,
|
|
1181
1225
|
compile: options.compile,
|
|
1182
1226
|
outputPath: templateSourcePath
|
|
1183
1227
|
}));
|
|
1184
1228
|
if (options.compile) {
|
|
1185
|
-
resolvedCompileTarget =
|
|
1229
|
+
resolvedCompileTarget = path4.resolve(computeCompileTarget(options.compile, resolvedBundleTarget, name));
|
|
1186
1230
|
}
|
|
1187
1231
|
}
|
|
1188
1232
|
const runtimeScriptPath = resolvedCompileTarget ?? resolvedBundleTarget ?? templateSourcePath;
|
|
@@ -1228,7 +1272,7 @@ async function generateCli(options) {
|
|
|
1228
1272
|
});
|
|
1229
1273
|
await fs3.rmdir(templateTmpDir).catch(() => {
|
|
1230
1274
|
});
|
|
1231
|
-
await fs3.rmdir(
|
|
1275
|
+
await fs3.rmdir(path4.dirname(templateTmpDir)).catch(() => {
|
|
1232
1276
|
});
|
|
1233
1277
|
}
|
|
1234
1278
|
}
|
|
@@ -1253,7 +1297,7 @@ function buildEmbeddedInvocation(invocation, definition) {
|
|
|
1253
1297
|
}
|
|
1254
1298
|
function resolveImplicitTemplateDir(serverName, definition) {
|
|
1255
1299
|
const hash = createHash("sha256").update(stableJsonStringify({ serverName, definition })).digest("hex").slice(0, 12);
|
|
1256
|
-
return
|
|
1300
|
+
return path4.join(process.cwd(), "tmp", "mcporter-cli", `${sanitizePathSegment(serverName) || "server"}-${hash}`);
|
|
1257
1301
|
}
|
|
1258
1302
|
function sanitizePathSegment(value) {
|
|
1259
1303
|
let segment = "";
|
|
@@ -1317,7 +1361,7 @@ function applyToolFilters(tools, includeTools, excludeTools) {
|
|
|
1317
1361
|
}
|
|
1318
1362
|
var __test = { ...toolsTestHelpers, applyToolFilters };
|
|
1319
1363
|
|
|
1320
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1364
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/output.js
|
|
1321
1365
|
async function performGenerateFromArtifact(metadata, request) {
|
|
1322
1366
|
const { outputPath, bundlePath, compilePath } = await generateCli(request);
|
|
1323
1367
|
if (metadata.artifact.kind === "binary" && compilePath) {
|
|
@@ -1341,7 +1385,7 @@ async function performGenerateFromRequest(request) {
|
|
|
1341
1385
|
}
|
|
1342
1386
|
}
|
|
1343
1387
|
|
|
1344
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1388
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/server-utils.js
|
|
1345
1389
|
function buildInlineServerDefinition(name, command, description) {
|
|
1346
1390
|
if (typeof command === "string") {
|
|
1347
1391
|
const url = normalizeHttpUrlCandidate(command) ?? command;
|
|
@@ -1374,7 +1418,7 @@ function buildInlineServerDefinition(name, command, description) {
|
|
|
1374
1418
|
};
|
|
1375
1419
|
}
|
|
1376
1420
|
|
|
1377
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1421
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate-cli-runner.js
|
|
1378
1422
|
async function handleGenerateCli(args, globalFlags) {
|
|
1379
1423
|
const parsed = parseGenerateFlags(args);
|
|
1380
1424
|
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-S2F7DDP5.js";
|
|
5
|
+
import "./chunk-HNQSUT44.js";
|
|
6
|
+
import "./chunk-GTETFUPQ.js";
|
|
7
|
+
import "./chunk-PSE442BC.js";
|
|
8
|
+
import "./chunk-6P3KAQ5N.js";
|
|
9
|
+
import "./chunk-F2X4Y2TQ.js";
|
|
10
|
+
import "./chunk-2AKSS7WR.js";
|
|
11
|
+
import "./chunk-2YV72LUA.js";
|
|
12
|
+
import "./chunk-THRMUZZD.js";
|
|
13
|
+
import "./chunk-V42T3QNK.js";
|
|
14
|
+
import "./chunk-O3RTM5HD.js";
|
|
15
|
+
import "./chunk-3ETUDW7N.js";
|
|
16
|
+
import "./chunk-QNXOIF5U.js";
|
|
17
|
+
import "./chunk-6O42UGLI.js";
|
|
18
|
+
import "./chunk-CXST5CVH.js";
|
|
19
|
+
import "./chunk-7U5NSQ5T.js";
|
|
20
|
+
import "./chunk-3LENTPGE.js";
|
|
21
|
+
import "./chunk-JEHI2YU4.js";
|
|
22
|
+
import "./chunk-IWCVZ46B.js";
|
|
23
|
+
import "./chunk-T4MQCFIK.js";
|
|
24
|
+
import "./chunk-BHXCAVFP.js";
|
|
25
|
+
import "./chunk-MHUMLEBO.js";
|
|
26
|
+
import "./chunk-IRSL7JRH.js";
|
|
27
|
+
import "./chunk-UVRJ3AAD.js";
|
|
28
|
+
import "./chunk-O7SIXJM6.js";
|
|
29
|
+
import "./chunk-LRKZP7DJ.js";
|
|
30
|
+
export {
|
|
31
|
+
createGeneratedKeepAliveRuntime
|
|
32
|
+
};
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
buildGenerateCliCommand,
|
|
4
4
|
readCliMetadata,
|
|
5
5
|
shellQuote
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-E76ZUBOJ.js";
|
|
7
|
+
import "./chunk-BUOGKTKK.js";
|
|
8
8
|
import {
|
|
9
9
|
expectValue
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I6UFV7RW.js";
|
|
11
11
|
import {
|
|
12
12
|
formatPathForDisplay,
|
|
13
13
|
formatSourceSuffix
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-WQL7FJQ3.js";
|
|
15
|
+
import "./chunk-IRARVOUM.js";
|
|
16
16
|
import {
|
|
17
17
|
consumeOutputFormat
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-MEQXX43K.js";
|
|
19
|
+
import "./chunk-UVRJ3AAD.js";
|
|
20
|
+
import "./chunk-O7SIXJM6.js";
|
|
21
21
|
import "./chunk-LRKZP7DJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/mcporter@0.
|
|
23
|
+
// node_modules/.pnpm/mcporter@0.16.1/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);
|