@introspection-ai/recipes 0.26.0 → 0.27.1

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 (280) 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.js +8 -8
  173. package/dist/pi-extension.js.map +1 -1
  174. package/dist/{recipe-agent.d.ts → recipe/agent.d.ts} +3 -3
  175. package/dist/recipe/agent.d.ts.map +1 -0
  176. package/dist/{recipe-agent.js → recipe/agent.js} +5 -5
  177. package/dist/recipe/agent.js.map +1 -0
  178. package/dist/{recipe-extensions.d.ts → recipe/extensions.d.ts} +1 -1
  179. package/dist/recipe/extensions.d.ts.map +1 -0
  180. package/dist/{recipe-extensions.js → recipe/extensions.js} +1 -1
  181. package/dist/recipe/extensions.js.map +1 -0
  182. package/dist/{recipe-mcp-config.d.ts → recipe/mcp-config.d.ts} +2 -2
  183. package/dist/recipe/mcp-config.d.ts.map +1 -0
  184. package/dist/{recipe-mcp-config.js → recipe/mcp-config.js} +1 -1
  185. package/dist/recipe/mcp-config.js.map +1 -0
  186. package/dist/{recipe-model.d.ts → recipe/model.d.ts} +1 -1
  187. package/dist/recipe/model.d.ts.map +1 -0
  188. package/dist/{recipe-model.js → recipe/model.js} +1 -1
  189. package/dist/recipe/model.js.map +1 -0
  190. package/dist/{recipe-package.d.ts → recipe/package.d.ts} +1 -1
  191. package/dist/recipe/package.d.ts.map +1 -0
  192. package/dist/{recipe-package.js → recipe/package.js} +1 -1
  193. package/dist/recipe/package.js.map +1 -0
  194. package/dist/recipe/resolve.d.ts +6 -6
  195. package/dist/recipe/resolve.d.ts.map +1 -1
  196. package/dist/recipe/resolve.js +4 -4
  197. package/dist/recipe/resolve.js.map +1 -1
  198. package/dist/{recipe-session.d.ts → recipe/session.d.ts} +1 -1
  199. package/dist/recipe/session.d.ts.map +1 -0
  200. package/dist/{recipe-session.js → recipe/session.js} +1 -1
  201. package/dist/recipe/session.js.map +1 -0
  202. package/dist/{recipe-skills.d.ts → recipe/skills.d.ts} +1 -1
  203. package/dist/recipe/skills.d.ts.map +1 -0
  204. package/dist/{recipe-skills.js → recipe/skills.js} +2 -2
  205. package/dist/recipe/skills.js.map +1 -0
  206. package/dist/run-controller.js +2 -2
  207. package/dist/session.d.ts +1 -1
  208. package/dist/session.d.ts.map +1 -1
  209. package/dist/session.js +5 -5
  210. package/dist/session.js.map +1 -1
  211. package/docs/channels.md +1 -1
  212. package/docs/recipe-format.md +1 -1
  213. package/docs/slack.md +1 -1
  214. package/package.json +6 -6
  215. package/dist/child-agent-completions.d.ts.map +0 -1
  216. package/dist/child-agent-completions.js.map +0 -1
  217. package/dist/child-agent-store.d.ts.map +0 -1
  218. package/dist/child-agent-store.js.map +0 -1
  219. package/dist/child-agent.d.ts.map +0 -1
  220. package/dist/child-agent.js.map +0 -1
  221. package/dist/child-session.d.ts.map +0 -1
  222. package/dist/child-session.js.map +0 -1
  223. package/dist/mcp-catalog.d.ts.map +0 -1
  224. package/dist/mcp-catalog.js.map +0 -1
  225. package/dist/mcp-chunks/call-arguments-S4EGFKUQ.js +0 -15
  226. package/dist/mcp-chunks/chunk-YVH36MGQ.js +0 -92
  227. package/dist/mcp-chunks/client-G33HPQAC.js +0 -29
  228. package/dist/mcp-chunks/daemon-command-JLVHGWHB.js +0 -29
  229. package/dist/mcp-chunks/generated-daemon-runtime-DC6IL7E7.js +0 -29
  230. package/dist/mcp-chunks/runtime-ZNFPZXKE.js +0 -36
  231. package/dist/mcp-chunks/webapi-4GWO2UBA.js +0 -3508
  232. package/dist/mcp-cli-core.d.ts.map +0 -1
  233. package/dist/mcp-cli-core.js.map +0 -1
  234. package/dist/mcp-cli-help.d.ts +0 -2
  235. package/dist/mcp-cli-help.d.ts.map +0 -1
  236. package/dist/mcp-cli-help.js +0 -36
  237. package/dist/mcp-cli-help.js.map +0 -1
  238. package/dist/mcp-cli-policy.d.ts.map +0 -1
  239. package/dist/mcp-cli-policy.js.map +0 -1
  240. package/dist/mcp-cli.d.ts +0 -3
  241. package/dist/mcp-cli.d.ts.map +0 -1
  242. package/dist/mcp-cli.js.map +0 -1
  243. package/dist/mcp-client.d.ts +0 -3
  244. package/dist/mcp-client.d.ts.map +0 -1
  245. package/dist/mcp-client.js.map +0 -1
  246. package/dist/mcp-command-context.d.ts.map +0 -1
  247. package/dist/mcp-command-context.js.map +0 -1
  248. package/dist/mcp-contract.d.ts.map +0 -1
  249. package/dist/mcp-contract.js.map +0 -1
  250. package/dist/mcp-daemon-client.d.ts.map +0 -1
  251. package/dist/mcp-daemon-client.js.map +0 -1
  252. package/dist/mcp-daemon-protocol.d.ts.map +0 -1
  253. package/dist/mcp-daemon-protocol.js.map +0 -1
  254. package/dist/mcp-daemon.d.ts +0 -3
  255. package/dist/mcp-daemon.d.ts.map +0 -1
  256. package/dist/mcp-policy.d.ts.map +0 -1
  257. package/dist/mcp-policy.js.map +0 -1
  258. package/dist/mcp-run-worker.d.ts +0 -2
  259. package/dist/mcp-run-worker.d.ts.map +0 -1
  260. package/dist/mcp-run-worker.js.map +0 -1
  261. package/dist/mcp-tools.d.ts.map +0 -1
  262. package/dist/mcp-tools.js.map +0 -1
  263. package/dist/mcp-trace-context.d.ts.map +0 -1
  264. package/dist/mcp-trace-context.js.map +0 -1
  265. package/dist/mcp.d.ts.map +0 -1
  266. package/dist/mcp.js.map +0 -1
  267. package/dist/recipe-agent.d.ts.map +0 -1
  268. package/dist/recipe-agent.js.map +0 -1
  269. package/dist/recipe-extensions.d.ts.map +0 -1
  270. package/dist/recipe-extensions.js.map +0 -1
  271. package/dist/recipe-mcp-config.d.ts.map +0 -1
  272. package/dist/recipe-mcp-config.js.map +0 -1
  273. package/dist/recipe-model.d.ts.map +0 -1
  274. package/dist/recipe-model.js.map +0 -1
  275. package/dist/recipe-package.d.ts.map +0 -1
  276. package/dist/recipe-package.js.map +0 -1
  277. package/dist/recipe-session.d.ts.map +0 -1
  278. package/dist/recipe-session.js.map +0 -1
  279. package/dist/recipe-skills.d.ts.map +0 -1
  280. package/dist/recipe-skills.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
 
