@introspection-ai/recipes 0.18.1 → 0.19.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.
Files changed (146) hide show
  1. package/dist/inspect.d.ts +1 -0
  2. package/dist/inspect.d.ts.map +1 -1
  3. package/dist/inspect.js +3 -0
  4. package/dist/inspect.js.map +1 -1
  5. package/dist/mcp-chunks/{auth-command-ZLGYIEUY.js → auth-command-3K7V3VCW.js} +31 -35
  6. package/dist/mcp-chunks/call-arguments-TX3F2TEE.js +15 -0
  7. package/dist/mcp-chunks/{call-command-LKTKSYTH.js → call-command-OFPHPFM5.js} +36 -34
  8. package/dist/mcp-chunks/chunk-2FSDGCHW.js +3299 -0
  9. package/dist/mcp-chunks/{chunk-BV56DXPW.js → chunk-2JHHONW4.js} +1 -1
  10. package/dist/mcp-chunks/chunk-2MEHGB7D.js +63 -0
  11. package/dist/mcp-chunks/chunk-3IZQW4H4.js +929 -0
  12. package/dist/mcp-chunks/{chunk-MZ2NARG7.js → chunk-54EWGONA.js} +5 -5
  13. package/dist/mcp-chunks/{chunk-LQQEYD76.js → chunk-55JIHDU3.js} +1 -1
  14. package/dist/mcp-chunks/chunk-64EP2BVO.js +39 -0
  15. package/dist/mcp-chunks/{chunk-LS7PMWSR.js → chunk-6D6KPSXN.js} +1 -1
  16. package/dist/mcp-chunks/{chunk-2XL7MG7R.js → chunk-7A63PAGP.js} +15 -9
  17. package/dist/mcp-chunks/chunk-7DH57OKF.js +28 -0
  18. package/dist/mcp-chunks/{chunk-BTLAWHTA.js → chunk-7RDLPFIO.js} +2 -2
  19. package/dist/mcp-chunks/chunk-C2PQFLWS.js +422 -0
  20. package/dist/mcp-chunks/chunk-CA5WFJZA.js +197 -0
  21. package/dist/mcp-chunks/{chunk-LNH5LAJD.js → chunk-CNDY7WB4.js} +2 -2
  22. package/dist/mcp-chunks/{chunk-UKYNQGNE.js → chunk-DEUU7WSN.js} +34 -8
  23. package/dist/mcp-chunks/{chunk-LKIBAYKU.js → chunk-DXPHJFSA.js} +25 -35
  24. package/dist/mcp-chunks/{chunk-J6LYIZXN.js → chunk-E6RVTWJY.js} +1 -1
  25. package/dist/mcp-chunks/{chunk-7FHEBT5G.js → chunk-E6T37ED6.js} +18 -13
  26. package/dist/mcp-chunks/chunk-ETWN4IIA.js +57 -0
  27. package/dist/mcp-chunks/{chunk-YVZKMV5H.js → chunk-F3LL4EBL.js} +1 -1
  28. package/dist/mcp-chunks/chunk-FWP4RACK.js +42 -0
  29. package/dist/mcp-chunks/{chunk-6W5QFASN.js → chunk-GFYTST6N.js} +1 -1
  30. package/dist/mcp-chunks/{chunk-TEUKFFQL.js → chunk-GIF7LOYU.js} +2 -2
  31. package/dist/mcp-chunks/{chunk-QXJUA3ND.js → chunk-GSZOK5TS.js} +828 -7
  32. package/dist/mcp-chunks/chunk-H7F5RZXS.js +26 -0
  33. package/dist/mcp-chunks/{chunk-ECIVB7P4.js → chunk-HAO6PL7Z.js} +2 -37
  34. package/dist/mcp-chunks/{chunk-WQJZMCJN.js → chunk-HTZ2URXW.js} +5 -3
  35. package/dist/mcp-chunks/{chunk-BWHIA4PC.js → chunk-JAKI24KR.js} +1 -1
  36. package/dist/mcp-chunks/{chunk-PWYFKGKG.js → chunk-KSGYBW3F.js} +180 -89
  37. package/dist/mcp-chunks/{chunk-SJCCBNZ4.js → chunk-KSMY7PXI.js} +1 -1
  38. package/dist/mcp-chunks/{chunk-2U4BSDC4.js → chunk-L4VKBFYI.js} +48 -29
  39. package/dist/mcp-chunks/{chunk-LEZSACDE.js → chunk-LICH4Q7A.js} +4 -4
  40. package/dist/mcp-chunks/{chunk-PIIYJR44.js → chunk-LNSUME65.js} +29 -33
  41. package/dist/mcp-chunks/{chunk-D3MRAZ6H.js → chunk-LWVFSQYX.js} +13974 -15562
  42. package/dist/mcp-chunks/{chunk-7KA2VJVZ.js → chunk-NCXEJ35U.js} +10 -5
  43. package/dist/mcp-chunks/{chunk-5QOSCSQB.js → chunk-NZOIX6XW.js} +2 -2
  44. package/dist/mcp-chunks/{chunk-XANPGTLI.js → chunk-P3RN22HQ.js} +11 -4
  45. package/dist/mcp-chunks/{chunk-IABRYROW.js → chunk-PKOJCYNA.js} +3 -3
  46. package/dist/mcp-chunks/{chunk-BNV3TPE4.js → chunk-QJACOI2W.js} +5 -13
  47. package/dist/mcp-chunks/{chunk-UNKB4SBV.js → chunk-RBVYCKCD.js} +2 -2
  48. package/dist/mcp-chunks/{chunk-DHBE7UBH.js → chunk-SB2UUURE.js} +12 -42
  49. package/dist/mcp-chunks/{chunk-4SQKWYFF.js → chunk-SFREPU3D.js} +1 -1
  50. package/dist/mcp-chunks/{chunk-BZIQOWE6.js → chunk-SRZZQ6TL.js} +35 -36
  51. package/dist/mcp-chunks/{chunk-M3TPODXI.js → chunk-UENXT3NE.js} +1 -1
  52. package/dist/mcp-chunks/chunk-UHOKCTZT.js +37 -0
  53. package/dist/mcp-chunks/{chunk-E22DYOW5.js → chunk-WWO5WGH5.js} +5 -5
  54. package/dist/mcp-chunks/{chunk-6XCZGU3G.js → chunk-WXBPMFSN.js} +149 -192
  55. package/dist/mcp-chunks/{chunk-XQK2JSW4.js → chunk-XRGLP3Z2.js} +14 -2
  56. package/dist/mcp-chunks/{chunk-L7NTQVYN.js → chunk-XTL4MHFH.js} +28 -10
  57. package/dist/mcp-chunks/{chunk-N46NEFAF.js → chunk-XUF6KARU.js} +1 -1
  58. package/dist/mcp-chunks/{chunk-WD6BOD24.js → chunk-YCYSQA5V.js} +23 -4
  59. package/dist/mcp-chunks/chunk-YPJ5EHXR.js +17394 -0
  60. package/dist/mcp-chunks/{chunk-NRAJX5E4.js → chunk-YSPT6F7K.js} +3 -3
  61. package/dist/mcp-chunks/{chunk-7UDVSOOF.js → chunk-YTKRAHO6.js} +54 -46
  62. package/dist/mcp-chunks/chunk-ZBFZ5UFE.js +67 -0
  63. package/dist/mcp-chunks/{cli-UV4QJZZM.js → cli-E4P6SZLQ.js} +89 -76
  64. package/dist/mcp-chunks/client-2EJC4PLL.js +18 -0
  65. package/dist/mcp-chunks/{config-command-NLAGKID5.js → config-command-MWF3RHPQ.js} +38 -59
  66. package/dist/mcp-chunks/daemon-command-6CJ26MKI.js +33 -0
  67. package/dist/mcp-chunks/{dist-LK3SHAMX.js → dist-ZIPUENTM.js} +527 -469
  68. package/dist/mcp-chunks/{emit-ts-command-VBXVXO6V.js → emit-ts-command-GOVJJ64A.js} +16 -13
  69. package/dist/mcp-chunks/{generate-cli-runner-6CAZZA3P.js → generate-cli-runner-L5OQIMEY.js} +242 -247
  70. package/dist/mcp-chunks/{inspect-cli-command-3ZORTOR7.js → inspect-cli-command-7OMMREPE.js} +10 -9
  71. package/dist/mcp-chunks/{launch-YKRXHXJI.js → launch-BWXPLPB7.js} +1 -1
  72. package/dist/mcp-chunks/{lifecycle-XVKRHPH3.js → lifecycle-B5UC65PT.js} +1 -1
  73. package/dist/mcp-chunks/{list-command-2MEGGNFQ.js → list-command-ZO4HVFQK.js} +74 -43
  74. package/dist/mcp-chunks/{output-utils-NKESLAJ6.js → output-utils-M3TJ2N4M.js} +3 -3
  75. package/dist/mcp-chunks/{prompt-B1Yc1NPt-VGOTWJMN.js → prompt-CH6TK0bC-C7OTKGRD.js} +1 -3
  76. package/dist/mcp-chunks/{record-command-YXHTTTT5.js → record-command-VD3HUQIC.js} +5 -4
  77. package/dist/mcp-chunks/replay-command-AX6IN7YD.js +42 -0
  78. package/dist/mcp-chunks/{resource-command-OO4NYF5C.js → resource-command-JEZ2DW2G.js} +10 -10
  79. package/dist/mcp-chunks/{result-utils-MOHHLNM7.js → result-utils-3YHYGS45.js} +4 -4
  80. package/dist/mcp-chunks/runtime-HSYVOME7.js +37 -0
  81. package/dist/mcp-chunks/{runtime-wrapper-RPWDIDBF.js → runtime-wrapper-UREU7GC3.js} +7 -3
  82. package/dist/mcp-chunks/serve-command-M47YZ6JN.js +16018 -0
  83. package/dist/mcp-chunks/{timeouts-W2XWCCXR.js → timeouts-THZRYP4B.js} +3 -1
  84. package/dist/mcp-chunks/{vault-command-PIYIUEZL.js → vault-command-53P7MLCB.js} +7 -6
  85. package/dist/mcp-chunks/webapi-PHEQZQKH.js +3316 -0
  86. package/dist/mcp-client.js +11 -1
  87. package/dist/mcp-client.js.map +1 -1
  88. package/dist/mcp-daemon-client.d.ts.map +1 -1
  89. package/dist/mcp-daemon-client.js +3 -0
  90. package/dist/mcp-daemon-client.js.map +1 -1
  91. package/dist/mcp-daemon-protocol.d.ts +6 -0
  92. package/dist/mcp-daemon-protocol.d.ts.map +1 -1
  93. package/dist/mcp-daemon-protocol.js.map +1 -1
  94. package/dist/mcp-daemon.js +43 -22
  95. package/dist/mcp-daemon.js.map +1 -1
  96. package/dist/mcp-run-worker.js +29 -22
  97. package/dist/mcp-trace-context.d.ts +6 -0
  98. package/dist/mcp-trace-context.d.ts.map +1 -0
  99. package/dist/mcp-trace-context.js +31 -0
  100. package/dist/mcp-trace-context.js.map +1 -0
  101. package/dist/model-binding.d.ts.map +1 -1
  102. package/dist/model-binding.js +8 -4
  103. package/dist/model-binding.js.map +1 -1
  104. package/dist/pi-extension.d.ts.map +1 -1
  105. package/dist/pi-extension.js +12 -0
  106. package/dist/pi-extension.js.map +1 -1
  107. package/dist/recipe/resolve.d.ts +2 -0
  108. package/dist/recipe/resolve.d.ts.map +1 -1
  109. package/dist/recipe/resolve.js +2 -1
  110. package/dist/recipe/resolve.js.map +1 -1
  111. package/dist/recipe-agent.d.ts +5 -2
  112. package/dist/recipe-agent.d.ts.map +1 -1
  113. package/dist/recipe-agent.js +20 -4
  114. package/dist/recipe-agent.js.map +1 -1
  115. package/dist/recipe-model.d.ts +7 -1
  116. package/dist/recipe-model.d.ts.map +1 -1
  117. package/dist/recipe-model.js +89 -20
  118. package/dist/recipe-model.js.map +1 -1
  119. package/dist/recipe-session.d.ts +14 -0
  120. package/dist/recipe-session.d.ts.map +1 -0
  121. package/dist/recipe-session.js +181 -0
  122. package/dist/recipe-session.js.map +1 -0
  123. package/dist/session.d.ts.map +1 -1
  124. package/dist/session.js +23 -1
  125. package/dist/session.js.map +1 -1
  126. package/docs/agent-composition.md +46 -22
  127. package/docs/pi-extension.md +9 -3
  128. package/docs/recipe-format.md +41 -5
  129. package/package.json +6 -6
  130. package/vendor/introspection-recipe-check/darwin-arm64/introspection-recipe-check +0 -0
  131. package/vendor/introspection-recipe-check/darwin-x64/introspection-recipe-check +0 -0
  132. package/vendor/introspection-recipe-check/linux-arm64/introspection-recipe-check +0 -0
  133. package/vendor/introspection-recipe-check/linux-x64/introspection-recipe-check +0 -0
  134. package/vendor/introspection-recipe-check/linux-x64-musl/introspection-recipe-check +0 -0
  135. package/vendor/introspection-recipe-check/win32-x64/introspection-recipe-check.exe +0 -0
  136. package/dist/mcp-chunks/call-arguments-LU3W6D3K.js +0 -13
  137. package/dist/mcp-chunks/chunk-HKRJ6O36.js +0 -1076
  138. package/dist/mcp-chunks/chunk-NNOEGEUZ.js +0 -17273
  139. package/dist/mcp-chunks/chunk-P3PSC54P.js +0 -869
  140. package/dist/mcp-chunks/chunk-TATVT5IT.js +0 -194
  141. package/dist/mcp-chunks/chunk-YHQUTU6L.js +0 -571
  142. package/dist/mcp-chunks/client-S7RQUG5U.js +0 -13
  143. package/dist/mcp-chunks/daemon-command-U242Z6VY.js +0 -26
  144. package/dist/mcp-chunks/replay-command-25HJ6AQU.js +0 -85
  145. package/dist/mcp-chunks/runtime-5WJ3G25Y.js +0 -33
  146. package/dist/mcp-chunks/serve-command-DHXJZMMN.js +0 -3302
