@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
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
findServerByHttpUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-63L6SHK3.js";
|
|
5
5
|
import {
|
|
6
6
|
persistEphemeralServer,
|
|
7
7
|
resolveEphemeralServer,
|
|
8
8
|
splitCommandLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZEA3Y5ZD.js";
|
|
10
10
|
import {
|
|
11
11
|
looksLikeHttpUrl,
|
|
12
12
|
normalizeHttpUrlCandidate
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-US63Y6XE.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/mcporter@0.
|
|
15
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/adhoc-help.js
|
|
16
16
|
var ADHOC_SERVER_HELP_ENTRIES = [
|
|
17
17
|
{ flag: "--http-url <url>", description: "Register an HTTP server for this run." },
|
|
18
18
|
{ flag: "--allow-http", description: "Permit plain http:// URLs with --http-url." },
|
|
@@ -36,7 +36,7 @@ function renderAdhocServerHelpLines(width = 23) {
|
|
|
36
36
|
return ADHOC_SERVER_HELP_ENTRIES.map((entry) => ` ${entry.flag.padEnd(width)}${entry.description}`);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
// node_modules/.pnpm/mcporter@0.
|
|
39
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/ephemeral-target.js
|
|
40
40
|
async function prepareEphemeralServerTarget(options) {
|
|
41
41
|
let target = options.target;
|
|
42
42
|
let spec = options.ephemeral ? { ...options.ephemeral } : 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.16.1/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.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/process-utils.js
|
|
4
4
|
function isProcessRunning(pid) {
|
|
5
5
|
if (!Number.isInteger(pid) || pid <= 0) {
|
|
6
6
|
return false;
|
|
@@ -13,7 +13,7 @@ function isProcessRunning(pid) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/mcporter@0.
|
|
16
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/fs-json.js
|
|
17
17
|
import crypto from "node:crypto";
|
|
18
18
|
import { constants } from "node:fs";
|
|
19
19
|
import fs from "node:fs/promises";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
buildToolMetadataList
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KJ5FPQF6.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/tool-cache.js
|
|
7
7
|
var runtimeCache = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
function cacheKey(serverName, options) {
|
|
9
9
|
const includeSchema = options.includeSchema !== false;
|
|
@@ -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-UVRJ3AAD.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/result-utils.js
|
|
7
7
|
function extractEnvelope(raw) {
|
|
8
8
|
return collectEnvelopeFields(raw, { content: null, structuredContent: null }, 0);
|
|
9
9
|
}
|
|
@@ -2,15 +2,15 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
buildFallbackLiteral,
|
|
4
4
|
pickExampleLiteral
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KJ5FPQF6.js";
|
|
6
6
|
import {
|
|
7
7
|
cyanText,
|
|
8
8
|
dimText,
|
|
9
9
|
extraDimText,
|
|
10
10
|
yellowText
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IRARVOUM.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/mcporter@0.
|
|
13
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/list-signature.js
|
|
14
14
|
function formatFunctionSignature(name, options, outputSchema, formatOptions) {
|
|
15
15
|
const colorize = formatOptions?.colorize !== false;
|
|
16
16
|
const keyword = colorize ? extraDimText("function") : "function";
|
|
@@ -272,7 +272,7 @@ function formatArrayItemType(type) {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
// node_modules/.pnpm/mcporter@0.
|
|
275
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/list-doc-comments.js
|
|
276
276
|
var DEFAULT_WRAP_WIDTH = 100;
|
|
277
277
|
function buildDocComment(description, options, opts) {
|
|
278
278
|
const colorize = opts?.colorize !== false;
|
|
@@ -383,7 +383,7 @@ function wrapCommentText(text, width = DEFAULT_WRAP_WIDTH) {
|
|
|
383
383
|
return lines;
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
// node_modules/.pnpm/mcporter@0.
|
|
386
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/list-detail-helpers.js
|
|
387
387
|
var DEFAULT_MIN_VISIBLE_PARAMS = 5;
|
|
388
388
|
function selectDisplayOptions(options, requiredOnly, minVisible = DEFAULT_MIN_VISIBLE_PARAMS) {
|
|
389
389
|
if (!requiredOnly || options.length <= minVisible) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
normalizeHttpUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-US63Y6XE.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/server-lookup.js
|
|
7
7
|
function findServerByHttpUrl(definitions, urlString) {
|
|
8
8
|
const normalizedTarget = normalizeHttpUrl(urlString);
|
|
9
9
|
if (!normalizedTarget) {
|
|
@@ -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.16.1/node_modules/mcporter/dist/cli/identifier-helpers.js
|
|
4
4
|
var AUTO_THRESHOLD_RATIO = 0.3;
|
|
5
5
|
var AUTO_THRESHOLD_MIN = 2;
|
|
6
6
|
function chooseClosestIdentifier(input, candidates) {
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
resolveEnvPlaceholders,
|
|
7
7
|
resolveEnvValue
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BHXCAVFP.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/chrome-devtools-command.js
|
|
11
11
|
var AUTO_CONNECT_FLAGS = /* @__PURE__ */ new Set(["--autoConnect", "--auto-connect"]);
|
|
12
12
|
var NEGATED_AUTO_CONNECT_FLAGS = /* @__PURE__ */ new Set(["--no-autoConnect", "--no-auto-connect"]);
|
|
13
13
|
var CONNECTION_VALUE_FLAGS = /* @__PURE__ */ new Set([
|
|
@@ -277,7 +277,7 @@ function booleanLiteral(value) {
|
|
|
277
277
|
return void 0;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
// node_modules/.pnpm/mcporter@0.
|
|
280
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/runtime/utils.js
|
|
281
281
|
var ENV_PLACEHOLDER_PATTERN = /\$\{(?:env:[^}]*|[A-Za-z_][A-Za-z0-9_]*(?::-[^}]*)?)\}/;
|
|
282
282
|
var MAX_TIMER_DELAY_MS = 2147483647;
|
|
283
283
|
function resolveCommandArgument(value, env = process.env) {
|
|
@@ -358,13 +358,13 @@ function scheduleDeadline(callback, delayMs) {
|
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
// node_modules/.pnpm/mcporter@0.
|
|
361
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/chrome-devtools-relay.js
|
|
362
362
|
import { createHash as createHash3 } from "node:crypto";
|
|
363
363
|
import fs from "node:fs";
|
|
364
364
|
import os from "node:os";
|
|
365
365
|
import path2 from "node:path";
|
|
366
366
|
|
|
367
|
-
// node_modules/.pnpm/mcporter@0.
|
|
367
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/chrome-devtools-relay-proxy.js
|
|
368
368
|
import { createHash, randomBytes, timingSafeEqual } from "node:crypto";
|
|
369
369
|
import http, {} from "node:http";
|
|
370
370
|
var WEBSOCKET_GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
|
|
@@ -520,7 +520,7 @@ async function closeServer(server, sockets) {
|
|
|
520
520
|
await new Promise((resolve) => server.close(() => resolve()));
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
-
// node_modules/.pnpm/mcporter@0.
|
|
523
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/browser-relay-auth-v2.js
|
|
524
524
|
import { createHmac, hash, timingSafeEqual as timingSafeEqual2 } from "node:crypto";
|
|
525
525
|
var BROWSER_RELAY_AUTH_LABEL = "openclaw.browser-relay.auth";
|
|
526
526
|
var BROWSER_RELAY_AUTH_VERSION = 2;
|
|
@@ -589,7 +589,7 @@ function isCanonicalBase64Url(value, bytes) {
|
|
|
589
589
|
return decoded.byteLength === bytes && decoded.toString("base64url") === value;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
// node_modules/.pnpm/mcporter@0.
|
|
592
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/chrome-devtools-relay-client.js
|
|
593
593
|
import { createHash as createHash2, randomBytes as randomBytes2 } from "node:crypto";
|
|
594
594
|
import { lookup } from "node:dns/promises";
|
|
595
595
|
import net from "node:net";
|
|
@@ -1100,7 +1100,7 @@ function isTimeoutError(error) {
|
|
|
1100
1100
|
return Boolean(error && typeof error === "object" && error.reason === "timeout");
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1103
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/chrome-devtools-relay-discovery.js
|
|
1104
1104
|
import { spawn } from "node:child_process";
|
|
1105
1105
|
import { statSync } from "node:fs";
|
|
1106
1106
|
import net2 from "node:net";
|
|
@@ -1554,7 +1554,7 @@ function openClawDiscoveryEnvironment(env) {
|
|
|
1554
1554
|
return filtered;
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
|
-
// node_modules/.pnpm/mcporter@0.
|
|
1557
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/chrome-devtools-relay.js
|
|
1558
1558
|
var DEFAULT_RELAY_PROBE_TIMEOUT_MS = 2e4;
|
|
1559
1559
|
var MIN_RELAY_PROBE_TIMEOUT_MS = 100;
|
|
1560
1560
|
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.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.16.1/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) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
printParseErrorCode
|
|
5
5
|
} from "./chunk-T4MQCFIK.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/imports/shared.js
|
|
8
8
|
function parseJsonBuffer(buffer) {
|
|
9
9
|
const errors = [];
|
|
10
10
|
const parsed = parse(buffer, errors, { allowTrailingComma: true });
|
|
@@ -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.16.1/node_modules/mcporter/dist/daemon/launch.js
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
@@ -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.16.1/node_modules/mcporter/dist/env.js
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
var ENV_DEFAULT_PATTERN = /^\$\{([A-Za-z_][A-Za-z0-9_]*)(?::-|:|-)?([^}]*)\}$/;
|
|
@@ -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.16.1/node_modules/mcporter/dist/definition-fields.js
|
|
4
4
|
var SHARED_DEFINITION_FIELDS = [
|
|
5
5
|
"auth",
|
|
6
6
|
"tokenCacheDir",
|
|
@@ -14,6 +14,7 @@ var SHARED_DEFINITION_FIELDS = [
|
|
|
14
14
|
"oauthClientMetadataUrl",
|
|
15
15
|
"oauthScope",
|
|
16
16
|
"oauthRequestedScope",
|
|
17
|
+
"oauthVaultEncryption",
|
|
17
18
|
"refresh",
|
|
18
19
|
"httpFetch",
|
|
19
20
|
"allowedTools",
|
|
@@ -2,27 +2,27 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
isRecord,
|
|
4
4
|
parseJsonBuffer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7U5NSQ5T.js";
|
|
6
6
|
import {
|
|
7
7
|
writeTextFileAtomic
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3LENTPGE.js";
|
|
9
9
|
import {
|
|
10
10
|
homeConfigCandidates,
|
|
11
11
|
listConfigLayerPaths,
|
|
12
12
|
pathExists,
|
|
13
13
|
pathExistsAsync,
|
|
14
14
|
resolveConfigPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JEHI2YU4.js";
|
|
16
16
|
import {
|
|
17
17
|
expandHome,
|
|
18
18
|
resolveEnvPlaceholders
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BHXCAVFP.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveLifecycle
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MHUMLEBO.js";
|
|
23
23
|
import {
|
|
24
24
|
external_exports
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-O7SIXJM6.js";
|
|
26
26
|
import {
|
|
27
27
|
__commonJS,
|
|
28
28
|
__require,
|
|
@@ -2024,14 +2024,14 @@ var require_toml = __commonJS({
|
|
|
2024
2024
|
}
|
|
2025
2025
|
});
|
|
2026
2026
|
|
|
2027
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2027
|
+
// node_modules/.pnpm/mcporter@0.16.1/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.16.1/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.16.1/node_modules/mcporter/dist/config-schema.js
|
|
2035
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.");
|
|
2036
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");
|
|
2037
2037
|
var DEFAULT_IMPORTS = [
|
|
@@ -2142,14 +2142,16 @@ var RawEntrySchema = external_exports.object({
|
|
|
2142
2142
|
});
|
|
2143
2143
|
}
|
|
2144
2144
|
}).describe("MCP server definition supporting both HTTP/SSE and stdio transports");
|
|
2145
|
+
var VaultEncryptionPolicySchema = external_exports.enum(["optional", "required"]);
|
|
2145
2146
|
var RawConfigSchema = external_exports.object({
|
|
2146
2147
|
mcpServers: external_exports.record(external_exports.string(), RawEntrySchema).describe("Map of server names to their configurations"),
|
|
2147
2148
|
daemonIdleTimeoutMs: external_exports.number().int().positive().optional().describe("Idle timeout in milliseconds before shutting down an inactive daemon"),
|
|
2148
2149
|
daemon_idle_timeout_ms: external_exports.number().int().positive().optional().describe("Idle timeout in milliseconds before shutting down an inactive daemon"),
|
|
2150
|
+
oauthVaultEncryption: VaultEncryptionPolicySchema.optional().describe('Policy for the shared OAuth vault: "required" refuses every vault operation unless MCPORTER_VAULT_PASSWORD is set. MCPORTER_VAULT_ENCRYPTION overrides this key.'),
|
|
2149
2151
|
imports: external_exports.array(ImportKindSchema).optional().describe("Editor configurations to import servers from. Omit to use defaults, or set to [] to disable imports")
|
|
2150
2152
|
}).describe("mcporter configuration file schema");
|
|
2151
2153
|
|
|
2152
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2154
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/read-config.js
|
|
2153
2155
|
async function loadConfigLayers(options, rootDir) {
|
|
2154
2156
|
const explicitPath = options.configPath ?? process.env.MCPORTER_CONFIG;
|
|
2155
2157
|
if (explicitPath) {
|
|
@@ -2216,12 +2218,12 @@ function includesErrnoMessage(error, code) {
|
|
|
2216
2218
|
return typeof message === "string" && message.includes(code);
|
|
2217
2219
|
}
|
|
2218
2220
|
|
|
2219
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2221
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/imports/external.js
|
|
2220
2222
|
var import_toml = __toESM(require_toml(), 1);
|
|
2221
2223
|
import fs2 from "node:fs/promises";
|
|
2222
2224
|
import path3 from "node:path";
|
|
2223
2225
|
|
|
2224
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2226
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/imports/paths-utils.js
|
|
2225
2227
|
import os from "node:os";
|
|
2226
2228
|
import path2 from "node:path";
|
|
2227
2229
|
function normalizeProjectPath(input) {
|
|
@@ -2249,7 +2251,7 @@ function pathsEqual(a, b) {
|
|
|
2249
2251
|
return a === b;
|
|
2250
2252
|
}
|
|
2251
2253
|
|
|
2252
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2254
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/imports/external.js
|
|
2253
2255
|
async function readExternalEntries(filePath, options = {}) {
|
|
2254
2256
|
if (!await pathExistsAsync(filePath)) {
|
|
2255
2257
|
return null;
|
|
@@ -2501,7 +2503,7 @@ function shouldIgnoreParseError(error) {
|
|
|
2501
2503
|
return "fromTOML" in error;
|
|
2502
2504
|
}
|
|
2503
2505
|
|
|
2504
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2506
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/imports/paths.js
|
|
2505
2507
|
import os2 from "node:os";
|
|
2506
2508
|
import path4 from "node:path";
|
|
2507
2509
|
function pathsForImport(kind, rootDir) {
|
|
@@ -2635,7 +2637,7 @@ function dedupePaths(paths) {
|
|
|
2635
2637
|
return result;
|
|
2636
2638
|
}
|
|
2637
2639
|
|
|
2638
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2640
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config-normalize.js
|
|
2639
2641
|
import fs3 from "node:fs";
|
|
2640
2642
|
import path5 from "node:path";
|
|
2641
2643
|
function normalizeServerEntry(name, raw, baseDir, source, sources, context = {}) {
|
|
@@ -2919,7 +2921,7 @@ function normalizeLogging(raw) {
|
|
|
2919
2921
|
return void 0;
|
|
2920
2922
|
}
|
|
2921
2923
|
|
|
2922
|
-
// node_modules/.pnpm/mcporter@0.
|
|
2924
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config.js
|
|
2923
2925
|
async function buildServerDefinitions(layers, rootDir) {
|
|
2924
2926
|
const merged = /* @__PURE__ */ new Map();
|
|
2925
2927
|
for (const layer of layers) {
|
|
@@ -2975,6 +2977,11 @@ async function buildServerDefinitions(layers, rootDir) {
|
|
|
2975
2977
|
}
|
|
2976
2978
|
}
|
|
2977
2979
|
}
|
|
2980
|
+
const vaultPolicy = resolveVaultEncryptionPolicy(layers);
|
|
2981
|
+
if (vaultPolicy !== void 0) {
|
|
2982
|
+
for (const server of servers)
|
|
2983
|
+
Object.assign(server, { oauthVaultEncryption: vaultPolicy });
|
|
2984
|
+
}
|
|
2978
2985
|
return servers;
|
|
2979
2986
|
}
|
|
2980
2987
|
function buildDaemonConfig(layers) {
|
|
@@ -2987,12 +2994,19 @@ function buildDaemonConfig(layers) {
|
|
|
2987
2994
|
}
|
|
2988
2995
|
return { idleTimeoutMs };
|
|
2989
2996
|
}
|
|
2997
|
+
function resolveVaultEncryptionPolicy(layers) {
|
|
2998
|
+
let policy;
|
|
2999
|
+
for (const layer of layers)
|
|
3000
|
+
policy = layer.config.oauthVaultEncryption ?? policy;
|
|
3001
|
+
return policy;
|
|
3002
|
+
}
|
|
2990
3003
|
async function loadConfigSnapshot(options = {}) {
|
|
2991
3004
|
const rootDir = options.rootDir ?? process.cwd();
|
|
2992
3005
|
const layers = await loadConfigLayers(options, rootDir);
|
|
2993
3006
|
return {
|
|
2994
3007
|
servers: await buildServerDefinitions(layers, rootDir),
|
|
2995
|
-
daemon: buildDaemonConfig(layers)
|
|
3008
|
+
daemon: buildDaemonConfig(layers),
|
|
3009
|
+
vaultEncryption: resolveVaultEncryptionPolicy(layers)
|
|
2996
3010
|
};
|
|
2997
3011
|
}
|
|
2998
3012
|
async function loadServerDefinitions(options = {}) {
|
|
@@ -3019,11 +3033,13 @@ function resolveConfigPath2(configPath, rootDir) {
|
|
|
3019
3033
|
export {
|
|
3020
3034
|
OAuthRequestedScopeSchema,
|
|
3021
3035
|
RawEntrySchema,
|
|
3036
|
+
VaultEncryptionPolicySchema,
|
|
3022
3037
|
readConfigFile,
|
|
3023
3038
|
readExternalEntries,
|
|
3024
3039
|
pathsForImport,
|
|
3025
3040
|
normalizeServerEntry,
|
|
3026
3041
|
__configInternals,
|
|
3042
|
+
loadConfigSnapshot,
|
|
3027
3043
|
loadServerDefinitions,
|
|
3028
3044
|
loadRawConfig,
|
|
3029
3045
|
listConfigLayerPaths2 as listConfigLayerPaths,
|
|
@@ -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-O3RTM5HD.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7
|
+
// node_modules/.pnpm/mcporter@0.16.1/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
|
pickSharedDefinitionFields
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BUOGKTKK.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.16.1/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) {
|
|
@@ -108,7 +108,7 @@ function serializeDefinition(definition) {
|
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
// node_modules/.pnpm/mcporter@0.
|
|
111
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/tool-selection.js
|
|
112
112
|
function validateToolSelection(includeTools, excludeTools, context) {
|
|
113
113
|
if (includeTools && excludeTools) {
|
|
114
114
|
throw new Error(context.mutuallyExclusiveMessage);
|
|
@@ -121,7 +121,7 @@ function validateToolSelection(includeTools, excludeTools, context) {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
// node_modules/.pnpm/mcporter@0.
|
|
124
|
+
// node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/template-data.js
|
|
125
125
|
function buildGenerateCliCommand(invocation, definition, globalFlags = {}) {
|
|
126
126
|
const tokens = ["mcporter"];
|
|
127
127
|
const configPath = invocation.configPath ?? globalFlags["--config"];
|
|
@@ -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.16.1/node_modules/mcporter/dist/cli/record-replay-env.js
|
|
4
4
|
var KEEP_ALIVE_DISABLED_FOR_MODE = "*";
|
|
5
5
|
function buildRecordCommandEnv(sessionName, server) {
|
|
6
6
|
return buildModeEnv({
|
|
@@ -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.16.1/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 = {}) {
|