@introspection-ai/recipes 0.56.0 → 0.58.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 (204) hide show
  1. package/dist/batch/index.d.ts +2 -0
  2. package/dist/batch/index.d.ts.map +1 -1
  3. package/dist/batch/index.js +2 -1
  4. package/dist/batch/index.js.map +1 -1
  5. package/dist/batch/runner.d.ts +5 -0
  6. package/dist/batch/runner.d.ts.map +1 -1
  7. package/dist/batch/runner.js +6 -0
  8. package/dist/batch/runner.js.map +1 -1
  9. package/dist/batch/shards.d.ts +1 -1
  10. package/dist/batch/shards.d.ts.map +1 -1
  11. package/dist/batch/shards.js +3 -3
  12. package/dist/batch/shards.js.map +1 -1
  13. package/dist/child/agent.d.ts.map +1 -1
  14. package/dist/child/agent.js +6 -5
  15. package/dist/child/agent.js.map +1 -1
  16. package/dist/child/session.d.ts +1 -0
  17. package/dist/child/session.d.ts.map +1 -1
  18. package/dist/child/session.js +9 -6
  19. package/dist/child/session.js.map +1 -1
  20. package/dist/judges/classifier.d.ts +8 -0
  21. package/dist/judges/classifier.d.ts.map +1 -0
  22. package/dist/judges/classifier.js +30 -0
  23. package/dist/judges/classifier.js.map +1 -0
  24. package/dist/judges/cli-main.d.ts +41 -0
  25. package/dist/judges/cli-main.d.ts.map +1 -0
  26. package/dist/judges/cli-main.js +182 -0
  27. package/dist/judges/cli-main.js.map +1 -0
  28. package/dist/judges/cli.d.ts +2 -0
  29. package/dist/judges/cli.d.ts.map +1 -0
  30. package/dist/judges/cli.js +43 -0
  31. package/dist/judges/cli.js.map +1 -0
  32. package/dist/judges/controller.d.ts +78 -0
  33. package/dist/judges/controller.d.ts.map +1 -0
  34. package/dist/judges/controller.js +243 -0
  35. package/dist/judges/controller.js.map +1 -0
  36. package/dist/judges/definition.d.ts +86 -0
  37. package/dist/judges/definition.d.ts.map +1 -0
  38. package/dist/judges/definition.js +100 -0
  39. package/dist/judges/definition.js.map +1 -0
  40. package/dist/judges/gate.d.ts +46 -0
  41. package/dist/judges/gate.d.ts.map +1 -0
  42. package/dist/judges/gate.js +256 -0
  43. package/dist/judges/gate.js.map +1 -0
  44. package/dist/judges/identity.d.ts +21 -0
  45. package/dist/judges/identity.d.ts.map +1 -0
  46. package/dist/judges/identity.js +48 -0
  47. package/dist/judges/identity.js.map +1 -0
  48. package/dist/judges/index.d.ts +10 -0
  49. package/dist/judges/index.d.ts.map +1 -0
  50. package/dist/judges/index.js +10 -0
  51. package/dist/judges/index.js.map +1 -0
  52. package/dist/judges/resolve-hooks.d.ts +10 -0
  53. package/dist/judges/resolve-hooks.d.ts.map +1 -0
  54. package/dist/judges/resolve-hooks.js +25 -0
  55. package/dist/judges/resolve-hooks.js.map +1 -0
  56. package/dist/judges/run.d.ts +123 -0
  57. package/dist/judges/run.d.ts.map +1 -0
  58. package/dist/judges/run.js +319 -0
  59. package/dist/judges/run.js.map +1 -0
  60. package/dist/judges/session.d.ts +9 -0
  61. package/dist/judges/session.d.ts.map +1 -0
  62. package/dist/judges/session.js +109 -0
  63. package/dist/judges/session.js.map +1 -0
  64. package/dist/judges/trajectory.d.ts +91 -0
  65. package/dist/judges/trajectory.d.ts.map +1 -0
  66. package/dist/judges/trajectory.js +223 -0
  67. package/dist/judges/trajectory.js.map +1 -0
  68. package/dist/judges/verdict.d.ts +31 -0
  69. package/dist/judges/verdict.d.ts.map +1 -0
  70. package/dist/judges/verdict.js +121 -0
  71. package/dist/judges/verdict.js.map +1 -0
  72. package/dist/mcp/daemon/server.d.ts +0 -2
  73. package/dist/mcp/daemon/server.d.ts.map +1 -1
  74. package/dist/mcp/daemon/server.js +1 -1
  75. package/dist/mcp/daemon/server.js.map +1 -1
  76. package/dist/mcp-chunks/{auth-command-PZLSOYAT.js → auth-command-WE7QY6RH.js} +27 -27
  77. package/dist/mcp-chunks/call-arguments-2ABANGLE.js +16 -0
  78. package/dist/mcp-chunks/{call-command-VILJIFYG.js → call-command-OOBUGVTM.js} +56 -70
  79. package/dist/mcp-chunks/{chunk-N2U2FODH.js → chunk-2PTK6KBV.js} +4 -4
  80. package/dist/mcp-chunks/{chunk-F2X4Y2TQ.js → chunk-2R2HWX2E.js} +1 -1
  81. package/dist/mcp-chunks/{chunk-ORJND4AI.js → chunk-2R7UGABC.js} +70 -70
  82. package/dist/mcp-chunks/{chunk-US63Y6XE.js → chunk-32UZRZIL.js} +1 -1
  83. package/dist/mcp-chunks/{chunk-THRMUZZD.js → chunk-37VJZIFW.js} +8 -8
  84. package/dist/mcp-chunks/{chunk-5Z6WSV5D.js → chunk-3KSDZBUJ.js} +5 -5
  85. package/dist/mcp-chunks/{chunk-JTPTAO4M.js → chunk-44KI6DPL.js} +24 -15
  86. package/dist/mcp-chunks/{chunk-BHXCAVFP.js → chunk-4ACA5GWL.js} +1 -1
  87. package/dist/mcp-chunks/{chunk-E76ZUBOJ.js → chunk-4NABHXDS.js} +4 -4
  88. package/dist/mcp-chunks/{chunk-AJDK5Z7O.js → chunk-4SO2DY7F.js} +2 -3
  89. package/dist/mcp-chunks/{chunk-I6UFV7RW.js → chunk-5ZQKSEUN.js} +1 -1
  90. package/dist/mcp-chunks/{chunk-KZGUH7E2.js → chunk-73TMUGJL.js} +2039 -1148
  91. package/dist/mcp-chunks/{chunk-UVRJ3AAD.js → chunk-7KOGD2JK.js} +2 -2
  92. package/dist/mcp-chunks/{chunk-KJ5FPQF6.js → chunk-7SQZWTDU.js} +30 -26
  93. package/dist/mcp-chunks/{chunk-MYAMG6VL.js → chunk-ABPXAKP7.js} +89 -28
  94. package/dist/mcp-chunks/{chunk-2YV72LUA.js → chunk-AIUZOMBB.js} +12 -12
  95. package/dist/mcp-chunks/{chunk-V42T3QNK.js → chunk-BI6L3SYV.js} +9 -9
  96. package/dist/mcp-chunks/{chunk-757ZF552.js → chunk-CFRA424Y.js} +4 -4
  97. package/dist/mcp-chunks/{chunk-DU4SDPEV.js → chunk-CIQX62WO.js} +2 -2
  98. package/dist/mcp-chunks/{chunk-MHUMLEBO.js → chunk-CWM4RO33.js} +1 -1
  99. package/dist/mcp-chunks/{chunk-TUPFPO4L.js → chunk-DEYGZRBD.js} +5 -5
  100. package/dist/mcp-chunks/{chunk-3SXP4S2A.js → chunk-DL3GVI4M.js} +2 -2
  101. package/dist/mcp-chunks/{chunk-O7SIXJM6.js → chunk-EUHXZKP2.js} +108 -108
  102. package/dist/mcp-chunks/{chunk-H5PBSJP3.js → chunk-EV3SP7ME.js} +1 -1
  103. package/dist/mcp-chunks/chunk-EVEVCVYR.js +42 -0
  104. package/dist/mcp-chunks/{chunk-RUF27IUF.js → chunk-FDVES4CU.js} +2 -2
  105. package/dist/mcp-chunks/{chunk-L2MSWQDL.js → chunk-FJNWUAGR.js} +1 -1
  106. package/dist/mcp-chunks/{chunk-IWCVZ46B.js → chunk-G5DK4L6M.js} +2 -2
  107. package/dist/mcp-chunks/{chunk-3ETUDW7N.js → chunk-GQM53HF7.js} +1 -1
  108. package/dist/mcp-chunks/{chunk-2AKSS7WR.js → chunk-H44A4G2O.js} +2 -2
  109. package/dist/mcp-chunks/{chunk-WDWSA7RL.js → chunk-HGEKP2E5.js} +4 -4
  110. package/dist/mcp-chunks/{chunk-ELHS763C.js → chunk-HKMH4N3Z.js} +1 -1
  111. package/dist/mcp-chunks/{chunk-GZ53GNFP.js → chunk-HPFIAALB.js} +13 -10
  112. package/dist/mcp-chunks/chunk-KUJUYFDC.js +224 -0
  113. package/dist/mcp-chunks/{chunk-OIK5AH2S.js → chunk-MG6EVYIM.js} +41 -19
  114. package/dist/mcp-chunks/{chunk-QNXOIF5U.js → chunk-MSPGQEWX.js} +12 -12
  115. package/dist/mcp-chunks/{chunk-JEHI2YU4.js → chunk-MW3YO24Q.js} +3 -3
  116. package/dist/mcp-chunks/{chunk-WQL7FJQ3.js → chunk-NJR33E7V.js} +4 -4
  117. package/dist/mcp-chunks/{chunk-7U5NSQ5T.js → chunk-OSK2JGFH.js} +2 -2
  118. package/dist/mcp-chunks/{chunk-ZEA3Y5ZD.js → chunk-QHD5RXW4.js} +7 -7
  119. package/dist/mcp-chunks/{chunk-TC2JPBFB.js → chunk-QYR3UKJS.js} +7 -4
  120. package/dist/mcp-chunks/{chunk-3FRLDHVD.js → chunk-SYBDN4SV.js} +5 -5
  121. package/dist/mcp-chunks/{chunk-3P3KGT4H.js → chunk-TQ5T5VO7.js} +2 -2
  122. package/dist/mcp-chunks/{chunk-OWGTNJNR.js → chunk-TT3LOCMN.js} +2 -2
  123. package/dist/mcp-chunks/{chunk-3LENTPGE.js → chunk-TTVO6RCP.js} +2 -2
  124. package/dist/mcp-chunks/{chunk-IRSL7JRH.js → chunk-UY2QWZB3.js} +53 -49
  125. package/dist/mcp-chunks/{chunk-B6S43WID.js → chunk-VJ45Y5IO.js} +1 -1
  126. package/dist/mcp-chunks/{chunk-IRARVOUM.js → chunk-VJ5VDK6D.js} +1 -1
  127. package/dist/mcp-chunks/{chunk-6O42UGLI.js → chunk-VLJQSE6L.js} +9 -9
  128. package/dist/mcp-chunks/{chunk-HNQSUT44.js → chunk-W47YAN6W.js} +3 -3
  129. package/dist/mcp-chunks/{chunk-66VSGFXA.js → chunk-XU4D5QN2.js} +1 -1
  130. package/dist/mcp-chunks/{chunk-CXST5CVH.js → chunk-Y7JQJ352.js} +22 -18
  131. package/dist/mcp-chunks/{chunk-3HSC6NHZ.js → chunk-Y7UTXETL.js} +1 -1
  132. package/dist/mcp-chunks/{chunk-O3RTM5HD.js → chunk-YFPPHEDE.js} +1 -1
  133. package/dist/mcp-chunks/{chunk-N6YUOYDS.js → chunk-YGT57XUN.js} +2 -2
  134. package/dist/mcp-chunks/{chunk-BUOGKTKK.js → chunk-Z43KJRXY.js} +1 -1
  135. package/dist/mcp-chunks/{chunk-6P3KAQ5N.js → chunk-Z5XOB522.js} +1 -1
  136. package/dist/mcp-chunks/{chunk-63L6SHK3.js → chunk-ZEMVGFKG.js} +2 -2
  137. package/dist/mcp-chunks/{chunk-MEQXX43K.js → chunk-ZJZ53NIB.js} +1 -1
  138. package/dist/mcp-chunks/{cli-UQ5QXFXU.js → cli-TJFAYJO4.js} +81 -283
  139. package/dist/mcp-chunks/client-LDKUW5K5.js +32 -0
  140. package/dist/mcp-chunks/{config-command-ZSPJI34E.js → config-command-YGNK2VVL.js} +29 -29
  141. package/dist/mcp-chunks/daemon-command-UYAYRHVD.js +36 -0
  142. package/dist/mcp-chunks/dist-5JNZD3JV.js +69 -0
  143. package/dist/mcp-chunks/{dist-Q7WSCBBK.js → dist-IFOLXE2R.js} +351 -1305
  144. package/dist/mcp-chunks/{emit-ts-command-SY4LQE4S.js → emit-ts-command-4EVF6CIG.js} +28 -25
  145. package/dist/mcp-chunks/{generate-cli-runner-LQBBQ7F5.js → generate-cli-runner-UFVSXJVK.js} +58 -49
  146. package/dist/mcp-chunks/generated-daemon-runtime-LTH36X2R.js +32 -0
  147. package/dist/mcp-chunks/{inspect-cli-command-JPX4ON6N.js → inspect-cli-command-L3JGLLTG.js} +11 -11
  148. package/dist/mcp-chunks/{launch-UG7IH27P.js → launch-LUKDWKH4.js} +1 -1
  149. package/dist/mcp-chunks/{lifecycle-QBYGUHQ3.js → lifecycle-H57PYAZ5.js} +1 -1
  150. package/dist/mcp-chunks/{list-command-SDITI3ZM.js → list-command-QBO4LK5Q.js} +53 -42
  151. package/dist/mcp-chunks/logger-LvdykevT-BQ5B4N5O.js +995 -0
  152. package/dist/mcp-chunks/{output-utils-YTMZTA7J.js → output-utils-MB3PEV2M.js} +3 -3
  153. package/dist/mcp-chunks/{pi-mcp-runtime-OLO25D7A.js → pi-mcp-runtime-OIMIJV5A.js} +73 -17
  154. package/dist/mcp-chunks/{prompt-DkftHXS7-N7UENQ4C.js → prompt-DkftHXS7-TE2LNPAM.js} +1 -1
  155. package/dist/mcp-chunks/{record-command-JGTMATYI.js → record-command-RYDP3Y2A.js} +5 -5
  156. package/dist/mcp-chunks/{replay-command-S2VAC4RW.js → replay-command-QDJCQ5JU.js} +6 -6
  157. package/dist/mcp-chunks/{resource-command-SRFQQROJ.js → resource-command-RKHHQBFP.js} +9 -9
  158. package/dist/mcp-chunks/{result-utils-JASGNHXK.js → result-utils-ZD5GFX7P.js} +3 -3
  159. package/dist/mcp-chunks/runtime-F7PP4V25.js +39 -0
  160. package/dist/mcp-chunks/{runtime-wrapper-7HYO3NM5.js → runtime-wrapper-AV4JCNRF.js} +3 -3
  161. package/dist/mcp-chunks/{serve-command-YKSIXG7K.js → serve-command-MRPTK4XX.js} +26 -26
  162. package/dist/mcp-chunks/server-2WSYXDII.js +43 -0
  163. package/dist/mcp-chunks/{timeouts-BJWDJEMH.js → timeouts-2SQIDYBE.js} +4 -3
  164. package/dist/mcp-chunks/{vault-command-EYOIFWEY.js → vault-command-6JVDCFWU.js} +5 -5
  165. package/dist/mcp-chunks/{webapi-WMMA3OEC.js → webapi-CI4O7AUX.js} +1 -1
  166. package/dist/mcp-daemon.js +35 -31
  167. package/dist/mcp-run-worker.js +34 -30
  168. package/dist/model-binding.d.ts +44 -3
  169. package/dist/model-binding.d.ts.map +1 -1
  170. package/dist/model-binding.js +195 -4
  171. package/dist/model-binding.js.map +1 -1
  172. package/dist/recipe/manifest.generated.d.ts +2 -2
  173. package/dist/recipe/manifest.generated.d.ts.map +1 -1
  174. package/dist/recipe/manifest.generated.js +2 -2
  175. package/dist/recipe/manifest.generated.js.map +1 -1
  176. package/dist/recipe/model.d.ts +7 -12
  177. package/dist/recipe/model.d.ts.map +1 -1
  178. package/dist/recipe/model.js +197 -249
  179. package/dist/recipe/model.js.map +1 -1
  180. package/dist/session.d.ts +11 -0
  181. package/dist/session.d.ts.map +1 -1
  182. package/dist/session.js +59 -6
  183. package/dist/session.js.map +1 -1
  184. package/dist/suggestion-picker.d.ts +2 -2
  185. package/dist/suggestion-picker.d.ts.map +1 -1
  186. package/dist/suggestion-picker.js +5 -3
  187. package/dist/suggestion-picker.js.map +1 -1
  188. package/docs/README.md +1 -0
  189. package/docs/batch.md +2 -2
  190. package/docs/judges.md +269 -0
  191. package/docs/recipe-format.md +23 -12
  192. package/docs/recipe-judges.md +119 -59
  193. package/package.json +20 -16
  194. package/skills/documents/SKILL.md +6 -2
  195. package/skills/issues/SKILL.md +2 -1
  196. package/skills/search/SKILL.md +3 -0
  197. package/skills/signature/SKILL.md +4 -4
  198. package/dist/mcp-chunks/call-arguments-GCXZA4HC.js +0 -16
  199. package/dist/mcp-chunks/client-SBELHRAE.js +0 -32
  200. package/dist/mcp-chunks/daemon-command-MQS6AP2W.js +0 -32
  201. package/dist/mcp-chunks/dist-SDPPH7XQ.js +0 -65
  202. package/dist/mcp-chunks/generated-daemon-runtime-TUCZ3JEP.js +0 -32
  203. package/dist/mcp-chunks/runtime-5SOGEUTQ.js +0 -39
  204. package/dist/mcp-chunks/server-HQBFWAJR.js +0 -41