@@ -3,24 +3,25 @@ import {
3
3
  buildGenerateCliCommand,
4
4
  readCliMetadata,
5
5
  shellQuote
6
- } from "./chunk-LKIBAYKU.js";
6
+ } from "./chunk-DXPHJFSA.js";
7
+ import "./chunk-H7F5RZXS.js";
7
8
  import {
8
9
  expectValue
9
- } from "./chunk-XQK2JSW4.js";
10
+ } from "./chunk-XRGLP3Z2.js";
10
11
  import {
11
12
  formatPathForDisplay,
12
13
  formatSourceSuffix
13
- } from "./chunk-7KA2VJVZ.js";
14
- import "./chunk-N46NEFAF.js";
14
+ } from "./chunk-NCXEJ35U.js";
15
+ import "./chunk-XUF6KARU.js";
15
16
  import {
16
17
  consumeOutputFormat
17
- } from "./chunk-YVZKMV5H.js";
18
- import "./chunk-UKYNQGNE.js";
19
- import "./chunk-P3PSC54P.js";
20
- import "./chunk-D3MRAZ6H.js";
18
+ } from "./chunk-F3LL4EBL.js";
19
+ import "./chunk-DEUU7WSN.js";
20
+ import "./chunk-YPJ5EHXR.js";
21
+ import "./chunk-LWVFSQYX.js";
21
22
  import "./chunk-LRKZP7DJ.js";
