@introspection-ai/recipes 0.27.4 → 0.29.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/agents.d.ts +34 -0
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +87 -0
- package/dist/agents.js.map +1 -1
- package/dist/child/agent.d.ts +5 -0
- package/dist/child/agent.d.ts.map +1 -1
- package/dist/child/agent.js +19 -8
- package/dist/child/agent.js.map +1 -1
- package/dist/child/session.d.ts +31 -4
- package/dist/child/session.d.ts.map +1 -1
- package/dist/child/session.js +65 -3
- package/dist/child/session.js.map +1 -1
- package/dist/mcp-chunks/{auth-command-GQFV6QYP.js → auth-command-SDTBVC2R.js} +22 -21
- package/dist/mcp-chunks/call-arguments-ER7NWEPS.js +16 -0
- package/dist/mcp-chunks/{call-command-LMAREWKD.js → call-command-WOZT2DLX.js} +33 -32
- package/dist/mcp-chunks/{chunk-5B7GRMUK.js → chunk-27XDYSXJ.js} +1 -1
- package/dist/mcp-chunks/{chunk-FONFU4G5.js → chunk-2IO3FXZJ.js} +1 -1
- package/dist/mcp-chunks/{chunk-O4JIUOWF.js → chunk-35JUFDQI.js} +2 -2
- package/dist/mcp-chunks/{chunk-UYJZJXC2.js → chunk-43QNQO5C.js} +3 -3
- package/dist/mcp-chunks/{chunk-LIEFPSSB.js → chunk-4IXQQER3.js} +5 -5
- package/dist/mcp-chunks/{chunk-O2VOMKAS.js → chunk-6XBQDCGX.js} +10 -10
- package/dist/mcp-chunks/{chunk-S2YF442K.js → chunk-7CI6DKEP.js} +2 -2
- package/dist/mcp-chunks/{chunk-H7ARMBV7.js → chunk-7OQUF6V6.js} +26 -10
- package/dist/mcp-chunks/{chunk-S6GJ42I2.js → chunk-7X3JHUMH.js} +1 -1
- package/dist/mcp-chunks/{chunk-D6B2M5V7.js → chunk-7ZZZ7MR2.js} +1 -1
- package/dist/mcp-chunks/{chunk-WHJUDBPR.js → chunk-AHDUZPNI.js} +2 -1
- package/dist/mcp-chunks/{chunk-QALB3DRW.js → chunk-ALLS7CUV.js} +1 -1
- package/dist/mcp-chunks/{chunk-6RG6AD5X.js → chunk-ASFI5AJK.js} +17 -11
- package/dist/mcp-chunks/{chunk-LQIE4PKL.js → chunk-CMDB57MS.js} +2 -2
- package/dist/mcp-chunks/{chunk-HZ2SX5U6.js → chunk-CO4CYU5W.js} +11 -11
- package/dist/mcp-chunks/{chunk-TUQGOYK6.js → chunk-CRX2G22W.js} +1 -1
- package/dist/mcp-chunks/{chunk-UKM35J67.js → chunk-DUJ5WAHC.js} +2 -2
- package/dist/mcp-chunks/{chunk-RIHPVCGI.js → chunk-EIF7GALA.js} +1 -1
- package/dist/mcp-chunks/{chunk-QJNF3A3F.js → chunk-EIXFNLU6.js} +1 -1
- package/dist/mcp-chunks/{chunk-77BZYP72.js → chunk-FMYP6JXX.js} +1 -1
- package/dist/mcp-chunks/{chunk-LXHPDKEF.js → chunk-FQAJT6U2.js} +1 -1
- package/dist/mcp-chunks/{chunk-7WL4TMON.js → chunk-FUKRLUU7.js} +4 -4
- package/dist/mcp-chunks/{chunk-L6OOGZVA.js → chunk-FVZKQMZS.js} +21 -7
- package/dist/mcp-chunks/{chunk-RZIJUJGL.js → chunk-FWWPRZ37.js} +31 -40
- package/dist/mcp-chunks/{chunk-KQCLM7R7.js → chunk-GJ7DWMRT.js} +1 -1
- package/dist/mcp-chunks/{chunk-LCBDVFVA.js → chunk-HM26TIPK.js} +1 -1
- package/dist/mcp-chunks/{chunk-JVYCENPP.js → chunk-IJTZ2ZRM.js} +4 -4
- package/dist/mcp-chunks/{chunk-S5F3HEZZ.js → chunk-IR5SMKTP.js} +425 -445
- package/dist/mcp-chunks/{chunk-7PFJCLXL.js → chunk-IWXEOLJL.js} +20 -16
- package/dist/mcp-chunks/{chunk-D6SVCPN6.js → chunk-JQCSGX6E.js} +1 -1
- package/dist/mcp-chunks/{chunk-P463YBJM.js → chunk-JRU5LZJQ.js} +1 -1
- package/dist/mcp-chunks/{chunk-XNHGMWN2.js → chunk-M7VINGHY.js} +9 -7
- package/dist/mcp-chunks/{chunk-IF6LRV3J.js → chunk-OURSGEZX.js} +8 -8
- package/dist/mcp-chunks/{chunk-H4KL74PV.js → chunk-P3S4OJPI.js} +9 -9
- package/dist/mcp-chunks/{chunk-P3UVILEW.js → chunk-POYT6GCW.js} +29 -5
- package/dist/mcp-chunks/{chunk-5BMCVE2J.js → chunk-R636HUNL.js} +17 -13
- package/dist/mcp-chunks/{chunk-TYYSBILI.js → chunk-SONMFI3S.js} +70 -28
- package/dist/mcp-chunks/{chunk-I6UMKX5E.js → chunk-SVCKS5MW.js} +4 -4
- package/dist/mcp-chunks/{chunk-NQW3ES2G.js → chunk-TDBM2UIR.js} +1 -1
- package/dist/mcp-chunks/{chunk-VJIAHZZG.js → chunk-TKZA4MPW.js} +4 -4
- package/dist/mcp-chunks/{chunk-2P2HVZ3G.js → chunk-UHXTAPEC.js} +1 -1
- package/dist/mcp-chunks/{chunk-CLR6DJV3.js → chunk-UXI26V4F.js} +1 -1
- package/dist/mcp-chunks/{chunk-UIPG6W7N.js → chunk-UYG7PAN2.js} +2 -2
- package/dist/mcp-chunks/{chunk-2HOMVWSA.js → chunk-VCPUZFU7.js} +2 -2
- package/dist/mcp-chunks/{chunk-FBVRU4Y3.js → chunk-VRTH73R5.js} +40 -33
- package/dist/mcp-chunks/{chunk-KOWNVUL2.js → chunk-VWNF5PIF.js} +2 -2
- package/dist/mcp-chunks/{chunk-MJFZM5EV.js → chunk-WQBESOWG.js} +22 -5
- package/dist/mcp-chunks/chunk-XDARNDP3.js +25 -0
- package/dist/mcp-chunks/{chunk-OSYB5GNF.js → chunk-XUJQ6U6M.js} +3 -3
- package/dist/mcp-chunks/{chunk-PJCMJ65D.js → chunk-YGRORKGT.js} +226 -101
- package/dist/mcp-chunks/{chunk-C2VLY7ED.js → chunk-YM7ZVYI2.js} +4 -4
- package/dist/mcp-chunks/{chunk-6QZQZXDJ.js → chunk-YTO7DITJ.js} +3 -3
- package/dist/mcp-chunks/{chunk-UHO6KIUJ.js → chunk-ZLV5S5UP.js} +2 -2
- package/dist/mcp-chunks/{cli-JI7MEAAX.js → cli-67GWFF4R.js} +69 -68
- package/dist/mcp-chunks/client-MQMNAYYW.js +31 -0
- package/dist/mcp-chunks/{config-command-GRZLKD3R.js → config-command-3IKIRWMW.js} +41 -27
- package/dist/mcp-chunks/daemon-command-OMOZ5MP7.js +31 -0
- package/dist/mcp-chunks/{dist-USMCQ22V.js → dist-YL3LFKVP.js} +219 -202
- package/dist/mcp-chunks/{emit-ts-command-7VLESP7H.js → emit-ts-command-YWKROLL2.js} +84 -70
- package/dist/mcp-chunks/{generate-cli-runner-SSW2B72K.js → generate-cli-runner-CZEVY2Y7.js} +51 -48
- package/dist/mcp-chunks/generated-daemon-runtime-SRFULTIT.js +31 -0
- package/dist/mcp-chunks/{inspect-cli-command-NCGCMOIS.js → inspect-cli-command-5Y2LORK5.js} +9 -9
- package/dist/mcp-chunks/{launch-NBONSPNK.js → launch-43TA3HYF.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-CXAKUCN4.js → lifecycle-BY2ILXTB.js} +1 -1
- package/dist/mcp-chunks/{list-command-5T4UF4PF.js → list-command-7RU7NNAV.js} +56 -43
- package/dist/mcp-chunks/{output-utils-YFTWQZ5V.js → output-utils-2R3SA6KR.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-6DI4RA4E.js → prompt-CH6TK0bC-GKQOEUY4.js} +1 -1
- package/dist/mcp-chunks/{record-command-TE5O7WBL.js → record-command-ROIRRNFS.js} +5 -5
- package/dist/mcp-chunks/{replay-command-QCUL5ASR.js → replay-command-Y2MYVQTL.js} +6 -6
- package/dist/mcp-chunks/{resource-command-XMGF7EAK.js → resource-command-VUV7AYYQ.js} +9 -9
- package/dist/mcp-chunks/{result-utils-HKB42M7Y.js → result-utils-5U7NVXDZ.js} +3 -3
- package/dist/mcp-chunks/runtime-Q4SCCOQE.js +38 -0
- package/dist/mcp-chunks/{runtime-wrapper-MI3HF45J.js → runtime-wrapper-3BVFTSWJ.js} +3 -3
- package/dist/mcp-chunks/{serve-command-5HV3ZE25.js → serve-command-BXLQWHFW.js} +8969 -1147
- package/dist/mcp-chunks/{timeouts-YBFBTLV2.js → timeouts-6GL2F44N.js} +3 -3
- package/dist/mcp-chunks/{vault-command-FC2PD5U6.js → vault-command-JCMW3DQA.js} +4 -4
- package/dist/mcp-chunks/{webapi-IFUPO72B.js → webapi-UMWFGMQV.js} +46 -46
- package/dist/mcp-daemon.js +27 -26
- package/dist/mcp-run-worker.js +27 -26
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +22 -19
- package/dist/pi-extension.js.map +1 -1
- package/dist/recipe/model.d.ts.map +1 -1
- package/dist/recipe/model.js +25 -1
- package/dist/recipe/model.js.map +1 -1
- package/dist/run-controller.d.ts +10 -3
- package/dist/run-controller.d.ts.map +1 -1
- package/dist/run-controller.js +23 -11
- package/dist/run-controller.js.map +1 -1
- package/dist/session.d.ts +13 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +15 -9
- package/dist/session.js.map +1 -1
- package/docs/agent-composition.md +27 -6
- package/docs/host-api.md +32 -4
- package/docs/mcp-configuration.md +12 -3
- package/docs/pi-extension.md +7 -4
- package/docs/recipe-format.md +14 -5
- package/package.json +11 -11
- package/dist/mcp-chunks/call-arguments-VT7JLNJY.js +0 -16
- package/dist/mcp-chunks/client-QU7ABSNB.js +0 -30
- package/dist/mcp-chunks/daemon-command-3266CYHO.js +0 -30
- package/dist/mcp-chunks/generated-daemon-runtime-7CFVWLC7.js +0 -30
- package/dist/mcp-chunks/runtime-3X2XVS6X.js +0 -37
|
@@ -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-ZLV5S5UP.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.14.2/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();
|
|
@@ -17,6 +17,7 @@ var RecordTransport = class {
|
|
|
17
17
|
finishAuth;
|
|
18
18
|
writes = Promise.resolve();
|
|
19
19
|
closeRecorded = false;
|
|
20
|
+
writeErrorReported = false;
|
|
20
21
|
constructor(opts) {
|
|
21
22
|
this.opts = opts;
|
|
22
23
|
if ("stderr" in opts.inner && "pid" in opts.inner) {
|
|
@@ -39,14 +40,14 @@ var RecordTransport = class {
|
|
|
39
40
|
async start() {
|
|
40
41
|
await initializeRecordingFile(this.opts.recordPath);
|
|
41
42
|
this.opts.inner.onclose = () => {
|
|
42
|
-
void this.appendCloseOnce();
|
|
43
|
+
void this.appendCloseOnce().catch((error) => this.reportWriteError(error));
|
|
43
44
|
this.onclose?.();
|
|
44
45
|
};
|
|
45
46
|
this.opts.inner.onerror = (error) => {
|
|
46
47
|
this.onerror?.(error);
|
|
47
48
|
};
|
|
48
49
|
this.opts.inner.onmessage = (message, extra) => {
|
|
49
|
-
void this.appendLine(this.withMeta(message, "recv"));
|
|
50
|
+
void this.appendLine(this.withMeta(message, "recv")).catch((error) => this.reportWriteError(error));
|
|
50
51
|
this.onmessage?.(message, extra);
|
|
51
52
|
};
|
|
52
53
|
await this.appendLifecycle("start");
|
|
@@ -57,9 +58,15 @@ var RecordTransport = class {
|
|
|
57
58
|
await this.opts.inner.send(message, options);
|
|
58
59
|
}
|
|
59
60
|
async close() {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
try {
|
|
62
|
+
await this.appendCloseOnce();
|
|
63
|
+
} finally {
|
|
64
|
+
try {
|
|
65
|
+
await this.opts.inner.close();
|
|
66
|
+
} finally {
|
|
67
|
+
await this.writes;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
63
70
|
}
|
|
64
71
|
setProtocolVersion(version) {
|
|
65
72
|
this.opts.inner.setProtocolVersion?.(version);
|
|
@@ -102,6 +109,13 @@ var RecordTransport = class {
|
|
|
102
109
|
});
|
|
103
110
|
await this.writes;
|
|
104
111
|
}
|
|
112
|
+
reportWriteError(error) {
|
|
113
|
+
if (this.writeErrorReported) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
this.writeErrorReported = true;
|
|
117
|
+
this.onerror?.(error instanceof Error ? error : new Error(String(error)));
|
|
118
|
+
}
|
|
105
119
|
};
|
|
106
120
|
function initializeRecordingFile(recordPath) {
|
|
107
121
|
const existing = initializedRecordingPaths.get(recordPath);
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
isRecord,
|
|
4
|
+
parseJsonBuffer
|
|
5
|
+
} from "./chunk-XDARNDP3.js";
|
|
2
6
|
import {
|
|
3
7
|
writeTextFileAtomic
|
|
4
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7OQUF6V6.js";
|
|
5
9
|
import {
|
|
6
10
|
homeConfigCandidates,
|
|
7
11
|
listConfigLayerPaths,
|
|
8
12
|
pathExists,
|
|
9
13
|
pathExistsAsync,
|
|
10
14
|
resolveConfigPath
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
parse,
|
|
14
|
-
printParseErrorCode
|
|
15
|
-
} from "./chunk-T4MQCFIK.js";
|
|
15
|
+
} from "./chunk-43QNQO5C.js";
|
|
16
16
|
import {
|
|
17
17
|
expandHome,
|
|
18
18
|
resolveEnvPlaceholders
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JQCSGX6E.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveLifecycle
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EIXFNLU6.js";
|
|
23
23
|
import {
|
|
24
24
|
external_exports
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IR5SMKTP.js";
|
|
26
26
|
import {
|
|
27
27
|
__commonJS,
|
|
28
28
|
__require,
|
|
@@ -2024,14 +2024,15 @@ var require_toml = __commonJS({
|
|
|
2024
2024
|
}
|
|
2025
2025
|
});
|
|
2026
2026
|
|
|
2027
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2027
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config.js
|
|
2028
2028
|
import path6 from "node:path";
|
|
2029
2029
|
|
|
2030
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2030
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config/read-config.js
|
|
2031
2031
|
import fs from "node:fs/promises";
|
|
2032
2032
|
import path from "node:path";
|
|
2033
2033
|
|
|
2034
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2034
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config-schema.js
|
|
2035
|
+
var OAuthRequestedScopeSchema = external_exports.string().regex(/^[\x21\x23-\x5B\x5D-\x7E]+(?: [\x21\x23-\x5B\x5D-\x7E]+)*$/, "OAuth requested scope must be a non-empty, space-separated list of OAuth scope tokens.");
|
|
2035
2036
|
var ImportKindSchema = external_exports.enum(["cursor", "claude-code", "claude-desktop", "codex", "windsurf", "opencode", "vscode"]).describe("Supported editor/client configurations to import MCP servers from");
|
|
2036
2037
|
var DEFAULT_IMPORTS = [
|
|
2037
2038
|
"cursor",
|
|
@@ -2109,6 +2110,8 @@ var RawEntrySchema = external_exports.object({
|
|
|
2109
2110
|
oauth_client_metadata_url: external_exports.string().optional().describe("OAuth Client ID Metadata Document URL (snake_case)"),
|
|
2110
2111
|
oauthScope: external_exports.string().optional().describe("OAuth scope override (camelCase)"),
|
|
2111
2112
|
oauth_scope: external_exports.string().optional().describe("OAuth scope override (snake_case)"),
|
|
2113
|
+
oauthRequestedScope: OAuthRequestedScopeSchema.optional().describe("Exact scope string for OAuth authorization requests (camelCase)"),
|
|
2114
|
+
oauth_requested_scope: OAuthRequestedScopeSchema.optional().describe("Exact scope string for OAuth authorization requests (snake_case)"),
|
|
2112
2115
|
oauthCommand: external_exports.object({
|
|
2113
2116
|
args: external_exports.array(external_exports.string()).describe("Arguments for the OAuth command")
|
|
2114
2117
|
}).optional().describe("Custom OAuth command configuration for stdio servers (camelCase)"),
|
|
@@ -2146,22 +2149,7 @@ var RawConfigSchema = external_exports.object({
|
|
|
2146
2149
|
imports: external_exports.array(ImportKindSchema).optional().describe("Editor configurations to import servers from. Omit to use defaults, or set to [] to disable imports")
|
|
2147
2150
|
}).describe("mcporter configuration file schema");
|
|
2148
2151
|
|
|
2149
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2150
|
-
function parseJsonBuffer(buffer) {
|
|
2151
|
-
const errors = [];
|
|
2152
|
-
const parsed = parse(buffer, errors, { allowTrailingComma: true });
|
|
2153
|
-
const first = errors[0];
|
|
2154
|
-
if (first) {
|
|
2155
|
-
const message = printParseErrorCode(first.error);
|
|
2156
|
-
throw new SyntaxError(`Failed to parse JSON (offset ${first.offset}): ${message}`);
|
|
2157
|
-
}
|
|
2158
|
-
return parsed;
|
|
2159
|
-
}
|
|
2160
|
-
function isRecord(value) {
|
|
2161
|
-
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
// node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/read-config.js
|
|
2152
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config/read-config.js
|
|
2165
2153
|
async function loadConfigLayers(options, rootDir) {
|
|
2166
2154
|
const explicitPath = options.configPath ?? process.env.MCPORTER_CONFIG;
|
|
2167
2155
|
if (explicitPath) {
|
|
@@ -2228,12 +2216,12 @@ function includesErrnoMessage(error, code) {
|
|
|
2228
2216
|
return typeof message === "string" && message.includes(code);
|
|
2229
2217
|
}
|
|
2230
2218
|
|
|
2231
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2219
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config/imports/external.js
|
|
2232
2220
|
var import_toml = __toESM(require_toml(), 1);
|
|
2233
2221
|
import fs2 from "node:fs/promises";
|
|
2234
2222
|
import path3 from "node:path";
|
|
2235
2223
|
|
|
2236
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2224
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config/imports/paths-utils.js
|
|
2237
2225
|
import os from "node:os";
|
|
2238
2226
|
import path2 from "node:path";
|
|
2239
2227
|
function normalizeProjectPath(input) {
|
|
@@ -2261,7 +2249,7 @@ function pathsEqual(a, b) {
|
|
|
2261
2249
|
return a === b;
|
|
2262
2250
|
}
|
|
2263
2251
|
|
|
2264
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2252
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config/imports/external.js
|
|
2265
2253
|
async function readExternalEntries(filePath, options = {}) {
|
|
2266
2254
|
if (!await pathExistsAsync(filePath)) {
|
|
2267
2255
|
return null;
|
|
@@ -2513,7 +2501,7 @@ function shouldIgnoreParseError(error) {
|
|
|
2513
2501
|
return "fromTOML" in error;
|
|
2514
2502
|
}
|
|
2515
2503
|
|
|
2516
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2504
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config/imports/paths.js
|
|
2517
2505
|
import os2 from "node:os";
|
|
2518
2506
|
import path4 from "node:path";
|
|
2519
2507
|
function pathsForImport(kind, rootDir) {
|
|
@@ -2550,11 +2538,11 @@ function pathsForImport(kind, rootDir) {
|
|
|
2550
2538
|
}
|
|
2551
2539
|
function defaultCursorUserConfigPaths() {
|
|
2552
2540
|
const xdgConfig = process.env.XDG_CONFIG_HOME;
|
|
2553
|
-
const
|
|
2541
|
+
const linuxUserConfig = xdgConfig ? path4.join(xdgConfig, "Cursor", "User", "mcp.json") : path4.join(os2.homedir(), ".config", "Cursor", "User", "mcp.json");
|
|
2554
2542
|
return dedupePaths([
|
|
2555
|
-
path4.join(os2.homedir(), "AppData", "Roaming", "Cursor", "User", "mcp.json"),
|
|
2543
|
+
path4.join(process.env.APPDATA || path4.join(os2.homedir(), "AppData", "Roaming"), "Cursor", "User", "mcp.json"),
|
|
2556
2544
|
path4.join(os2.homedir(), "Library", "Application Support", "Cursor", "User", "mcp.json"),
|
|
2557
|
-
|
|
2545
|
+
linuxUserConfig
|
|
2558
2546
|
]);
|
|
2559
2547
|
}
|
|
2560
2548
|
function defaultWindsurfConfigPaths() {
|
|
@@ -2622,9 +2610,9 @@ function defaultOpencodeConfigDirs() {
|
|
|
2622
2610
|
}
|
|
2623
2611
|
function defaultClaudeDesktopConfigPath() {
|
|
2624
2612
|
const homeDir = os2.homedir();
|
|
2625
|
-
const darwinPath = path4.join(homeDir, "Library", "Application Support", "Claude", "
|
|
2626
|
-
const windowsPath = path4.join(homeDir, "AppData", "Roaming", "Claude", "
|
|
2627
|
-
const linuxPath = path4.join(homeDir, ".config", "Claude", "
|
|
2613
|
+
const darwinPath = path4.join(homeDir, "Library", "Application Support", "Claude", "claude_desktop_config.json");
|
|
2614
|
+
const windowsPath = path4.join(process.env.APPDATA || path4.join(homeDir, "AppData", "Roaming"), "Claude", "claude_desktop_config.json");
|
|
2615
|
+
const linuxPath = path4.join(homeDir, ".config", "Claude", "claude_desktop_config.json");
|
|
2628
2616
|
const platform = process.platform;
|
|
2629
2617
|
if (platform === "darwin") {
|
|
2630
2618
|
return darwinPath;
|
|
@@ -2647,7 +2635,7 @@ function dedupePaths(paths) {
|
|
|
2647
2635
|
return result;
|
|
2648
2636
|
}
|
|
2649
2637
|
|
|
2650
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2638
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config-normalize.js
|
|
2651
2639
|
import fs3 from "node:fs";
|
|
2652
2640
|
import path5 from "node:path";
|
|
2653
2641
|
function normalizeServerEntry(name, raw, baseDir, source, sources, context = {}) {
|
|
@@ -2666,6 +2654,7 @@ function normalizeServerEntry(name, raw, baseDir, source, sources, context = {})
|
|
|
2666
2654
|
const oauthRedirectUrl = raw.oauthRedirectUrl ?? raw.oauth_redirect_url ?? void 0;
|
|
2667
2655
|
const oauthClientMetadataUrl = raw.oauthClientMetadataUrl ?? raw.oauth_client_metadata_url ?? void 0;
|
|
2668
2656
|
const oauthScope = raw.oauthScope ?? raw.oauth_scope ?? void 0;
|
|
2657
|
+
const oauthRequestedScope = raw.oauthRequestedScope ?? raw.oauth_requested_scope ?? void 0;
|
|
2669
2658
|
const refresh = normalizeRefresh(raw.refresh);
|
|
2670
2659
|
const httpFetch = raw.httpFetch ?? raw.http_fetch;
|
|
2671
2660
|
const oauthCommandRaw = raw.oauthCommand ?? raw.oauth_command;
|
|
@@ -2712,6 +2701,7 @@ function normalizeServerEntry(name, raw, baseDir, source, sources, context = {})
|
|
|
2712
2701
|
oauthRedirectUrl,
|
|
2713
2702
|
oauthClientMetadataUrl,
|
|
2714
2703
|
oauthScope,
|
|
2704
|
+
oauthRequestedScope,
|
|
2715
2705
|
oauthCommand: defaultedOauthCommand,
|
|
2716
2706
|
refresh,
|
|
2717
2707
|
httpFetch,
|
|
@@ -2929,7 +2919,7 @@ function normalizeLogging(raw) {
|
|
|
2929
2919
|
return void 0;
|
|
2930
2920
|
}
|
|
2931
2921
|
|
|
2932
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2922
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config.js
|
|
2933
2923
|
async function buildServerDefinitions(layers, rootDir) {
|
|
2934
2924
|
const merged = /* @__PURE__ */ new Map();
|
|
2935
2925
|
for (const layer of layers) {
|
|
@@ -3027,6 +3017,7 @@ function resolveConfigPath2(configPath, rootDir) {
|
|
|
3027
3017
|
}
|
|
3028
3018
|
|
|
3029
3019
|
export {
|
|
3020
|
+
OAuthRequestedScopeSchema,
|
|
3030
3021
|
RawEntrySchema,
|
|
3031
3022
|
readConfigFile,
|
|
3032
3023
|
readExternalEntries,
|
|
@@ -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.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.14.2/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.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/ephemeral-flags.js
|
|
4
4
|
function extractEphemeralServerFlags(args, options = {}) {
|
|
5
5
|
let spec;
|
|
6
6
|
const ensureSpec = () => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
buildRecordCommandEnv
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UXI26V4F.js";
|
|
5
5
|
import {
|
|
6
6
|
PRIVATE_RECORDING_FILE_MODE,
|
|
7
7
|
ensurePrivateRecordingDir,
|
|
8
8
|
resolveRecordingConfigPath,
|
|
9
9
|
resolveRecordingPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FVZKQMZS.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/record-replay-command.js
|
|
13
13
|
import { spawn } from "node:child_process";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
async function writeRecordReplayConfig(parsed, mode) {
|
|
@@ -63,7 +63,7 @@ function buildRecordReplayInstructionEnv(mode, sessionName, server) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
// node_modules/.pnpm/mcporter@0.
|
|
66
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/record-command.js
|
|
67
67
|
async function handleRecordCli(args) {
|
|
68
68
|
const parsed = parseRecordArgs(args);
|
|
69
69
|
const recordPath = resolveRecordingPath(parsed.sessionName);
|