3
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/process-utils.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/process-utils.js
4
4
  function isProcessRunning(pid) {
5
5
  if (!Number.isInteger(pid) || pid <= 0) {
6
6
  return false;
@@ -13,11 +13,12 @@ function isProcessRunning(pid) {
13
13
  }
14
14
  }
15
15
 
16
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/fs-json.js
16
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/fs-json.js
17
17
  import crypto from "node:crypto";
18
18
  import { constants } from "node:fs";
19
19
  import fs from "node:fs/promises";
20
20
  import path from "node:path";
21
+ import { setTimeout as sleep } from "node:timers/promises";
21
22
  var DEFAULT_LOCK_TIMEOUT_MS = 3e4;
22
23
  var LOCK_POLL_MS = 25;
23
24
  var MALFORMED_LOCK_STALE_MS = 1e3;
@@ -128,15 +129,9 @@ function isPermissionError(error) {
128
129
  const code = error.code;
129
130
  return code === "EACCES" || code === "EPERM";
130
131
  }
131
- async function sleep(ms) {
132
- await new Promise((resolve) => setTimeout(resolve, ms));
133
- }
134
132
  async function withLocalLock(key, timeoutMs, task) {
135
133
  const previous = localLockTails.get(key) ?? Promise.resolve();
136
- let release;
137
- const current = new Promise((resolve) => {
138
- release = resolve;
139
- });
134
+ const { promise: current, resolve: release } = Promise.withResolvers();
140
135
  const tail = previous.then(() => current);
141
136
  localLockTails.set(key, tail);
142
137
  try {
@@ -1,21 +1,21 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  CliUsageError
4
- } from "./chunk-LTR626QF.js";
4
+ } from "./chunk-QALB3DRW.js";
5
5
  import {
6
6
  consumeTimeoutFlag
7
- } from "./chunk-IO2IMWYS.js";
7
+ } from "./chunk-KOWNVUL2.js";
8
8
  import {
9
9
  extractEphemeralServerFlags
10
- } from "./chunk-BC2HDCYV.js";
10
+ } from "./chunk-LCBDVFVA.js";
11
11
  import {
12
12
  splitHttpToolSelector
13
- } from "./chunk-CZ43ZITK.js";
13
+ } from "./chunk-2P2HVZ3G.js";
14
14
  import {
15
15
  consumeOutputFormat
16
- } from "./chunk-TFU4NKFJ.js";
16
+ } from "./chunk-5B7GRMUK.js";
17
17
 
