@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,67 +1,68 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
extractListFlags
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SVCKS5MW.js";
|
|
5
5
|
import {
|
|
6
6
|
loadToolMetadata
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UYG7PAN2.js";
|
|
8
8
|
import {
|
|
9
9
|
chooseClosestIdentifier,
|
|
10
10
|
renderIdentifierResolutionMessages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EIF7GALA.js";
|
|
12
12
|
import {
|
|
13
13
|
buildToolDoc,
|
|
14
14
|
formatExampleBlock
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-WQBESOWG.js";
|
|
16
|
+
import "./chunk-TDBM2UIR.js";
|
|
17
17
|
import {
|
|
18
18
|
classifyListError,
|
|
19
19
|
formatSourceSuffix,
|
|
20
20
|
renderServerListRow
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TKZA4MPW.js";
|
|
22
22
|
import {
|
|
23
23
|
boldText,
|
|
24
24
|
dimText,
|
|
25
25
|
extraDimText,
|
|
26
26
|
supportsSpinner,
|
|
27
27
|
yellowText
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CRX2G22W.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveListTimeout,
|
|
31
31
|
withTimeout
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VWNF5PIF.js";
|
|
33
33
|
import {
|
|
34
34
|
persistPreparedEphemeralServer,
|
|
35
35
|
prepareEphemeralServerTarget,
|
|
36
36
|
renderAdhocServerHelpLines
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-4IXQQER3.js";
|
|
38
|
+
import "./chunk-DUJ5WAHC.js";
|
|
39
|
+
import "./chunk-ASFI5AJK.js";
|
|
40
40
|
import {
|
|
41
41
|
formatErrorMessage,
|
|
42
42
|
serializeConnectionIssue
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-FMYP6JXX.js";
|
|
44
|
+
import "./chunk-HM26TIPK.js";
|
|
45
45
|
import {
|
|
46
46
|
splitHttpToolSelector
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-UHXTAPEC.js";
|
|
48
|
+
import "./chunk-27XDYSXJ.js";
|
|
49
49
|
import {
|
|
50
50
|
setStdioLogMode
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2IO3FXZJ.js";
|
|
52
52
|
import {
|
|
53
53
|
MCPORTER_VERSION
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
54
|
+
} from "./chunk-IWXEOLJL.js";
|
|
55
|
+
import "./chunk-P3S4OJPI.js";
|
|
56
|
+
import "./chunk-FWWPRZ37.js";
|
|
57
|
+
import "./chunk-XDARNDP3.js";
|
|
58
|
+
import "./chunk-7OQUF6V6.js";
|
|
59
|
+
import "./chunk-43QNQO5C.js";
|
|
60
|
+
import "./chunk-ZLV5S5UP.js";
|
|
60
61
|
import "./chunk-T4MQCFIK.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-JQCSGX6E.js";
|
|
63
|
+
import "./chunk-EIXFNLU6.js";
|
|
64
|
+
import "./chunk-35JUFDQI.js";
|
|
65
|
+
import "./chunk-IR5SMKTP.js";
|
|
65
66
|
import {
|
|
66
67
|
__export
|
|
67
68
|
} from "./chunk-LRKZP7DJ.js";
|
|
@@ -2759,10 +2760,10 @@ var success = green(_isUnicodeSupported ? "\u2714" : "\u221A");
|
|
|
2759
2760
|
var warning = yellow(_isUnicodeSupported ? "\u26A0" : "\u203C");
|
|
2760
2761
|
var error = red(_isUnicodeSupported ? "\u2716" : "\xD7");
|
|
2761
2762
|
|
|
2762
|
-
// node_modules/.pnpm/ansi-regex@6.
|
|
2763
|
+
// node_modules/.pnpm/ansi-regex@6.4.0/node_modules/ansi-regex/index.js
|
|
2763
2764
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
2764
2765
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
2765
|
-
const osc = `(?:\\u001B\\][^\\u0007\\u001B\\u009C]*${ST})`;
|
|
2766
|
+
const osc = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${ST})`;
|
|
2766
2767
|
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
2767
2768
|
const pattern = `${osc}|${csi}`;
|
|
2768
2769
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
@@ -2864,10 +2865,9 @@ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
|
2864
2865
|
return 1;
|
|
2865
2866
|
}
|
|
2866
2867
|
|
|
2867
|
-
// node_modules/.pnpm/string-width@8.
|
|
2868
|
+
// node_modules/.pnpm/string-width@8.3.0/node_modules/string-width/index.js
|
|
2868
2869
|
var segmenter = new Intl.Segmenter();
|
|
2869
|
-
var
|
|
2870
|
-
var leadingNonPrintingRegex = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]+", "v");
|
|
2870
|
+
var visibleCharacterRegex = new RegExp("[^\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]", "v");
|
|
2871
2871
|
var spacingMarkRegex = new RegExp("\\p{Spacing_Mark}", "v");
|
|
2872
2872
|
var rgiEmojiRegex = new RegExp("^\\p{RGI_Emoji}$", "v");
|
|
2873
2873
|
var unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
|
|
@@ -2886,10 +2886,8 @@ function isDoubleWidthNonRgiEmojiSequence(segment) {
|
|
|
2886
2886
|
return false;
|
|
2887
2887
|
}
|
|
2888
2888
|
function baseVisible(segment) {
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
function isZeroWidthCluster(segment) {
|
|
2892
|
-
return zeroWidthClusterRegex.test(segment);
|
|
2889
|
+
const index = segment.search(visibleCharacterRegex);
|
|
2890
|
+
return index === -1 ? void 0 : segment.slice(index);
|
|
2893
2891
|
}
|
|
2894
2892
|
function isHangulLeadingJamo(codePoint) {
|
|
2895
2893
|
return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
|
|
@@ -2906,7 +2904,7 @@ function isHangulJamo(codePoint) {
|
|
|
2906
2904
|
function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
|
|
2907
2905
|
const codePoints = [];
|
|
2908
2906
|
for (const character of visibleSegment) {
|
|
2909
|
-
if (
|
|
2907
|
+
if (!visibleCharacterRegex.test(character)) {
|
|
2910
2908
|
continue;
|
|
2911
2909
|
}
|
|
2912
2910
|
codePoints.push(character.codePointAt(0));
|
|
@@ -2970,14 +2968,14 @@ function stringWidth(input, options = {}) {
|
|
|
2970
2968
|
let width = 0;
|
|
2971
2969
|
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
2972
2970
|
for (const { segment } of segmenter.segment(string)) {
|
|
2973
|
-
|
|
2971
|
+
const visibleSegment = baseVisible(segment);
|
|
2972
|
+
if (visibleSegment === void 0) {
|
|
2974
2973
|
continue;
|
|
2975
2974
|
}
|
|
2976
2975
|
if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
|
|
2977
2976
|
width += 2;
|
|
2978
2977
|
continue;
|
|
2979
2978
|
}
|
|
2980
|
-
const visibleSegment = baseVisible(segment);
|
|
2981
2979
|
const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
|
|
2982
2980
|
if (hangulWidth !== void 0) {
|
|
2983
2981
|
width += hangulWidth;
|
|
@@ -3524,7 +3522,7 @@ function ora(options) {
|
|
|
3524
3522
|
return new Ora(options);
|
|
3525
3523
|
}
|
|
3526
3524
|
|
|
3527
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3525
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/transport-utils.js
|
|
3528
3526
|
function formatTransportSummary(definition) {
|
|
3529
3527
|
if (definition.command.kind === "http") {
|
|
3530
3528
|
const url = definition.command.url instanceof URL ? definition.command.url.href : String(definition.command.url);
|
|
@@ -3534,7 +3532,7 @@ function formatTransportSummary(definition) {
|
|
|
3534
3532
|
return `STDIO ${rendered}`;
|
|
3535
3533
|
}
|
|
3536
3534
|
|
|
3537
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3535
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/list-output.js
|
|
3538
3536
|
function printSingleServerHeader(definition, toolCount, durationMs, transportSummary, sourcePath, options) {
|
|
3539
3537
|
const prefix = boldText(definition.name);
|
|
3540
3538
|
if (definition.description) {
|
|
@@ -3711,7 +3709,7 @@ function quoteCommandSegment(segment) {
|
|
|
3711
3709
|
return `'${segment.replace(/'/g, `'\\''`)}'`;
|
|
3712
3710
|
}
|
|
3713
3711
|
|
|
3714
|
-
// node_modules/.pnpm/mcporter@0.
|
|
3712
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/list-command.js
|
|
3715
3713
|
async function handleList(runtime, args) {
|
|
3716
3714
|
const flags = extractListFlags(args);
|
|
3717
3715
|
let target = args.shift();
|
|
@@ -4030,7 +4028,12 @@ async function handleList(runtime, args) {
|
|
|
4030
4028
|
async function checkListServer(runtime, server, timeoutMs, disableOAuth) {
|
|
4031
4029
|
const startedAt = Date.now();
|
|
4032
4030
|
try {
|
|
4033
|
-
const tools = await withTimeout(runtime.listTools(server.name, {
|
|
4031
|
+
const tools = await withTimeout(runtime.listTools(server.name, {
|
|
4032
|
+
autoAuthorize: false,
|
|
4033
|
+
allowCachedAuth: true,
|
|
4034
|
+
disableOAuth,
|
|
4035
|
+
timeoutMs
|
|
4036
|
+
}), timeoutMs);
|
|
4034
4037
|
const connectionInfo = await loadConnectionInfo(runtime, server.name);
|
|
4035
4038
|
return {
|
|
4036
4039
|
server,
|
|
@@ -4040,10 +4043,20 @@ async function checkListServer(runtime, server, timeoutMs, disableOAuth) {
|
|
|
4040
4043
|
durationMs: Date.now() - startedAt
|
|
4041
4044
|
};
|
|
4042
4045
|
} catch (error2) {
|
|
4046
|
+
const message = error2 instanceof Error ? error2.message : String(error2);
|
|
4047
|
+
const timedOut = message === "Timeout" || /\btimed out\b/i.test(message);
|
|
4048
|
+
let failure = error2;
|
|
4049
|
+
if (timedOut) {
|
|
4050
|
+
try {
|
|
4051
|
+
await runtime.close(server.name);
|
|
4052
|
+
} catch (closeError) {
|
|
4053
|
+
failure = new AggregateError([error2, closeError], "Timed out listing tools and failed to close the connection.");
|
|
4054
|
+
}
|
|
4055
|
+
}
|
|
4043
4056
|
return {
|
|
4044
4057
|
server,
|
|
4045
4058
|
status: "error",
|
|
4046
|
-
error:
|
|
4059
|
+
error: failure,
|
|
4047
4060
|
durationMs: Date.now() - startedAt
|
|
4048
4061
|
};
|
|
4049
4062
|
}
|
|
@@ -2,9 +2,9 @@ import { createRequire as __createRequire } from "node:module"; const require =
|
|
|
2
2
|
import {
|
|
3
3
|
printCallOutput,
|
|
4
4
|
tailLogIfRequested
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-POYT6GCW.js";
|
|
6
|
+
import "./chunk-CMDB57MS.js";
|
|
7
|
+
import "./chunk-JRU5LZJQ.js";
|
|
8
8
|
import "./chunk-LRKZP7DJ.js";
|
|
9
9
|
export {
|
|
10
10
|
printCallOutput,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import "./chunk-LRKZP7DJ.js";
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
4
|
+
// node_modules/.pnpm/rolldown@1.2.11/node_modules/rolldown/dist/shared/prompt-CH6TK0bC.mjs
|
|
5
5
|
import g$1, { stdin, stdout } from "node:process";
|
|
6
6
|
import { WriteStream } from "node:tty";
|
|
7
7
|
import f from "node:readline";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
parseRecordArgs,
|
|
5
5
|
parseReplayArgs,
|
|
6
6
|
printRecordHelp
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-IJTZ2ZRM.js";
|
|
8
|
+
import "./chunk-UXI26V4F.js";
|
|
9
|
+
import "./chunk-FVZKQMZS.js";
|
|
10
|
+
import "./chunk-ZLV5S5UP.js";
|
|
11
|
+
import "./chunk-JQCSGX6E.js";
|
|
12
12
|
import "./chunk-LRKZP7DJ.js";
|
|
13
13
|
export {
|
|
14
14
|
handleRecordCli,
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
parseReplayArgs,
|
|
5
5
|
runRecordReplayCommand,
|
|
6
6
|
writeRecordReplayConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IJTZ2ZRM.js";
|
|
8
8
|
import {
|
|
9
9
|
buildReplayCommandEnv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UXI26V4F.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveRecordingPath
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-FVZKQMZS.js";
|
|
14
|
+
import "./chunk-ZLV5S5UP.js";
|
|
15
|
+
import "./chunk-JQCSGX6E.js";
|
|
16
16
|
import "./chunk-LRKZP7DJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/mcporter@0.
|
|
18
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/replay-command.js
|
|
19
19
|
async function handleReplayCli(args) {
|
|
20
20
|
const parsed = parseReplayArgs(args);
|
|
21
21
|
const replayPath = resolveRecordingPath(parsed.sessionName);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
printCallOutput
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-POYT6GCW.js";
|
|
5
|
+
import "./chunk-CMDB57MS.js";
|
|
6
6
|
import {
|
|
7
7
|
buildConnectionIssueEnvelope,
|
|
8
8
|
formatErrorMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FMYP6JXX.js";
|
|
10
10
|
import {
|
|
11
11
|
consumeOutputFormat
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-27XDYSXJ.js";
|
|
13
13
|
import {
|
|
14
14
|
wrapCallResult
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-7CI6DKEP.js";
|
|
16
|
+
import "./chunk-JRU5LZJQ.js";
|
|
17
17
|
import {
|
|
18
18
|
analyzeConnectionError
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-35JUFDQI.js";
|
|
20
|
+
import "./chunk-IR5SMKTP.js";
|
|
21
21
|
import "./chunk-LRKZP7DJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/mcporter@0.
|
|
23
|
+
// node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/resource-command.js
|
|
24
24
|
async function handleResource(runtime, args) {
|
|
25
25
|
const output = consumeOutputFormat(args, {
|
|
26
26
|
defaultFormat: "auto",
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
createCallResult,
|
|
4
4
|
describeConnectionIssue,
|
|
5
5
|
wrapCallResult
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-7CI6DKEP.js";
|
|
7
|
+
import "./chunk-35JUFDQI.js";
|
|
8
|
+
import "./chunk-IR5SMKTP.js";
|
|
9
9
|
import "./chunk-LRKZP7DJ.js";
|
|
10
10
|
export {
|
|
11
11
|
createCallResult,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
callOnce,
|
|
4
|
+
createRuntime
|
|
5
|
+
} from "./chunk-YGRORKGT.js";
|
|
6
|
+
import "./chunk-GJ7DWMRT.js";
|
|
7
|
+
import "./chunk-7ZZZ7MR2.js";
|
|
8
|
+
import "./chunk-FVZKQMZS.js";
|
|
9
|
+
import "./chunk-SONMFI3S.js";
|
|
10
|
+
import "./chunk-OURSGEZX.js";
|
|
11
|
+
import "./chunk-M7VINGHY.js";
|
|
12
|
+
import "./chunk-JRU5LZJQ.js";
|
|
13
|
+
import "./chunk-2IO3FXZJ.js";
|
|
14
|
+
import {
|
|
15
|
+
MCPORTER_VERSION
|
|
16
|
+
} from "./chunk-IWXEOLJL.js";
|
|
17
|
+
import "./chunk-P3S4OJPI.js";
|
|
18
|
+
import "./chunk-FWWPRZ37.js";
|
|
19
|
+
import "./chunk-XDARNDP3.js";
|
|
20
|
+
import {
|
|
21
|
+
readJsonFile,
|
|
22
|
+
writeJsonFile
|
|
23
|
+
} from "./chunk-7OQUF6V6.js";
|
|
24
|
+
import "./chunk-43QNQO5C.js";
|
|
25
|
+
import "./chunk-ZLV5S5UP.js";
|
|
26
|
+
import "./chunk-T4MQCFIK.js";
|
|
27
|
+
import "./chunk-JQCSGX6E.js";
|
|
28
|
+
import "./chunk-EIXFNLU6.js";
|
|
29
|
+
import "./chunk-35JUFDQI.js";
|
|
30
|
+
import "./chunk-IR5SMKTP.js";
|
|
31
|
+
import "./chunk-LRKZP7DJ.js";
|
|
32
|
+
export {
|
|
33
|
+
MCPORTER_VERSION,
|
|
34
|
+
callOnce,
|
|
35
|
+
createRuntime,
|
|
36
|
+
readJsonFile,
|
|
37
|
+
writeJsonFile
|
|
38
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createKeepAliveRuntime
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-YTO7DITJ.js";
|
|
5
|
+
import "./chunk-IWXEOLJL.js";
|
|
6
|
+
import "./chunk-EIXFNLU6.js";
|
|
7
7
|
import "./chunk-LRKZP7DJ.js";
|
|
8
8
|
export {
|
|
9
9
|
createKeepAliveRuntime
|