@introspection-ai/recipes 0.26.0 → 0.27.2

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 (286) hide show
  1. package/dist/api/mcp.d.ts +3 -3
  2. package/dist/api/mcp.d.ts.map +1 -1
  3. package/dist/api/mcp.js +1 -1
  4. package/dist/api/mcp.js.map +1 -1
  5. package/dist/{child-agent-completions.d.ts → child/agent-completions.d.ts} +2 -2
  6. package/dist/child/agent-completions.d.ts.map +1 -0
  7. package/dist/{child-agent-completions.js → child/agent-completions.js} +1 -1
  8. package/dist/child/agent-completions.js.map +1 -0
  9. package/dist/{child-agent-store.d.ts → child/agent-store.d.ts} +1 -1
  10. package/dist/child/agent-store.d.ts.map +1 -0
  11. package/dist/{child-agent-store.js → child/agent-store.js} +1 -1
  12. package/dist/child/agent-store.js.map +1 -0
  13. package/dist/{child-agent.d.ts → child/agent.d.ts} +2 -2
  14. package/dist/child/agent.d.ts.map +1 -0
  15. package/dist/{child-agent.js → child/agent.js} +5 -5
  16. package/dist/child/agent.js.map +1 -0
  17. package/dist/{child-session.d.ts → child/session.d.ts} +4 -4
  18. package/dist/child/session.d.ts.map +1 -0
  19. package/dist/{child-session.js → child/session.js} +2 -2
  20. package/dist/child/session.js.map +1 -0
  21. package/dist/connector-tools.d.ts +1 -1
  22. package/dist/connector-tools.js +2 -2
  23. package/dist/inspect.d.ts +1 -1
  24. package/dist/inspect.js +1 -1
  25. package/dist/{mcp-catalog.d.ts → mcp/catalog.d.ts} +3 -3
  26. package/dist/mcp/catalog.d.ts.map +1 -0
  27. package/dist/{mcp-catalog.js → mcp/catalog.js} +2 -2
  28. package/dist/mcp/catalog.js.map +1 -0
  29. package/dist/{mcp-command-context.d.ts → mcp/cli/command-context.d.ts} +1 -1
  30. package/dist/mcp/cli/command-context.d.ts.map +1 -0
  31. package/dist/{mcp-command-context.js → mcp/cli/command-context.js} +1 -1
  32. package/dist/mcp/cli/command-context.js.map +1 -0
  33. package/dist/{mcp-cli-core.d.ts → mcp/cli/core.d.ts} +14 -8
  34. package/dist/mcp/cli/core.d.ts.map +1 -0
  35. package/dist/{mcp-cli-core.js → mcp/cli/core.js} +105 -146
  36. package/dist/mcp/cli/core.js.map +1 -0
  37. package/dist/mcp/cli/help.d.ts +6 -0
  38. package/dist/mcp/cli/help.d.ts.map +1 -0
  39. package/dist/mcp/cli/help.js +116 -0
  40. package/dist/mcp/cli/help.js.map +1 -0
  41. package/dist/mcp/cli/index.d.ts +3 -0
  42. package/dist/mcp/cli/index.d.ts.map +1 -0
  43. package/dist/{mcp-cli.js → mcp/cli/index.js} +4 -4
  44. package/dist/mcp/cli/index.js.map +1 -0
  45. package/dist/{mcp-cli-policy.d.ts → mcp/cli/policy.d.ts} +2 -2
  46. package/dist/mcp/cli/policy.d.ts.map +1 -0
  47. package/dist/{mcp-cli-policy.js → mcp/cli/policy.js} +2 -2
  48. package/dist/mcp/cli/policy.js.map +1 -0
  49. package/dist/mcp/cli/run-worker.d.ts +2 -0
  50. package/dist/mcp/cli/run-worker.d.ts.map +1 -0
  51. package/dist/mcp/cli/run-worker.js +54 -0
  52. package/dist/mcp/cli/run-worker.js.map +1 -0
  53. package/dist/mcp/client-entry.d.ts +3 -0
  54. package/dist/mcp/client-entry.d.ts.map +1 -0
  55. package/dist/{mcp-client.js → mcp/client-entry.js} +3 -3
  56. package/dist/mcp/client-entry.js.map +1 -0
  57. package/dist/{mcp-contract.d.ts → mcp/contract.d.ts} +2 -2
  58. package/dist/mcp/contract.d.ts.map +1 -0
  59. package/dist/{mcp-contract.js → mcp/contract.js} +1 -1
  60. package/dist/mcp/contract.js.map +1 -0
  61. package/dist/{mcp-daemon-client.d.ts → mcp/daemon/client.d.ts} +3 -2
  62. package/dist/mcp/daemon/client.d.ts.map +1 -0
  63. package/dist/{mcp-daemon-client.js → mcp/daemon/client.js} +12 -8
  64. package/dist/mcp/daemon/client.js.map +1 -0
  65. package/dist/mcp/daemon/index.d.ts +3 -0
  66. package/dist/mcp/daemon/index.d.ts.map +1 -0
  67. package/dist/mcp/daemon/index.js +453 -0
  68. package/dist/{mcp-daemon.js.map → mcp/daemon/index.js.map} +1 -1
  69. package/dist/{mcp-daemon-protocol.d.ts → mcp/daemon/protocol.d.ts} +2 -2
  70. package/dist/mcp/daemon/protocol.d.ts.map +1 -0
  71. package/dist/{mcp-daemon-protocol.js → mcp/daemon/protocol.js} +1 -1
  72. package/dist/mcp/daemon/protocol.js.map +1 -0
  73. package/dist/{mcp.d.ts → mcp/index.d.ts} +5 -5
  74. package/dist/mcp/index.d.ts.map +1 -0
  75. package/dist/{mcp.js → mcp/index.js} +16 -10
  76. package/dist/mcp/index.js.map +1 -0
  77. package/dist/{mcp-policy.d.ts → mcp/policy.d.ts} +3 -3
  78. package/dist/mcp/policy.d.ts.map +1 -0
  79. package/dist/{mcp-policy.js → mcp/policy.js} +1 -1
  80. package/dist/mcp/policy.js.map +1 -0
  81. package/dist/{mcp-tools.d.ts → mcp/tools.d.ts} +4 -4
  82. package/dist/mcp/tools.d.ts.map +1 -0
  83. package/dist/{mcp-tools.js → mcp/tools.js} +4 -4
  84. package/dist/mcp/tools.js.map +1 -0
  85. package/dist/{mcp-trace-context.d.ts → mcp/trace-context.d.ts} +2 -2
  86. package/dist/mcp/trace-context.d.ts.map +1 -0
  87. package/dist/{mcp-trace-context.js → mcp/trace-context.js} +1 -1
  88. package/dist/mcp/trace-context.js.map +1 -0
  89. package/dist/mcp-chunks/{auth-command-JBYNHHMV.js → auth-command-GQFV6QYP.js} +22 -21
  90. package/dist/mcp-chunks/call-arguments-VT7JLNJY.js +16 -0
  91. package/dist/mcp-chunks/{call-command-467BVXTE.js → call-command-LMAREWKD.js} +45 -44
  92. package/dist/mcp-chunks/{chunk-I7JR2GIC.js → chunk-2HOMVWSA.js} +2 -2
  93. package/dist/mcp-chunks/{chunk-CZ43ZITK.js → chunk-2P2HVZ3G.js} +1 -1
  94. package/dist/mcp-chunks/{chunk-SUNOYTQJ.js → chunk-34QXE62Y.js} +175 -147
  95. package/dist/mcp-chunks/{chunk-TFU4NKFJ.js → chunk-5B7GRMUK.js} +1 -1
  96. package/dist/mcp-chunks/{chunk-LG3GLOSA.js → chunk-5BMCVE2J.js} +14 -11
  97. package/dist/mcp-chunks/{chunk-MJHMXYMO.js → chunk-6QZQZXDJ.js} +3 -3
  98. package/dist/mcp-chunks/{chunk-DMBE47LM.js → chunk-6RG6AD5X.js} +6 -6
  99. package/dist/mcp-chunks/{chunk-UCJ7YDFN.js → chunk-77BZYP72.js} +1 -1
  100. package/dist/mcp-chunks/{chunk-NTABJCUL.js → chunk-7PFJCLXL.js} +10 -10
  101. package/dist/mcp-chunks/{chunk-66P5FXP3.js → chunk-7WL4TMON.js} +4 -4
  102. package/dist/mcp-chunks/{chunk-HKZZGSDV.js → chunk-C2VLY7ED.js} +4 -4
  103. package/dist/mcp-chunks/{chunk-XCNWICLD.js → chunk-CLR6DJV3.js} +1 -1
  104. package/dist/mcp-chunks/{chunk-REEFOL44.js → chunk-D6B2M5V7.js} +1 -1
  105. package/dist/mcp-chunks/{chunk-EP22XMWK.js → chunk-D6SVCPN6.js} +1 -1
  106. package/dist/mcp-chunks/{chunk-BTU34BUG.js → chunk-FBVRU4Y3.js} +43 -30
  107. package/dist/mcp-chunks/{chunk-TGPIW6F6.js → chunk-FONFU4G5.js} +1 -1
  108. package/dist/mcp-chunks/chunk-H4KL74PV.js +2073 -0
  109. package/dist/mcp-chunks/{chunk-QIBGY4IX.js → chunk-H7ARMBV7.js} +4 -9
  110. package/dist/mcp-chunks/{chunk-OABFKFSL.js → chunk-HZ2SX5U6.js} +39 -34
  111. package/dist/mcp-chunks/{chunk-HTXQPQPB.js → chunk-I6UMKX5E.js} +4 -4
  112. package/dist/mcp-chunks/{chunk-Z6QEOUMK.js → chunk-IF6LRV3J.js} +8 -14
  113. package/dist/mcp-chunks/{chunk-HBN3ESMH.js → chunk-JVYCENPP.js} +4 -4
  114. package/dist/mcp-chunks/{chunk-IO2IMWYS.js → chunk-KOWNVUL2.js} +34 -7
  115. package/dist/mcp-chunks/{chunk-AS27BTCS.js → chunk-KQCLM7R7.js} +4 -4
  116. package/dist/mcp-chunks/{chunk-AP5VHS73.js → chunk-L6OOGZVA.js} +2 -2
  117. package/dist/mcp-chunks/{chunk-BC2HDCYV.js → chunk-LCBDVFVA.js} +1 -1
  118. package/dist/mcp-chunks/{chunk-EUDC3ICZ.js → chunk-LIEFPSSB.js} +5 -5
  119. package/dist/mcp-chunks/{chunk-YPTN46JQ.js → chunk-LQIE4PKL.js} +2 -2
  120. package/dist/mcp-chunks/{chunk-GK4LA4E6.js → chunk-LXHPDKEF.js} +1 -1
  121. package/dist/mcp-chunks/{chunk-XFQSUC7T.js → chunk-MJFZM5EV.js} +5 -5
  122. package/dist/mcp-chunks/{chunk-WUEDIOR5.js → chunk-NQW3ES2G.js} +2 -8
  123. package/dist/mcp-chunks/{chunk-3Q2Q7SBU.js → chunk-O2VOMKAS.js} +13 -13
  124. package/dist/mcp-chunks/{chunk-GL4AA5QV.js → chunk-O4JIUOWF.js} +2 -2
  125. package/dist/mcp-chunks/{chunk-GEVQ2GJW.js → chunk-P3UVILEW.js} +2 -2
  126. package/dist/mcp-chunks/{chunk-N7ZWX3WW.js → chunk-P463YBJM.js} +1 -1
  127. package/dist/mcp-chunks/{chunk-Y3L5LWBY.js → chunk-PJCMJ65D.js} +277 -2110
  128. package/dist/mcp-chunks/{chunk-LTR626QF.js → chunk-QALB3DRW.js} +1 -1
  129. package/dist/mcp-chunks/{chunk-D2P2IV4H.js → chunk-QJNF3A3F.js} +1 -1
  130. package/dist/mcp-chunks/{chunk-KJNNO5Z6.js → chunk-RIHPVCGI.js} +1 -1
  131. package/dist/mcp-chunks/{chunk-J2WP6ERZ.js → chunk-RZIJUJGL.js} +44 -1055
  132. package/dist/mcp-chunks/{chunk-L2LGMX5P.js → chunk-S2YF442K.js} +2 -2
  133. package/dist/mcp-chunks/{chunk-CN5YF3IQ.js → chunk-S5F3HEZZ.js} +1848 -1046
  134. package/dist/mcp-chunks/{chunk-6DVS7RBO.js → chunk-S6GJ42I2.js} +1 -1
  135. package/dist/mcp-chunks/chunk-T4MQCFIK.js +982 -0
  136. package/dist/mcp-chunks/{chunk-OB256NMD.js → chunk-TUQGOYK6.js} +1 -1
  137. package/dist/mcp-chunks/{chunk-M62ESEOY.js → chunk-TYYSBILI.js} +10 -22
  138. package/dist/mcp-chunks/{chunk-LYWEATXZ.js → chunk-UHO6KIUJ.js} +2 -2
  139. package/dist/mcp-chunks/{chunk-BSCNF4NY.js → chunk-UIPG6W7N.js} +2 -2
  140. package/dist/mcp-chunks/{chunk-AK5ZEDEF.js → chunk-UKM35J67.js} +2 -2
  141. package/dist/mcp-chunks/{chunk-G4H535MI.js → chunk-UYJZJXC2.js} +21 -3
  142. package/dist/mcp-chunks/{chunk-GA4ZYSRX.js → chunk-VJIAHZZG.js} +4 -4
  143. package/dist/mcp-chunks/{chunk-OZQTZWW4.js → chunk-WHJUDBPR.js} +1 -1
  144. package/dist/mcp-chunks/{chunk-YI5SMRFH.js → chunk-XNHGMWN2.js} +7 -7
  145. package/dist/mcp-chunks/{cli-TN6JTLTS.js → cli-JI7MEAAX.js} +70 -69
  146. package/dist/mcp-chunks/client-QU7ABSNB.js +30 -0
  147. package/dist/mcp-chunks/{config-command-LICU56ZH.js → config-command-GRZLKD3R.js} +36 -28
  148. package/dist/mcp-chunks/daemon-command-3266CYHO.js +30 -0
  149. package/dist/mcp-chunks/{dist-MFAWSKGH.js → dist-USMCQ22V.js} +71 -47
  150. package/dist/mcp-chunks/{emit-ts-command-FVX3JMSN.js → emit-ts-command-7VLESP7H.js} +18 -17
  151. package/dist/mcp-chunks/{generate-cli-runner-L2L7VMCA.js → generate-cli-runner-SSW2B72K.js} +43 -42
  152. package/dist/mcp-chunks/generated-daemon-runtime-7CFVWLC7.js +30 -0
  153. package/dist/mcp-chunks/{inspect-cli-command-Y5D3GRE2.js → inspect-cli-command-NCGCMOIS.js} +9 -9
  154. package/dist/mcp-chunks/{launch-ZFY6CM2A.js → launch-NBONSPNK.js} +1 -1
  155. package/dist/mcp-chunks/{lifecycle-H7DIW5DM.js → lifecycle-CXAKUCN4.js} +1 -1
  156. package/dist/mcp-chunks/{list-command-55LCLW4S.js → list-command-5T4UF4PF.js} +56 -69
  157. package/dist/mcp-chunks/{output-utils-YYHI637S.js → output-utils-YFTWQZ5V.js} +3 -3
  158. package/dist/mcp-chunks/{prompt-CH6TK0bC-DZLFAAPK.js → prompt-CH6TK0bC-6DI4RA4E.js} +1 -1
  159. package/dist/mcp-chunks/{record-command-PWIBYC5J.js → record-command-TE5O7WBL.js} +5 -5
  160. package/dist/mcp-chunks/{replay-command-QHZZZMXF.js → replay-command-QCUL5ASR.js} +6 -6
  161. package/dist/mcp-chunks/{resource-command-HMR2KXWK.js → resource-command-XMGF7EAK.js} +9 -9
  162. package/dist/mcp-chunks/{result-utils-UGCQSRJ4.js → result-utils-HKB42M7Y.js} +3 -3
  163. package/dist/mcp-chunks/runtime-3X2XVS6X.js +37 -0
  164. package/dist/mcp-chunks/{runtime-wrapper-I4B3OROR.js → runtime-wrapper-MI3HF45J.js} +3 -3
  165. package/dist/mcp-chunks/{serve-command-NTDI3YPN.js → serve-command-5HV3ZE25.js} +25 -24
  166. package/dist/mcp-chunks/{timeouts-35UDWFA7.js → timeouts-YBFBTLV2.js} +8 -5
  167. package/dist/mcp-chunks/{vault-command-D5QZL4FI.js → vault-command-FC2PD5U6.js} +4 -4
  168. package/dist/mcp-chunks/webapi-IFUPO72B.js +2481 -0
  169. package/dist/mcp-daemon.js +35 -28
  170. package/dist/mcp-run-worker.js +28 -27
  171. package/dist/pi-extension.d.ts +1 -1
  172. package/dist/pi-extension.d.ts.map +1 -1
  173. package/dist/pi-extension.js +10 -9
  174. package/dist/pi-extension.js.map +1 -1
  175. package/dist/{recipe-agent.d.ts → recipe/agent.d.ts} +3 -3
  176. package/dist/recipe/agent.d.ts.map +1 -0
  177. package/dist/{recipe-agent.js → recipe/agent.js} +5 -5
  178. package/dist/recipe/agent.js.map +1 -0
  179. package/dist/{recipe-extensions.d.ts → recipe/extensions.d.ts} +1 -1
  180. package/dist/recipe/extensions.d.ts.map +1 -0
  181. package/dist/{recipe-extensions.js → recipe/extensions.js} +1 -1
  182. package/dist/recipe/extensions.js.map +1 -0
  183. package/dist/{recipe-mcp-config.d.ts → recipe/mcp-config.d.ts} +2 -2
  184. package/dist/recipe/mcp-config.d.ts.map +1 -0
  185. package/dist/{recipe-mcp-config.js → recipe/mcp-config.js} +1 -1
  186. package/dist/recipe/mcp-config.js.map +1 -0
  187. package/dist/{recipe-model.d.ts → recipe/model.d.ts} +1 -1
  188. package/dist/recipe/model.d.ts.map +1 -0
  189. package/dist/{recipe-model.js → recipe/model.js} +1 -1
  190. package/dist/recipe/model.js.map +1 -0
  191. package/dist/{recipe-package.d.ts → recipe/package.d.ts} +1 -1
  192. package/dist/recipe/package.d.ts.map +1 -0
  193. package/dist/{recipe-package.js → recipe/package.js} +1 -1
  194. package/dist/recipe/package.js.map +1 -0
  195. package/dist/recipe/resolve.d.ts +6 -6
  196. package/dist/recipe/resolve.d.ts.map +1 -1
  197. package/dist/recipe/resolve.js +4 -4
  198. package/dist/recipe/resolve.js.map +1 -1
  199. package/dist/{recipe-session.d.ts → recipe/session.d.ts} +1 -1
  200. package/dist/recipe/session.d.ts.map +1 -0
  201. package/dist/{recipe-session.js → recipe/session.js} +1 -1
  202. package/dist/recipe/session.js.map +1 -0
  203. package/dist/recipe/skills-prompt.d.ts +30 -0
  204. package/dist/recipe/skills-prompt.d.ts.map +1 -0
  205. package/dist/recipe/skills-prompt.js +28 -0
  206. package/dist/recipe/skills-prompt.js.map +1 -0
  207. package/dist/{recipe-skills.d.ts → recipe/skills.d.ts} +1 -1
  208. package/dist/recipe/skills.d.ts.map +1 -0
  209. package/dist/{recipe-skills.js → recipe/skills.js} +2 -2
  210. package/dist/recipe/skills.js.map +1 -0
  211. package/dist/run-controller.js +2 -2
  212. package/dist/session.d.ts +1 -1
  213. package/dist/session.d.ts.map +1 -1
  214. package/dist/session.js +5 -5
  215. package/dist/session.js.map +1 -1
  216. package/docs/agent-composition.md +4 -1
  217. package/docs/channels.md +1 -1
  218. package/docs/recipe-format.md +4 -2
  219. package/docs/slack.md +1 -1
  220. package/package.json +6 -6
  221. package/dist/child-agent-completions.d.ts.map +0 -1
  222. package/dist/child-agent-completions.js.map +0 -1
  223. package/dist/child-agent-store.d.ts.map +0 -1
  224. package/dist/child-agent-store.js.map +0 -1
  225. package/dist/child-agent.d.ts.map +0 -1
  226. package/dist/child-agent.js.map +0 -1
  227. package/dist/child-session.d.ts.map +0 -1
  228. package/dist/child-session.js.map +0 -1
  229. package/dist/mcp-catalog.d.ts.map +0 -1
  230. package/dist/mcp-catalog.js.map +0 -1
  231. package/dist/mcp-chunks/call-arguments-S4EGFKUQ.js +0 -15
  232. package/dist/mcp-chunks/chunk-YVH36MGQ.js +0 -92
  233. package/dist/mcp-chunks/client-G33HPQAC.js +0 -29
  234. package/dist/mcp-chunks/daemon-command-JLVHGWHB.js +0 -29
  235. package/dist/mcp-chunks/generated-daemon-runtime-DC6IL7E7.js +0 -29
  236. package/dist/mcp-chunks/runtime-ZNFPZXKE.js +0 -36
  237. package/dist/mcp-chunks/webapi-4GWO2UBA.js +0 -3508
  238. package/dist/mcp-cli-core.d.ts.map +0 -1
  239. package/dist/mcp-cli-core.js.map +0 -1
  240. package/dist/mcp-cli-help.d.ts +0 -2
  241. package/dist/mcp-cli-help.d.ts.map +0 -1
  242. package/dist/mcp-cli-help.js +0 -36
  243. package/dist/mcp-cli-help.js.map +0 -1
  244. package/dist/mcp-cli-policy.d.ts.map +0 -1
  245. package/dist/mcp-cli-policy.js.map +0 -1
  246. package/dist/mcp-cli.d.ts +0 -3
  247. package/dist/mcp-cli.d.ts.map +0 -1
  248. package/dist/mcp-cli.js.map +0 -1
  249. package/dist/mcp-client.d.ts +0 -3
  250. package/dist/mcp-client.d.ts.map +0 -1
  251. package/dist/mcp-client.js.map +0 -1
  252. package/dist/mcp-command-context.d.ts.map +0 -1
  253. package/dist/mcp-command-context.js.map +0 -1
  254. package/dist/mcp-contract.d.ts.map +0 -1
  255. package/dist/mcp-contract.js.map +0 -1
  256. package/dist/mcp-daemon-client.d.ts.map +0 -1
  257. package/dist/mcp-daemon-client.js.map +0 -1
  258. package/dist/mcp-daemon-protocol.d.ts.map +0 -1
  259. package/dist/mcp-daemon-protocol.js.map +0 -1
  260. package/dist/mcp-daemon.d.ts +0 -3
  261. package/dist/mcp-daemon.d.ts.map +0 -1
  262. package/dist/mcp-policy.d.ts.map +0 -1
  263. package/dist/mcp-policy.js.map +0 -1
  264. package/dist/mcp-run-worker.d.ts +0 -2
  265. package/dist/mcp-run-worker.d.ts.map +0 -1
  266. package/dist/mcp-run-worker.js.map +0 -1
  267. package/dist/mcp-tools.d.ts.map +0 -1
  268. package/dist/mcp-tools.js.map +0 -1
  269. package/dist/mcp-trace-context.d.ts.map +0 -1
  270. package/dist/mcp-trace-context.js.map +0 -1
  271. package/dist/mcp.d.ts.map +0 -1
  272. package/dist/mcp.js.map +0 -1
  273. package/dist/recipe-agent.d.ts.map +0 -1
  274. package/dist/recipe-agent.js.map +0 -1
  275. package/dist/recipe-extensions.d.ts.map +0 -1
  276. package/dist/recipe-extensions.js.map +0 -1
  277. package/dist/recipe-mcp-config.d.ts.map +0 -1
  278. package/dist/recipe-mcp-config.js.map +0 -1
  279. package/dist/recipe-model.d.ts.map +0 -1
  280. package/dist/recipe-model.js.map +0 -1
  281. package/dist/recipe-package.d.ts.map +0 -1
  282. package/dist/recipe-package.js.map +0 -1
  283. package/dist/recipe-session.d.ts.map +0 -1
  284. package/dist/recipe-session.js.map +0 -1
  285. package/dist/recipe-skills.d.ts.map +0 -1
  286. package/dist/recipe-skills.js.map +0 -1
