@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,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-VWNF5PIF.js";
|
|
5
5
|
import {
|
|
6
6
|
extractEphemeralServerFlags
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HM26TIPK.js";
|
|
8
8
|
import {
|
|
9
9
|
consumeOutputFormat
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-27XDYSXJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/list-flags.js
|
|
13
13
|
function extractListFlags(args) {
|
|
14
14
|
let schema = false;
|
|
15
15
|
let timeoutMs;
|
|
@@ -3368,7 +3368,7 @@ function useColor() {
|
|
|
3368
3368
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3369
3369
|
var program = new Command();
|
|
3370
3370
|
|
|
3371
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3371
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/generate/tools.js
|
|
3372
3372
|
function resolveSchemaType(value) {
|
|
3373
3373
|
if (value === "integer") {
|
|
3374
3374
|
return "number";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
extraDimText,
|
|
5
5
|
redText,
|
|
6
6
|
yellowText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CRX2G22W.js";
|
|
8
8
|
import {
|
|
9
9
|
analyzeConnectionError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-35JUFDQI.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/mcporter@0.
|
|
12
|
+
// node_modules/.pnpm/mcporter@0.14.2/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.
|
|
22
|
+
// node_modules/.pnpm/mcporter@0.14.2/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,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/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.
|
|
3
|
+
// node_modules/.pnpm/mcporter@0.14.2/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,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-TDBM2UIR.js";
|
|
5
5
|
|
|
6
|
-
// node_modules/.pnpm/mcporter@0.
|
|
6
|
+
// node_modules/.pnpm/mcporter@0.14.2/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;
|
|
@@ -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-CMDB57MS.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/mcporter@0.
|
|
7
|
+
// node_modules/.pnpm/mcporter@0.14.2/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") {
|
|
@@ -16,52 +16,52 @@ import {
|
|
|
16
16
|
resolveSystemPowerShellPath,
|
|
17
17
|
secureDaemonDirectory,
|
|
18
18
|
upgradeLegacyDaemonDirectory
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YGRORKGT.js";
|
|
20
20
|
import {
|
|
21
21
|
NON_INTERACTIVE_ELICITATION_HINT,
|
|
22
22
|
createNonInteractiveElicitationResponder
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7ZZZ7MR2.js";
|
|
24
24
|
import {
|
|
25
25
|
isOAuthFlowError,
|
|
26
26
|
resolveOAuthTimeoutFromEnv
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SONMFI3S.js";
|
|
28
28
|
import {
|
|
29
29
|
withRuntimeEnvironment
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-M7VINGHY.js";
|
|
31
31
|
import {
|
|
32
32
|
MCPORTER_VERSION
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IWXEOLJL.js";
|
|
34
34
|
import {
|
|
35
35
|
getChromeDevtoolsRelayDecision,
|
|
36
36
|
normalizeTimeout
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-P3S4OJPI.js";
|
|
38
38
|
import {
|
|
39
39
|
RawEntrySchema,
|
|
40
40
|
loadServerDefinitions
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-FWWPRZ37.js";
|
|
42
42
|
import {
|
|
43
43
|
isProcessRunning,
|
|
44
44
|
withFileLock,
|
|
45
45
|
writeJsonFile
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-7OQUF6V6.js";
|
|
47
47
|
import {
|
|
48
48
|
mcporterDir
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ZLV5S5UP.js";
|
|
50
50
|
import {
|
|
51
51
|
isKeepAliveServer
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-EIXFNLU6.js";
|
|
53
53
|
import {
|
|
54
54
|
SdkErrorCode,
|
|
55
55
|
external_exports
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-IR5SMKTP.js";
|
|
57
57
|
|
|
58
|
-
// node_modules/.pnpm/mcporter@0.
|
|
58
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/socket-rpc.js
|
|
59
59
|
import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
|
|
60
60
|
import fs from "node:fs/promises";
|
|
61
61
|
import net from "node:net";
|
|
62
62
|
import path from "node:path";
|
|
63
63
|
|
|
64
|
-
// node_modules/.pnpm/mcporter@0.
|
|
64
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/protocol.js
|
|
65
65
|
var DAEMON_PROTOCOL_VERSION = 3;
|
|
66
66
|
var MAX_DAEMON_PAYLOAD_BYTES = 4 * 1024 * 1024;
|
|
67
67
|
var DAEMON_PROGRESS_INTERVAL_MS = 250;
|
|
@@ -86,7 +86,7 @@ function resolveProgressTiming(requestedIdleTimeoutMs) {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/mcporter@0.
|
|
89
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/socket-rpc.js
|
|
90
90
|
async function daemonKey() {
|
|
91
91
|
await secureDaemonDirectory();
|
|
92
92
|
const file = path.join(daemonRunDir(), "user.key");
|
|
@@ -225,11 +225,11 @@ async function requestDaemon(socketPath, request, idleTimeoutMs) {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
// node_modules/.pnpm/mcporter@0.
|
|
228
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/client.js
|
|
229
229
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
230
230
|
import fs3 from "node:fs/promises";
|
|
231
231
|
|
|
232
|
-
// node_modules/.pnpm/mcporter@0.
|
|
232
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/process-retirement.js
|
|
233
233
|
import { execFile } from "node:child_process";
|
|
234
234
|
import { promisify } from "node:util";
|
|
235
235
|
var exec = promisify(execFile);
|
|
@@ -316,15 +316,22 @@ $checked=@(foreach ($item in $items) {
|
|
|
316
316
|
[Console]::Write((@{version=1;owner=$sid;processes=$checked}|ConvertTo-Json -Compress -Depth 4))
|
|
317
317
|
} catch { exit 1 }
|
|
318
318
|
`;
|
|
319
|
+
const observe = () => exec(resolveSystemPowerShellPath(), [
|
|
320
|
+
"-NoLogo",
|
|
321
|
+
"-NoProfile",
|
|
322
|
+
"-NonInteractive",
|
|
323
|
+
"-EncodedCommand",
|
|
324
|
+
Buffer.from(script, "utf16le").toString("base64")
|
|
325
|
+
], { timeout: 5e3, maxBuffer: 4 * 1024 * 1024, windowsHide: true, encoding: "utf8" });
|
|
319
326
|
let stdout;
|
|
320
327
|
try {
|
|
321
|
-
({ stdout } = await
|
|
322
|
-
|
|
323
|
-
"
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
+
({ stdout } = await observe().catch((error) => {
|
|
329
|
+
const failure = error;
|
|
330
|
+
const timedOut = failure?.code === null && failure.killed === true && failure.signal === "SIGTERM";
|
|
331
|
+
if (failure?.code === 1 || timedOut)
|
|
332
|
+
return observe();
|
|
333
|
+
throw error;
|
|
334
|
+
}));
|
|
328
335
|
} catch {
|
|
329
336
|
throw observationFailure("failed");
|
|
330
337
|
}
|
|
@@ -365,7 +372,7 @@ async function processInventory(pids, tree = false) {
|
|
|
365
372
|
});
|
|
366
373
|
});
|
|
367
374
|
}
|
|
368
|
-
const { stdout } = await exec("
|
|
375
|
+
const { stdout } = await exec("ps", ["-axo", "pid=,ppid=,uid=,lstart="], {
|
|
369
376
|
timeout: 5e3,
|
|
370
377
|
maxBuffer: 4 * 1024 * 1024
|
|
371
378
|
});
|
|
@@ -421,24 +428,24 @@ async function awaitRetirement(identities) {
|
|
|
421
428
|
throw new Error("Verified legacy processes have not retired; cutover remains blocked. No process was signalled.");
|
|
422
429
|
}
|
|
423
430
|
|
|
424
|
-
// node_modules/.pnpm/mcporter@0.
|
|
431
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/migration.js
|
|
425
432
|
import fs2 from "node:fs/promises";
|
|
426
433
|
import net2 from "node:net";
|
|
427
434
|
import path2 from "node:path";
|
|
428
435
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
429
436
|
|
|
430
|
-
// node_modules/.pnpm/mcporter@0.
|
|
437
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/idle-timer.js
|
|
431
438
|
var MAX_NATIVE_TIMER_MS = 2147483647;
|
|
432
439
|
function idleTimerDelay(timeoutMs, lastActivity) {
|
|
433
440
|
const remaining = timeoutMs - (Date.now() - lastActivity);
|
|
434
441
|
return Math.min(MAX_NATIVE_TIMER_MS, Math.max(1, remaining > 0 ? remaining : timeoutMs));
|
|
435
442
|
}
|
|
436
443
|
|
|
437
|
-
// node_modules/.pnpm/mcporter@0.
|
|
444
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/broker.js
|
|
438
445
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
439
446
|
import { randomUUID } from "node:crypto";
|
|
440
447
|
|
|
441
|
-
// node_modules/.pnpm/mcporter@0.
|
|
448
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/view-codec.js
|
|
442
449
|
var command = external_exports.discriminatedUnion("kind", [
|
|
443
450
|
external_exports.object({
|
|
444
451
|
kind: external_exports.literal("stdio"),
|
|
@@ -478,7 +485,7 @@ function decodeView(value) {
|
|
|
478
485
|
return { definitions, clientInfo: parsed.clientInfo };
|
|
479
486
|
}
|
|
480
487
|
|
|
481
|
-
// node_modules/.pnpm/mcporter@0.
|
|
488
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/broker.js
|
|
482
489
|
var notices = new AsyncLocalStorage();
|
|
483
490
|
var BrokerError = class extends Error {
|
|
484
491
|
code;
|
|
@@ -802,7 +809,7 @@ var DaemonBroker = class {
|
|
|
802
809
|
}
|
|
803
810
|
};
|
|
804
811
|
|
|
805
|
-
// node_modules/.pnpm/mcporter@0.
|
|
812
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/migration.js
|
|
806
813
|
async function probeDaemon(socketPath, method = "status") {
|
|
807
814
|
return new Promise((resolve) => {
|
|
808
815
|
const socket = net2.createConnection(socketPath);
|
|
@@ -908,7 +915,7 @@ async function stopVerifiedLegacyDaemons() {
|
|
|
908
915
|
}
|
|
909
916
|
}
|
|
910
917
|
|
|
911
|
-
// node_modules/.pnpm/mcporter@0.
|
|
918
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/startup-readiness.js
|
|
912
919
|
var DAEMON_STARTUP_TIMEOUT_MS = 45e3;
|
|
913
920
|
var DAEMON_STARTUP_SLOW_NOTICE_MS = 5e3;
|
|
914
921
|
var DAEMON_STARTUP_POLL_INTERVAL_MS = 100;
|
|
@@ -955,7 +962,7 @@ function delay(ms) {
|
|
|
955
962
|
});
|
|
956
963
|
}
|
|
957
964
|
|
|
958
|
-
// node_modules/.pnpm/mcporter@0.
|
|
965
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/client.js
|
|
959
966
|
var DEFAULT_DAEMON_TIMEOUT_MS = 3e4;
|
|
960
967
|
function resolveDaemonPaths(configPath) {
|
|
961
968
|
const key = "user";
|
|
@@ -1093,7 +1100,7 @@ var DaemonClient = class {
|
|
|
1093
1100
|
if (previous && !isProcessRunning(previous.pid))
|
|
1094
1101
|
throw new Error("Previous daemon exited unexpectedly; verify retirement of its transports before deliberate recovery. No replacement was launched.");
|
|
1095
1102
|
this.startingPromise ??= (async () => {
|
|
1096
|
-
const { launchDaemonDetached } = await import("./launch-
|
|
1103
|
+
const { launchDaemonDetached } = await import("./launch-43TA3HYF.js");
|
|
1097
1104
|
await launchDaemonDetached({
|
|
1098
1105
|
configPath: this.options.configPath,
|
|
1099
1106
|
metadataPath: this.metadataPath,
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
resolveChromeDevtoolsRelayEnvironment,
|
|
6
6
|
resolveCommandArgument,
|
|
7
7
|
resolveCommandArguments
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P3S4OJPI.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/mcporter@0.
|
|
10
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/timeouts.js
|
|
11
11
|
var DEFAULT_LIST_TIMEOUT_MS = 3e4;
|
|
12
12
|
var DEFAULT_CALL_TIMEOUT_MS = 6e4;
|
|
13
13
|
var DEFAULT_CHROME_TIMEOUT_MS = 3e5;
|
|
@@ -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-TDBM2UIR.js";
|
|
6
6
|
import {
|
|
7
7
|
cyanText,
|
|
8
8
|
dimText,
|
|
9
9
|
extraDimText,
|
|
10
10
|
yellowText
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CRX2G22W.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/mcporter@0.
|
|
13
|
+
// node_modules/.pnpm/mcporter@0.14.2/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";
|
|
@@ -96,6 +96,22 @@ function formatInlineParameter(option, colorize) {
|
|
|
96
96
|
const optionalSuffix = option.required ? "" : "?";
|
|
97
97
|
return `${option.property}${optionalSuffix}: ${typeAnnotation}`;
|
|
98
98
|
}
|
|
99
|
+
var PROPERTY_NAME_PATTERN = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
|
|
100
|
+
function formatParameterObjectType(options) {
|
|
101
|
+
if (options.length === 0) {
|
|
102
|
+
return void 0;
|
|
103
|
+
}
|
|
104
|
+
const members = options.map((option) => {
|
|
105
|
+
const optionalSuffix = option.required ? "" : "?";
|
|
106
|
+
return `${formatPropertyKey(option.property)}${optionalSuffix}: ${formatTypeAnnotation(option, false)}`;
|
|
107
|
+
});
|
|
108
|
+
return `{ ${members.join("; ")} }`;
|
|
109
|
+
}
|
|
110
|
+
function formatPropertyKey(property) {
|
|
111
|
+
if (property === "__proto__")
|
|
112
|
+
return '["__proto__"]';
|
|
113
|
+
return PROPERTY_NAME_PATTERN.test(property) ? property : JSON.stringify(property);
|
|
114
|
+
}
|
|
99
115
|
function quoteShellExpression(expression) {
|
|
100
116
|
if (!expression.includes("'")) {
|
|
101
117
|
return `'${expression}'`;
|
|
@@ -255,7 +271,7 @@ function formatArrayItemType(type) {
|
|
|
255
271
|
}
|
|
256
272
|
}
|
|
257
273
|
|
|
258
|
-
// node_modules/.pnpm/mcporter@0.
|
|
274
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/list-doc-comments.js
|
|
259
275
|
var DEFAULT_WRAP_WIDTH = 100;
|
|
260
276
|
function buildDocComment(description, options, opts) {
|
|
261
277
|
const colorize = opts?.colorize !== false;
|
|
@@ -366,7 +382,7 @@ function wrapCommentText(text, width = DEFAULT_WRAP_WIDTH) {
|
|
|
366
382
|
return lines;
|
|
367
383
|
}
|
|
368
384
|
|
|
369
|
-
// node_modules/.pnpm/mcporter@0.
|
|
385
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/list-detail-helpers.js
|
|
370
386
|
var DEFAULT_MIN_VISIBLE_PARAMS = 5;
|
|
371
387
|
function selectDisplayOptions(options, requiredOnly, minVisible = DEFAULT_MIN_VISIBLE_PARAMS) {
|
|
372
388
|
if (!requiredOnly || options.length <= minVisible) {
|
|
@@ -462,5 +478,6 @@ function formatHelpValue(value) {
|
|
|
462
478
|
|
|
463
479
|
export {
|
|
464
480
|
formatExampleBlock,
|
|
481
|
+
formatParameterObjectType,
|
|
465
482
|
buildToolDoc
|
|
466
483
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
parse,
|
|
4
|
+
printParseErrorCode
|
|
5
|
+
} from "./chunk-T4MQCFIK.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/config/imports/shared.js
|
|
8
|
+
function parseJsonBuffer(buffer) {
|
|
9
|
+
const errors = [];
|
|
10
|
+
const parsed = parse(buffer, errors, { allowTrailingComma: true });
|
|
11
|
+
const first = errors[0];
|
|
12
|
+
if (first) {
|
|
13
|
+
const message = printParseErrorCode(first.error);
|
|
14
|
+
throw new SyntaxError(`Failed to parse JSON (offset ${first.offset}): ${message}`);
|
|
15
|
+
}
|
|
16
|
+
return parsed;
|
|
17
|
+
}
|
|
18
|
+
function isRecord(value) {
|
|
19
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
parseJsonBuffer,
|
|
24
|
+
isRecord
|
|
25
|
+
};
|
|
@@ -2,10 +2,10 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
createCallResult,
|
|
4
4
|
describeConnectionIssue
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7CI6DKEP.js";
|
|
6
6
|
import {
|
|
7
7
|
createRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YGRORKGT.js";
|
|
9
9
|
|
|
10
10
|
// node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/context.js
|
|
11
11
|
function createContextKey(description) {
|
|
@@ -1590,7 +1590,7 @@ function loadMcporterCli() {
|
|
|
1590
1590
|
if (mcporterCliPromise) return mcporterCliPromise;
|
|
1591
1591
|
const previousDisableAutorun = process.env.MCPORTER_DISABLE_AUTORUN;
|
|
1592
1592
|
process.env.MCPORTER_DISABLE_AUTORUN = "1";
|
|
1593
|
-
mcporterCliPromise = import("./cli-
|
|
1593
|
+
mcporterCliPromise = import("./cli-67GWFF4R.js").finally(() => {
|
|
1594
1594
|
if (previousDisableAutorun === void 0) {
|
|
1595
1595
|
delete process.env.MCPORTER_DISABLE_AUTORUN;
|
|
1596
1596
|
} else {
|