@@ -3,73 +3,74 @@ import { createRequire as __createRequire } from "node:module"; const require =
3
3
  import {
4
4
  isRecordReplayModeActive,
5
5
  isReplayModeActive
6
- } from "./chunk-ELHS763C.js";
6
+ } from "./chunk-HKMH4N3Z.js";
7
7
  import {
8
8
  extractListFlags
9
- } from "./chunk-WDWSA7RL.js";
9
+ } from "./chunk-HGEKP2E5.js";
10
10
  import {
11
11
  DEBUG_HANG,
12
12
  dumpActiveHandles,
13
13
  terminateChildProcesses
14
- } from "./chunk-N6YUOYDS.js";
14
+ } from "./chunk-YGT57XUN.js";
15
15
  import {
16
16
  chooseClosestIdentifier,
17
17
  renderIdentifierResolutionMessages
18
- } from "./chunk-66VSGFXA.js";
19
- import {
20
- consumeMatchingTokens,
21
- extractFlags
22
- } from "./chunk-I6UFV7RW.js";
23
- import {
24
- boldText,
25
- dimText,
26
- extraDimText,
27
- supportsAnsiColor,
28
- yellowText
29
- } from "./chunk-IRARVOUM.js";
18
+ } from "./chunk-XU4D5QN2.js";
30
19
  import {
31
20
  parseCallArguments
32
- } from "./chunk-JTPTAO4M.js";
33
- import {
34
- CliUsageError
35
- } from "./chunk-H5PBSJP3.js";
21
+ } from "./chunk-44KI6DPL.js";
36
22
  import {
37
23
  STDOUT_FLUSH_TIMEOUT_MS,
38
24
  parsePositiveInteger,
39
25
  resolveCallTimeout
40
- } from "./chunk-TC2JPBFB.js";
26
+ } from "./chunk-QYR3UKJS.js";
41
27
  import {
42
28
  getActiveLogLevel,
43
29
  getActiveLogger,
44
30
  logError,
45
31
  logInfo,
46
32
  setLogLevel
47
- } from "./chunk-DU4SDPEV.js";
48
- import "./chunk-L2MSWQDL.js";
33
+ } from "./chunk-CIQX62WO.js";
34
+ import "./chunk-FJNWUAGR.js";
49
35
  import {
50
36
  looksLikeHttpUrl,
51
37
  splitHttpToolSelector
52
- } from "./chunk-US63Y6XE.js";
53
- import "./chunk-MEQXX43K.js";
38
+ } from "./chunk-32UZRZIL.js";
39
+ import "./chunk-ZJZ53NIB.js";
54
40
  import {
55
- createInteractiveElicitationResponder
56
- } from "./chunk-F2X4Y2TQ.js";
41
+ consumeHelpTokens,
42
+ isHelpToken,
43
+ isVersionToken,
44
+ printHelp,
45
+ printVersion
46
+ } from "./chunk-KUJUYFDC.js";
57
47
  import {
58
- MCPORTER_VERSION
59
- } from "./chunk-QNXOIF5U.js";
60
- import "./chunk-6O42UGLI.js";
48
+ extractFlags
49
+ } from "./chunk-5ZQKSEUN.js";
61
50
  import {
62
- resolveConfigPath
63
- } from "./chunk-JEHI2YU4.js";
64
- import "./chunk-IWCVZ46B.js";
51
+ dimText,
52
+ yellowText
53
+ } from "./chunk-VJ5VDK6D.js";
54
+ import {
55
+ CliUsageError
56
+ } from "./chunk-EV3SP7ME.js";
57
+ import {
58
+ createInteractiveElicitationResponder
59
+ } from "./chunk-2R2HWX2E.js";
60
+ import "./chunk-MSPGQEWX.js";
61
+ import "./chunk-VLJQSE6L.js";
65
62
  import {
66
63
  parseLogLevel
67
- } from "./chunk-O3RTM5HD.js";
64
+ } from "./chunk-YFPPHEDE.js";
65
+ import {
66
+ resolveConfigPath
67
+ } from "./chunk-MW3YO24Q.js";
68
+ import "./chunk-G5DK4L6M.js";
68
69
  import "./chunk-T4MQCFIK.js";
