@introspection-ai/recipes 0.25.0 → 0.26.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/mcp-chunks/{auth-command-4WFRNU2I.js → auth-command-JBYNHHMV.js} +23 -27
- package/dist/mcp-chunks/call-arguments-S4EGFKUQ.js +15 -0
- package/dist/mcp-chunks/{call-command-JBIKXOGC.js → call-command-467BVXTE.js} +32 -33
- package/dist/mcp-chunks/{chunk-IPNSPKQK.js → chunk-3Q2Q7SBU.js} +12 -14
- package/dist/mcp-chunks/chunk-66P5FXP3.js +31 -0
- package/dist/mcp-chunks/{chunk-TF2YTYE4.js → chunk-6DVS7RBO.js} +1 -1
- package/dist/mcp-chunks/{chunk-IME7DGLJ.js → chunk-AK5ZEDEF.js} +2 -2
- package/dist/mcp-chunks/{chunk-OP3IW2V6.js → chunk-AP5VHS73.js} +2 -2
- package/dist/mcp-chunks/{chunk-B2LNXGAP.js → chunk-AS27BTCS.js} +1 -1
- package/dist/mcp-chunks/{chunk-MOEZ43ZL.js → chunk-BC2HDCYV.js} +1 -1
- package/dist/mcp-chunks/{chunk-RSTKSBVF.js → chunk-BSCNF4NY.js} +2 -2
- package/dist/mcp-chunks/chunk-BTU34BUG.js +1182 -0
- package/dist/mcp-chunks/{chunk-HN7WPMCA.js → chunk-CN5YF3IQ.js} +21042 -3688
- package/dist/mcp-chunks/{chunk-G6OMDUNG.js → chunk-CZ43ZITK.js} +1 -1
- package/dist/mcp-chunks/{chunk-JG4TRUPF.js → chunk-D2P2IV4H.js} +1 -1
- package/dist/mcp-chunks/{chunk-3R2WK3NB.js → chunk-DMBE47LM.js} +6 -6
- package/dist/mcp-chunks/{chunk-WTMJMM3B.js → chunk-EP22XMWK.js} +3 -30
- package/dist/mcp-chunks/{chunk-ITCCROID.js → chunk-EUDC3ICZ.js} +5 -5
- package/dist/mcp-chunks/{chunk-FX5NYWBH.js → chunk-G4H535MI.js} +3 -21
- package/dist/mcp-chunks/{chunk-HCOKLSOB.js → chunk-GA4ZYSRX.js} +4 -4
- package/dist/mcp-chunks/{chunk-C2KNLFZR.js → chunk-GEVQ2GJW.js} +2 -2
- package/dist/mcp-chunks/{chunk-WYLHHXI6.js → chunk-GK4LA4E6.js} +26 -11
- package/dist/mcp-chunks/{chunk-QZUC2T72.js → chunk-GL4AA5QV.js} +2 -2
- package/dist/mcp-chunks/{chunk-KW3ANJ36.js → chunk-HBN3ESMH.js} +4 -4
- package/dist/mcp-chunks/{chunk-ELA77TDC.js → chunk-HKZZGSDV.js} +4 -4
- package/dist/mcp-chunks/{chunk-36VIJRYY.js → chunk-HTXQPQPB.js} +4 -4
- package/dist/mcp-chunks/{chunk-3JGS7LQB.js → chunk-I7JR2GIC.js} +2 -2
- package/dist/mcp-chunks/{chunk-AIKLVBYU.js → chunk-IO2IMWYS.js} +2 -2
- package/dist/mcp-chunks/{chunk-RD7NHCRK.js → chunk-J2WP6ERZ.js} +39 -42
- package/dist/mcp-chunks/{chunk-HLRCUHNO.js → chunk-KJNNO5Z6.js} +1 -1
- package/dist/mcp-chunks/{chunk-4ZNBWL65.js → chunk-L2LGMX5P.js} +2 -2
- package/dist/mcp-chunks/chunk-LG3GLOSA.js +513 -0
- package/dist/mcp-chunks/{chunk-CZKDJZER.js → chunk-LTR626QF.js} +1 -1
- package/dist/mcp-chunks/{chunk-FS5JIKT6.js → chunk-LYWEATXZ.js} +6 -6
- package/dist/mcp-chunks/{chunk-YIRGLKDA.js → chunk-M62ESEOY.js} +45 -14
- package/dist/mcp-chunks/{chunk-V5AYEKSL.js → chunk-MJHMXYMO.js} +52 -81
- package/dist/mcp-chunks/{chunk-7WOKCV6Q.js → chunk-N7ZWX3WW.js} +1 -1
- package/dist/mcp-chunks/chunk-NTABJCUL.js +123 -0
- package/dist/mcp-chunks/{chunk-EPT4MYOF.js → chunk-OABFKFSL.js} +11 -11
- package/dist/mcp-chunks/{chunk-SCOMDV54.js → chunk-OB256NMD.js} +1 -1
- package/dist/mcp-chunks/{chunk-IYWYVHHD.js → chunk-OZQTZWW4.js} +1 -1
- package/dist/mcp-chunks/{chunk-ITR7FQM3.js → chunk-QIBGY4IX.js} +2 -2
- package/dist/mcp-chunks/{chunk-ZOAQDFAO.js → chunk-REEFOL44.js} +1 -1
- package/dist/mcp-chunks/{chunk-ED2WN5BI.js → chunk-SUNOYTQJ.js} +3 -3
- package/dist/mcp-chunks/{chunk-Y3EDWN2P.js → chunk-TFU4NKFJ.js} +1 -1
- package/dist/mcp-chunks/{chunk-EMSNQHZZ.js → chunk-TGPIW6F6.js} +1 -1
- package/dist/mcp-chunks/{chunk-SNKXMWDB.js → chunk-UCJ7YDFN.js} +1 -1
- package/dist/mcp-chunks/{chunk-TPHPAEDH.js → chunk-WUEDIOR5.js} +1 -1
- package/dist/mcp-chunks/{chunk-FAJPJTOC.js → chunk-XCNWICLD.js} +1 -1
- package/dist/mcp-chunks/{chunk-6YZW3XAE.js → chunk-XFQSUC7T.js} +5 -5
- package/dist/mcp-chunks/{chunk-GQ6NSIDS.js → chunk-Y3L5LWBY.js} +3037 -747
- package/dist/mcp-chunks/{chunk-53NRFMB3.js → chunk-YI5SMRFH.js} +46 -25
- package/dist/mcp-chunks/{chunk-GUXMP7QB.js → chunk-YPTN46JQ.js} +2 -2
- package/dist/mcp-chunks/{chunk-I5GI2A2D.js → chunk-YVH36MGQ.js} +2 -2
- package/dist/mcp-chunks/{chunk-ASG4OY3M.js → chunk-Z6QEOUMK.js} +22 -23
- package/dist/mcp-chunks/{cli-XU26MUCN.js → cli-TN6JTLTS.js} +108 -77
- package/dist/mcp-chunks/client-G33HPQAC.js +29 -0
- package/dist/mcp-chunks/{config-command-UQMMIK2U.js → config-command-LICU56ZH.js} +27 -28
- package/dist/mcp-chunks/daemon-command-JLVHGWHB.js +29 -0
- package/dist/mcp-chunks/{dist-DM2RXZMU.js → dist-MFAWSKGH.js} +80 -46
- package/dist/mcp-chunks/{emit-ts-command-KAOL6DAN.js → emit-ts-command-FVX3JMSN.js} +18 -18
- package/dist/mcp-chunks/{generate-cli-runner-AK6XNRTK.js → generate-cli-runner-L2L7VMCA.js} +53 -51
- package/dist/mcp-chunks/generated-daemon-runtime-DC6IL7E7.js +29 -0
- package/dist/mcp-chunks/{inspect-cli-command-6FVJO7H2.js → inspect-cli-command-Y5D3GRE2.js} +9 -10
- package/dist/mcp-chunks/{launch-EIT73HX4.js → launch-ZFY6CM2A.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-QH4TUI3K.js → lifecycle-H7DIW5DM.js} +1 -1
- package/dist/mcp-chunks/{list-command-UOB2XZK7.js → list-command-55LCLW4S.js} +34 -35
- package/dist/mcp-chunks/{output-utils-6YXH23T7.js → output-utils-YYHI637S.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-ZB6RFAXR.js → prompt-CH6TK0bC-DZLFAAPK.js} +1 -1
- package/dist/mcp-chunks/{record-command-FO5TTERC.js → record-command-PWIBYC5J.js} +5 -5
- package/dist/mcp-chunks/{replay-command-SCBPCGQ7.js → replay-command-QHZZZMXF.js} +6 -6
- package/dist/mcp-chunks/{resource-command-S2J7XEMV.js → resource-command-HMR2KXWK.js} +9 -10
- package/dist/mcp-chunks/{result-utils-OME6HGS6.js → result-utils-UGCQSRJ4.js} +3 -4
- package/dist/mcp-chunks/runtime-ZNFPZXKE.js +36 -0
- package/dist/mcp-chunks/runtime-wrapper-I4B3OROR.js +10 -0
- package/dist/mcp-chunks/{serve-command-DDBZZSG6.js → serve-command-NTDI3YPN.js} +29 -34
- package/dist/mcp-chunks/{timeouts-HNGNKDQN.js → timeouts-35UDWFA7.js} +3 -3
- package/dist/mcp-chunks/{vault-command-TJZYS3YI.js → vault-command-D5QZL4FI.js} +4 -6
- package/dist/mcp-daemon.js +26 -31
- package/dist/mcp-run-worker.js +26 -31
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +27 -0
- package/dist/pi-extension.js.map +1 -1
- package/docs/pi-extension.md +1 -1
- package/docs/recipe-format.md +7 -3
- package/docs/recipe-templates.md +46 -0
- package/package.json +14 -14
- package/dist/mcp-chunks/call-arguments-4DWPBLQP.js +0 -15
- package/dist/mcp-chunks/chunk-3Z7MFS6K.js +0 -86
- package/dist/mcp-chunks/chunk-AD3FQ73K.js +0 -39
- package/dist/mcp-chunks/chunk-BWW4XRUC.js +0 -1931
- package/dist/mcp-chunks/chunk-DTZHEVKC.js +0 -12
- package/dist/mcp-chunks/chunk-H3JCYHGS.js +0 -1018
- package/dist/mcp-chunks/chunk-IRTJXFWA.js +0 -28
- package/dist/mcp-chunks/chunk-NTHUNCXJ.js +0 -526
- package/dist/mcp-chunks/chunk-OD3MSMXY.js +0 -15
- package/dist/mcp-chunks/chunk-PZ323CXI.js +0 -17394
- package/dist/mcp-chunks/client-OT34CKRH.js +0 -21
- package/dist/mcp-chunks/daemon-command-YCIOZGPZ.js +0 -35
- package/dist/mcp-chunks/runtime-QIPMLIJI.js +0 -39
- package/dist/mcp-chunks/runtime-wrapper-X4YFKMJI.js +0 -16
|
@@ -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.10/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) {
|
|
@@ -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.10/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,20 +1,20 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
__configInternals
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J2WP6ERZ.js";
|
|
5
5
|
import {
|
|
6
6
|
withFileLock,
|
|
7
7
|
writeTextFileAtomic
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QIBGY4IX.js";
|
|
9
9
|
import {
|
|
10
10
|
expandHome
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EP22XMWK.js";
|
|
12
12
|
import {
|
|
13
13
|
canonicalKeepAliveName,
|
|
14
14
|
resolveLifecycle
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-D2P2IV4H.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
17
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/ascii-slug.js
|
|
18
18
|
function toAsciiSlug(value) {
|
|
19
19
|
let slug = "";
|
|
20
20
|
let pendingSeparator = false;
|
|
@@ -35,7 +35,7 @@ function toAsciiSlug(value) {
|
|
|
35
35
|
return slug;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
38
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/adhoc-server.js
|
|
39
39
|
import fs from "node:fs/promises";
|
|
40
40
|
import path from "node:path";
|
|
41
41
|
var TEMP_SOURCE = { kind: "local", path: "<adhoc>" };
|
|
@@ -1,17 +1,16 @@
|
|
|
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.10/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_]*)(?::-|:|-)?([^}]*)\}$/;
|
|
7
7
|
var ENV_INTERPOLATION_PATTERN = /\\?\$\{([A-Za-z_][A-Za-z0-9_]*)(?::-(.*?))?\}/g;
|
|
8
8
|
var UNSUPPORTED_BRACED_ENV_PATTERN = /\$\{env:[^}]*\}/;
|
|
9
9
|
var ENV_DIRECT_PREFIX = "$env:";
|
|
10
|
-
function expandHome(input) {
|
|
10
|
+
function expandHome(input, home = os.homedir()) {
|
|
11
11
|
if (!input.startsWith("~")) {
|
|
12
12
|
return input;
|
|
13
13
|
}
|
|
14
|
-
const home = os.homedir();
|
|
15
14
|
if (input === "~") {
|
|
16
15
|
return home;
|
|
17
16
|
}
|
|
@@ -81,35 +80,9 @@ function rejectUnsupportedBracedEnvPlaceholder(value) {
|
|
|
81
80
|
}
|
|
82
81
|
throw new Error(`Unsupported environment placeholder '${unsupported}'. Use '\${VAR}', '\${VAR:-fallback}', or whole-value '$env:VAR'.`);
|
|
83
82
|
}
|
|
84
|
-
async function withEnvOverrides(envOverrides, fn) {
|
|
85
|
-
if (!envOverrides || Object.keys(envOverrides).length === 0) {
|
|
86
|
-
return await fn();
|
|
87
|
-
}
|
|
88
|
-
const applied = [];
|
|
89
|
-
for (const [key, rawValue] of Object.entries(envOverrides)) {
|
|
90
|
-
rejectUnsupportedBracedEnvPlaceholder(rawValue);
|
|
91
|
-
if (process.env[key]) {
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
const resolved = resolveEnvValue(rawValue);
|
|
95
|
-
if (resolved === "") {
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
process.env[key] = resolved;
|
|
99
|
-
applied.push(key);
|
|
100
|
-
}
|
|
101
|
-
try {
|
|
102
|
-
return await fn();
|
|
103
|
-
} finally {
|
|
104
|
-
for (const key of applied) {
|
|
105
|
-
delete process.env[key];
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
83
|
|
|
110
84
|
export {
|
|
111
85
|
expandHome,
|
|
112
86
|
resolveEnvValue,
|
|
113
|
-
resolveEnvPlaceholders
|
|
114
|
-
withEnvOverrides
|
|
87
|
+
resolveEnvPlaceholders
|
|
115
88
|
};
|
|
@@ -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-AK5ZEDEF.js";
|
|
5
5
|
import {
|
|
6
6
|
persistEphemeralServer,
|
|
7
7
|
resolveEphemeralServer,
|
|
8
8
|
splitCommandLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DMBE47LM.js";
|
|
10
10
|
import {
|
|
11
11
|
looksLikeHttpUrl,
|
|
12
12
|
normalizeHttpUrlCandidate
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CZ43ZITK.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
15
|
+
// node_modules/.pnpm/mcporter@0.13.10/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.13.
|
|
39
|
+
// node_modules/.pnpm/mcporter@0.13.10/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,32 +1,15 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
mcporterConfigCandidates
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LYWEATXZ.js";
|
|
5
5
|
import {
|
|
6
6
|
expandHome
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EP22XMWK.js";
|
|
8
8
|
|
|
9
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
9
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config/path-discovery.js
|
|
10
10
|
import fsSync from "node:fs";
|
|
11
11
|
import fs from "node:fs/promises";
|
|
12
12
|
import path from "node:path";
|
|
13
|
-
async function listConfigLayerPaths(options = {}, rootDir = process.cwd()) {
|
|
14
|
-
const explicitPath = options.configPath ?? process.env.MCPORTER_CONFIG;
|
|
15
|
-
if (explicitPath) {
|
|
16
|
-
return [path.resolve(expandHome(explicitPath.trim()))];
|
|
17
|
-
}
|
|
18
|
-
const paths = [];
|
|
19
|
-
const homeCandidates = homeConfigCandidates();
|
|
20
|
-
const existingHome = homeCandidates.find((candidate) => pathExists(candidate));
|
|
21
|
-
if (existingHome) {
|
|
22
|
-
paths.push(existingHome);
|
|
23
|
-
}
|
|
24
|
-
const projectPath = path.resolve(rootDir, "config", "mcporter.json");
|
|
25
|
-
if (pathExists(projectPath)) {
|
|
26
|
-
paths.push(projectPath);
|
|
27
|
-
}
|
|
28
|
-
return paths;
|
|
29
|
-
}
|
|
30
13
|
function resolveConfigPath(configPath, rootDir) {
|
|
31
14
|
if (configPath) {
|
|
32
15
|
return { path: path.resolve(configPath), explicit: true };
|
|
@@ -67,7 +50,6 @@ async function pathExistsAsync(filePath) {
|
|
|
67
50
|
}
|
|
68
51
|
|
|
69
52
|
export {
|
|
70
|
-
listConfigLayerPaths,
|
|
71
53
|
resolveConfigPath,
|
|
72
54
|
homeConfigCandidates,
|
|
73
55
|
pathExists,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
extraDimText,
|
|
5
5
|
redText,
|
|
6
6
|
yellowText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OB256NMD.js";
|
|
8
8
|
import {
|
|
9
9
|
analyzeConnectionError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GL4AA5QV.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
12
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/path-utils.js
|
|
13
13
|
import os from "node:os";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
function formatPathForDisplay(filePath) {
|
|
@@ -19,7 +19,7 @@ function formatPathForDisplay(filePath) {
|
|
|
19
19
|
return displayPath;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
22
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/list-format.js
|
|
23
23
|
function renderServerListRow(result, timeoutMs, options = {}) {
|
|
24
24
|
const description = result.server.description ? dimText(` \u2014 ${result.server.description}`) : "";
|
|
25
25
|
const durationLabel = dimText(`${(result.durationMs / 1e3).toFixed(1)}s`);
|
|
@@ -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-YPTN46JQ.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.10/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,16 +1,27 @@
|
|
|
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.10/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";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
async function launchDaemonDetached(options, launch = spawn) {
|
|
7
9
|
const invocation = buildDaemonLaunchInvocation(options);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
try {
|
|
11
|
+
await new Promise((resolve, reject) => {
|
|
12
|
+
const child = launch(invocation.command, invocation.args, {
|
|
13
|
+
detached: true,
|
|
14
|
+
stdio: "ignore",
|
|
15
|
+
env: invocation.env
|
|
16
|
+
});
|
|
17
|
+
child.on("error", reject);
|
|
18
|
+
child.once("spawn", resolve);
|
|
19
|
+
child.unref();
|
|
20
|
+
});
|
|
21
|
+
} catch (error) {
|
|
22
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
23
|
+
throw new Error(`Failed to start MCPorter daemon (${invocation.command}): ${message}`, { cause: error });
|
|
24
|
+
}
|
|
14
25
|
}
|
|
15
26
|
function buildDaemonLaunchInvocation(options, processInfo = {
|
|
16
27
|
argvEntry: process.argv[1],
|
|
@@ -20,12 +31,9 @@ function buildDaemonLaunchInvocation(options, processInfo = {
|
|
|
20
31
|
platform: process.platform
|
|
21
32
|
}) {
|
|
22
33
|
const cliEntry = resolveCliEntry(processInfo.argvEntry);
|
|
23
|
-
const configArgs = options.configExplicit ? ["--config", options.configPath] : [];
|
|
24
34
|
const args = [
|
|
25
35
|
...processInfo.execArgv,
|
|
26
36
|
...cliEntry ? [cliEntry] : [],
|
|
27
|
-
...configArgs,
|
|
28
|
-
...options.rootDir ? ["--root", options.rootDir] : [],
|
|
29
37
|
"daemon",
|
|
30
38
|
"start",
|
|
31
39
|
"--foreground",
|
|
@@ -34,6 +42,7 @@ function buildDaemonLaunchInvocation(options, processInfo = {
|
|
|
34
42
|
const env = {
|
|
35
43
|
...processInfo.env,
|
|
36
44
|
MCPORTER_DAEMON_CHILD: "1",
|
|
45
|
+
MCPORTER_DISABLE_AUTORUN: "0",
|
|
37
46
|
MCPORTER_DAEMON_SOCKET: options.socketPath,
|
|
38
47
|
MCPORTER_DAEMON_METADATA: options.metadataPath
|
|
39
48
|
};
|
|
@@ -60,6 +69,12 @@ function resolveCliEntry(entry = process.argv[1]) {
|
|
|
60
69
|
if (entry.startsWith("/$bunfs/")) {
|
|
61
70
|
return void 0;
|
|
62
71
|
}
|
|
72
|
+
const candidate = fileURLToPath(new URL("../cli.js", import.meta.url));
|
|
73
|
+
if (existsSync(candidate))
|
|
74
|
+
return candidate;
|
|
75
|
+
const sourceBuild = fileURLToPath(new URL("../../dist/cli.js", import.meta.url));
|
|
76
|
+
if (existsSync(sourceBuild))
|
|
77
|
+
return sourceBuild;
|
|
63
78
|
return path.resolve(entry);
|
|
64
79
|
}
|
|
65
80
|
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
SdkHttpError,
|
|
4
4
|
SseError,
|
|
5
5
|
UnauthorizedError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CN5YF3IQ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
8
|
+
// node_modules/.pnpm/mcporter@0.13.10/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,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-XCNWICLD.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-AP5VHS73.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
12
|
+
// node_modules/.pnpm/mcporter@0.13.10/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.13.
|
|
66
|
+
// node_modules/.pnpm/mcporter@0.13.10/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);
|
|
@@ -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-OZQTZWW4.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.10/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.10/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.10/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"];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
consumeTimeoutFlag
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IO2IMWYS.js";
|
|
5
5
|
import {
|
|
6
6
|
extractEphemeralServerFlags
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BC2HDCYV.js";
|
|
8
8
|
import {
|
|
9
9
|
consumeOutputFormat
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TFU4NKFJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
12
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/list-flags.js
|
|
13
13
|
function extractListFlags(args) {
|
|
14
14
|
let schema = false;
|
|
15
15
|
let timeoutMs;
|
|
@@ -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-YPTN46JQ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
7
|
+
// node_modules/.pnpm/mcporter@0.13.10/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") {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
raceWithTimeout
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YVH36MGQ.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.13.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/timeouts.js
|
|
7
7
|
var DEFAULT_LIST_TIMEOUT_MS = 3e4;
|
|
8
8
|
var DEFAULT_CALL_TIMEOUT_MS = 6e4;
|
|
9
9
|
var POSITIVE_INTEGER_PATTERN = /^[1-9]\d*$/;
|