22
23
 
23
- // node_modules/.pnpm/mcporter@0.12.3/node_modules/mcporter/dist/cli/inspect-cli-command.js
24
+ // node_modules/.pnpm/mcporter@0.13.0/node_modules/mcporter/dist/cli/inspect-cli-command.js
24
25
  async function handleInspectCli(args) {
25
26
  const parsed = parseInspectFlags(args);
26
27
  const metadata = await readCliMetadata(parsed.artifactPath);
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  buildDaemonLaunchInvocation,
4
4
  launchDaemonDetached
5
- } from "./chunk-NRAJX5E4.js";
5
+ } from "./chunk-YSPT6F7K.js";
6
6
  import "./chunk-LRKZP7DJ.js";
7
7
  export {
8
8
  buildDaemonLaunchInvocation,
@@ -5,7 +5,7 @@ import {
5
5
  isKeepAliveServer,
6
6
  keepAliveIdleTimeout,
7
7
  resolveLifecycle
8
- } from "./chunk-LS7PMWSR.js";
8
+ } from "./chunk-6D6KPSXN.js";
9
9
  import "./chunk-LRKZP7DJ.js";
10
10
  export {
11
11
  DEFAULT_KEEP_ALIVE,
@@ -1,64 +1,67 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  extractListFlags
4
- } from "./chunk-LEZSACDE.js";
4
+ } from "./chunk-LICH4Q7A.js";
5
5
  import {
6
6
  buildToolDoc,
7
7
  formatExampleBlock
8
- } from "./chunk-MZ2NARG7.js";
8
+ } from "./chunk-54EWGONA.js";
9
9
  import {
10
10
  classifyListError,
11
11
  formatSourceSuffix,
12
12
  renderServerListRow
13
- } from "./chunk-7KA2VJVZ.js";
13
+ } from "./chunk-NCXEJ35U.js";
14
14
  import {
15
15
  loadToolMetadata
16
- } from "./chunk-IABRYROW.js";
17
- import "./chunk-XANPGTLI.js";
16
+ } from "./chunk-PKOJCYNA.js";
18
17
  import {
19
18
  chooseClosestIdentifier,
20
19
  renderIdentifierResolutionMessages
21
- } from "./chunk-BWHIA4PC.js";
20
+ } from "./chunk-JAKI24KR.js";
21
+ import "./chunk-P3RN22HQ.js";
22
22
  import {
23
23
  boldText,
24
24
  dimText,
25
25
  extraDimText,
26
26
  supportsSpinner,
27
27
  yellowText
28
- } from "./chunk-N46NEFAF.js";
28
+ } from "./chunk-XUF6KARU.js";
29
29
  import {
30
30
  LIST_TIMEOUT_MS,
31
31
  withTimeout
32
- } from "./chunk-BNV3TPE4.js";
32
+ } from "./chunk-QJACOI2W.js";
33
33
  import {
34
34
  persistPreparedEphemeralServer,
35
- prepareEphemeralServerTarget
36
- } from "./chunk-WD6BOD24.js";
37
- import "./chunk-TEUKFFQL.js";
38
- import "./chunk-E22DYOW5.js";
35
+ prepareEphemeralServerTarget,
36
+ renderAdhocServerHelpLines
37
+ } from "./chunk-YCYSQA5V.js";
38
+ import "./chunk-GIF7LOYU.js";
39
+ import "./chunk-WWO5WGH5.js";
39
40
  import {
40
41
  formatErrorMessage,
41
42
  serializeConnectionIssue
42
- } from "./chunk-SJCCBNZ4.js";
43
- import "./chunk-LQQEYD76.js";
43
+ } from "./chunk-KSMY7PXI.js";
44
+ import "./chunk-55JIHDU3.js";
44
45
  import {
45
46
  splitHttpToolSelector
46
- } from "./chunk-M3TPODXI.js";
47
- import "./chunk-YVZKMV5H.js";
47
+ } from "./chunk-UENXT3NE.js";
48
+ import "./chunk-F3LL4EBL.js";
48
49
  import {
49
50
  setStdioLogMode
50
- } from "./chunk-HKRJ6O36.js";
51
+ } from "./chunk-2MEHGB7D.js";
51
52
  import {
52
53
  MCPORTER_VERSION
53
- } from "./chunk-4SQKWYFF.js";
54
- import "./chunk-2U4BSDC4.js";
55
- import "./chunk-UKYNQGNE.js";
56
- import "./chunk-P3PSC54P.js";
57
- import "./chunk-2XL7MG7R.js";
58
- import "./chunk-WQJZMCJN.js";
59
- import "./chunk-ECIVB7P4.js";
60
- import "./chunk-LS7PMWSR.js";
61
- import "./chunk-D3MRAZ6H.js";
54
+ } from "./chunk-SFREPU3D.js";
55
+ import "./chunk-ETWN4IIA.js";
56
+ import "./chunk-DEUU7WSN.js";
57
+ import "./chunk-YPJ5EHXR.js";
58
+ import "./chunk-L4VKBFYI.js";
59
+ import "./chunk-7A63PAGP.js";
60
+ import "./chunk-HTZ2URXW.js";
61
+ import "./chunk-FWP4RACK.js";
62
+ import "./chunk-HAO6PL7Z.js";
63
+ import "./chunk-6D6KPSXN.js";
64
+ import "./chunk-LWVFSQYX.js";
62
65
  import {
63
66
  __export
64
67
  } from "./chunk-LRKZP7DJ.js";