18
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/call-arguments.js
18
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/call-arguments.js
19
19
  import fs from "node:fs";
20
20
 
21
21
  // node_modules/.pnpm/acorn@8.18.0/node_modules/acorn/dist/acorn.mjs
@@ -5715,7 +5715,7 @@ function parseExpressionAt2(input, pos, options) {
5715
5715
  return Parser.parseExpressionAt(input, pos, options);
5716
5716
  }
5717
5717
 
5718
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/call-expression-parser.js
5718
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/call-expression-parser.js
5719
5719
  var ACORN_OPTIONS = {
5720
5720
  ecmaVersion: "latest",
5721
5721
  sourceType: "module"
@@ -5789,7 +5789,7 @@ function splitPrefix(prefix) {
5789
5789
  return { server: first, tool: rest.join(".") };
5790
5790
  }
5791
5791
  function extractObject(expression) {
5792
- const result = {};
5792
+ const entries = [];
5793
5793
  for (const property of expression.properties) {
5794
5794
  if (property.type !== "Property") {
5795
5795
  throw new Error("Unsupported property type in call expression.");
@@ -5806,9 +5806,9 @@ function extractObject(expression) {
5806
5806
  throw new Error(`Unsupported argument expression: ${rawValue ? rawValue.type : "null"}.`);
5807
5807
  }
5808
5808
  const value = extractValue(rawValue);
5809
- result[key] = value;
5809
+ entries.push([key, value]);
5810
5810
  }
5811
- return result;
5811
+ return Object.fromEntries(entries);
5812
5812
  }
5813
5813
  function extractKey(property) {
5814
5814
  if (property.key.type === "Identifier") {
@@ -5885,7 +5885,7 @@ function isSupportedValue(node) {
5885
5885
  return type === "Literal" || type === "ArrayExpression" || type === "ObjectExpression" || type === "UnaryExpression";
5886
5886
  }
5887
5887
 
5888
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/call-argument-expression.js
5888
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/call-argument-expression.js
5889
5889
  function parseLeadingCallExpression(rawToken) {
5890
5890
  try {
5891
5891
  return extractHttpCallExpression(rawToken) ?? parseCallExpressionFragment(rawToken);
@@ -5935,7 +5935,7 @@ function buildCallExpressionUsageError(error) {
5935
5935
  return new CliUsageError(lines.join("\n"));
5936
5936
  }
5937
5937
 
5938
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/call-argument-values.js
5938
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/call-argument-values.js
5939
5939
  function parseKeyValueToken(token, nextToken) {
5940
5940
  const eqIndex = token.indexOf("=");
5941
5941
  if (eqIndex !== -1) {
@@ -6019,7 +6019,7 @@ function warnMissingNamedArgumentValue(key) {
6019
6019
  console.warn(lines.join(" "));
6020
6020
  }
6021
6021
 
6022
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/call-help.js
6022
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/call-help.js
6023
6023
  var CALL_HELP_ARGUMENT_LINES = [
6024
6024
  " key=value / key:value Flag-style named arguments.",
6025
6025
  " key=@path Read a UTF-8 string value from a file; use @@ for a literal @.",
@@ -6062,24 +6062,28 @@ function buildUnvalidatedCallFlagMessage(token, server, tool) {
6062
6062
  ].join("\n");
6063
6063
  }
6064
6064
 
6065
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/call-arguments.js
6066
- var FLAG_HANDLERS = {
6067
- "--server": handleServerFlag,
6068
- "--mcp": handleServerFlag,
6069
- "--tool": handleToolFlag,
6070
- "--timeout": handleTimeoutFlag,
6071
- "--tail-log": handleTailLogFlag,
6072
- "--no-oauth": handleDisableOAuthFlag,
6073
- "--save-images": handleSaveImagesFlag,
6074
- "--yes": handleNoopFlag,
6075
- "--raw-strings": handleRawStringsFlag,
6076
- "--no-coerce": handleNoCoerceFlag,
6077
- "--args": handleArgsFlag,
6078
- "--params": handleParamsFlag,
6079
- "--json": handleJsonArgsFlag
6080
- };
6065
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/call-arguments.js
6066
+ var FLAG_HANDLERS = /* @__PURE__ */ new Map([
6067
+ ["--server", handleServerFlag],
6068
+ ["--mcp", handleServerFlag],
6069
+ ["--tool", handleToolFlag],
6070
+ ["--timeout", handleTimeoutFlag],
6071
+ ["--tail-log", handleTailLogFlag],
6072
+ ["--no-oauth", handleDisableOAuthFlag],
6073
+ ["--save-images", handleSaveImagesFlag],
6074
+ ["--yes", handleNoopFlag],
6075
+ ["--raw-strings", handleRawStringsFlag],
6076
+ ["--no-coerce", handleNoCoerceFlag],
6077
+ ["--args", handleArgsFlag],
6078
+ ["--params", handleParamsFlag],
6079
+ ["--json", handleJsonArgsFlag]
6080
+ ]);
6081
6081
  function parseCallArguments(args) {
6082
- const result = { args: {}, tailLog: false, output: "auto" };
6082
+ const result = {
6083
+ args: /* @__PURE__ */ Object.create(null),
6084
+ tailLog: false,
6085
+ output: "auto"
6086
+ };
6083
6087
  const flagState = { coercionMode: "default" };
6084
6088
  const ephemeral = extractEphemeralServerFlags(args);
6085
6089
  result.ephemeral = ephemeral;
@@ -6091,6 +6095,7 @@ function parseCallArguments(args) {
6091
6095
  resolveSelectorAndTool(positional, result, callExpressionProvidedServer, callExpressionProvidedTool);
6092
6096
  applyTrailingArguments(positional, result, flagState);
6093
6097
  appendLiteralPositionalArguments(literalPositional, result, flagState);
6098
+ result.args = { ...result.args };
6094
6099
  return result;
6095
6100
  }
6096
6101
  function scanCallTokens(args, result, state) {
@@ -6107,7 +6112,7 @@ function scanCallTokens(args, result, state) {
6107
6112
  literalPositional.push(...args.slice(index + 1).filter(Boolean));
6108
6113
  break;
6109
6114
  }
6110
- const flagHandler = FLAG_HANDLERS[token];
6115
+ const flagHandler = FLAG_HANDLERS.get(token);
6111
6116
  if (flagHandler) {
6112
6117
  index = flagHandler({ args, index, result, state });
6113
6118
  continue;
@@ -6194,7 +6199,7 @@ function applyTrailingArguments(positional, result, state) {
6194
6199
  continue;
6195
6200
  }
6196
6201
  if (state.coercionMode === "default" && typeof value === "number") {
6197
- result.schemaStringCoercionCandidates ??= {};
6202
+ result.schemaStringCoercionCandidates ??= /* @__PURE__ */ Object.create(null);
6198
6203
  result.schemaStringCoercionCandidates[parsed.key] = schemaValue;
6199
6204
  }
6200
6205
  result.args[parsed.key] = value;
@@ -6289,10 +6294,10 @@ function handleNamedArgumentFlag(context) {
6289
6294
  const rawValue = eqIndex === -1 ? consumeFlagValue(context.args, context.index, token, `Flag '${token}' requires a value.`) : body.slice(eqIndex + 1);
6290
6295
  const { value, schemaValue } = resolveNamedArgumentValue(rawValue, context.state.coercionMode);
6291
6296
  if (context.state.coercionMode === "default" && typeof value === "number") {
6292
- context.result.schemaStringCoercionCandidates ??= {};
6297
+ context.result.schemaStringCoercionCandidates ??= /* @__PURE__ */ Object.create(null);
6293
6298
  context.result.schemaStringCoercionCandidates[key] = schemaValue;
6294
6299
  } else if (context.state.coercionMode === "default" && typeof value === "string") {
6295
- context.result.schemaArrayCoercionCandidates ??= {};
6300
+ context.result.schemaArrayCoercionCandidates ??= /* @__PURE__ */ Object.create(null);
6296
6301
  context.result.schemaArrayCoercionCandidates[key] = schemaValue;
6297
6302
  }
6298
6303
  context.result.genericLongFlagArguments ??= [];
@@ -1,15 +1,15 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  consumeTimeoutFlag
4
- } from "./chunk-IO2IMWYS.js";
4
+ } from "./chunk-KOWNVUL2.js";
5
5
  import {
6
6
  extractEphemeralServerFlags
7
- } from "./chunk-BC2HDCYV.js";
7
+ } from "./chunk-LCBDVFVA.js";
8
8
  import {
9
9
  consumeOutputFormat
10
- } from "./chunk-TFU4NKFJ.js";
10
+ } from "./chunk-5B7GRMUK.js";
11
11
 
12
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/list-flags.js
12
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/list-flags.js
13
13
  function extractListFlags(args) {
14
14
  let schema = false;
15
15
  let timeoutMs;
@@ -6,26 +6,23 @@ import {
6
6
  runtimeStateDir,
7
7
  sameOAuthTokenGeneration,
8
8
  vaultCredentialKeys
9
- } from "./chunk-YI5SMRFH.js";
9
+ } from "./chunk-XNHGMWN2.js";
10
10
  import {
11
11
  canonicalizeFilePath,
12
12
  isFileLockTimeoutError,
13
13
  withFileLock
14
- } from "./chunk-QIBGY4IX.js";
14
+ } from "./chunk-H7ARMBV7.js";
15
15
  import {
16
16
  checkResourceAllowed,
17
17
  discoverOAuthServerInfo,
18
18
  refreshAuthorization,
19
19
  resourceUrlFromServerUrl
20
- } from "./chunk-CN5YF3IQ.js";
20
+ } from "./chunk-S5F3HEZZ.js";
21
21
 
22
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/oauth-persistence.js
23
- import fs from "node:fs/promises";
24
-
25
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/oauth-token-refresh.js
22
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-token-refresh.js
26
23
  import { Buffer } from "node:buffer";
27
24
 
28
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/oauth-client-info.js
25
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-client-info.js
29
26
  function buildStaticClientInformation(definition, options = {}) {
30
27
  if (!definition.oauthClientId) {
31
28
  return void 0;
@@ -51,7 +48,7 @@ function resolveOAuthClientSecret(definition, options = {}) {
51
48
  return definition.oauthClientSecret;
52
49
  }
53
50
 
54
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/oauth-refresh-lock.js
51
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-refresh-lock.js
55
52
  import { AsyncLocalStorage } from "node:async_hooks";
56
53
  import crypto from "node:crypto";
57
54
  import path from "node:path";
@@ -114,7 +111,7 @@ function filenameSafeLabel(value) {
114
111
  return value.replace(/[^A-Za-z0-9._-]+/g, "_").replace(/^[._-]+/, "").slice(0, LOCK_LABEL_MAX);
115
112
  }
116
113
 
117
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/oauth-token-refresh.js
114
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-token-refresh.js
118
115
  var TOKEN_EXPIRY_SKEW_SECONDS = 60;
119
116
  var TOKEN_REQUEST_TIMEOUT_MS = 1e4;
120
117
  var OAuthIssuerMismatchError = class extends Error {
@@ -509,16 +506,13 @@ function readClientSecret(definition, refreshClientSecretEnv) {
509
506
  return resolveOAuthClientSecret(definition, { rejectBlank: true });
510
507
  }
511
508
 
512
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/oauth-persistence.js
509
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-persistence.js
513
510
  async function buildOAuthPersistence(definition, logger) {
514
511
  return await createOAuthPersistenceStores(definition, logger);
515
512
  }
516
513
  async function clearOAuthCaches(definition, logger, scope = "all") {
517
514
  const persistence = await buildOAuthPersistence(definition, logger);
518
515
  await persistence.clear(scope);
519
- if (definition.tokenCacheDir && scope === "all") {
520
- await fs.rm(definition.tokenCacheDir, { recursive: true, force: true });
521
- }
522
516
  await clearLegacyOAuthArtifacts(definition, logger, scope);
523
517
  }
524
518
  async function readCachedAccessToken(definition, logger) {
@@ -1,15 +1,15 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  buildRecordCommandEnv
4
- } from "./chunk-XCNWICLD.js";
4
+ } from "./chunk-CLR6DJV3.js";
5
5
  import {
6
6
  PRIVATE_RECORDING_FILE_MODE,
7
7
  ensurePrivateRecordingDir,
8
8
  resolveRecordingConfigPath,
9
9
  resolveRecordingPath
10
- } from "./chunk-AP5VHS73.js";
10
+ } from "./chunk-L6OOGZVA.js";
11
11
 
12
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/record-replay-command.js
12
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/record-replay-command.js
13
13
  import { spawn } from "node:child_process";
14
14
  import fs from "node:fs/promises";
15
15
  async function writeRecordReplayConfig(parsed, mode) {
@@ -63,7 +63,7 @@ function buildRecordReplayInstructionEnv(mode, sessionName, server) {
63
63
  };
64
64
  }
65
65
 
66
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/record-command.js
66
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/record-command.js
67
67
  async function handleRecordCli(args) {
68
68
  const parsed = parseRecordArgs(args);
69
69
  const recordPath = resolveRecordingPath(parsed.sessionName);
@@ -1,11 +1,16 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
- raceWithTimeout
4
- } from "./chunk-YVH36MGQ.js";
3
+ raceWithTimeout,
4
+ resolveChromeDevtoolsAutoConnectCommand,
5
+ resolveChromeDevtoolsRelayEnvironment,
6
+ resolveCommandArgument,
7
+ resolveCommandArguments
8
+ } from "./chunk-H4KL74PV.js";
5
9
 
6
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/timeouts.js
10
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/timeouts.js
7
11
  var DEFAULT_LIST_TIMEOUT_MS = 3e4;
8
12
  var DEFAULT_CALL_TIMEOUT_MS = 6e4;
13
+ var DEFAULT_CHROME_TIMEOUT_MS = 3e5;
9
14
  var POSITIVE_INTEGER_PATTERN = /^[1-9]\d*$/;
10
15
  var STDOUT_FLUSH_TIMEOUT_MS = 2e3;
11
16
  function parsePositiveInteger(raw) {
@@ -21,13 +26,34 @@ function parseTimeout(raw, fallback) {
21
26
  }
22
27
  return parsePositiveInteger(raw) ?? fallback;
23
28
  }
24
- var LIST_TIMEOUT_MS = parseTimeout(process.env.MCPORTER_LIST_TIMEOUT, DEFAULT_LIST_TIMEOUT_MS);
29
+ function resolveListTimeout(override, definition) {
30
+ return override ?? parsePositiveInteger(process.env.MCPORTER_LIST_TIMEOUT) ?? defaultServerTimeout(DEFAULT_LIST_TIMEOUT_MS, definition);
31
+ }
25
32
  function resolveCallTimeout(override) {
26
- if (typeof override === "number" && Number.isFinite(override) && override > 0) {
33
+ if (typeof override === "number" && Number.isFinite(override) && override > 0)
27
34
  return override;
28
- }
29
35
  return parseTimeout(process.env.MCPORTER_CALL_TIMEOUT, DEFAULT_CALL_TIMEOUT_MS);
30
36
  }
37
+ function resolveServerCallTimeout(override, definition, server) {
38
+ const timeoutMs = resolveCallTimeout(override);
39
+ if (typeof override === "number" && Number.isFinite(override) && override > 0 || parsePositiveInteger(process.env.MCPORTER_CALL_TIMEOUT))
40
+ return timeoutMs;
41
+ if (!definition && server === "chrome-devtools")
42
+ return DEFAULT_CHROME_TIMEOUT_MS;
43
+ return defaultServerTimeout(timeoutMs, definition);
44
+ }
45
+ function defaultServerTimeout(fallback, definition) {
46
+ if (definition?.command.kind !== "stdio")
47
+ return fallback;
48
+ try {
49
+ const env = resolveChromeDevtoolsRelayEnvironment(definition.env);
50
+ const command = resolveCommandArgument(definition.command.command, env);
51
+ const args = resolveCommandArguments(definition.command.args, env);
52
+ return resolveChromeDevtoolsAutoConnectCommand(command, args).enabled ? DEFAULT_CHROME_TIMEOUT_MS : fallback;
53
+ } catch {
54
+ return fallback;
55
+ }
56
+ }
31
57
  function withTimeout(promise, timeoutMs) {
32
58
  if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) {
33
59
  return promise;
@@ -53,8 +79,9 @@ export {
53
79
  STDOUT_FLUSH_TIMEOUT_MS,
54
80
  parsePositiveInteger,
55
81
  parseTimeout,
56
- LIST_TIMEOUT_MS,
82
+ resolveListTimeout,
57
83
  resolveCallTimeout,
84
+ resolveServerCallTimeout,
58
85
  withTimeout,
59
86
  consumeTimeoutFlag
60
87
  };
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
 
3
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/stable-json.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/stable-json.js
4
4
  function stableJsonStringify(value, space) {
5
5
  const json = JSON.stringify(sortJsonValue(value), void 0, space);
6
6
  if (json === void 0) {
@@ -15,14 +15,14 @@ function sortJsonValue(value) {
15
15
  if (!isPlainObject(value)) {
16
16
  return value;
17
17
  }
18
- const result = {};
18
+ const entries = [];
19
19
  for (const key of Object.keys(value).toSorted()) {
20
20
  const entry = value[key];
21
21
  if (entry !== void 0) {
22
- result[key] = sortJsonValue(entry);
22
+ entries.push([key, sortJsonValue(entry)]);
23
23
  }
24
24
  }
25
- return result;
25
+ return Object.fromEntries(entries);
26
26
  }
27
27
  function isPlainObject(value) {
28
28
  if (!value || typeof value !== "object") {
@@ -1,9 +1,9 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  legacyMcporterDir
4
- } from "./chunk-LYWEATXZ.js";
4
+ } from "./chunk-UHO6KIUJ.js";
5
5
 
6
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/runtime/record-transport.js
6
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime/record-transport.js
7
7
  import fs from "node:fs/promises";
8
8
  import path from "node:path";
9
9
  var initializedRecordingPaths = /* @__PURE__ */ new Map();
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
 
3
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/ephemeral-flags.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/ephemeral-flags.js
4
4
  function extractEphemeralServerFlags(args, options = {}) {
5
5
  let spec;
6
6
  const ensureSpec = () => {
@@ -1,18 +1,18 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  findServerByHttpUrl
4
- } from "./chunk-AK5ZEDEF.js";
4
+ } from "./chunk-UKM35J67.js";
5
5
  import {
6
6
  persistEphemeralServer,
7
7
  resolveEphemeralServer,
8
8
  splitCommandLine
9
- } from "./chunk-DMBE47LM.js";
9
+ } from "./chunk-6RG6AD5X.js";
10
10
  import {
11
11
  looksLikeHttpUrl,
12
12
  normalizeHttpUrlCandidate
13
- } from "./chunk-CZ43ZITK.js";
13
+ } from "./chunk-2P2HVZ3G.js";
14
14
 
15
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/adhoc-help.js
15
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/adhoc-help.js
16
16
  var ADHOC_SERVER_HELP_ENTRIES = [
17
17
  { flag: "--http-url <url>", description: "Register an HTTP server for this run." },
18
18
  { flag: "--allow-http", description: "Permit plain http:// URLs with --http-url." },
@@ -36,7 +36,7 @@ function renderAdhocServerHelpLines(width = 23) {
36
36
  return ADHOC_SERVER_HELP_ENTRIES.map((entry) => ` ${entry.flag.padEnd(width)}${entry.description}`);
37
37
  }
38
38
 
39
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/ephemeral-target.js
39
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/ephemeral-target.js
40
40
  async function prepareEphemeralServerTarget(options) {
41
41
  let target = options.target;
42
42
  let spec = options.ephemeral ? { ...options.ephemeral } : void 0;
@@ -2,9 +2,9 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  createPrefixedConsoleLogger,
4
4
  resolveLogLevelFromEnv
5
- } from "./chunk-N7ZWX3WW.js";
5
+ } from "./chunk-P463YBJM.js";
6
6
 
7
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/logger-context.js
7
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/logger-context.js
8
8
  var activeLogLevel = resolveLogLevelFromEnv();
9
9
  var activeLogger = createPrefixedConsoleLogger("mcporter", activeLogLevel);
10
10
  function getActiveLogLevel() {
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
 
3
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/daemon/launch.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/daemon/launch.js
4
4
  import { spawn } from "node:child_process";
5
5
  import path from "node:path";
6
6
  import { existsSync } from "node:fs";
@@ -2,15 +2,15 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  buildFallbackLiteral,
4
4
  pickExampleLiteral
5
- } from "./chunk-WUEDIOR5.js";
5
+ } from "./chunk-NQW3ES2G.js";
6
6
  import {
7
7
  cyanText,
8
8
  dimText,
9
9
  extraDimText,
10
10
  yellowText
11
- } from "./chunk-OB256NMD.js";
11
+ } from "./chunk-TUQGOYK6.js";
12
12
 
13
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/list-signature.js
13
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/list-signature.js
14
14
  function formatFunctionSignature(name, options, outputSchema, formatOptions) {
15
15
  const colorize = formatOptions?.colorize !== false;
16
16
  const keyword = colorize ? extraDimText("function") : "function";
@@ -255,7 +255,7 @@ function formatArrayItemType(type) {
255
255
  }
256
256
  }
257
257
 
258
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/list-doc-comments.js
258
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/list-doc-comments.js
259
259
  var DEFAULT_WRAP_WIDTH = 100;
260
260
  function buildDocComment(description, options, opts) {
261
261
  const colorize = opts?.colorize !== false;
@@ -366,7 +366,7 @@ function wrapCommentText(text, width = DEFAULT_WRAP_WIDTH) {
366
366
  return lines;
367
367
  }
368
368
 
369
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/list-detail-helpers.js
369
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/list-detail-helpers.js
370
370
  var DEFAULT_MIN_VISIBLE_PARAMS = 5;
371
371
  function selectDisplayOptions(options, requiredOnly, minVisible = DEFAULT_MIN_VISIBLE_PARAMS) {
372
372
  if (!requiredOnly || options.length <= minVisible) {
@@ -3368,7 +3368,7 @@ function useColor() {
3368
3368
  // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3369
3369
  var program = new Command();
3370
3370
 
3371
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/tools.js
3371
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/generate/tools.js
3372
3372
  function resolveSchemaType(value) {
3373
3373
  if (value === "integer") {
3374
3374
  return "number";
@@ -3419,13 +3419,7 @@ function buildToolMetadataList(tools, options = {}) {
3419
3419
  return kept;
3420
3420
  }
3421
3421
  function buildEmbeddedSchemaMap(tools) {
3422
- const result = {};
3423
- for (const entry of tools.toSorted((left, right) => left.tool.name.localeCompare(right.tool.name))) {
3424
- if (entry.tool.inputSchema && typeof entry.tool.inputSchema === "object") {
3425
- result[entry.tool.name] = entry.tool.inputSchema;
3426
- }
3427
- }
3428
- return result;
3422
+ return Object.fromEntries(tools.toSorted((left, right) => left.tool.name.localeCompare(right.tool.name)).filter((entry) => entry.tool.inputSchema && typeof entry.tool.inputSchema === "object").map((entry) => [entry.tool.name, entry.tool.inputSchema]));
3429
3423
  }
3430
3424
  function extractOptions(tool) {
3431
3425
  const schema = tool.inputSchema;
@@ -1,22 +1,22 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  buildToolDoc
4
- } from "./chunk-XFQSUC7T.js";
4
+ } from "./chunk-MJFZM5EV.js";
5
5
  import {
6
6
  buildEmbeddedSchemaMap,
7
7
  toCliOptionKey
8
- } from "./chunk-WUEDIOR5.js";
8
+ } from "./chunk-NQW3ES2G.js";
9
9
  import {
10
10
  parsePositiveInteger
11
- } from "./chunk-IO2IMWYS.js";
11
+ } from "./chunk-KOWNVUL2.js";
12
12
  import {
13
13
  stableJsonStringify
14
- } from "./chunk-AS27BTCS.js";
14
+ } from "./chunk-KQCLM7R7.js";
15
15
  import {
16
16
  MCPORTER_VERSION
17
- } from "./chunk-NTABJCUL.js";
17
+ } from "./chunk-7PFJCLXL.js";
18
18
 
19
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/flag-parser.js
19
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/generate/flag-parser.js
20
20
  function extractGeneratorFlags(args, options = {}) {
21
21
  const result = {};
22
22
  let index = 0;
@@ -58,12 +58,12 @@ function extractGeneratorFlags(args, options = {}) {
58
58
  return result;
59
59
  }
60
60
 
61
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/template.js
61
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/generate/template.js
62
62
  import { realpathSync } from "node:fs";
63
63
  import fs2 from "node:fs/promises";
64
64
  import path from "node:path";
65
65
 
66
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/fs-helpers.js
66
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/generate/fs-helpers.js
67
67
  import fs from "node:fs/promises";
68
68
  async function markExecutable(filePath) {
69
69
  try {
@@ -94,7 +94,7 @@ function shouldIgnorePosixPermissionError(error) {
94
94
  return code === "EPERM" || code === "EINVAL" || code === "ENOSYS" || code === "EACCES";
95
95
  }
96
96
 
97
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/template-help.js
97
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/generate/template-help.js
98
98
  function renderEmbeddedHelpSource() {
99
99
  return `function configureGeneratedCommandHelp(command: Command): void {
100
100
  command.configureHelp({
@@ -208,7 +208,7 @@ function quickStartExamples(): Array<[string, string]> {
208
208
  `;
209
209
  }
210
210
 
211
- // node_modules/.pnpm/mcporter@0.13.10/node_modules/mcporter/dist/cli/generate/template.js
211
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/generate/template.js
212
212
  async function writeTemplate(input) {
213
213
  const resolvedOutput = input.outputPath ? path.resolve(input.outputPath) : path.resolve(process.cwd(), `${input.serverName}.ts`);
214
214
  const runtimeScriptPath = input.runtimeScriptPath ? path.resolve(input.runtimeScriptPath) : resolvedOutput;
@@ -283,7 +283,7 @@ ${imports}
283
283
  const __mcpScriptDir = path.dirname(fileURLToPath(import.meta.url));
284
284
  const __mcpRelativeStdioCwd: string | null = ${JSON.stringify(relativeStdioCwd)};
285
285
  const embeddedServer = ${embedded} as const;
286
- const embeddedSchemas = ${embeddedSchemas} as const;
286
+ const embeddedSchemas = JSON.parse(${JSON.stringify(embeddedSchemas)}) as Record<string, unknown>;
287
287
  const embeddedName = ${JSON.stringify(serverName)};
288
288
  const embeddedDescription = ${JSON.stringify(definition.description ?? `Standalone CLI for the ${serverName} MCP server.`)};
289
289
  const generatorInfo = ${generatorHeaderLiteral};
@@ -645,12 +645,12 @@ ${aliasSnippet ? ` ${aliasSnippet}` : ""} .action(async (cmdOpts) => {
645
645
  initialSchemas: embeddedSchemas,
646
646
  });
647
647
  try {
648
- const args = cmdOpts.raw ? JSON.parse(cmdOpts.raw) : ({} as Record<string, unknown>);
648
+ const args = cmdOpts.raw ? JSON.parse(cmdOpts.raw) : (Object.create(null) as Record<string, unknown>);
649
649
  if (!cmdOpts.raw) {
650
650
  ${requiredValidation}
651
651
  ${buildArgs}
652
652
  }
653
- const call = (proxy.${tool.methodName} as any)(args);
653
+ const call = (proxy[${JSON.stringify(tool.tool.name)}] as any)(args);
654
654
  const result = await invokeWithTimeout(call, globalOptions.timeout || ${defaultTimeout});
655
655
  printResult(result, globalOptions.output ?? 'text');
656
656
  } finally {