@@ -1,23 +1,28 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  writeTextFileAtomic
4
- } from "./chunk-QIBGY4IX.js";
4
+ } from "./chunk-H7ARMBV7.js";
5
5
  import {
6
6
  homeConfigCandidates,
7
+ listConfigLayerPaths,
7
8
  pathExists,
8
9
  pathExistsAsync,
9
10
  resolveConfigPath
10
- } from "./chunk-G4H535MI.js";
11
+ } from "./chunk-UYJZJXC2.js";
12
+ import {
13
+ parse,
14
+ printParseErrorCode
15
+ } from "./chunk-T4MQCFIK.js";
11
16
  import {
12
17
  expandHome,
13
18
  resolveEnvPlaceholders
14
- } from "./chunk-EP22XMWK.js";
19
+ } from "./chunk-D6SVCPN6.js";
15
20
  import {
16
21
  resolveLifecycle
17
- } from "./chunk-D2P2IV4H.js";
22
+ } from "./chunk-QJNF3A3F.js";
18
23
  import {
19
24
  external_exports
20
- } from "./chunk-CN5YF3IQ.js";
25
+ } from "./chunk-S5F3HEZZ.js";
21
26
  import {
22
27
  __commonJS,
23
28
  __require,
@@ -2019,14 +2024,14 @@ var require_toml = __commonJS({
2019
2024
  }
2020
2025
  });