@@ -2648,7 +2651,7 @@ __export(symbols_exports, {
2648
2651
  warning: () => warning
2649
2652
  });
2650
2653
 
2651
- // node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
2654
+ // node_modules/.pnpm/yoctocolors@2.2.0/node_modules/yoctocolors/base.js
2652
2655
  import tty2 from "node:tty";
2653
2656
  var hasColors = tty2?.WriteStream?.prototype?.hasColors?.() ?? false;
2654
2657
  var format = (open, close) => {
@@ -2681,6 +2684,10 @@ var bold = format(1, 22);
2681
2684
  var dim = format(2, 22);
2682
2685
  var italic = format(3, 23);
2683
2686
  var underline = format(4, 24);
2687
+ var underlineDouble = format("4:2", 24);
2688
+ var underlineCurly = format("4:3", 24);
2689
+ var underlineDotted = format("4:4", 24);
2690
+ var underlineDashed = format("4:5", 24);
2684
2691
  var overline = format(53, 55);
2685
2692
  var inverse = format(7, 27);
2686
2693
  var hidden = format(8, 28);
@@ -2717,6 +2724,22 @@ var bgBlueBright = format(104, 49);
2717
2724
  var bgMagentaBright = format(105, 49);
2718
2725
  var bgCyanBright = format(106, 49);
2719
2726
  var bgWhiteBright = format(107, 49);
2727
+ var underlineBlack = format("58;5;0", 59);
2728
+ var underlineRed = format("58;5;1", 59);
2729
+ var underlineGreen = format("58;5;2", 59);
2730
+ var underlineYellow = format("58;5;3", 59);
2731
+ var underlineBlue = format("58;5;4", 59);
2732
+ var underlineMagenta = format("58;5;5", 59);
2733
+ var underlineCyan = format("58;5;6", 59);
2734
+ var underlineWhite = format("58;5;7", 59);
2735
+ var underlineGray = format("58;5;8", 59);
2736
+ var underlineRedBright = format("58;5;9", 59);
2737
+ var underlineGreenBright = format("58;5;10", 59);
2738
+ var underlineYellowBright = format("58;5;11", 59);
2739
+ var underlineBlueBright = format("58;5;12", 59);
2740
+ var underlineMagentaBright = format("58;5;13", 59);
2741
+ var underlineCyanBright = format("58;5;14", 59);
2742
+ var underlineWhiteBright = format("58;5;15", 59);
2720
2743
 
2721
2744
  // node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
2722
2745
  import process6 from "node:process";
@@ -3501,7 +3524,7 @@ function ora(options) {
3501
3524
  return new Ora(options);
3502
3525
  }
3503
3526
 
3504
- // node_modules/.pnpm/mcporter@0.12.3/node_modules/mcporter/dist/cli/transport-utils.js
3527
+ // node_modules/.pnpm/mcporter@0.13.0/node_modules/mcporter/dist/cli/transport-utils.js
3505
3528
  function formatTransportSummary(definition) {
3506
3529
  if (definition.command.kind === "http") {
3507
3530
  const url = definition.command.url instanceof URL ? definition.command.url.href : String(definition.command.url);
@@ -3511,7 +3534,7 @@ function formatTransportSummary(definition) {
3511
3534
  return `STDIO ${rendered}`;
3512
3535
  }
3513
3536
 
3514
- // node_modules/.pnpm/mcporter@0.12.3/node_modules/mcporter/dist/cli/list-output.js
3537
+ // node_modules/.pnpm/mcporter@0.13.0/node_modules/mcporter/dist/cli/list-output.js
3515
3538
  function printSingleServerHeader(definition, toolCount, durationMs, transportSummary, sourcePath, options) {
3516
3539
  const prefix = boldText(definition.name);
3517
3540
  if (definition.description) {
@@ -3639,6 +3662,8 @@ function buildJsonListEntry(result, timeoutSeconds, options) {
3639
3662
  transport: formatTransportSummary(result.server),
3640
3663
  source: result.server.source,
3641
3664
  sources: options.includeSources ? result.server.sources : void 0,
3665
+ protocolVersion: options.includeConnectionInfo ? result.connectionInfo?.protocolVersion : void 0,
3666
+ era: options.includeConnectionInfo ? result.connectionInfo?.era : void 0,
3642
3667
  tools: result.tools.map((tool) => ({
3643
3668
  name: tool.name,
3644
3669
  description: tool.description,
@@ -3694,7 +3719,7 @@ function quoteCommandSegment(segment) {
3694
3719
  return `'${segment.replace(/'/g, `'\\''`)}'`;
3695
3720
  }
3696
3721
 
3697
- // node_modules/.pnpm/mcporter@0.12.3/node_modules/mcporter/dist/cli/list-command.js
3722
+ // node_modules/.pnpm/mcporter@0.13.0/node_modules/mcporter/dist/cli/list-command.js
3698
3723
  async function handleList(runtime, args) {
3699
3724
  const flags = extractListFlags(args);
3700
3725
  let target = args.shift();
@@ -3773,7 +3798,8 @@ async function handleList(runtime, args) {
3773
3798
  const normalizedEntry = entry ?? createUnknownResult(serverDefinition);
3774
3799
  return buildJsonListEntry(normalizedEntry, perServerTimeoutSeconds, {
3775
3800
  includeSchemas: Boolean(flags.schema),
3776
- includeSources: Boolean(flags.verbose || flags.includeSources)
3801
+ includeSources: Boolean(flags.verbose || flags.includeSources),
3802
+ includeConnectionInfo: flags.verbose
3777
3803
  });
3778
3804
  });
3779
3805
  const counts = summarizeStatusCounts(jsonEntries);
@@ -3830,7 +3856,8 @@ async function handleList(runtime, args) {
3830
3856
  await persistPreparedEphemeralServer(runtime, prepared);
3831
3857
  const entry = buildJsonListEntry(result, Math.round(timeoutMs / 1e3), {
3832
3858
  includeSchemas: false,
3833
- includeSources: Boolean(flags.verbose || flags.includeSources)
3859
+ includeSources: Boolean(flags.verbose || flags.includeSources),
3860
+ includeConnectionInfo: flags.verbose
3834
3861
  });
3835
3862
  maybeSetListExitCode([entry], flags);
3836
3863
  if (flags.quiet) {
@@ -3870,6 +3897,7 @@ async function handleList(runtime, args) {
3870
3897
  return;
3871
3898
  }
3872
3899
  const instructions = await loadServerInstructions(runtime, target);
3900
+ const connectionInfo = flags.verbose ? await loadConnectionInfo(runtime, target) : void 0;
3873
3901
  const payload = {
3874
3902
  mode: "server",
3875
3903
  name: definition.name,
@@ -3877,6 +3905,8 @@ async function handleList(runtime, args) {
3877
3905
  durationMs,
3878
3906
  description: definition.description,
3879
3907
  instructions,
3908
+ protocolVersion: connectionInfo?.protocolVersion,
3909
+ era: connectionInfo?.era,
3880
3910
  transport: transportSummary,
3881
3911
  source: definition.source,
3882
3912
  sources: flags.verbose || flags.includeSources ? definition.sources : void 0,
@@ -3937,10 +3967,14 @@ async function handleList(runtime, args) {
3937
3967
  return;
3938
3968
  }
3939
3969
  const instructions = await loadServerInstructions(runtime, target);
3970
+ const connectionInfo = flags.verbose ? await loadConnectionInfo(runtime, target) : void 0;
3940
3971
  const summaryLine = printSingleServerHeader(definition, metadataEntries.length, durationMs, transportSummary, sourcePath, {
3941
3972
  printSummaryNow: false,
3942
3973
  instructions
3943
3974
  });
3975
+ if (connectionInfo?.protocolVersion) {
3976
+ console.log(` ${extraDimText(`Protocol: ${connectionInfo.protocolVersion}${connectionInfo.era ? ` (${connectionInfo.era})` : ""}`)}`);
3977
+ }
3944
3978
  if (metadataEntries.length === 0) {
3945
3979
  console.log(" Tools: <none>");
3946
3980
  console.log(summaryLine);
@@ -4011,10 +4045,12 @@ async function checkListServer(runtime, server, timeoutMs, disableOAuth) {
4011
4045
  const startedAt = Date.now();
4012
4046
  try {
4013
4047
  const tools = await withTimeout(runtime.listTools(server.name, { autoAuthorize: false, allowCachedAuth: true, disableOAuth }), timeoutMs);
4048
+ const connectionInfo = await loadConnectionInfo(runtime, server.name);
4014
4049
  return {
4015
4050
  server,
4016
4051
  status: "ok",
4017
4052
  tools,
4053
+ connectionInfo,
4018
4054
  durationMs: Date.now() - startedAt
4019
4055
  };
4020
4056
  } catch (error2) {
@@ -4059,17 +4095,7 @@ function printListHelp() {
4059
4095
  " https://host/mcp List an HTTP server directly; mcporter infers the entry.",
4060
4096
  "",
4061
4097
  "Ad-hoc servers:",
4062
- " --http-url <url> Register an HTTP server for this run.",
4063
- " --allow-http Permit plain http:// URLs with --http-url.",
4064
- " --header KEY=value Attach HTTP headers (repeatable).",
4065
- " --stdio <command> Run a stdio MCP server (repeat --stdio-arg for args).",
4066
- " --stdio-arg <value> Append args to the stdio command (repeatable).",
4067
- " --env KEY=value Inject env vars for stdio servers (repeatable).",
4068
- " --cwd <path> Working directory for stdio servers.",
4069
- " --name <value> Override the display name for ad-hoc servers.",
4070
- " --description <text> Override the description for ad-hoc servers.",
4071
- " --persist <path> Write the ad-hoc definition to config/mcporter.json.",
4072
- " --yes Skip confirmation prompts when persisting.",
4098
+ ...renderAdhocServerHelpLines(),
4073
4099
  "",
4074
4100
  "Display flags:",
4075
4101
  " --brief Show compact signatures only for a single server.",
@@ -4184,6 +4210,11 @@ async function loadServerInstructions(runtime, serverName) {
4184
4210
  }
4185
4211
  return runtime.getInstructions(serverName);
4186
4212
  }
4213
+ async function loadConnectionInfo(runtime, serverName) {
4214
+ if (typeof runtime.getConnectionInfo !== "function")
4215
+ return void 0;
4216
+ return runtime.getConnectionInfo(serverName);
4217
+ }
4187
4218
  export {
4188
4219
  handleList,
4189
4220
  printListHelp
@@ -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-LNH5LAJD.js";
6
- import "./chunk-UNKB4SBV.js";
7
- import "./chunk-6W5QFASN.js";
5
+ } from "./chunk-CNDY7WB4.js";
6
+ import "./chunk-RBVYCKCD.js";
7
+ import "./chunk-GFYTST6N.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.1.3/node_modules/rolldown/dist/shared/prompt-B1Yc1NPt.mjs
4
+ // node_modules/.pnpm/rolldown@1.2.1/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";
@@ -610,7 +610,6 @@ var wD = class extends x {
610
610
  break;
611
611
  case "space":
612
612
  this.toggleValue();
613
- break;
614
613
  }
615
614
  });
616
615
  }
@@ -645,7 +644,6 @@ var jD = class extends x {
645
644
  case "down":
646
645
  case "right":
647
646
  this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
648
- break;
649
647
  }
650
648
  this.changeValue();
651
649
  });
@@ -4,10 +4,11 @@ import {
4
4
  parseRecordArgs,
5
5
  parseReplayArgs,
6
6
  printRecordHelp
7
- } from "./chunk-7UDVSOOF.js";
8
- import "./chunk-J6LYIZXN.js";
9
- import "./chunk-7FHEBT5G.js";
10
- import "./chunk-ECIVB7P4.js";
7
+ } from "./chunk-YTKRAHO6.js";
8
+ import "./chunk-E6RVTWJY.js";
9
+ import "./chunk-E6T37ED6.js";
10
+ import "./chunk-FWP4RACK.js";
11
+ import "./chunk-HAO6PL7Z.js";
11
12
  import "./chunk-LRKZP7DJ.js";
12
13
  export {
13
14
  handleRecordCli,
@@ -0,0 +1,42 @@
1
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
+ import {
3
+ buildRecordReplayInstructions,
4
+ parseReplayArgs,
5
+ runRecordReplayCommand,
6
+ writeRecordReplayConfig
7
+ } from "./chunk-YTKRAHO6.js";
8
+ import {
9
+ buildReplayCommandEnv
10
+ } from "./chunk-E6RVTWJY.js";
11
+ import {
12
+ resolveRecordingPath
13
+ } from "./chunk-E6T37ED6.js";
14
+ import "./chunk-FWP4RACK.js";
15
+ import "./chunk-HAO6PL7Z.js";
16
+ import "./chunk-LRKZP7DJ.js";
17
+
18
+ // node_modules/.pnpm/mcporter@0.13.0/node_modules/mcporter/dist/cli/replay-command.js
19
+ async function handleReplayCli(args) {
20
+ const parsed = parseReplayArgs(args);
21
+ const replayPath = resolveRecordingPath(parsed.sessionName);
22
+ if (parsed.command.length > 0) {
23
+ await runRecordReplayCommand(parsed.command, buildReplayCommandEnv(parsed.sessionName, parsed.server));
24
+ return;
25
+ }
26
+ const configPath = await writeRecordReplayConfig(parsed, "replay");
27
+ console.log(`Replay configuration written to ${configPath}`);
28
+ const envInstructions = buildRecordReplayInstructions("replay", parsed.sessionName, parsed.server);
29
+ console.log(`Set ${envInstructions.join(" and ")} before the next mcporter call to replay ${replayPath}.`);
30
+ }
31
+ function printReplayHelp() {
32
+ console.log(`Usage: mcporter replay <session-name> [--server <name>] [-- <command-to-run>]
33
+
34
+ Replay MCP JSON-RPC traffic from ~/.mcporter/recordings/<session-name>.ndjson.
35
+
36
+ Flags:
37
+ --server <name> Restrict replay to one configured server.`);
38
+ }
39
+ export {
40
+ handleReplayCli,
41
+ printReplayHelp
42
+ };
@@ -1,27 +1,27 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  printCallOutput
4
- } from "./chunk-LNH5LAJD.js";
5
- import "./chunk-UNKB4SBV.js";
4
+ } from "./chunk-CNDY7WB4.js";
5
+ import "./chunk-RBVYCKCD.js";
6
6
  import {
7
7
  buildConnectionIssueEnvelope,
8
8
  formatErrorMessage
9
- } from "./chunk-SJCCBNZ4.js";
9
+ } from "./chunk-KSMY7PXI.js";
10
10
  import {
11
11
  consumeOutputFormat
12
- } from "./chunk-YVZKMV5H.js";
12
+ } from "./chunk-F3LL4EBL.js";
13
13
  import {
14
14
  wrapCallResult
15
- } from "./chunk-5QOSCSQB.js";
16
- import "./chunk-6W5QFASN.js";
15
+ } from "./chunk-NZOIX6XW.js";
16
+ import "./chunk-GFYTST6N.js";
17
17
  import {
18
18
  analyzeConnectionError
19
- } from "./chunk-UKYNQGNE.js";
20
- import "./chunk-P3PSC54P.js";
21
- import "./chunk-D3MRAZ6H.js";
19
+ } from "./chunk-DEUU7WSN.js";
20
+ import "./chunk-YPJ5EHXR.js";
21
+ import "./chunk-LWVFSQYX.js";
22
22
  import "./chunk-LRKZP7DJ.js";
23
23
 
24
- // node_modules/.pnpm/mcporter@0.12.3/node_modules/mcporter/dist/cli/resource-command.js
24
+ // node_modules/.pnpm/mcporter@0.13.0/node_modules/mcporter/dist/cli/resource-command.js
25
25
  async function handleResource(runtime, args) {
26
26
  const output = consumeOutputFormat(args, {
27
27
  defaultFormat: "auto",
@@ -3,10 +3,10 @@ import {
3
3
  createCallResult,
4
4
  describeConnectionIssue,
5
5
  wrapCallResult
6
- } from "./chunk-5QOSCSQB.js";
7
- import "./chunk-UKYNQGNE.js";
8
- import "./chunk-P3PSC54P.js";
9
- import "./chunk-D3MRAZ6H.js";
6
+ } from "./chunk-NZOIX6XW.js";
7
+ import "./chunk-DEUU7WSN.js";
8
+ import "./chunk-YPJ5EHXR.js";
9
+ import "./chunk-LWVFSQYX.js";
10
10
  import "./chunk-LRKZP7DJ.js";
11
11
  export {
12
12
  createCallResult,
@@ -0,0 +1,37 @@
1
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
+ import {
3
+ callOnce,
4
+ createRuntime
5
+ } from "./chunk-2FSDGCHW.js";
6
+ import "./chunk-CA5WFJZA.js";
7
+ import "./chunk-E6T37ED6.js";
8
+ import "./chunk-SRZZQ6TL.js";
9
+ import "./chunk-3IZQW4H4.js";
10
+ import "./chunk-C2PQFLWS.js";
11
+ import "./chunk-7DH57OKF.js";
12
+ import "./chunk-2MEHGB7D.js";
13
+ import {
14
+ MCPORTER_VERSION
15
+ } from "./chunk-SFREPU3D.js";
16
+ import "./chunk-GFYTST6N.js";
17
+ import "./chunk-ETWN4IIA.js";
18
+ import "./chunk-DEUU7WSN.js";
19
+ import "./chunk-YPJ5EHXR.js";
20
+ import "./chunk-L4VKBFYI.js";
21
+ import {
22
+ readJsonFile,
23
+ writeJsonFile
24
+ } from "./chunk-7A63PAGP.js";
25
+ import "./chunk-HTZ2URXW.js";
26
+ import "./chunk-FWP4RACK.js";
27
+ import "./chunk-HAO6PL7Z.js";
28
+ import "./chunk-6D6KPSXN.js";
29
+ import "./chunk-LWVFSQYX.js";
30
+ import "./chunk-LRKZP7DJ.js";
31
+ export {
32
+ MCPORTER_VERSION,
33
+ callOnce,
34
+ createRuntime,
35
+ readJsonFile,
36
+ writeJsonFile
37
+ };
@@ -1,9 +1,13 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createKeepAliveRuntime
4
- } from "./chunk-L7NTQVYN.js";
5
- import "./chunk-LS7PMWSR.js";
6
- import "./chunk-D3MRAZ6H.js";
4
+ } from "./chunk-XTL4MHFH.js";
5
+ import "./chunk-7DH57OKF.js";
6
+ import "./chunk-DEUU7WSN.js";
7
+ import "./chunk-YPJ5EHXR.js";
8
+ import "./chunk-ZBFZ5UFE.js";
9
+ import "./chunk-6D6KPSXN.js";
10
+ import "./chunk-LWVFSQYX.js";
7
11
  import "./chunk-LRKZP7DJ.js";
8
12
  export {
9
13
  createKeepAliveRuntime