@introspection-ai/recipes 0.20.0 → 0.22.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/README.md +10 -4
- package/dist/channels/index.d.ts +7 -0
- package/dist/channels/index.d.ts.map +1 -0
- package/dist/channels/index.js +4 -0
- package/dist/channels/index.js.map +1 -0
- package/dist/channels/module.d.ts +43 -0
- package/dist/channels/module.d.ts.map +1 -0
- package/dist/channels/module.js +61 -0
- package/dist/channels/module.js.map +1 -0
- package/dist/channels/refs.d.ts +28 -0
- package/dist/channels/refs.d.ts.map +1 -0
- package/dist/channels/refs.js +91 -0
- package/dist/channels/refs.js.map +1 -0
- package/dist/channels/tools.d.ts +56 -0
- package/dist/channels/tools.d.ts.map +1 -0
- package/dist/channels/tools.js +324 -0
- package/dist/channels/tools.js.map +1 -0
- package/dist/channels/types.d.ts +209 -0
- package/dist/channels/types.d.ts.map +1 -0
- package/dist/channels/types.js +23 -0
- package/dist/channels/types.js.map +1 -0
- package/dist/child-agent.d.ts +2 -0
- package/dist/child-agent.d.ts.map +1 -1
- package/dist/child-agent.js +33 -1
- package/dist/child-agent.js.map +1 -1
- package/dist/connector-tools.d.ts +37 -0
- package/dist/connector-tools.d.ts.map +1 -0
- package/dist/connector-tools.js +88 -0
- package/dist/connector-tools.js.map +1 -0
- package/dist/mcp-chunks/{auth-command-IQ4J332A.js → auth-command-4OEOMU2V.js} +22 -22
- package/dist/mcp-chunks/call-arguments-RPXZJOXL.js +15 -0
- package/dist/mcp-chunks/{call-command-WPQ3MDOE.js → call-command-AUEKSBMD.js} +31 -31
- package/dist/mcp-chunks/{chunk-3FB4ZJ4Z.js → chunk-3VLPWGJL.js} +4 -4
- package/dist/mcp-chunks/{chunk-WKUCIR2F.js → chunk-47N2EELW.js} +32 -29
- package/dist/mcp-chunks/{chunk-NACLB5YH.js → chunk-4NDR45CX.js} +5 -5
- package/dist/mcp-chunks/{chunk-RXSZ2W6Y.js → chunk-5WGJPYOR.js} +1 -1
- package/dist/mcp-chunks/{chunk-JJG2OEHI.js → chunk-6CYJ6RN3.js} +1 -1
- package/dist/mcp-chunks/{chunk-IUFDFNNP.js → chunk-6DL2C6V5.js} +1 -1
- package/dist/mcp-chunks/{chunk-NPU7EMGE.js → chunk-6QH47GNE.js} +5 -5
- package/dist/mcp-chunks/{chunk-UDG3RHKX.js → chunk-756YH7S4.js} +2 -2
- package/dist/mcp-chunks/{chunk-B4XFULJ6.js → chunk-7CS27CWE.js} +6 -6
- package/dist/mcp-chunks/{chunk-SCD2NAX5.js → chunk-7KEDX7SE.js} +2 -2
- package/dist/mcp-chunks/{chunk-24FKKIXI.js → chunk-AB7MHBEG.js} +11 -11
- package/dist/mcp-chunks/{chunk-ITJWLDF5.js → chunk-ACTRQW5L.js} +2 -2
- package/dist/mcp-chunks/{chunk-ETYYCEQF.js → chunk-ADINDBOF.js} +2 -2
- package/dist/mcp-chunks/{chunk-QONTHFPO.js → chunk-AF74TOWM.js} +4 -4
- package/dist/mcp-chunks/{chunk-GQHTGV5E.js → chunk-AFKE4BTR.js} +15 -15
- package/dist/mcp-chunks/{chunk-RDOD354S.js → chunk-DEYKPG4K.js} +4 -4
- package/dist/mcp-chunks/{chunk-UAIJZBGL.js → chunk-E4YYMOT2.js} +10 -10
- package/dist/mcp-chunks/{chunk-DIIFWDZ7.js → chunk-HBDCHBJP.js} +1 -1
- package/dist/mcp-chunks/{chunk-NMF5S5DC.js → chunk-HDUKEFBI.js} +2 -2
- package/dist/mcp-chunks/{chunk-5YBCGQA7.js → chunk-HHMWZ2FZ.js} +1 -1
- package/dist/mcp-chunks/{chunk-2CTVPSHF.js → chunk-IPH6U7SE.js} +3 -3
- package/dist/mcp-chunks/{chunk-NSZY5WLR.js → chunk-J3J3NQ4X.js} +1 -1
- package/dist/mcp-chunks/{chunk-U23EY5DN.js → chunk-J6VOMOKI.js} +1 -1
- package/dist/mcp-chunks/{chunk-KJ3CMHWS.js → chunk-JILBFEBD.js} +1 -1
- package/dist/mcp-chunks/{chunk-YDJ7E2PH.js → chunk-JZDXKYQM.js} +4 -4
- package/dist/mcp-chunks/{chunk-FZ7K5EGL.js → chunk-KMH3PHLA.js} +5 -5
- package/dist/mcp-chunks/{chunk-FW5QVG6V.js → chunk-KPXFBRTG.js} +1 -1
- package/dist/mcp-chunks/{chunk-ZI44YPFF.js → chunk-L4CUJJI5.js} +4 -4
- package/dist/mcp-chunks/{chunk-GPCLDF6U.js → chunk-LC2CCTQN.js} +1 -1
- package/dist/mcp-chunks/{chunk-3MIFROM7.js → chunk-LJCZWKGJ.js} +1 -1
- package/dist/mcp-chunks/{chunk-SHZVDY6Z.js → chunk-MFFE5QSH.js} +1 -1
- package/dist/mcp-chunks/{chunk-HULRE4D2.js → chunk-MOML5C2E.js} +1 -1
- package/dist/mcp-chunks/{chunk-TAVMVGD5.js → chunk-MRXSXBZT.js} +2 -2
- package/dist/mcp-chunks/{chunk-LI4L4FOV.js → chunk-NMFI6AUD.js} +21 -21
- package/dist/mcp-chunks/{chunk-EEYUPDRX.js → chunk-NWLOPQT7.js} +1 -1
- package/dist/mcp-chunks/{chunk-ZSKQI4TS.js → chunk-OGFFBNIC.js} +4 -4
- package/dist/mcp-chunks/{chunk-QK6LUI5Q.js → chunk-PPIXUCYQ.js} +2 -2
- package/dist/mcp-chunks/{chunk-ILULMM2E.js → chunk-PPOHGQKM.js} +2 -2
- package/dist/mcp-chunks/{chunk-FNQV2ONG.js → chunk-PRZCYXVO.js} +2 -2
- package/dist/mcp-chunks/{chunk-LYZRCACV.js → chunk-Q7ESBNJG.js} +2 -2
- package/dist/mcp-chunks/{chunk-VC6SKXTI.js → chunk-RE4EVQNC.js} +1 -1
- package/dist/mcp-chunks/{chunk-AJPFOQLF.js → chunk-RO2Y34XX.js} +1 -1
- package/dist/mcp-chunks/{chunk-G5C4WVDQ.js → chunk-SAK5KCLR.js} +1 -1
- package/dist/mcp-chunks/{chunk-ILSK6AWI.js → chunk-SCGMRUKI.js} +1 -1
- package/dist/mcp-chunks/{chunk-MNAVFYYV.js → chunk-SQTXZR56.js} +10 -10
- package/dist/mcp-chunks/{chunk-VREKED5H.js → chunk-TGJOZDKG.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZNKNF2BV.js → chunk-US57PK4B.js} +1 -1
- package/dist/mcp-chunks/{chunk-RYAUNXFA.js → chunk-V4RYLZM5.js} +1 -1
- package/dist/mcp-chunks/{chunk-54UGGTOX.js → chunk-X3FOKZ5C.js} +1 -1
- package/dist/mcp-chunks/{chunk-XRRT3SZM.js → chunk-XVJAASVZ.js} +10 -10
- package/dist/mcp-chunks/{chunk-MDVNQ4HM.js → chunk-YX2NKW6O.js} +1 -1
- package/dist/mcp-chunks/{chunk-5HQYKAE7.js → chunk-Z7O6NF7X.js} +16 -16
- package/dist/mcp-chunks/{chunk-MWD5PZ4G.js → chunk-ZKFG37TB.js} +2 -2
- package/dist/mcp-chunks/{chunk-VJ2TSA5R.js → chunk-ZRZ7C6L3.js} +13 -8
- package/dist/mcp-chunks/{chunk-N2HVJU7X.js → chunk-ZZSD2JT7.js} +1 -1
- package/dist/mcp-chunks/{cli-Z7KV4PCE.js → cli-B7WQQUME.js} +67 -67
- package/dist/mcp-chunks/client-4ZHIBB67.js +21 -0
- package/dist/mcp-chunks/{config-command-XXCDOB3M.js → config-command-FF3JPMOP.js} +26 -26
- package/dist/mcp-chunks/daemon-command-FKW6YELL.js +35 -0
- package/dist/mcp-chunks/{emit-ts-command-FEHTMXXB.js → emit-ts-command-4X56IZ32.js} +16 -16
- package/dist/mcp-chunks/{generate-cli-runner-OA6XL77R.js → generate-cli-runner-MIPF73SJ.js} +42 -42
- package/dist/mcp-chunks/{inspect-cli-command-UQKKE5VO.js → inspect-cli-command-GX54ZXKR.js} +8 -8
- package/dist/mcp-chunks/{launch-KMPDJOUH.js → launch-E2LWGPZS.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-R3IP22MJ.js → lifecycle-TONHXXXJ.js} +1 -1
- package/dist/mcp-chunks/{list-command-7ENYKBF6.js → list-command-YUGRZO4G.js} +28 -28
- package/dist/mcp-chunks/{output-utils-N75TOWBX.js → output-utils-AZY6N2VQ.js} +3 -3
- package/dist/mcp-chunks/{record-command-XHPCL7IG.js → record-command-25DLELA2.js} +5 -5
- package/dist/mcp-chunks/{replay-command-CB56L3ZA.js → replay-command-6SLDG6PC.js} +6 -6
- package/dist/mcp-chunks/{resource-command-STEBHVT7.js → resource-command-YVOB4JCU.js} +8 -8
- package/dist/mcp-chunks/{result-utils-UONY2KNY.js → result-utils-ZXB5DM36.js} +2 -2
- package/dist/mcp-chunks/runtime-NOWGTHZ5.js +39 -0
- package/dist/mcp-chunks/{runtime-wrapper-SYYAQVO6.js → runtime-wrapper-ZZPAFQE4.js} +5 -5
- package/dist/mcp-chunks/{serve-command-VYSFRZFE.js → serve-command-QYGM2AMB.js} +26 -26
- package/dist/mcp-chunks/{timeouts-T3JP3MUF.js → timeouts-P3TBB3AX.js} +3 -3
- package/dist/mcp-chunks/{vault-command-AJ3X7GDI.js → vault-command-VDMPATIX.js} +6 -6
- package/dist/mcp-daemon.js +29 -29
- package/dist/mcp-run-worker.js +29 -29
- package/dist/mcp-tools.d.ts +1 -6
- package/dist/mcp-tools.d.ts.map +1 -1
- package/dist/mcp-tools.js +5 -73
- package/dist/mcp-tools.js.map +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +24 -0
- package/dist/mcp.js.map +1 -1
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +66 -35
- package/dist/pi-extension.js.map +1 -1
- package/dist/recipe-agent.d.ts.map +1 -1
- package/dist/recipe-agent.js +3 -2
- package/dist/recipe-agent.js.map +1 -1
- package/dist/recipe-extensions.d.ts +1 -0
- package/dist/recipe-extensions.d.ts.map +1 -1
- package/dist/recipe-extensions.js +32 -11
- package/dist/recipe-extensions.js.map +1 -1
- package/dist/recipe-package.d.ts +5 -0
- package/dist/recipe-package.d.ts.map +1 -1
- package/dist/recipe-package.js +68 -3
- package/dist/recipe-package.js.map +1 -1
- package/dist/run-controller.d.ts.map +1 -1
- package/dist/run-controller.js +7 -3
- package/dist/run-controller.js.map +1 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +71 -16
- package/dist/session.js.map +1 -1
- package/dist/test-utils.d.ts +1 -0
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/test-utils.js +1 -0
- package/dist/test-utils.js.map +1 -1
- package/dist/tool-search.d.ts +21 -0
- package/dist/tool-search.d.ts.map +1 -0
- package/dist/tool-search.js +176 -0
- package/dist/tool-search.js.map +1 -0
- package/docs/channels.md +166 -0
- package/docs/index.md +2 -0
- package/docs/mcp-configuration.md +6 -4
- package/docs/pi-extension.md +12 -8
- package/docs/recipe-format.md +37 -0
- package/docs/slack.md +135 -0
- package/package.json +23 -14
- package/dist/mcp-chunks/call-arguments-MCCBPJMY.js +0 -15
- package/dist/mcp-chunks/client-B3FMQNGF.js +0 -21
- package/dist/mcp-chunks/daemon-command-BAREANTC.js +0 -35
- package/dist/mcp-chunks/runtime-Z45IVD24.js +0 -39
- package/dist/recipe-check.d.ts +0 -18
- package/dist/recipe-check.d.ts.map +0 -1
- package/dist/recipe-check.js +0 -263
- package/dist/recipe-check.js.map +0 -1
- package/vendor/introspection-recipe-check/darwin-arm64/introspection-recipe-check +0 -0
- package/vendor/introspection-recipe-check/darwin-x64/introspection-recipe-check +0 -0
- package/vendor/introspection-recipe-check/linux-arm64/introspection-recipe-check +0 -0
- package/vendor/introspection-recipe-check/linux-x64/introspection-recipe-check +0 -0
- package/vendor/introspection-recipe-check/linux-x64-musl/introspection-recipe-check +0 -0
- package/vendor/introspection-recipe-check/win32-x64/introspection-recipe-check.exe +0 -0
- package/vendor/mcp-client/darwin-arm64/mcp-client +0 -0
- package/vendor/mcp-client/darwin-x64/mcp-client +0 -0
- package/vendor/mcp-client/linux-arm64/mcp-client +0 -0
- package/vendor/mcp-client/linux-x64/mcp-client +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/flag-utils.js
|
|
4
4
|
function extractFlags(args, keys) {
|
|
5
5
|
const flags = {};
|
|
6
6
|
let index = 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/generate/tools.js
|
|
4
4
|
function resolveSchemaType(value) {
|
|
5
5
|
if (value === "integer") {
|
|
6
6
|
return "number";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/output-format.js
|
|
4
4
|
function consumeOutputFormat(args, options = {}) {
|
|
5
5
|
const allowed = options.allowed ?? ["auto", "text", "markdown", "json", "raw"];
|
|
6
6
|
const defaultFormat = options.defaultFormat ?? "auto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/network-family-autoselection.js
|
|
4
4
|
import net from "node:net";
|
|
5
5
|
var NODE_DEFAULT_ATTEMPT_TIMEOUT_MS = 250;
|
|
6
6
|
var MCPORTER_ATTEMPT_TIMEOUT_MS = 1500;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
logWarn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PPOHGQKM.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/output-utils.js
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { inspect } from "node:util";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
configureAutoSelectFamilyAttemptTimeout
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MOML5C2E.js";
|
|
5
5
|
import {
|
|
6
6
|
stableJsonStringify
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V4RYLZM5.js";
|
|
8
8
|
import {
|
|
9
9
|
createRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-47N2EELW.js";
|
|
11
11
|
import {
|
|
12
12
|
NON_INTERACTIVE_ELICITATION_HINT,
|
|
13
13
|
createNonInteractiveElicitationResponder
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RE4EVQNC.js";
|
|
15
15
|
import {
|
|
16
16
|
OAuthTimeoutError,
|
|
17
17
|
isOAuthFlowError,
|
|
18
18
|
resolveOAuthTimeoutFromEnv
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZRZ7C6L3.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_REQUEST_TIMEOUT_MSEC,
|
|
22
22
|
SdkErrorCode
|
|
23
23
|
} from "./chunk-K56RW4HB.js";
|
|
24
24
|
import {
|
|
25
25
|
launchDaemonDetached
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZZSD2JT7.js";
|
|
27
27
|
import {
|
|
28
28
|
DaemonClient,
|
|
29
29
|
buildErrorResponse,
|
|
@@ -39,61 +39,61 @@ import {
|
|
|
39
39
|
shouldShutdownDaemonForIdle,
|
|
40
40
|
statConfigMtime,
|
|
41
41
|
waitForDaemonReady
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-AFKE4BTR.js";
|
|
43
43
|
import {
|
|
44
44
|
DAEMON_OAUTH_FLOW_ERROR_CODE,
|
|
45
45
|
DAEMON_OPERATION_TIMEOUT_CODE,
|
|
46
46
|
DAEMON_PROGRESS_INTERVAL_MS,
|
|
47
47
|
DAEMON_PROTOCOL_VERSION,
|
|
48
48
|
encodeDaemonFrame
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-YX2NKW6O.js";
|
|
50
50
|
import {
|
|
51
51
|
CHROME_DEVTOOLS_RELAY_RUNTIME_IDENTITY_VERSION,
|
|
52
52
|
chromeDevtoolsRelayEnvironmentKeys,
|
|
53
53
|
getChromeDevtoolsRelayDecision,
|
|
54
54
|
resolveChromeDevtoolsRelayRuntimeIdentity
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-XVJAASVZ.js";
|
|
56
56
|
import {
|
|
57
57
|
suppressBrowserLaunchFromEnv
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-6CYJ6RN3.js";
|
|
59
59
|
import {
|
|
60
60
|
raceWithTimeout
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-Q7ESBNJG.js";
|
|
62
62
|
import {
|
|
63
63
|
loadConfigSnapshot
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-Z7O6NF7X.js";
|
|
65
65
|
import {
|
|
66
66
|
isProcessRunning,
|
|
67
67
|
readJsonFile,
|
|
68
68
|
withFileLock,
|
|
69
69
|
writeJsonFile
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-ADINDBOF.js";
|
|
71
71
|
import {
|
|
72
72
|
expandHome
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-HBDCHBJP.js";
|
|
74
74
|
import {
|
|
75
75
|
isKeepAliveServer
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-RO2Y34XX.js";
|
|
77
77
|
|
|
78
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
78
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/daemon-command.js
|
|
79
79
|
import fsPromises from "node:fs/promises";
|
|
80
80
|
import path3 from "node:path";
|
|
81
81
|
|
|
82
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
82
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/daemon/host.js
|
|
83
83
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
84
84
|
import { randomUUID } from "node:crypto";
|
|
85
85
|
import fs from "node:fs/promises";
|
|
86
86
|
import net from "node:net";
|
|
87
87
|
import path2 from "node:path";
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
89
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/daemon/definition-hash.js
|
|
90
90
|
import { createHash } from "node:crypto";
|
|
91
91
|
function hashDaemonDefinitions(definitions) {
|
|
92
92
|
const sorted = definitions.toSorted((a, b) => a.name.localeCompare(b.name));
|
|
93
93
|
return createHash("sha256").update(stableJsonStringify(sorted)).digest("hex").slice(0, 16);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
96
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/daemon/log-context.js
|
|
97
97
|
import fsSync from "node:fs";
|
|
98
98
|
import path from "node:path";
|
|
99
99
|
function createLogContext(options) {
|
|
@@ -163,7 +163,7 @@ function formatError(error) {
|
|
|
163
163
|
return "unknown";
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
166
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/daemon/host.js
|
|
167
167
|
var daemonRequestNotices = new AsyncLocalStorage();
|
|
168
168
|
async function runDaemonHost(options) {
|
|
169
169
|
configureAutoSelectFamilyAttemptTimeout();
|
|
@@ -800,7 +800,7 @@ function resolveDaemonListToolsAutoAuthorize(params, definition) {
|
|
|
800
800
|
return params.autoAuthorize;
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
803
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/daemon-command.js
|
|
804
804
|
async function handleDaemonCli(args, options) {
|
|
805
805
|
const subcommand = args.shift();
|
|
806
806
|
if (!subcommand || subcommand === "help" || subcommand === "--help") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/ephemeral-flags.js
|
|
4
4
|
function extractEphemeralServerFlags(args, options = {}) {
|
|
5
5
|
let spec;
|
|
6
6
|
const ensureSpec = () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
pickSharedDefinitionFields
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JILBFEBD.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli-metadata.js
|
|
7
7
|
import { spawn } from "node:child_process";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
function metadataPathForArtifact(artifactPath) {
|
|
@@ -92,7 +92,7 @@ function serializeDefinition(definition) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
95
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/generate/tool-selection.js
|
|
96
96
|
function validateToolSelection(includeTools, excludeTools, context) {
|
|
97
97
|
if (includeTools && excludeTools) {
|
|
98
98
|
throw new Error(context.mutuallyExclusiveMessage);
|
|
@@ -105,7 +105,7 @@ function validateToolSelection(includeTools, excludeTools, context) {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
108
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/generate/template-data.js
|
|
109
109
|
function buildGenerateCliCommand(invocation, definition, globalFlags = {}) {
|
|
110
110
|
const tokens = ["mcporter"];
|
|
111
111
|
const configPath = invocation.configPath ?? globalFlags["--config"];
|
|
@@ -2,9 +2,9 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
logInfo,
|
|
4
4
|
logWarn
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PPOHGQKM.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
7
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/runtime-debug.js
|
|
8
8
|
var DEBUG_HANG = process.env.MCPORTER_DEBUG_HANG === "1";
|
|
9
9
|
function describeHandle(handle) {
|
|
10
10
|
if (!handle || typeof handle !== "object" && typeof handle !== "function") {
|
|
@@ -2,9 +2,9 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
createPrefixedConsoleLogger,
|
|
4
4
|
resolveLogLevelFromEnv
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X3FOKZ5C.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
7
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/logger-context.js
|
|
8
8
|
var activeLogLevel = resolveLogLevelFromEnv();
|
|
9
9
|
var activeLogger = createPrefixedConsoleLogger("mcporter", activeLogLevel);
|
|
10
10
|
function getActiveLogLevel() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
legacyMcporterDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TGJOZDKG.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/runtime/record-transport.js
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
var initializedRecordingPaths = /* @__PURE__ */ new Map();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
resolveEnvPlaceholders
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HBDCHBJP.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/runtime/utils.js
|
|
7
7
|
var ENV_PLACEHOLDER_PATTERN = /\$\{[A-Za-z_][A-Za-z0-9_]*(?::-[^}]*)?\}/;
|
|
8
8
|
function resolveCommandArgument(value, env = process.env) {
|
|
9
9
|
if (!value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/runtime/elicitation.js
|
|
4
4
|
import readline from "node:readline";
|
|
5
5
|
var NON_INTERACTIVE_ELICITATION_HINT = "Server requested interactive input; run mcporter in a terminal.";
|
|
6
6
|
function createInteractiveElicitationResponder(options = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/lifecycle.js
|
|
4
4
|
var DEFAULT_KEEP_ALIVE = /* @__PURE__ */ new Set(["chrome-devtools", "mobile-mcp", "playwright", "cloudbase"]);
|
|
5
5
|
var includeOverride = parseList(process.env.MCPORTER_KEEPALIVE);
|
|
6
6
|
var excludeOverride = parseList(process.env.MCPORTER_DISABLE_KEEPALIVE ?? process.env.MCPORTER_NO_KEEPALIVE);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/json-output.js
|
|
4
4
|
function buildConnectionIssueEnvelope(params) {
|
|
5
5
|
return {
|
|
6
6
|
server: params.server,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/http-utils.js
|
|
4
4
|
var DOMAIN_WITH_PATH_PATTERN = /^[A-Za-z0-9](?:[A-Za-z0-9.-]*)(?::\d+)?\//;
|
|
5
5
|
function normalizeHttpUrlCandidate(value) {
|
|
6
6
|
if (!value) {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
withHiddenOAuthTokenGeneration,
|
|
18
18
|
withOAuthClientGeneration,
|
|
19
19
|
withOAuthTokenGeneration
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7CS27CWE.js";
|
|
21
21
|
import {
|
|
22
22
|
checkResourceAllowed,
|
|
23
23
|
discoverOAuthServerInfo,
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
withFileLock,
|
|
32
32
|
writeJsonFile,
|
|
33
33
|
writeTextFileAtomic
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ADINDBOF.js";
|
|
35
35
|
import {
|
|
36
36
|
legacyMcporterDir,
|
|
37
37
|
mcporterDir
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-TGJOZDKG.js";
|
|
39
39
|
|
|
40
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
40
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/oauth-persistence.js
|
|
41
41
|
import fs2 from "node:fs/promises";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
43
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/oauth-persistence-stores.js
|
|
44
44
|
import fs from "node:fs/promises";
|
|
45
45
|
import os from "node:os";
|
|
46
46
|
import path from "node:path";
|
|
@@ -606,10 +606,10 @@ async function clearLegacyOAuthArtifacts(definition, logger, scope) {
|
|
|
606
606
|
}));
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
609
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/oauth-token-refresh.js
|
|
610
610
|
import { Buffer } from "node:buffer";
|
|
611
611
|
|
|
612
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
612
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/oauth-client-info.js
|
|
613
613
|
function buildStaticClientInformation(definition, options = {}) {
|
|
614
614
|
if (!definition.oauthClientId) {
|
|
615
615
|
return void 0;
|
|
@@ -635,7 +635,7 @@ function resolveOAuthClientSecret(definition, options = {}) {
|
|
|
635
635
|
return definition.oauthClientSecret;
|
|
636
636
|
}
|
|
637
637
|
|
|
638
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
638
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/oauth-refresh-lock.js
|
|
639
639
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
640
640
|
import crypto from "node:crypto";
|
|
641
641
|
import path2 from "node:path";
|
|
@@ -698,7 +698,7 @@ function filenameSafeLabel(value) {
|
|
|
698
698
|
return value.replace(/[^A-Za-z0-9._-]+/g, "_").replace(/^[._-]+/, "").slice(0, LOCK_LABEL_MAX);
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
701
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/oauth-token-refresh.js
|
|
702
702
|
var TOKEN_EXPIRY_SKEW_SECONDS = 60;
|
|
703
703
|
var TOKEN_REQUEST_TIMEOUT_MS = 1e4;
|
|
704
704
|
var OAuthIssuerMismatchError = class extends Error {
|
|
@@ -1093,7 +1093,7 @@ function readClientSecret(definition, refreshClientSecretEnv) {
|
|
|
1093
1093
|
return resolveOAuthClientSecret(definition, { rejectBlank: true });
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
1096
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/oauth-persistence.js
|
|
1097
1097
|
async function buildOAuthPersistence(definition, logger) {
|
|
1098
1098
|
return await createOAuthPersistenceStores(definition, logger);
|
|
1099
1099
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
expandHome
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HBDCHBJP.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/paths.js
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
var XDG_HOME_ENV = {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
UnauthorizedError
|
|
6
6
|
} from "./chunk-K56RW4HB.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
8
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/error-classifier.js
|
|
9
9
|
var AUTH_STATUSES = /* @__PURE__ */ new Set([401, 403]);
|
|
10
10
|
var KEYWORD_AUTH_PATTERNS = [/unauthorized/, /invalid_token/, /forbidden/];
|
|
11
11
|
var NUMERIC_AUTH_PATTERNS = [/(?<![0-9a-z_])401(?![0-9a-z_])/i];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/stable-json.js
|
|
4
4
|
function stableJsonStringify(value, space) {
|
|
5
5
|
const json = JSON.stringify(sortJsonValue(value), void 0, space);
|
|
6
6
|
if (json === void 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/logging.js
|
|
4
4
|
var LOG_LEVEL_ORDER = {
|
|
5
5
|
debug: 10,
|
|
6
6
|
info: 20,
|
|
@@ -2,21 +2,21 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
resolveCommandArgument,
|
|
4
4
|
resolveCommandArguments
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Q7ESBNJG.js";
|
|
6
6
|
import {
|
|
7
7
|
parseTree
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Z7O6NF7X.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveEnvValue
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HBDCHBJP.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
13
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/chrome-devtools-relay.js
|
|
14
14
|
import { createHash as createHash4 } from "node:crypto";
|
|
15
15
|
import fs from "node:fs";
|
|
16
16
|
import os from "node:os";
|
|
17
17
|
import path2 from "node:path";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
19
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/chrome-devtools-command.js
|
|
20
20
|
var AUTO_CONNECT_FLAGS = /* @__PURE__ */ new Set(["--autoConnect", "--auto-connect"]);
|
|
21
21
|
var NEGATED_AUTO_CONNECT_FLAGS = /* @__PURE__ */ new Set(["--no-autoConnect", "--no-auto-connect"]);
|
|
22
22
|
var CONNECTION_VALUE_FLAGS = /* @__PURE__ */ new Set([
|
|
@@ -273,7 +273,7 @@ function booleanLiteral(value) {
|
|
|
273
273
|
return void 0;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
276
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/chrome-devtools-relay-proxy.js
|
|
277
277
|
import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
278
278
|
import http, {} from "node:http";
|
|
279
279
|
var WEBSOCKET_GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
|
|
@@ -414,7 +414,7 @@ async function closeServer(server, sockets) {
|
|
|
414
414
|
await new Promise((resolve) => server.close(() => resolve()));
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
417
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/browser-relay-auth-v2.js
|
|
418
418
|
import { createHash as createHash2, createHmac, timingSafeEqual as timingSafeEqual2 } from "node:crypto";
|
|
419
419
|
var BROWSER_RELAY_AUTH_LABEL = "openclaw.browser-relay.auth";
|
|
420
420
|
var BROWSER_RELAY_AUTH_VERSION = 2;
|
|
@@ -483,7 +483,7 @@ function isCanonicalBase64Url(value, bytes) {
|
|
|
483
483
|
return decoded.byteLength === bytes && decoded.toString("base64url") === value;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
486
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/chrome-devtools-relay-client.js
|
|
487
487
|
import { createHash as createHash3, randomBytes as randomBytes2 } from "node:crypto";
|
|
488
488
|
import { lookup } from "node:dns/promises";
|
|
489
489
|
import net from "node:net";
|
|
@@ -994,7 +994,7 @@ function isTimeoutError(error) {
|
|
|
994
994
|
return Boolean(error && typeof error === "object" && error.reason === "timeout");
|
|
995
995
|
}
|
|
996
996
|
|
|
997
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
997
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/chrome-devtools-relay-discovery.js
|
|
998
998
|
import { spawn } from "node:child_process";
|
|
999
999
|
import { statSync } from "node:fs";
|
|
1000
1000
|
import net2 from "node:net";
|
|
@@ -1448,7 +1448,7 @@ function openClawDiscoveryEnvironment(env) {
|
|
|
1448
1448
|
return filtered;
|
|
1449
1449
|
}
|
|
1450
1450
|
|
|
1451
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
1451
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/chrome-devtools-relay.js
|
|
1452
1452
|
var DEFAULT_RELAY_PROBE_TIMEOUT_MS = 5e3;
|
|
1453
1453
|
var MIN_RELAY_PROBE_TIMEOUT_MS = 100;
|
|
1454
1454
|
var MAX_RELAY_PROBE_TIMEOUT_MS = 3e4;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/daemon/protocol.js
|
|
4
4
|
var DAEMON_PROTOCOL_VERSION = 2;
|
|
5
5
|
var DAEMON_OPERATION_TIMEOUT_CODE = "operation_timeout";
|
|
6
6
|
var DAEMON_OAUTH_FLOW_ERROR_CODE = "oauth_flow_error";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
writeTextFileAtomic
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ADINDBOF.js";
|
|
5
5
|
import {
|
|
6
6
|
homeConfigCandidates,
|
|
7
7
|
listConfigLayerPaths,
|
|
8
8
|
pathExists,
|
|
9
9
|
pathExistsAsync,
|
|
10
10
|
resolveConfigPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IPH6U7SE.js";
|
|
12
12
|
import {
|
|
13
13
|
expandHome,
|
|
14
14
|
resolveEnvPlaceholders
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HBDCHBJP.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveLifecycle
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RO2Y34XX.js";
|
|
19
19
|
import {
|
|
20
20
|
external_exports
|
|
21
21
|
} from "./chunk-LWVFSQYX.js";
|
|
@@ -2020,14 +2020,14 @@ var require_toml = __commonJS({
|
|
|
2020
2020
|
}
|
|
2021
2021
|
});
|
|
2022
2022
|
|
|
2023
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
2023
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config.js
|
|
2024
2024
|
import path6 from "node:path";
|
|
2025
2025
|
|
|
2026
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
2026
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config/read-config.js
|
|
2027
2027
|
import fs2 from "node:fs/promises";
|
|
2028
2028
|
import path from "node:path";
|
|
2029
2029
|
|
|
2030
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
2030
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config-schema.js
|
|
2031
2031
|
var ImportKindSchema = external_exports.enum(["cursor", "claude-code", "claude-desktop", "codex", "windsurf", "opencode", "vscode"]).describe("Supported editor/client configurations to import MCP servers from");
|
|
2032
2032
|
var DEFAULT_IMPORTS = [
|
|
2033
2033
|
"cursor",
|
|
@@ -2142,7 +2142,7 @@ var RawConfigSchema = external_exports.object({
|
|
|
2142
2142
|
imports: external_exports.array(ImportKindSchema).optional().describe("Editor configurations to import servers from. Omit to use defaults, or set to [] to disable imports")
|
|
2143
2143
|
}).describe("mcporter configuration file schema");
|
|
2144
2144
|
|
|
2145
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
2145
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config/imports/shared.js
|
|
2146
2146
|
import fs from "node:fs/promises";
|
|
2147
2147
|
|
|
2148
2148
|
// node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
@@ -3120,7 +3120,7 @@ function printParseErrorCode(code) {
|
|
|
3120
3120
|
return "<unknown ParseErrorCode>";
|
|
3121
3121
|
}
|
|
3122
3122
|
|
|
3123
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3123
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config/imports/shared.js
|
|
3124
3124
|
async function fileExists(filePath) {
|
|
3125
3125
|
try {
|
|
3126
3126
|
await fs.access(filePath);
|
|
@@ -3143,7 +3143,7 @@ function isRecord(value) {
|
|
|
3143
3143
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
3144
3144
|
}
|
|
3145
3145
|
|
|
3146
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3146
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config/read-config.js
|
|
3147
3147
|
async function loadConfigLayers(options, rootDir) {
|
|
3148
3148
|
const explicitPath = options.configPath ?? process.env.MCPORTER_CONFIG;
|
|
3149
3149
|
if (explicitPath) {
|
|
@@ -3210,12 +3210,12 @@ function includesErrnoMessage(error, code) {
|
|
|
3210
3210
|
return typeof message === "string" && message.includes(code);
|
|
3211
3211
|
}
|
|
3212
3212
|
|
|
3213
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3213
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config/imports/external.js
|
|
3214
3214
|
var import_toml = __toESM(require_toml(), 1);
|
|
3215
3215
|
import fs3 from "node:fs/promises";
|
|
3216
3216
|
import path3 from "node:path";
|
|
3217
3217
|
|
|
3218
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3218
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config/imports/paths-utils.js
|
|
3219
3219
|
import os from "node:os";
|
|
3220
3220
|
import path2 from "node:path";
|
|
3221
3221
|
function normalizeProjectPath(input) {
|
|
@@ -3243,7 +3243,7 @@ function pathsEqual(a, b) {
|
|
|
3243
3243
|
return a === b;
|
|
3244
3244
|
}
|
|
3245
3245
|
|
|
3246
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3246
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config/imports/external.js
|
|
3247
3247
|
async function readExternalEntries(filePath, options = {}) {
|
|
3248
3248
|
if (!await fileExists(filePath)) {
|
|
3249
3249
|
return null;
|
|
@@ -3519,7 +3519,7 @@ function shouldIgnoreParseError(error) {
|
|
|
3519
3519
|
return "fromTOML" in error;
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3522
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config/imports/paths.js
|
|
3523
3523
|
import os2 from "node:os";
|
|
3524
3524
|
import path4 from "node:path";
|
|
3525
3525
|
function pathsForImport(kind, rootDir) {
|
|
@@ -3653,7 +3653,7 @@ function dedupePaths(paths) {
|
|
|
3653
3653
|
return result;
|
|
3654
3654
|
}
|
|
3655
3655
|
|
|
3656
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3656
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config-normalize.js
|
|
3657
3657
|
import fs4 from "node:fs";
|
|
3658
3658
|
import path5 from "node:path";
|
|
3659
3659
|
function normalizeServerEntry(name, raw, baseDir, source, sources) {
|
|
@@ -3939,7 +3939,7 @@ function normalizeLogging(raw) {
|
|
|
3939
3939
|
return void 0;
|
|
3940
3940
|
}
|
|
3941
3941
|
|
|
3942
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
3942
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/config.js
|
|
3943
3943
|
async function buildServerDefinitions(layers, rootDir) {
|
|
3944
3944
|
const merged = /* @__PURE__ */ new Map();
|
|
3945
3945
|
for (const layer of layers) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
analyzeConnectionError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-US57PK4B.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/runtime-oauth-support.js
|
|
7
7
|
function maybeEnableOAuth(definition, logger) {
|
|
8
8
|
if (definition.auth === "oauth" || definition.auth === "refreshable_bearer") {
|
|
9
9
|
return void 0;
|