2021
2026
 
2022
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config.js
2027
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config.js
2023
2028
  import path6 from "node:path";
2024
2029
 
2025
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config/read-config.js
2026
- import fs2 from "node:fs/promises";
2030
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/read-config.js
2031
+ import fs from "node:fs/promises";
2027
2032
  import path from "node:path";
2028
2033
 
2029
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config-schema.js
2034
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config-schema.js
2030
2035
  var ImportKindSchema = external_exports.enum(["cursor", "claude-code", "claude-desktop", "codex", "windsurf", "opencode", "vscode"]).describe("Supported editor/client configurations to import MCP servers from");
2031
2036
  var DEFAULT_IMPORTS = [
2032
2037
  "cursor",
@@ -2141,996 +2146,10 @@ var RawConfigSchema = external_exports.object({
2141
2146
  imports: external_exports.array(ImportKindSchema).optional().describe("Editor configurations to import servers from. Omit to use defaults, or set to [] to disable imports")
2142
2147
  }).describe("mcporter configuration file schema");
2143
2148
 
2144
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config/imports/shared.js
2145
- import fs from "node:fs/promises";
2146
-
2147
- // node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js
2148
- function createScanner(text, ignoreTrivia = false) {
2149
- const len = text.length;
2150
- let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
2151
- function scanHexDigits(count, exact) {
2152
- let digits = 0;
2153
- let value2 = 0;
2154
- while (digits < count || !exact) {
2155
- let ch = text.charCodeAt(pos);
2156
- if (ch >= 48 && ch <= 57) {
2157
- value2 = value2 * 16 + ch - 48;
2158
- } else if (ch >= 65 && ch <= 70) {
2159
- value2 = value2 * 16 + ch - 65 + 10;
2160
- } else if (ch >= 97 && ch <= 102) {
2161
- value2 = value2 * 16 + ch - 97 + 10;
2162
- } else {
2163
- break;
2164
- }
2165
- pos++;
2166
- digits++;
2167
- }
2168
- if (digits < count) {
2169
- value2 = -1;
2170
- }
2171
- return value2;
2172
- }
2173
- function setPosition(newPosition) {
2174
- pos = newPosition;
2175
- value = "";
2176
- tokenOffset = 0;
2177
- token = 16;
2178
- scanError = 0;
2179
- }
2180
- function scanNumber() {
2181
- let start = pos;
2182
- if (text.charCodeAt(pos) === 48) {
2183
- pos++;
2184
- } else {
2185
- pos++;
2186
- while (pos < text.length && isDigit2(text.charCodeAt(pos))) {
2187
- pos++;
2188
- }
2189
- }
2190
- if (pos < text.length && text.charCodeAt(pos) === 46) {
2191
- pos++;
2192
- if (pos < text.length && isDigit2(text.charCodeAt(pos))) {
2193
- pos++;
2194
- while (pos < text.length && isDigit2(text.charCodeAt(pos))) {
2195
- pos++;
2196
- }
2197
- } else {
2198
- scanError = 3;
2199
- return text.substring(start, pos);
2200
- }
2201
- }
2202
- let end = pos;
2203
- if (pos < text.length && (text.charCodeAt(pos) === 69 || text.charCodeAt(pos) === 101)) {
2204
- pos++;
2205
- if (pos < text.length && text.charCodeAt(pos) === 43 || text.charCodeAt(pos) === 45) {
2206
- pos++;
2207
- }
2208
- if (pos < text.length && isDigit2(text.charCodeAt(pos))) {
2209
- pos++;
2210
- while (pos < text.length && isDigit2(text.charCodeAt(pos))) {
2211
- pos++;
2212
- }
2213
- end = pos;
2214
- } else {
2215
- scanError = 3;
2216
- }
2217
- }
2218
- return text.substring(start, end);
2219
- }
2220
- function scanString() {
2221
- let result = "", start = pos;
2222
- while (true) {
2223
- if (pos >= len) {
2224
- result += text.substring(start, pos);
2225
- scanError = 2;
2226
- break;
2227
- }
2228
- const ch = text.charCodeAt(pos);
2229
- if (ch === 34) {
2230
- result += text.substring(start, pos);
2231
- pos++;
2232
- break;
2233
- }
2234
- if (ch === 92) {
2235
- result += text.substring(start, pos);
2236
- pos++;
2237
- if (pos >= len) {
2238
- scanError = 2;
2239
- break;
2240
- }
2241
- const ch2 = text.charCodeAt(pos++);
2242
- switch (ch2) {
2243
- case 34:
2244
- result += '"';
2245
- break;
2246
- case 92:
2247
- result += "\\";
2248
- break;
2249
- case 47:
2250
- result += "/";
2251
- break;
2252
- case 98:
2253
- result += "\b";
2254
- break;
2255
- case 102:
2256
- result += "\f";
2257
- break;
2258
- case 110:
2259
- result += "\n";
2260
- break;
2261
- case 114:
2262
- result += "\r";
2263
- break;
2264
- case 116:
2265
- result += " ";
2266
- break;
2267
- case 117:
2268
- const ch3 = scanHexDigits(4, true);
2269
- if (ch3 >= 0) {
2270
- result += String.fromCharCode(ch3);
2271
- } else {
2272
- scanError = 4;
2273
- }
2274
- break;
2275
- default:
2276
- scanError = 5;
2277
- }
2278
- start = pos;
2279
- continue;
2280
- }
2281
- if (ch >= 0 && ch <= 31) {
2282
- if (isLineBreak(ch)) {
2283
- result += text.substring(start, pos);
2284
- scanError = 2;
2285
- break;
2286
- } else {
2287
- scanError = 6;
2288
- }
2289
- }
2290
- pos++;
2291
- }
2292
- return result;
2293
- }
2294
- function scanNext() {
2295
- value = "";
2296
- scanError = 0;
2297
- tokenOffset = pos;
2298
- lineStartOffset = lineNumber;
2299
- prevTokenLineStartOffset = tokenLineStartOffset;
2300
- if (pos >= len) {
2301
- tokenOffset = len;
2302
- return token = 17;
2303
- }
2304
- let code = text.charCodeAt(pos);
2305
- if (isWhiteSpace(code)) {
2306
- do {
2307
- pos++;
2308
- value += String.fromCharCode(code);
2309
- code = text.charCodeAt(pos);
2310
- } while (isWhiteSpace(code));
2311
- return token = 15;
2312
- }
2313
- if (isLineBreak(code)) {
2314
- pos++;
2315
- value += String.fromCharCode(code);
2316
- if (code === 13 && text.charCodeAt(pos) === 10) {
2317
- pos++;
2318
- value += "\n";
2319
- }
2320
- lineNumber++;
2321
- tokenLineStartOffset = pos;
2322
- return token = 14;
2323
- }
2324
- switch (code) {
2325
- // tokens: []{}:,
2326
- case 123:
2327
- pos++;
2328
- return token = 1;
2329
- case 125:
2330
- pos++;
2331
- return token = 2;
2332
- case 91:
2333
- pos++;
2334
- return token = 3;
2335
- case 93:
2336
- pos++;
2337
- return token = 4;
2338
- case 58:
2339
- pos++;
2340
- return token = 6;
2341
- case 44:
2342
- pos++;
2343
- return token = 5;
2344
- // strings
2345
- case 34:
2346
- pos++;
2347
- value = scanString();
2348
- return token = 10;
2349
- // comments
2350
- case 47:
2351
- const start = pos - 1;
2352
- if (text.charCodeAt(pos + 1) === 47) {
2353
- pos += 2;
2354
- while (pos < len) {
2355
- if (isLineBreak(text.charCodeAt(pos))) {
2356
- break;
2357
- }
2358
- pos++;
2359
- }
2360
- value = text.substring(start, pos);
2361
- return token = 12;
2362
- }
2363
- if (text.charCodeAt(pos + 1) === 42) {
2364
- pos += 2;
2365
- const safeLength = len - 1;
2366
- let commentClosed = false;
2367
- while (pos < safeLength) {
2368
- const ch = text.charCodeAt(pos);
2369
- if (ch === 42 && text.charCodeAt(pos + 1) === 47) {
2370
- pos += 2;
2371
- commentClosed = true;
2372
- break;
2373
- }
2374
- pos++;
2375
- if (isLineBreak(ch)) {
2376
- if (ch === 13 && text.charCodeAt(pos) === 10) {
2377
- pos++;
2378
- }
2379
- lineNumber++;
2380
- tokenLineStartOffset = pos;
2381
- }
2382
- }
2383
- if (!commentClosed) {
2384
- pos++;
2385
- scanError = 1;
2386
- }
2387
- value = text.substring(start, pos);
2388
- return token = 13;
2389
- }
2390
- value += String.fromCharCode(code);
2391
- pos++;
2392
- return token = 16;
2393
- // numbers
2394
- case 45:
2395
- value += String.fromCharCode(code);
2396
- pos++;
2397
- if (pos === len || !isDigit2(text.charCodeAt(pos))) {
2398
- return token = 16;
2399
- }
2400
- // found a minus, followed by a number so
2401
- // we fall through to proceed with scanning
2402
- // numbers
2403
- case 48:
2404
- case 49:
2405
- case 50:
2406
- case 51:
2407
- case 52:
2408
- case 53:
2409
- case 54:
2410
- case 55:
2411
- case 56:
2412
- case 57:
2413
- value += scanNumber();
2414
- return token = 11;
2415
- // literals and unknown symbols
2416
- default:
2417
- while (pos < len && isUnknownContentCharacter(code)) {
2418
- pos++;
2419
- code = text.charCodeAt(pos);
2420
- }
2421
- if (tokenOffset !== pos) {
2422
- value = text.substring(tokenOffset, pos);
2423
- switch (value) {
2424
- case "true":
2425
- return token = 8;
2426
- case "false":
2427
- return token = 9;
2428
- case "null":
2429
- return token = 7;
2430
- }
2431
- return token = 16;
2432
- }
2433
- value += String.fromCharCode(code);
2434
- pos++;
2435
- return token = 16;
2436
- }
2437
- }
2438
- function isUnknownContentCharacter(code) {
2439
- if (isWhiteSpace(code) || isLineBreak(code)) {
2440
- return false;
2441
- }
2442
- switch (code) {
2443
- case 125:
2444
- case 93:
2445
- case 123:
2446
- case 91:
2447
- case 34:
2448
- case 58:
2449
- case 44:
2450
- case 47:
2451
- return false;
2452
- }
2453
- return true;
2454
- }
2455
- function scanNextNonTrivia() {
2456
- let result;
2457
- do {
2458
- result = scanNext();
2459
- } while (result >= 12 && result <= 15);
2460
- return result;
2461
- }
2462
- return {
2463
- setPosition,
2464
- getPosition: () => pos,
2465
- scan: ignoreTrivia ? scanNextNonTrivia : scanNext,
2466
- getToken: () => token,
2467
- getTokenValue: () => value,
2468
- getTokenOffset: () => tokenOffset,
2469
- getTokenLength: () => pos - tokenOffset,
2470
- getTokenStartLine: () => lineStartOffset,
2471
- getTokenStartCharacter: () => tokenOffset - prevTokenLineStartOffset,
2472
- getTokenError: () => scanError
2473
- };
2474
- }
2475
- function isWhiteSpace(ch) {
2476
- return ch === 32 || ch === 9;
2477
- }
2478
- function isLineBreak(ch) {
2479
- return ch === 10 || ch === 13;
2480
- }
2481
- function isDigit2(ch) {
2482
- return ch >= 48 && ch <= 57;
2483
- }
2484
- var CharacterCodes;
2485
- (function(CharacterCodes2) {
2486
- CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
2487
- CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
2488
- CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
2489
- CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
2490
- CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
2491
- CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
2492
- CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
2493
- CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
2494
- CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
2495
- CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
2496
- CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
2497
- CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
2498
- CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
2499
- CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
2500
- CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
2501
- CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
2502
- CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
2503
- CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
2504
- CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
2505
- CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
2506
- CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
2507
- CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
2508
- CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
2509
- CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
2510
- CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
2511
- CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
2512
- CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
2513
- CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
2514
- CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
2515
- CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
2516
- CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
2517
- CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
2518
- CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
2519
- CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
2520
- CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
2521
- CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
2522
- CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
2523
- CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
2524
- CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
2525
- CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
2526
- CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
2527
- CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
2528
- CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
2529
- CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
2530
- CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
2531
- CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
2532
- CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
2533
- CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
2534
- CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
2535
- CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
2536
- CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
2537
- CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
2538
- CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
2539
- CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
2540
- CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
2541
- CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
2542
- CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
2543
- CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
2544
- CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
2545
- CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
2546
- CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
2547
- CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
2548
- CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
2549
- CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
2550
- CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
2551
- CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
2552
- CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
2553
- CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
2554
- CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
2555
- CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
2556
- CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
2557
- CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
2558
- CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
2559
- CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
2560
- CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
2561
- CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
2562
- CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
2563
- CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
2564
- CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
2565
- CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
2566
- })(CharacterCodes || (CharacterCodes = {}));
2567
-
2568
- // node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js
2569
- var cachedSpaces = new Array(20).fill(0).map((_, index) => {
2570
- return " ".repeat(index);
2571
- });
2572
- var maxCachedValues = 200;
2573
- var cachedBreakLinesWithSpaces = {
2574
- " ": {
2575
- "\n": new Array(maxCachedValues).fill(0).map((_, index) => {
2576
- return "\n" + " ".repeat(index);
2577
- }),
2578
- "\r": new Array(maxCachedValues).fill(0).map((_, index) => {
2579
- return "\r" + " ".repeat(index);
2580
- }),
2581
- "\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
2582
- return "\r\n" + " ".repeat(index);
2583
- })
2584
- },
2585
- " ": {
2586
- "\n": new Array(maxCachedValues).fill(0).map((_, index) => {
2587
- return "\n" + " ".repeat(index);
2588
- }),
2589
- "\r": new Array(maxCachedValues).fill(0).map((_, index) => {
2590
- return "\r" + " ".repeat(index);
2591
- }),
2592
- "\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
2593
- return "\r\n" + " ".repeat(index);
2594
- })
2595
- }
2596
- };
2597
-
2598
- // node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js
2599
- var ParseOptions;
2600
- (function(ParseOptions2) {
2601
- ParseOptions2.DEFAULT = {
2602
- allowTrailingComma: false
2603
- };
2604
- })(ParseOptions || (ParseOptions = {}));
2605
- function parse(text, errors = [], options = ParseOptions.DEFAULT) {
2606
- let currentProperty = null;
2607
- let currentParent = [];
2608
- const previousParents = [];
2609
- function onValue(value) {
2610
- if (Array.isArray(currentParent)) {
2611
- currentParent.push(value);
2612
- } else if (currentProperty !== null) {
2613
- currentParent[currentProperty] = value;
2614
- }
2615
- }
2616
- const visitor = {
2617
- onObjectBegin: () => {
2618
- const object = {};
2619
- onValue(object);
2620
- previousParents.push(currentParent);
2621
- currentParent = object;
2622
- currentProperty = null;
2623
- },
2624
- onObjectProperty: (name) => {
2625
- currentProperty = name;
2626
- },
2627
- onObjectEnd: () => {
2628
- currentParent = previousParents.pop();
2629
- },
2630
- onArrayBegin: () => {
2631
- const array = [];
2632
- onValue(array);
2633
- previousParents.push(currentParent);
2634
- currentParent = array;
2635
- currentProperty = null;
2636
- },
2637
- onArrayEnd: () => {
2638
- currentParent = previousParents.pop();
2639
- },
2640
- onLiteralValue: onValue,
2641
- onError: (error, offset, length) => {
2642
- errors.push({ error, offset, length });
2643
- }
2644
- };
2645
- visit(text, visitor, options);
2646
- return currentParent[0];
2647
- }
2648
- function parseTree(text, errors = [], options = ParseOptions.DEFAULT) {
2649
- let currentParent = { type: "array", offset: -1, length: -1, children: [], parent: void 0 };
2650
- function ensurePropertyComplete(endOffset) {
2651
- if (currentParent.type === "property") {
2652
- currentParent.length = endOffset - currentParent.offset;
2653
- currentParent = currentParent.parent;
2654
- }
2655
- }
2656
- function onValue(valueNode) {
2657
- currentParent.children.push(valueNode);
2658
- return valueNode;
2659
- }
2660
- const visitor = {
2661
- onObjectBegin: (offset) => {
2662
- currentParent = onValue({ type: "object", offset, length: -1, parent: currentParent, children: [] });
2663
- },
2664
- onObjectProperty: (name, offset, length) => {
2665
- currentParent = onValue({ type: "property", offset, length: -1, parent: currentParent, children: [] });
2666
- currentParent.children.push({ type: "string", value: name, offset, length, parent: currentParent });
2667
- },
2668
- onObjectEnd: (offset, length) => {
2669
- ensurePropertyComplete(offset + length);
2670
- currentParent.length = offset + length - currentParent.offset;
2671
- currentParent = currentParent.parent;
2672
- ensurePropertyComplete(offset + length);
2673
- },
2674
- onArrayBegin: (offset, length) => {
2675
- currentParent = onValue({ type: "array", offset, length: -1, parent: currentParent, children: [] });
2676
- },
2677
- onArrayEnd: (offset, length) => {
2678
- currentParent.length = offset + length - currentParent.offset;
2679
- currentParent = currentParent.parent;
2680
- ensurePropertyComplete(offset + length);
2681
- },
2682
- onLiteralValue: (value, offset, length) => {
2683
- onValue({ type: getNodeType(value), offset, length, parent: currentParent, value });
2684
- ensurePropertyComplete(offset + length);
2685
- },
2686
- onSeparator: (sep, offset, length) => {
2687
- if (currentParent.type === "property") {
2688
- if (sep === ":") {
2689
- currentParent.colonOffset = offset;
2690
- } else if (sep === ",") {
2691
- ensurePropertyComplete(offset);
2692
- }
2693
- }
2694
- },
2695
- onError: (error, offset, length) => {
2696
- errors.push({ error, offset, length });
2697
- }
2698
- };
2699
- visit(text, visitor, options);
2700
- const result = currentParent.children[0];
2701
- if (result) {
2702
- delete result.parent;
2703
- }
2704
- return result;
2705
- }
2706
- function visit(text, visitor, options = ParseOptions.DEFAULT) {
2707
- const _scanner = createScanner(text, false);
2708
- const _jsonPath = [];
2709
- let suppressedCallbacks = 0;
2710
- function toNoArgVisit(visitFunction) {
2711
- return visitFunction ? () => suppressedCallbacks === 0 && visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
2712
- }
2713
- function toOneArgVisit(visitFunction) {
2714
- return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
2715
- }
2716
- function toOneArgVisitWithPath(visitFunction) {
2717
- return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
2718
- }
2719
- function toBeginVisit(visitFunction) {
2720
- return visitFunction ? () => {
2721
- if (suppressedCallbacks > 0) {
2722
- suppressedCallbacks++;
2723
- } else {
2724
- let cbReturn = visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice());
2725
- if (cbReturn === false) {
2726
- suppressedCallbacks = 1;
2727
- }
2728
- }
2729
- } : () => true;
2730
- }
2731
- function toEndVisit(visitFunction) {
2732
- return visitFunction ? () => {
2733
- if (suppressedCallbacks > 0) {
2734
- suppressedCallbacks--;
2735
- }
2736
- if (suppressedCallbacks === 0) {
2737
- visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter());
2738
- }
2739
- } : () => true;
2740
- }
2741
- const onObjectBegin = toBeginVisit(visitor.onObjectBegin), onObjectProperty = toOneArgVisitWithPath(visitor.onObjectProperty), onObjectEnd = toEndVisit(visitor.onObjectEnd), onArrayBegin = toBeginVisit(visitor.onArrayBegin), onArrayEnd = toEndVisit(visitor.onArrayEnd), onLiteralValue = toOneArgVisitWithPath(visitor.onLiteralValue), onSeparator = toOneArgVisit(visitor.onSeparator), onComment = toNoArgVisit(visitor.onComment), onError = toOneArgVisit(visitor.onError);
2742
- const disallowComments = options && options.disallowComments;
2743
- const allowTrailingComma = options && options.allowTrailingComma;
2744
- function scanNext() {
2745
- while (true) {
2746
- const token = _scanner.scan();
2747
- switch (_scanner.getTokenError()) {
2748
- case 4:
2749
- handleError(
2750
- 14
2751
- /* ParseErrorCode.InvalidUnicode */
2752
- );
2753
- break;
2754
- case 5:
2755
- handleError(
2756
- 15
2757
- /* ParseErrorCode.InvalidEscapeCharacter */
2758
- );
2759
- break;
2760
- case 3:
2761
- handleError(
2762
- 13
2763
- /* ParseErrorCode.UnexpectedEndOfNumber */
2764
- );
2765
- break;
2766
- case 1:
2767
- if (!disallowComments) {
2768
- handleError(
2769
- 11
2770
- /* ParseErrorCode.UnexpectedEndOfComment */
2771
- );
2772
- }
2773
- break;
2774
- case 2:
2775
- handleError(
2776
- 12
2777
- /* ParseErrorCode.UnexpectedEndOfString */
2778
- );
2779
- break;
2780
- case 6:
2781
- handleError(
2782
- 16
2783
- /* ParseErrorCode.InvalidCharacter */
2784
- );
2785
- break;
2786
- }
2787
- switch (token) {
2788
- case 12:
2789
- case 13:
2790
- if (disallowComments) {
2791
- handleError(
2792
- 10
2793
- /* ParseErrorCode.InvalidCommentToken */
2794
- );
2795
- } else {
2796
- onComment();
2797
- }
2798
- break;
2799
- case 16:
2800
- handleError(
2801
- 1
2802
- /* ParseErrorCode.InvalidSymbol */
2803
- );
2804
- break;
2805
- case 15:
2806
- case 14:
2807
- break;
2808
- default:
2809
- return token;
2810
- }
2811
- }
2812
- }
2813
- function handleError(error, skipUntilAfter = [], skipUntil = []) {
2814
- onError(error);
2815
- if (skipUntilAfter.length + skipUntil.length > 0) {
2816
- let token = _scanner.getToken();
2817
- while (token !== 17) {
2818
- if (skipUntilAfter.indexOf(token) !== -1) {
2819
- scanNext();
2820
- break;
2821
- } else if (skipUntil.indexOf(token) !== -1) {
2822
- break;
2823
- }
2824
- token = scanNext();
2825
- }
2826
- }
2827
- }
2828
- function parseString(isValue) {
2829
- const value = _scanner.getTokenValue();
2830
- if (isValue) {
2831
- onLiteralValue(value);
2832
- } else {
2833
- onObjectProperty(value);
2834
- _jsonPath.push(value);
2835
- }
2836
- scanNext();
2837
- return true;
2838
- }
2839
- function parseLiteral() {
2840
- switch (_scanner.getToken()) {
2841
- case 11:
2842
- const tokenValue = _scanner.getTokenValue();
2843
- let value = Number(tokenValue);
2844
- if (isNaN(value)) {
2845
- handleError(
2846
- 2
2847
- /* ParseErrorCode.InvalidNumberFormat */
2848
- );
2849
- value = 0;
2850
- }
2851
- onLiteralValue(value);
2852
- break;
2853
- case 7:
2854
- onLiteralValue(null);
2855
- break;
2856
- case 8:
2857
- onLiteralValue(true);
2858
- break;
2859
- case 9:
2860
- onLiteralValue(false);
2861
- break;
2862
- default:
2863
- return false;
2864
- }
2865
- scanNext();
2866
- return true;
2867
- }
2868
- function parseProperty() {
2869
- if (_scanner.getToken() !== 10) {
2870
- handleError(3, [], [
2871
- 2,
2872
- 5
2873
- /* SyntaxKind.CommaToken */
2874
- ]);
2875
- return false;
2876
- }
2877
- parseString(false);
2878
- if (_scanner.getToken() === 6) {
2879
- onSeparator(":");
2880
- scanNext();
2881
- if (!parseValue()) {
2882
- handleError(4, [], [
2883
- 2,
2884
- 5
2885
- /* SyntaxKind.CommaToken */
2886
- ]);
2887
- }
2888
- } else {
2889
- handleError(5, [], [
2890
- 2,
2891
- 5
2892
- /* SyntaxKind.CommaToken */
2893
- ]);
2894
- }
2895
- _jsonPath.pop();
2896
- return true;
2897
- }
2898
- function parseObject() {
2899
- onObjectBegin();
2900
- scanNext();
2901
- let needsComma = false;
2902
- while (_scanner.getToken() !== 2 && _scanner.getToken() !== 17) {
2903
- if (_scanner.getToken() === 5) {
2904
- if (!needsComma) {
2905
- handleError(4, [], []);
2906
- }
2907
- onSeparator(",");
2908
- scanNext();
2909
- if (_scanner.getToken() === 2 && allowTrailingComma) {
2910
- break;
2911
- }
2912
- } else if (needsComma) {
2913
- handleError(6, [], []);
2914
- }
2915
- if (!parseProperty()) {
2916
- handleError(4, [], [
2917
- 2,
2918
- 5
2919
- /* SyntaxKind.CommaToken */
2920
- ]);
2921
- }
2922
- needsComma = true;
2923
- }
2924
- onObjectEnd();
2925
- if (_scanner.getToken() !== 2) {
2926
- handleError(7, [
2927
- 2
2928
- /* SyntaxKind.CloseBraceToken */
2929
- ], []);
2930
- } else {
2931
- scanNext();
2932
- }
2933
- return true;
2934
- }
2935
- function parseArray() {
2936
- onArrayBegin();
2937
- scanNext();
2938
- let isFirstElement = true;
2939
- let needsComma = false;
2940
- while (_scanner.getToken() !== 4 && _scanner.getToken() !== 17) {
2941
- if (_scanner.getToken() === 5) {
2942
- if (!needsComma) {
2943
- handleError(4, [], []);
2944
- }
2945
- onSeparator(",");
2946
- scanNext();
2947
- if (_scanner.getToken() === 4 && allowTrailingComma) {
2948
- break;
2949
- }
2950
- } else if (needsComma) {
2951
- handleError(6, [], []);
2952
- }
2953
- if (isFirstElement) {
2954
- _jsonPath.push(0);
2955
- isFirstElement = false;
2956
- } else {
2957
- _jsonPath[_jsonPath.length - 1]++;
2958
- }
2959
- if (!parseValue()) {
2960
- handleError(4, [], [
2961
- 4,
2962
- 5
2963
- /* SyntaxKind.CommaToken */
2964
- ]);
2965
- }
2966
- needsComma = true;
2967
- }
2968
- onArrayEnd();
2969
- if (!isFirstElement) {
2970
- _jsonPath.pop();
2971
- }
2972
- if (_scanner.getToken() !== 4) {
2973
- handleError(8, [
2974
- 4
2975
- /* SyntaxKind.CloseBracketToken */
2976
- ], []);
2977
- } else {
2978
- scanNext();
2979
- }
2980
- return true;
2981
- }
2982
- function parseValue() {
2983
- switch (_scanner.getToken()) {
2984
- case 3:
2985
- return parseArray();
2986
- case 1:
2987
- return parseObject();
2988
- case 10:
2989
- return parseString(true);
2990
- default:
2991
- return parseLiteral();
2992
- }
2993
- }
2994
- scanNext();
2995
- if (_scanner.getToken() === 17) {
2996
- if (options.allowEmptyContent) {
2997
- return true;
2998
- }
2999
- handleError(4, [], []);
3000
- return false;
3001
- }
3002
- if (!parseValue()) {
3003
- handleError(4, [], []);
3004
- return false;
3005
- }
3006
- if (_scanner.getToken() !== 17) {
3007
- handleError(9, [], []);
3008
- }
3009
- return true;
3010
- }
3011
- function getNodeType(value) {
3012
- switch (typeof value) {
3013
- case "boolean":
3014
- return "boolean";
3015
- case "number":
3016
- return "number";
3017
- case "string":
3018
- return "string";
3019
- case "object": {
3020
- if (!value) {
3021
- return "null";
3022
- } else if (Array.isArray(value)) {
3023
- return "array";
3024
- }
3025
- return "object";
3026
- }
3027
- default:
3028
- return "null";
3029
- }
3030
- }
3031
-
3032
- // node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js
3033
- var ScanError;
3034
- (function(ScanError2) {
3035
- ScanError2[ScanError2["None"] = 0] = "None";
3036
- ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
3037
- ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
3038
- ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
3039
- ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
3040
- ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
3041
- ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
3042
- })(ScanError || (ScanError = {}));
3043
- var SyntaxKind;
3044
- (function(SyntaxKind2) {
3045
- SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
3046
- SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
3047
- SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
3048
- SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
3049
- SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
3050
- SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
3051
- SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
3052
- SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
3053
- SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
3054
- SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
3055
- SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
3056
- SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
3057
- SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
3058
- SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
3059
- SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
3060
- SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
3061
- SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
3062
- })(SyntaxKind || (SyntaxKind = {}));
3063
- var parse2 = parse;
3064
- var parseTree2 = parseTree;
3065
- var ParseErrorCode;
3066
- (function(ParseErrorCode2) {
3067
- ParseErrorCode2[ParseErrorCode2["InvalidSymbol"] = 1] = "InvalidSymbol";
3068
- ParseErrorCode2[ParseErrorCode2["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
3069
- ParseErrorCode2[ParseErrorCode2["PropertyNameExpected"] = 3] = "PropertyNameExpected";
3070
- ParseErrorCode2[ParseErrorCode2["ValueExpected"] = 4] = "ValueExpected";
3071
- ParseErrorCode2[ParseErrorCode2["ColonExpected"] = 5] = "ColonExpected";
3072
- ParseErrorCode2[ParseErrorCode2["CommaExpected"] = 6] = "CommaExpected";
3073
- ParseErrorCode2[ParseErrorCode2["CloseBraceExpected"] = 7] = "CloseBraceExpected";
3074
- ParseErrorCode2[ParseErrorCode2["CloseBracketExpected"] = 8] = "CloseBracketExpected";
3075
- ParseErrorCode2[ParseErrorCode2["EndOfFileExpected"] = 9] = "EndOfFileExpected";
3076
- ParseErrorCode2[ParseErrorCode2["InvalidCommentToken"] = 10] = "InvalidCommentToken";
3077
- ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
3078
- ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
3079
- ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
3080
- ParseErrorCode2[ParseErrorCode2["InvalidUnicode"] = 14] = "InvalidUnicode";
3081
- ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
3082
- ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
3083
- })(ParseErrorCode || (ParseErrorCode = {}));
3084
- function printParseErrorCode(code) {
3085
- switch (code) {
3086
- case 1:
3087
- return "InvalidSymbol";
3088
- case 2:
3089
- return "InvalidNumberFormat";
3090
- case 3:
3091
- return "PropertyNameExpected";
3092
- case 4:
3093
- return "ValueExpected";
3094
- case 5:
3095
- return "ColonExpected";
3096
- case 6:
3097
- return "CommaExpected";
3098
- case 7:
3099
- return "CloseBraceExpected";
3100
- case 8:
3101
- return "CloseBracketExpected";
3102
- case 9:
3103
- return "EndOfFileExpected";
3104
- case 10:
3105
- return "InvalidCommentToken";
3106
- case 11:
3107
- return "UnexpectedEndOfComment";
3108
- case 12:
3109
- return "UnexpectedEndOfString";
3110
- case 13:
3111
- return "UnexpectedEndOfNumber";
3112
- case 14:
3113
- return "InvalidUnicode";
3114
- case 15:
3115
- return "InvalidEscapeCharacter";
3116
- case 16:
3117
- return "InvalidCharacter";
3118
- }
3119
- return "<unknown ParseErrorCode>";
3120
- }
3121
-
3122
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config/imports/shared.js
3123
- async function fileExists(filePath) {
3124
- try {
3125
- await fs.access(filePath);
3126
- return true;
3127
- } catch {
3128
- return false;
3129
- }
3130
- }
2149
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/imports/shared.js
3131
2150
  function parseJsonBuffer(buffer) {
3132
2151
  const errors = [];
3133
- const parsed = parse2(buffer, errors, { allowTrailingComma: true });
2152
+ const parsed = parse(buffer, errors, { allowTrailingComma: true });
3134
2153
  const first = errors[0];
3135
2154
  if (first) {
3136
2155
  const message = printParseErrorCode(first.error);
@@ -3142,7 +2161,7 @@ function isRecord(value) {
3142
2161
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
3143
2162
  }
3144
2163
 
3145
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config/read-config.js
2164
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/read-config.js
3146
2165
  async function loadConfigLayers(options, rootDir) {
3147
2166
  const explicitPath = options.configPath ?? process.env.MCPORTER_CONFIG;
3148
2167
  if (explicitPath) {
@@ -3170,7 +2189,7 @@ async function readConfigFile(configPath, explicit) {
3170
2189
  return { mcpServers: {} };
3171
2190
  }
3172
2191
  try {
3173
- const buffer = await fs2.readFile(configPath, "utf8");
2192
+ const buffer = await fs.readFile(configPath, "utf8");
3174
2193
  return RawConfigSchema.parse(parseJsonBuffer(buffer));
3175
2194
  } catch (error) {
3176
2195
  if (!explicit && isMissingConfigError(error)) {
@@ -3209,12 +2228,12 @@ function includesErrnoMessage(error, code) {
3209
2228
  return typeof message === "string" && message.includes(code);
3210
2229
  }
3211
2230
 
3212
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config/imports/external.js
2231
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/imports/external.js
3213
2232
  var import_toml = __toESM(require_toml(), 1);
3214
- import fs3 from "node:fs/promises";
2233
+ import fs2 from "node:fs/promises";
3215
2234
  import path3 from "node:path";
3216
2235
 
3217
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config/imports/paths-utils.js
2236
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/imports/paths-utils.js
3218
2237
  import os from "node:os";
3219
2238
  import path2 from "node:path";
3220
2239
  function normalizeProjectPath(input) {
@@ -3242,12 +2261,12 @@ function pathsEqual(a, b) {
3242
2261
  return a === b;
3243
2262
  }
3244
2263
 
3245
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config/imports/external.js
2264
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/imports/external.js
3246
2265
  async function readExternalEntries(filePath, options = {}) {
3247
- if (!await fileExists(filePath)) {
2266
+ if (!await pathExistsAsync(filePath)) {
3248
2267
  return null;
3249
2268
  }
3250
- const buffer = await fs3.readFile(filePath, "utf8");
2269
+ const buffer = await fs2.readFile(filePath, "utf8");
3251
2270
  if (!buffer.trim()) {
3252
2271
  return /* @__PURE__ */ new Map();
3253
2272
  }
@@ -3336,38 +2355,14 @@ function convertExternalEntry(value) {
3336
2355
  if (tokenCacheDir) {
3337
2356
  result.tokenCacheDir = tokenCacheDir;
3338
2357
  }
3339
- const clientName = asString(value.clientName ?? value.client_name);
3340
- if (clientName) {
3341
- result.clientName = clientName;
3342
- }
3343
- const protocolVersion = asString(value.protocolVersion ?? value.protocol_version);
3344
- if (protocolVersion) {
3345
- result.protocolVersion = protocolVersion;
3346
- }
3347
- const oauthClientId = asString(value.oauthClientId ?? value.oauth_client_id);
3348
- if (oauthClientId) {
3349
- result.oauthClientId = oauthClientId;
3350
- }
3351
- const oauthClientSecret = asString(value.oauthClientSecret ?? value.oauth_client_secret);
3352
- if (oauthClientSecret) {
3353
- result.oauthClientSecret = oauthClientSecret;
3354
- }
3355
- const oauthClientSecretEnv = asString(value.oauthClientSecretEnv ?? value.oauth_client_secret_env);
3356
- if (oauthClientSecretEnv) {
3357
- result.oauthClientSecretEnv = oauthClientSecretEnv;
3358
- }
3359
- const oauthTokenEndpointAuthMethod = asString(value.oauthTokenEndpointAuthMethod ?? value.oauth_token_endpoint_auth_method);
3360
- if (oauthTokenEndpointAuthMethod) {
3361
- result.oauthTokenEndpointAuthMethod = oauthTokenEndpointAuthMethod;
3362
- }
3363
- const oauthClientMetadataUrl = asString(value.oauthClientMetadataUrl ?? value.oauth_client_metadata_url);
3364
- if (oauthClientMetadataUrl) {
3365
- result.oauthClientMetadataUrl = oauthClientMetadataUrl;
3366
- }
3367
- const httpFetch = asString(value.httpFetch ?? value.http_fetch);
3368
- if (httpFetch) {
3369
- result.httpFetch = httpFetch;
3370
- }
2358
+ copyString(value, result, "clientName", "client_name");
2359
+ copyString(value, result, "protocolVersion", "protocol_version");
2360
+ copyString(value, result, "oauthClientId", "oauth_client_id");
2361
+ copyString(value, result, "oauthClientSecret", "oauth_client_secret");
2362
+ copyString(value, result, "oauthClientSecretEnv", "oauth_client_secret_env");
2363
+ copyString(value, result, "oauthTokenEndpointAuthMethod", "oauth_token_endpoint_auth_method");
2364
+ copyString(value, result, "oauthClientMetadataUrl", "oauth_client_metadata_url");
2365
+ copyString(value, result, "httpFetch", "http_fetch");
3371
2366
  const refresh = asRefresh(value.refresh);
3372
2367
  if (refresh) {
3373
2368
  result.refresh = refresh;
@@ -3518,7 +2513,7 @@ function shouldIgnoreParseError(error) {
3518
2513
  return "fromTOML" in error;
3519
2514
  }
3520
2515
 
3521
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config/imports/paths.js
2516
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/imports/paths.js
3522
2517
  import os2 from "node:os";
3523
2518
  import path4 from "node:path";
3524
2519
  function pathsForImport(kind, rootDir) {
@@ -3652,12 +2647,11 @@ function dedupePaths(paths) {
3652
2647
  return result;
3653
2648
  }
3654
2649
 
3655
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config-normalize.js
3656
- import fs4 from "node:fs";
2650
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config-normalize.js
2651
+ import fs3 from "node:fs";
3657
2652
  import path5 from "node:path";
3658
2653
  function normalizeServerEntry(name, raw, baseDir, source, sources, context = {}) {
3659
- const resolvedRaw = resolveConfigEnvPlaceholders(name, raw, context.env);
3660
- raw = resolvedRaw;
2654
+ raw = resolveConfigEnvPlaceholders(name, raw, context.env);
3661
2655
  const description = raw.description;
3662
2656
  const env = raw.env ? { ...raw.env } : void 0;
3663
2657
  const auth = normalizeAuth(raw.auth);
@@ -3673,7 +2667,7 @@ function normalizeServerEntry(name, raw, baseDir, source, sources, context = {})
3673
2667
  const oauthClientMetadataUrl = raw.oauthClientMetadataUrl ?? raw.oauth_client_metadata_url ?? void 0;
3674
2668
  const oauthScope = raw.oauthScope ?? raw.oauth_scope ?? void 0;
3675
2669
  const refresh = normalizeRefresh(raw.refresh);
3676
- const httpFetch = normalizeHttpFetch(raw.httpFetch ?? raw.http_fetch);
2670
+ const httpFetch = raw.httpFetch ?? raw.http_fetch;
3677
2671
  const oauthCommandRaw = raw.oauthCommand ?? raw.oauth_command;
3678
2672
  const oauthCommand = oauthCommandRaw ? { args: [...oauthCommandRaw.args] } : void 0;
3679
2673
  const headers = buildHeaders(raw);
@@ -3792,9 +2786,6 @@ function normalizeRefresh(raw) {
3792
2786
  accessTokenEnv: raw?.accessTokenEnv ?? raw?.access_token_env
3793
2787
  };
3794
2788
  }
3795
- function normalizeHttpFetch(value) {
3796
- return value;
3797
- }
3798
2789
  function normalizePath(input, home) {
3799
2790
  if (!input) {
3800
2791
  return void 0;
@@ -3849,7 +2840,7 @@ function isExistingCommandPath(value, baseDir, home) {
3849
2840
  const expanded = expandHome(trimmed, home);
3850
2841
  const resolved = path5.isAbsolute(expanded) ? expanded : path5.resolve(baseDir, expanded);
3851
2842
  try {
3852
- return fs4.statSync(resolved).isFile();
2843
+ return fs3.statSync(resolved).isFile();
3853
2844
  } catch {
3854
2845
  return false;
3855
2846
  }
@@ -3938,7 +2929,7 @@ function normalizeLogging(raw) {
3938
2929
  return void 0;
3939
2930
  }
3940
2931
 
3941
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/config.js
2932
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config.js
3942
2933
  async function buildServerDefinitions(layers, rootDir) {
3943
2934
  const merged = /* @__PURE__ */ new Map();
3944
2935
  for (const layer of layers) {
@@ -3976,16 +2967,11 @@ async function buildServerDefinitions(layers, rootDir) {
3976
2967
  const source = { kind: "local", path: layer.path };
3977
2968
  const parsed = RawEntrySchema.parse(entryRaw);
3978
2969
  const existing = merged.get(name);
3979
- if (existing) {
3980
- const sources = [source, ...existing.sources];
3981
- merged.set(name, { raw: parsed, baseDir: path6.dirname(layer.path), source, sources });
3982
- continue;
3983
- }
3984
2970
  merged.set(name, {
3985
2971
  raw: parsed,
3986
2972
  baseDir: path6.dirname(layer.path),
3987
2973
  source,
3988
- sources: [source]
2974
+ sources: [source, ...existing?.sources ?? []]
3989
2975
  });
3990
2976
  }
3991
2977
  }
@@ -4028,6 +3014,9 @@ async function loadRawConfig(options = {}) {
4028
3014
  const config = await readConfigFile(resolved.path, resolved.explicit);
4029
3015
  return { config, ...resolved };
4030
3016
  }
3017
+ async function listConfigLayerPaths2(options = {}, rootDir = process.cwd()) {
3018
+ return await listConfigLayerPaths(options, rootDir);
3019
+ }
4031
3020
  async function writeRawConfig(targetPath, config) {
4032
3021
  const serialized = `${JSON.stringify(config, null, 2)}
4033
3022
  `;
@@ -4039,7 +3028,6 @@ function resolveConfigPath2(configPath, rootDir) {
4039
3028
 
4040
3029
  export {
4041
3030
  RawEntrySchema,
4042
- parseTree2 as parseTree,
4043
3031
  readConfigFile,
4044
3032
  readExternalEntries,
4045
3033
  pathsForImport,
@@ -4047,6 +3035,7 @@ export {
4047
3035
  __configInternals,
4048
3036
  loadServerDefinitions,
4049
3037
  loadRawConfig,
3038
+ listConfigLayerPaths2 as listConfigLayerPaths,
4050
3039
  writeRawConfig,
4051
3040
  resolveConfigPath2 as resolveConfigPath
4052
3041
  };