69
- import "./chunk-BHXCAVFP.js";
70
+ import "./chunk-4ACA5GWL.js";
70
71
  import "./chunk-LRKZP7DJ.js";
71
72
 
72
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/cli-factory.js
73
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/cli-factory.js
73
74
  function buildGlobalContext(argv) {
74
75
  const globalFlags = extractFlags(argv, ["--config", "--root", "--log-level", "--oauth-timeout"]);
75
76
  if (globalFlags["--log-level"]) {
@@ -102,7 +103,7 @@ function buildGlobalContext(argv) {
102
103
  return { globalFlags, oauthTimeoutOverride, runtimeOptions };
103
104
  }
104
105
 
105
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/command-inference.js
106
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/command-inference.js
106
107
  var CALL_TOKEN_PATTERN = /[.(]/;
107
108
  function inferCommandRouting(token, args, definitions) {
108
109
  if (!token) {
@@ -174,210 +175,7 @@ function isHttpToolToken(token) {
174
175
  return splitHttpToolSelector(token) !== null;
175
176
  }
176
177
 
177
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/help-output.js
178
- import fsPromises from "node:fs/promises";
179
- function printHelp(message) {
180
- if (message) {
181
- console.error(message);
182
- console.error("");
183
- }
184
- const colorize = supportsAnsiColor;
185
- const sections = buildCommandSections(colorize);
186
- const globalFlags = formatGlobalFlags(colorize);
187
- const quickStart = formatQuickStart(colorize);
188
- const footer = formatHelpFooter(colorize);
189
- const title = colorize ? `${boldText("mcporter")} ${dimText("\u2014 Model Context Protocol CLI & generator")}` : "mcporter \u2014 Model Context Protocol CLI & generator";
190
- const lines = [
191
- title,
192
- "",
193
- "Usage: mcporter <command> [options]",
194
- "",
195
- ...sections,
196
- "",
197
- globalFlags,
198
- "",
199
- quickStart,
200
- "",
201
- footer
202
- ];
203
- console.error(lines.join("\n"));
204
- }
205
- function buildCommandSections(colorize) {
206
- const sections = [
207
- {
208
- title: "Core commands",
209
- entries: [
210
- {
211
- name: "list",
212
- summary: "List configured servers (add --schema for tool docs)",
213
- usage: "mcporter list [name] [--schema] [--json]"
214
- },
215
- {
216
- name: "call",
217
- summary: "Call a tool by selector (server.tool) or HTTP URL; key=value flags supported",
218
- usage: "mcporter call <selector> [key=value ...]"
219
- },
220
- {
221
- name: "resource",
222
- summary: "List or read MCP resources exposed by a server",
223
- usage: "mcporter resource <server> [uri]"
224
- },
225
- {
226
- name: "auth",
227
- summary: "Complete OAuth for a server without listing tools",
228
- usage: "mcporter auth <server | url> [--reset]"
229
- },
230
- {
231
- name: "vault",
232
- summary: "Seed or clear OAuth credentials non-interactively",
233
- usage: "mcporter vault set <server> --tokens-file <path>"
234
- },
235
- {
236
- name: "record",
237
- summary: "Capture MCP JSON-RPC traffic to NDJSON",
238
- usage: "mcporter record <session-name> [--server <name>] [-- <command>]"
239
- },
240
- {
241
- name: "replay",
242
- summary: "Replay recorded MCP JSON-RPC traffic deterministically",
243
- usage: "mcporter replay <session-name> [--server <name>] [-- <command>]"
244
- }
245
- ]
246
- },
247
- {
248
- title: "Generator & tooling",
249
- entries: [
250
- {
251
- name: "generate-cli",
252
- summary: "Emit a standalone CLI (supports HTTP, stdio, and inline commands)",
253
- usage: "mcporter generate-cli --server <name> | --command <ref> [options]"
254
- },
255
- {
256
- name: "inspect-cli",
257
- summary: "Show metadata and regen instructions for a generated CLI",
258
- usage: "mcporter inspect-cli <path> [--json]"
259
- },
260
- {
261
- name: "emit-ts",
262
- summary: "Generate TypeScript client/types for a server",
263
- usage: "mcporter emit-ts <server> --mode client|types [options]"
264
- }
265
- ]
266
- },
267
- {
268
- title: "Configuration",
269
- entries: [
270
- {
271
- name: "config",
272
- summary: "Inspect or edit config files (list, get, add, remove, import, login, logout)",
273
- usage: "mcporter config <command> [options]"
274
- }
275
- ]
276
- },
277
- {
278
- title: "Daemon",
279
- entries: [
280
- {
281
- name: "daemon",
282
- summary: "Manage the keep-alive daemon (start | status | stop | restart)",
283
- usage: "mcporter daemon <subcommand>"
284
- },
285
- {
286
- name: "serve",
287
- summary: "Expose daemon-managed keep-alive servers as one MCP server",
288
- usage: "mcporter serve [--servers a,b,c] [--stdio | --http <port>]"
289
- }
290
- ]
291
- }
292
- ];
293
- return sections.flatMap((section) => formatCommandSection(section, colorize));
294
- }
295
- function formatCommandSection(section, colorize) {
296
- const maxNameLength = Math.max(...section.entries.map((entry) => entry.name.length));
297
- const header = colorize ? boldText(section.title) : section.title;
298
- const lines = [header];
299
- section.entries.forEach((entry) => {
300
- const paddedName = entry.name.padEnd(maxNameLength);
301
- const renderedName = colorize ? boldText(paddedName) : paddedName;
302
- const summary = colorize ? dimText(entry.summary) : entry.summary;
303
- lines.push(` ${renderedName} ${summary}`);
304
- lines.push(` ${extraDimText("usage:")} ${entry.usage}`);
305
- });
306
- return [...lines, ""];
307
- }
308
- function formatGlobalFlags(colorize) {
309
- const title = colorize ? boldText("Global flags") : "Global flags";
310
- const entries = [
311
- {
312
- flag: "--config <path>",
313
- summary: "Path to mcporter.json (defaults to ./config/mcporter.json)"
314
- },
315
- {
316
- flag: "--root <path>",
317
- summary: "Working directory for stdio servers"
318
- },
319
- {
320
- flag: "--log-level <debug|info|warn|error>",
321
- summary: "Adjust CLI logging (defaults to warn)"
322
- },
323
- {
324
- flag: "--oauth-timeout <ms>",
325
- summary: "Time to wait for browser-based OAuth before giving up (default 300000)"
326
- }
327
- ];
328
- const flagWidth = Math.max(...entries.map((entry) => entry.flag.length));
329
- const formatted = entries.map((entry) => ` ${entry.flag.padEnd(flagWidth)} ${entry.summary}`);
330
- return [title, ...formatted].join("\n");
331
- }
332
- function formatQuickStart(colorize) {
333
- const title = colorize ? boldText("Quick start") : "Quick start";
334
- const entries = [
335
- ["mcporter list", "show configured servers"],
336
- ["mcporter list linear --schema", "view Linear tool docs"],
337
- ["mcporter call linear.list_issues limit:5", "invoke a tool with key=value arguments"],
338
- ["mcporter generate-cli --command https://host/mcp --compile ./my-cli", "build a standalone CLI/binary"]
339
- ];
340
- const formatted = entries.map(([cmd, note]) => {
341
- const comment = colorize ? dimText(`# ${note}`) : `# ${note}`;
342
- return ` ${cmd}
343
- ${comment}`;
344
- });
345
- return [title, ...formatted].join("\n");
346
- }
347
- function formatHelpFooter(colorize) {
348
- const pointer = "Run `mcporter <command> --help` for detailed flags.";
349
- const autoLoad = "mcporter auto-loads servers from ./config/mcporter.json and editor imports (Cursor, Claude, Codex, etc.).";
350
- if (!colorize) {
351
- return `${pointer}
352
- ${autoLoad}`;
353
- }
354
- return `${dimText(pointer)}
355
- ${extraDimText(autoLoad)}`;
356
- }
357
- function isHelpToken(token) {
358
- return token === "--help" || token === "-h" || token === "help";
359
- }
360
- function consumeHelpTokens(args) {
361
- return consumeMatchingTokens(args, isHelpToken);
362
- }
363
- function isVersionToken(token) {
364
- return token === "--version" || token === "-v" || token === "-V";
365
- }
366
- async function printVersion() {
367
- console.log(await resolveCliVersion());
368
- }
369
- async function resolveCliVersion() {
370
- try {
371
- const packageJsonPath = new URL("../../package.json", import.meta.url);
372
- const buffer = await fsPromises.readFile(packageJsonPath, "utf8");
373
- const pkg = JSON.parse(buffer);
374
- return pkg.version ?? MCPORTER_VERSION;
375
- } catch {
376
- return MCPORTER_VERSION;
377
- }
378
- }
379
-
380
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/network-family-autoselection.js
178
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/network-family-autoselection.js
381
179
  import net from "node:net";
382
180
  var NODE_DEFAULT_ATTEMPT_TIMEOUT_MS = 250;
383
181
  var MCPORTER_ATTEMPT_TIMEOUT_MS = 1500;
@@ -411,7 +209,7 @@ function isNodeOptionBoundary(character) {
411
209
  return character === void 0 || character === "'" || character === '"' || /\s/u.test(character);
412
210
  }
413
211
 
414
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli.js
212
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli.js
415
213
  configureAutoSelectFamilyAttemptTimeout();
416
214
  var FORCE_EXIT_GRACE_MS = 50;
417
215
  var DAEMON_FAST_PATH_SERVERS = /* @__PURE__ */ new Set(["chrome-devtools", "mobile-mcp", "playwright"]);
@@ -453,31 +251,31 @@ function flushStdioThenForceExit() {
453
251
  });
454
252
  }
455
253
  async function handleAuth(...args) {
456
- const { handleAuth: imported } = await import("./auth-command-PZLSOYAT.js");
254
+ const { handleAuth: imported } = await import("./auth-command-WE7QY6RH.js");
457
255
  return imported(...args);
458
256
  }
459
257
  async function printAuthHelp() {
460
- const { printAuthHelp: imported } = await import("./auth-command-PZLSOYAT.js");
258
+ const { printAuthHelp: imported } = await import("./auth-command-WE7QY6RH.js");
461
259
  imported();
462
260
  }
463
261
  async function handleCall(...args) {
464
- const { handleCall: imported } = await import("./call-command-VILJIFYG.js");
262
+ const { handleCall: imported } = await import("./call-command-OOBUGVTM.js");
465
263
  return imported(...args);
466
264
  }
467
265
  async function handleGenerateCli(...args) {
468
- const { handleGenerateCli: imported } = await import("./generate-cli-runner-LQBBQ7F5.js");
266
+ const { handleGenerateCli: imported } = await import("./generate-cli-runner-UFVSXJVK.js");
469
267
  return imported(...args);
470
268
  }
471
269
  async function handleInspectCli(...args) {
472
- const { handleInspectCli: imported } = await import("./inspect-cli-command-JPX4ON6N.js");
270
+ const { handleInspectCli: imported } = await import("./inspect-cli-command-L3JGLLTG.js");
473
271
  return imported(...args);
474
272
  }
475
273
  async function handleList(...args) {
476
- const { handleList: imported } = await import("./list-command-SDITI3ZM.js");
274
+ const { handleList: imported } = await import("./list-command-QBO4LK5Q.js");
477
275
  return imported(...args);
478
276
  }
479
277
  async function handleResource(...args) {
480
- const { handleResource: imported } = await import("./resource-command-SRFQQROJ.js");
278
+ const { handleResource: imported } = await import("./resource-command-RKHHQBFP.js");
481
279
  return imported(...args);
482
280
  }
483
281
  async function runCli(argv) {
@@ -510,23 +308,23 @@ async function runCli(argv) {
510
308
  }
511
309
  if (command === "generate-cli") {
512
310
  if (consumeHelpTokens(args)) {
513
- const { printGenerateCliHelp } = await import("./generate-cli-runner-LQBBQ7F5.js");
311
+ const { printGenerateCliHelp } = await import("./generate-cli-runner-UFVSXJVK.js");
514
312
  printGenerateCliHelp();
515
313
  process.exitCode = 0;
516
314
  return;
517
315
  }
518
- const { handleGenerateCli: importedHandleGenerateCli } = await import("./generate-cli-runner-LQBBQ7F5.js");
316
+ const { handleGenerateCli: importedHandleGenerateCli } = await import("./generate-cli-runner-UFVSXJVK.js");
519
317
  await importedHandleGenerateCli(args, globalFlags);
520
318
  return;
521
319
  }
522
320
  if (command === "inspect-cli") {
523
321
  if (consumeHelpTokens(args)) {
524
- const { printInspectCliHelp } = await import("./inspect-cli-command-JPX4ON6N.js");
322
+ const { printInspectCliHelp } = await import("./inspect-cli-command-L3JGLLTG.js");
525
323
  printInspectCliHelp();
526
324
  process.exitCode = 0;
527
325
  return;
528
326
  }
529
- const { handleInspectCli: importedHandleInspectCli } = await import("./inspect-cli-command-JPX4ON6N.js");
327
+ const { handleInspectCli: importedHandleInspectCli } = await import("./inspect-cli-command-L3JGLLTG.js");
530
328
  await importedHandleInspectCli(args);
531
329
  return;
532
330
  }
@@ -541,7 +339,7 @@ async function runCli(argv) {
541
339
  ...interactiveElicitation ? { elicitationHandler: interactiveElicitation.handler } : {}
542
340
  };
543
341
  if (command === "daemon") {
544
- const { handleDaemonCli } = await import("./daemon-command-MQS6AP2W.js");
342
+ const { handleDaemonCli } = await import("./daemon-command-UYAYRHVD.js");
545
343
  await handleDaemonCli(args, {
546
344
  configPath: configPathResolved,
547
345
  configExplicit: configResolution.explicit,
@@ -550,7 +348,7 @@ async function runCli(argv) {
550
348
  return;
551
349
  }
552
350
  if (command === "serve") {
553
- const { handleServeCli, printServeHelp } = await import("./serve-command-YKSIXG7K.js");
351
+ const { handleServeCli, printServeHelp } = await import("./serve-command-MRPTK4XX.js");
554
352
  if (consumeHelpTokens(args)) {
555
353
  printServeHelp();
556
354
  process.exitCode = 0;
@@ -564,7 +362,7 @@ async function runCli(argv) {
564
362
  return;
565
363
  }
566
364
  if (command === "record") {
567
- const { handleRecordCli, printRecordHelp } = await import("./record-command-JGTMATYI.js");
365
+ const { handleRecordCli, printRecordHelp } = await import("./record-command-RYDP3Y2A.js");
568
366
  if (consumeHelpTokens(wrapperArgsBeforeSeparator(args))) {
569
367
  printRecordHelp();
570
368
  process.exitCode = 0;
@@ -574,7 +372,7 @@ async function runCli(argv) {
574
372
  return;
575
373
  }
576
374
  if (command === "replay") {
577
- const { handleReplayCli, printReplayHelp } = await import("./replay-command-S2VAC4RW.js");
375
+ const { handleReplayCli, printReplayHelp } = await import("./replay-command-QDJCQ5JU.js");
578
376
  if (consumeHelpTokens(wrapperArgsBeforeSeparator(args))) {
579
377
  printReplayHelp();
580
378
  process.exitCode = 0;
@@ -584,7 +382,7 @@ async function runCli(argv) {
584
382
  return;
585
383
  }
586
384
  if (command === "config") {
587
- const { handleConfigCli } = await import("./config-command-ZSPJI34E.js");
385
+ const { handleConfigCli } = await import("./config-command-YGNK2VVL.js");
588
386
  await handleConfigCli({
589
387
  loadOptions: { configPath, rootDir: rootOverride },
590
388
  invokeAuth: (authArgs) => invokeAuthCommand(runtimeOptionsWithPath, authArgs)
@@ -593,14 +391,14 @@ async function runCli(argv) {
593
391
  }
594
392
  if (command === "emit-ts") {
595
393
  if (consumeHelpTokens(args)) {
596
- const { printEmitTsHelp } = await import("./emit-ts-command-SY4LQE4S.js");
394
+ const { printEmitTsHelp } = await import("./emit-ts-command-4EVF6CIG.js");
597
395
  printEmitTsHelp();
598
396
  process.exitCode = 0;
599
397
  return;
600
398
  }
601
399
  const [{ createRuntime: createRuntime2 }, { handleEmitTs }] = await Promise.all([
602
- import("./runtime-5SOGEUTQ.js"),
603
- import("./emit-ts-command-SY4LQE4S.js")
400
+ import("./runtime-F7PP4V25.js"),
401
+ import("./emit-ts-command-4EVF6CIG.js")
604
402
  ]);
605
403
  const runtime2 = await createRuntime2(runtimeOptionsWithPath);
606
404
  try {
@@ -615,10 +413,10 @@ async function runCli(argv) {
615
413
  return;
616
414
  }
617
415
  const [{ createRuntime }, { DaemonClient }, { createKeepAliveRuntime }, { isKeepAliveServer }] = await Promise.all([
618
- import("./runtime-5SOGEUTQ.js"),
619
- import("./client-SBELHRAE.js"),
620
- import("./runtime-wrapper-7HYO3NM5.js"),
621
- import("./lifecycle-QBYGUHQ3.js")
416
+ import("./runtime-F7PP4V25.js"),
417
+ import("./client-LDKUW5K5.js"),
418
+ import("./runtime-wrapper-AV4JCNRF.js"),
419
+ import("./lifecycle-H57PYAZ5.js")
622
420
  ]);
623
421
  const baseRuntime = await createRuntime(runtimeOptionsWithPath);
624
422
  const recordReplayModeActive = isRecordReplayModeActive();
@@ -640,56 +438,56 @@ async function runCli(argv) {
640
438
  const resolvedArgs = inference.args;
641
439
  if (resolvedCommand === "list") {
642
440
  if (consumeHelpTokens(resolvedArgs)) {
643
- const { printListHelp } = await import("./list-command-SDITI3ZM.js");
441
+ const { printListHelp } = await import("./list-command-QBO4LK5Q.js");
644
442
  printListHelp();
645
443
  process.exitCode = 0;
646
444
  return;
647
445
  }
648
- const { handleList: importedHandleList } = await import("./list-command-SDITI3ZM.js");
446
+ const { handleList: importedHandleList } = await import("./list-command-QBO4LK5Q.js");
649
447
  await importedHandleList(runtime, resolvedArgs);
650
448
  return;
651
449
  }
652
450
  if (resolvedCommand === "call") {
653
451
  if (consumeHelpTokens(resolvedArgs)) {
654
- const { printCallHelp } = await import("./call-command-VILJIFYG.js");
452
+ const { printCallHelp } = await import("./call-command-OOBUGVTM.js");
655
453
  printCallHelp();
656
454
  process.exitCode = 0;
657
455
  return;
658
456
  }
659
- const { handleCall: runHandleCall } = await import("./call-command-VILJIFYG.js");
457
+ const { handleCall: runHandleCall } = await import("./call-command-OOBUGVTM.js");
660
458
  await runHandleCall(runtime, resolvedArgs);
661
459
  return;
662
460
  }
663
461
  if (resolvedCommand === "auth") {
664
462
  if (consumeHelpTokens(resolvedArgs)) {
665
- const { printAuthHelp: importedPrintAuthHelp } = await import("./auth-command-PZLSOYAT.js");
463
+ const { printAuthHelp: importedPrintAuthHelp } = await import("./auth-command-WE7QY6RH.js");
666
464
  importedPrintAuthHelp();
667
465
  process.exitCode = 0;
668
466
  return;
669
467
  }
670
- const { handleAuth: importedHandleAuth } = await import("./auth-command-PZLSOYAT.js");
468
+ const { handleAuth: importedHandleAuth } = await import("./auth-command-WE7QY6RH.js");
671
469
  await importedHandleAuth(runtime, resolvedArgs, { oauthTimeoutMs: runtimeOptionsWithPath.oauthTimeoutMs });
672
470
  return;
673
471
  }
674
472
  if (resolvedCommand === "vault") {
675
473
  if (consumeHelpTokens(resolvedArgs)) {
676
- const { printVaultHelp } = await import("./vault-command-EYOIFWEY.js");
474
+ const { printVaultHelp } = await import("./vault-command-6JVDCFWU.js");
677
475
  printVaultHelp();
678
476
  process.exitCode = 0;
679
477
  return;
680
478
  }
681
- const { handleVault } = await import("./vault-command-EYOIFWEY.js");
479
+ const { handleVault } = await import("./vault-command-6JVDCFWU.js");
682
480
  await handleVault(runtime, resolvedArgs);
683
481
  return;
684
482
  }
685
483
  if (resolvedCommand === "resource" || resolvedCommand === "resources") {
686
484
  if (consumeHelpTokens(resolvedArgs)) {
687
- const { printResourceHelp } = await import("./resource-command-SRFQQROJ.js");
485
+ const { printResourceHelp } = await import("./resource-command-RKHHQBFP.js");
688
486
  printResourceHelp();
689
487
  process.exitCode = 0;
690
488
  return;
691
489
  }
692
- const { handleResource: importedHandleResource } = await import("./resource-command-SRFQQROJ.js");
490
+ const { handleResource: importedHandleResource } = await import("./resource-command-RKHHQBFP.js");
693
491
  await importedHandleResource(runtime, resolvedArgs);
694
492
  return;
695
493
  }
@@ -772,8 +570,8 @@ if (process.env.MCPORTER_DISABLE_AUTORUN !== "1") {
772
570
  }
773
571
  async function invokeAuthCommand(runtimeOptions, args) {
774
572
  const [{ createRuntime }, { handleAuth: importedHandleAuth }] = await Promise.all([
775
- import("./runtime-5SOGEUTQ.js"),
776
- import("./auth-command-PZLSOYAT.js")
573
+ import("./runtime-F7PP4V25.js"),
574
+ import("./auth-command-WE7QY6RH.js")
777
575
  ]);
778
576
  const runtime = await createRuntime(runtimeOptions);
779
577
  try {
@@ -799,8 +597,8 @@ async function maybeHandleDaemonFastCall(command, args, configResolution, rootDi
799
597
  return true;
800
598
  }
801
599
  const [{ DaemonClient }, { handleCall: importedHandleCall }] = await Promise.all([
802
- import("./client-SBELHRAE.js"),
803
- import("./call-command-VILJIFYG.js")
600
+ import("./client-LDKUW5K5.js"),
601
+ import("./call-command-OOBUGVTM.js")
804
602
  ]);
805
603
  const daemonClient = new DaemonClient({
806
604
  configPath: configResolution.path,
@@ -812,8 +610,8 @@ async function maybeHandleDaemonFastCall(command, args, configResolution, rootDi
812
610
  }
813
611
  async function maybeHandleSimpleDaemonFastCall(callArgs, configResolution, rootDir) {
814
612
  const [{ parseCallArguments: parseCallArguments2 }, { resolveServerCallTimeout }] = await Promise.all([
815
- import("./call-arguments-GCXZA4HC.js"),
816
- import("./timeouts-BJWDJEMH.js")
613
+ import("./call-arguments-2ABANGLE.js"),
614
+ import("./timeouts-2SQIDYBE.js")
817
615
  ]);
818
616
  let parsed;
819
617
  try {
@@ -825,9 +623,9 @@ async function maybeHandleSimpleDaemonFastCall(callArgs, configResolution, rootD
825
623
  return false;
826
624
  }
827
625
  const [{ DaemonClient }, { wrapCallResult }, { printCallOutput }] = await Promise.all([
828
- import("./client-SBELHRAE.js"),
829
- import("./result-utils-JASGNHXK.js"),
830
- import("./output-utils-YTMZTA7J.js")
626
+ import("./client-LDKUW5K5.js"),
627
+ import("./result-utils-ZD5GFX7P.js"),
628
+ import("./output-utils-MB3PEV2M.js")
831
629
  ]);
832
630
  const daemonClient = new DaemonClient({
833
631
  configPath: configResolution.path,
@@ -0,0 +1,32 @@
1
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
+ import {
3
+ DaemonClient,
4
+ resolveDaemonPaths
5
+ } from "./chunk-ABPXAKP7.js";
6
+ import "./chunk-2R7UGABC.js";
7
+ import "./chunk-H44A4G2O.js";
8
+ import "./chunk-Z5XOB522.js";
9
+ import "./chunk-2R2HWX2E.js";
10
+ import "./chunk-GQM53HF7.js";
11
+ import "./chunk-MSPGQEWX.js";
12
+ import "./chunk-VLJQSE6L.js";
13
+ import "./chunk-AIUZOMBB.js";
14
+ import "./chunk-37VJZIFW.js";
15
+ import "./chunk-BI6L3SYV.js";
16
+ import "./chunk-YFPPHEDE.js";
17
+ import "./chunk-Y7JQJ352.js";
18
+ import "./chunk-OSK2JGFH.js";
19
+ import "./chunk-TTVO6RCP.js";
20
+ import "./chunk-MW3YO24Q.js";
21
+ import "./chunk-G5DK4L6M.js";
22
+ import "./chunk-T4MQCFIK.js";
23
+ import "./chunk-4ACA5GWL.js";
24
+ import "./chunk-CWM4RO33.js";
25
+ import "./chunk-UY2QWZB3.js";
26
+ import "./chunk-7KOGD2JK.js";
27
+ import "./chunk-EUHXZKP2.js";
28
+ import "./chunk-LRKZP7DJ.js";
29
+ export {
30
+ DaemonClient,
31
+ resolveDaemonPaths
32
+ };