@introspection-ai/recipes 0.25.1 → 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 (291) 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-4WFRNU2I.js → auth-command-GQFV6QYP.js} +24 -27
  90. package/dist/mcp-chunks/call-arguments-VT7JLNJY.js +16 -0
  91. package/dist/mcp-chunks/{call-command-JBIKXOGC.js → call-command-LMAREWKD.js} +45 -45
  92. package/dist/mcp-chunks/{chunk-3JGS7LQB.js → chunk-2HOMVWSA.js} +2 -2
  93. package/dist/mcp-chunks/{chunk-G6OMDUNG.js → chunk-2P2HVZ3G.js} +1 -1
  94. package/dist/mcp-chunks/{chunk-ED2WN5BI.js → chunk-34QXE62Y.js} +175 -147
  95. package/dist/mcp-chunks/{chunk-Y3EDWN2P.js → chunk-5B7GRMUK.js} +1 -1
  96. package/dist/mcp-chunks/chunk-5BMCVE2J.js +516 -0
  97. package/dist/mcp-chunks/{chunk-V5AYEKSL.js → chunk-6QZQZXDJ.js} +52 -81
  98. package/dist/mcp-chunks/{chunk-3R2WK3NB.js → chunk-6RG6AD5X.js} +6 -6
  99. package/dist/mcp-chunks/{chunk-SNKXMWDB.js → chunk-77BZYP72.js} +1 -1
  100. package/dist/mcp-chunks/chunk-7PFJCLXL.js +123 -0
  101. package/dist/mcp-chunks/chunk-7WL4TMON.js +31 -0
  102. package/dist/mcp-chunks/{chunk-ELA77TDC.js → chunk-C2VLY7ED.js} +4 -4
  103. package/dist/mcp-chunks/{chunk-FAJPJTOC.js → chunk-CLR6DJV3.js} +1 -1
  104. package/dist/mcp-chunks/{chunk-ZOAQDFAO.js → chunk-D6B2M5V7.js} +1 -1
  105. package/dist/mcp-chunks/{chunk-WTMJMM3B.js → chunk-D6SVCPN6.js} +3 -30
  106. package/dist/mcp-chunks/chunk-FBVRU4Y3.js +1195 -0
  107. package/dist/mcp-chunks/{chunk-EMSNQHZZ.js → chunk-FONFU4G5.js} +1 -1
  108. package/dist/mcp-chunks/{chunk-BWW4XRUC.js → chunk-H4KL74PV.js} +303 -161
  109. package/dist/mcp-chunks/{chunk-ITR7FQM3.js → chunk-H7ARMBV7.js} +4 -9
  110. package/dist/mcp-chunks/{chunk-EPT4MYOF.js → chunk-HZ2SX5U6.js} +39 -34
  111. package/dist/mcp-chunks/{chunk-36VIJRYY.js → chunk-I6UMKX5E.js} +4 -4
  112. package/dist/mcp-chunks/{chunk-ASG4OY3M.js → chunk-IF6LRV3J.js} +21 -28
  113. package/dist/mcp-chunks/{chunk-KW3ANJ36.js → chunk-JVYCENPP.js} +4 -4
  114. package/dist/mcp-chunks/{chunk-AIKLVBYU.js → chunk-KOWNVUL2.js} +34 -7
  115. package/dist/mcp-chunks/{chunk-B2LNXGAP.js → chunk-KQCLM7R7.js} +4 -4
  116. package/dist/mcp-chunks/{chunk-OP3IW2V6.js → chunk-L6OOGZVA.js} +2 -2
  117. package/dist/mcp-chunks/{chunk-MOEZ43ZL.js → chunk-LCBDVFVA.js} +1 -1
  118. package/dist/mcp-chunks/{chunk-ITCCROID.js → chunk-LIEFPSSB.js} +5 -5
  119. package/dist/mcp-chunks/{chunk-GUXMP7QB.js → chunk-LQIE4PKL.js} +2 -2
  120. package/dist/mcp-chunks/{chunk-WYLHHXI6.js → chunk-LXHPDKEF.js} +26 -11
  121. package/dist/mcp-chunks/{chunk-6YZW3XAE.js → chunk-MJFZM5EV.js} +5 -5
  122. package/dist/mcp-chunks/{chunk-TPHPAEDH.js → chunk-NQW3ES2G.js} +2 -8
  123. package/dist/mcp-chunks/{chunk-IPNSPKQK.js → chunk-O2VOMKAS.js} +15 -17
  124. package/dist/mcp-chunks/{chunk-QZUC2T72.js → chunk-O4JIUOWF.js} +2 -2
  125. package/dist/mcp-chunks/{chunk-C2KNLFZR.js → chunk-P3UVILEW.js} +2 -2
  126. package/dist/mcp-chunks/{chunk-7WOKCV6Q.js → chunk-P463YBJM.js} +1 -1
  127. package/dist/mcp-chunks/{chunk-GQ6NSIDS.js → chunk-PJCMJ65D.js} +1175 -718
  128. package/dist/mcp-chunks/{chunk-CZKDJZER.js → chunk-QALB3DRW.js} +1 -1
  129. package/dist/mcp-chunks/{chunk-JG4TRUPF.js → chunk-QJNF3A3F.js} +1 -1
  130. package/dist/mcp-chunks/{chunk-HLRCUHNO.js → chunk-RIHPVCGI.js} +1 -1
  131. package/dist/mcp-chunks/{chunk-RD7NHCRK.js → chunk-RZIJUJGL.js} +60 -1074
  132. package/dist/mcp-chunks/{chunk-4ZNBWL65.js → chunk-S2YF442K.js} +2 -2
  133. package/dist/mcp-chunks/chunk-S5F3HEZZ.js +37060 -0
  134. package/dist/mcp-chunks/{chunk-TF2YTYE4.js → chunk-S6GJ42I2.js} +1 -1
  135. package/dist/mcp-chunks/chunk-T4MQCFIK.js +982 -0
  136. package/dist/mcp-chunks/{chunk-SCOMDV54.js → chunk-TUQGOYK6.js} +1 -1
  137. package/dist/mcp-chunks/{chunk-YIRGLKDA.js → chunk-TYYSBILI.js} +46 -27
  138. package/dist/mcp-chunks/{chunk-FS5JIKT6.js → chunk-UHO6KIUJ.js} +6 -6
  139. package/dist/mcp-chunks/{chunk-RSTKSBVF.js → chunk-UIPG6W7N.js} +2 -2
  140. package/dist/mcp-chunks/{chunk-IME7DGLJ.js → chunk-UKM35J67.js} +2 -2
  141. package/dist/mcp-chunks/{chunk-FX5NYWBH.js → chunk-UYJZJXC2.js} +3 -3
  142. package/dist/mcp-chunks/{chunk-HCOKLSOB.js → chunk-VJIAHZZG.js} +4 -4
  143. package/dist/mcp-chunks/{chunk-IYWYVHHD.js → chunk-WHJUDBPR.js} +1 -1
  144. package/dist/mcp-chunks/{chunk-53NRFMB3.js → chunk-XNHGMWN2.js} +46 -25
  145. package/dist/mcp-chunks/{cli-XU26MUCN.js → cli-JI7MEAAX.js} +111 -79
  146. package/dist/mcp-chunks/client-QU7ABSNB.js +30 -0
  147. package/dist/mcp-chunks/{config-command-UQMMIK2U.js → config-command-GRZLKD3R.js} +36 -29
  148. package/dist/mcp-chunks/daemon-command-3266CYHO.js +30 -0
  149. package/dist/mcp-chunks/{dist-DM2RXZMU.js → dist-USMCQ22V.js} +105 -47
  150. package/dist/mcp-chunks/{emit-ts-command-KAOL6DAN.js → emit-ts-command-7VLESP7H.js} +20 -19
  151. package/dist/mcp-chunks/{generate-cli-runner-AK6XNRTK.js → generate-cli-runner-SSW2B72K.js} +54 -51
  152. package/dist/mcp-chunks/generated-daemon-runtime-7CFVWLC7.js +30 -0
  153. package/dist/mcp-chunks/{inspect-cli-command-6FVJO7H2.js → inspect-cli-command-NCGCMOIS.js} +9 -10
  154. package/dist/mcp-chunks/{launch-EIT73HX4.js → launch-NBONSPNK.js} +1 -1
  155. package/dist/mcp-chunks/{lifecycle-QH4TUI3K.js → lifecycle-CXAKUCN4.js} +1 -1
  156. package/dist/mcp-chunks/{list-command-UOB2XZK7.js → list-command-5T4UF4PF.js} +61 -75
  157. package/dist/mcp-chunks/{output-utils-6YXH23T7.js → output-utils-YFTWQZ5V.js} +3 -3
  158. package/dist/mcp-chunks/{prompt-CH6TK0bC-ZB6RFAXR.js → prompt-CH6TK0bC-6DI4RA4E.js} +1 -1
  159. package/dist/mcp-chunks/{record-command-FO5TTERC.js → record-command-TE5O7WBL.js} +5 -5
  160. package/dist/mcp-chunks/{replay-command-SCBPCGQ7.js → replay-command-QCUL5ASR.js} +6 -6
  161. package/dist/mcp-chunks/{resource-command-S2J7XEMV.js → resource-command-XMGF7EAK.js} +9 -10
  162. package/dist/mcp-chunks/{result-utils-OME6HGS6.js → result-utils-HKB42M7Y.js} +3 -4
  163. package/dist/mcp-chunks/runtime-3X2XVS6X.js +37 -0
  164. package/dist/mcp-chunks/runtime-wrapper-MI3HF45J.js +10 -0
  165. package/dist/mcp-chunks/{serve-command-DDBZZSG6.js → serve-command-5HV3ZE25.js} +30 -34
  166. package/dist/mcp-chunks/{timeouts-HNGNKDQN.js → timeouts-YBFBTLV2.js} +8 -5
  167. package/dist/mcp-chunks/{vault-command-TJZYS3YI.js → vault-command-FC2PD5U6.js} +4 -6
  168. package/dist/mcp-chunks/webapi-IFUPO72B.js +2481 -0
  169. package/dist/mcp-daemon.js +35 -33
  170. package/dist/mcp-run-worker.js +28 -32
  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/pi-extension.md +1 -1
  213. package/docs/recipe-format.md +8 -4
  214. package/docs/recipe-templates.md +46 -0
  215. package/docs/slack.md +1 -1
  216. package/package.json +14 -14
  217. package/dist/child-agent-completions.d.ts.map +0 -1
  218. package/dist/child-agent-completions.js.map +0 -1
  219. package/dist/child-agent-store.d.ts.map +0 -1
  220. package/dist/child-agent-store.js.map +0 -1
  221. package/dist/child-agent.d.ts.map +0 -1
  222. package/dist/child-agent.js.map +0 -1
  223. package/dist/child-session.d.ts.map +0 -1
  224. package/dist/child-session.js.map +0 -1
  225. package/dist/mcp-catalog.d.ts.map +0 -1
  226. package/dist/mcp-catalog.js.map +0 -1
  227. package/dist/mcp-chunks/call-arguments-4DWPBLQP.js +0 -15
  228. package/dist/mcp-chunks/chunk-3Z7MFS6K.js +0 -86
  229. package/dist/mcp-chunks/chunk-AD3FQ73K.js +0 -39
  230. package/dist/mcp-chunks/chunk-DTZHEVKC.js +0 -12
  231. package/dist/mcp-chunks/chunk-H3JCYHGS.js +0 -1018
  232. package/dist/mcp-chunks/chunk-HN7WPMCA.js +0 -18904
  233. package/dist/mcp-chunks/chunk-I5GI2A2D.js +0 -92
  234. package/dist/mcp-chunks/chunk-IRTJXFWA.js +0 -28
  235. package/dist/mcp-chunks/chunk-NTHUNCXJ.js +0 -526
  236. package/dist/mcp-chunks/chunk-OD3MSMXY.js +0 -15
  237. package/dist/mcp-chunks/chunk-PZ323CXI.js +0 -17394
  238. package/dist/mcp-chunks/client-OT34CKRH.js +0 -21
  239. package/dist/mcp-chunks/daemon-command-YCIOZGPZ.js +0 -35
  240. package/dist/mcp-chunks/runtime-QIPMLIJI.js +0 -39
  241. package/dist/mcp-chunks/runtime-wrapper-X4YFKMJI.js +0 -16
  242. package/dist/mcp-chunks/webapi-4GWO2UBA.js +0 -3508
  243. package/dist/mcp-cli-core.d.ts.map +0 -1
  244. package/dist/mcp-cli-core.js.map +0 -1
  245. package/dist/mcp-cli-help.d.ts +0 -2
  246. package/dist/mcp-cli-help.d.ts.map +0 -1
  247. package/dist/mcp-cli-help.js +0 -36
  248. package/dist/mcp-cli-help.js.map +0 -1
  249. package/dist/mcp-cli-policy.d.ts.map +0 -1
  250. package/dist/mcp-cli-policy.js.map +0 -1
  251. package/dist/mcp-cli.d.ts +0 -3
  252. package/dist/mcp-cli.d.ts.map +0 -1
  253. package/dist/mcp-cli.js.map +0 -1
  254. package/dist/mcp-client.d.ts +0 -3
  255. package/dist/mcp-client.d.ts.map +0 -1
  256. package/dist/mcp-client.js.map +0 -1
  257. package/dist/mcp-command-context.d.ts.map +0 -1
  258. package/dist/mcp-command-context.js.map +0 -1
  259. package/dist/mcp-contract.d.ts.map +0 -1
  260. package/dist/mcp-contract.js.map +0 -1
  261. package/dist/mcp-daemon-client.d.ts.map +0 -1
  262. package/dist/mcp-daemon-client.js.map +0 -1
  263. package/dist/mcp-daemon-protocol.d.ts.map +0 -1
  264. package/dist/mcp-daemon-protocol.js.map +0 -1
  265. package/dist/mcp-daemon.d.ts +0 -3
  266. package/dist/mcp-daemon.d.ts.map +0 -1
  267. package/dist/mcp-policy.d.ts.map +0 -1
  268. package/dist/mcp-policy.js.map +0 -1
  269. package/dist/mcp-run-worker.d.ts +0 -2
  270. package/dist/mcp-run-worker.d.ts.map +0 -1
  271. package/dist/mcp-run-worker.js.map +0 -1
  272. package/dist/mcp-tools.d.ts.map +0 -1
  273. package/dist/mcp-tools.js.map +0 -1
  274. package/dist/mcp-trace-context.d.ts.map +0 -1
  275. package/dist/mcp-trace-context.js.map +0 -1
  276. package/dist/mcp.d.ts.map +0 -1
  277. package/dist/mcp.js.map +0 -1
  278. package/dist/recipe-agent.d.ts.map +0 -1
  279. package/dist/recipe-agent.js.map +0 -1
  280. package/dist/recipe-extensions.d.ts.map +0 -1
  281. package/dist/recipe-extensions.js.map +0 -1
  282. package/dist/recipe-mcp-config.d.ts.map +0 -1
  283. package/dist/recipe-mcp-config.js.map +0 -1
  284. package/dist/recipe-model.d.ts.map +0 -1
  285. package/dist/recipe-model.js.map +0 -1
  286. package/dist/recipe-package.d.ts.map +0 -1
  287. package/dist/recipe-package.js.map +0 -1
  288. package/dist/recipe-session.d.ts.map +0 -1
  289. package/dist/recipe-session.js.map +0 -1
  290. package/dist/recipe-skills.d.ts.map +0 -1
  291. 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.8/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.8/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-CZKDJZER.js";
4
+ } from "./chunk-QALB3DRW.js";
5
5
  import {
6
6
  consumeTimeoutFlag
7
- } from "./chunk-AIKLVBYU.js";
7
+ } from "./chunk-KOWNVUL2.js";
8
8
  import {
9
9
  extractEphemeralServerFlags
10
- } from "./chunk-MOEZ43ZL.js";
10
+ } from "./chunk-LCBDVFVA.js";
11
11
  import {
12
12
  splitHttpToolSelector
13
- } from "./chunk-G6OMDUNG.js";
13
+ } from "./chunk-2P2HVZ3G.js";
14
14
  import {
15
15
  consumeOutputFormat
16
- } from "./chunk-Y3EDWN2P.js";
16
+ } from "./chunk-5B7GRMUK.js";
17
17
 
18
- // node_modules/.pnpm/mcporter@0.13.8/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.8/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.8/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.8/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.8/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.8/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-AIKLVBYU.js";
4
+ } from "./chunk-KOWNVUL2.js";
5
5
  import {
6
6
  extractEphemeralServerFlags
7
- } from "./chunk-MOEZ43ZL.js";
7
+ } from "./chunk-LCBDVFVA.js";
8
8
  import {
9
9
  consumeOutputFormat
10
- } from "./chunk-Y3EDWN2P.js";
10
+ } from "./chunk-5B7GRMUK.js";
11
11
 
12
- // node_modules/.pnpm/mcporter@0.13.8/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;
@@ -2,31 +2,27 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  clearLegacyOAuthArtifacts,
4
4
  createOAuthPersistenceStores,
5
+ runtimeEnvironment,
6
+ runtimeStateDir,
5
7
  sameOAuthTokenGeneration,
6
8
  vaultCredentialKeys
7
- } from "./chunk-53NRFMB3.js";
8
- import {
9
- checkResourceAllowed,
10
- discoverOAuthServerInfo,
11
- refreshAuthorization,
12
- resourceUrlFromServerUrl
13
- } from "./chunk-PZ323CXI.js";
9
+ } from "./chunk-XNHGMWN2.js";
14
10
  import {
15
11
  canonicalizeFilePath,
16
12
  isFileLockTimeoutError,
17
13
  withFileLock
18
- } from "./chunk-ITR7FQM3.js";
14
+ } from "./chunk-H7ARMBV7.js";
19
15
  import {
20
- mcporterDir
21
- } from "./chunk-FS5JIKT6.js";
22
-
23
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-persistence.js
24
- import fs from "node:fs/promises";
16
+ checkResourceAllowed,
17
+ discoverOAuthServerInfo,
18
+ refreshAuthorization,
19
+ resourceUrlFromServerUrl
20
+ } from "./chunk-S5F3HEZZ.js";
25
21
 
26
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-token-refresh.js
22
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-token-refresh.js
27
23
  import { Buffer } from "node:buffer";
28
24
 
29
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-client-info.js
25
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-client-info.js
30
26
  function buildStaticClientInformation(definition, options = {}) {
31
27
  if (!definition.oauthClientId) {
32
28
  return void 0;
@@ -43,7 +39,7 @@ function buildStaticClientInformation(definition, options = {}) {
43
39
  }
44
40
  function resolveOAuthClientSecret(definition, options = {}) {
45
41
  if (definition.oauthClientSecretEnv) {
46
- const value = process.env[definition.oauthClientSecretEnv];
42
+ const value = (definition.env ?? process.env)[definition.oauthClientSecretEnv];
47
43
  if (!value || options.rejectBlank && value.trim().length === 0) {
48
44
  throw new Error(`Environment variable '${definition.oauthClientSecretEnv}' is required for OAuth client secret.`);
49
45
  }
@@ -52,7 +48,7 @@ function resolveOAuthClientSecret(definition, options = {}) {
52
48
  return definition.oauthClientSecret;
53
49
  }
54
50
 
55
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-refresh-lock.js
51
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-refresh-lock.js
56
52
  import { AsyncLocalStorage } from "node:async_hooks";
57
53
  import crypto from "node:crypto";
58
54
  import path from "node:path";
@@ -62,7 +58,7 @@ var IDENTITY_HASH_LENGTH = 16;
62
58
  var TIMEOUT_OVERRIDE_ENV = "MCPORTER_TEST_REFRESH_LOCK_TIMEOUT_MS";
63
59
  var heldLockPaths = new AsyncLocalStorage();
64
60
  function refreshLockDir() {
65
- return path.join(mcporterDir("data"), REFRESH_LOCK_DIR);
61
+ return path.join(runtimeStateDir("data"), REFRESH_LOCK_DIR);
66
62
  }
67
63
  async function refreshLockPaths(definition) {
68
64
  const paths = [];
@@ -99,7 +95,7 @@ function resolveTimeoutMs(explicit) {
99
95
  if (explicit !== void 0) {
100
96
  return explicit;
101
97
  }
102
- const raw = process.env[TIMEOUT_OVERRIDE_ENV];
98
+ const raw = runtimeEnvironment()[TIMEOUT_OVERRIDE_ENV];
103
99
  if (raw === void 0 || raw.trim().length === 0) {
104
100
  return void 0;
105
101
  }
@@ -115,7 +111,7 @@ function filenameSafeLabel(value) {
115
111
  return value.replace(/[^A-Za-z0-9._-]+/g, "_").replace(/^[._-]+/, "").slice(0, LOCK_LABEL_MAX);
116
112
  }
117
113
 
118
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-token-refresh.js
114
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-token-refresh.js
119
115
  var TOKEN_EXPIRY_SKEW_SECONDS = 60;
120
116
  var TOKEN_REQUEST_TIMEOUT_MS = 1e4;
121
117
  var OAuthIssuerMismatchError = class extends Error {
@@ -418,7 +414,7 @@ async function refreshBearerToken(definition, refreshToken) {
418
414
  if (!refresh) {
419
415
  throw new Error("Missing refresh configuration.");
420
416
  }
421
- const clientId = readEnvOrConfig(refresh.clientIdEnv, definition.oauthClientId);
417
+ const clientId = readEnvOrConfig(refresh.clientIdEnv, definition.oauthClientId, definition.env);
422
418
  const method = refresh.clientAuthMethod ?? definition.oauthTokenEndpointAuthMethod ?? "client_secret_basic";
423
419
  const clientSecret = method === "none" ? void 0 : readClientSecret(definition, refresh.clientSecretEnv);
424
420
  const body = new URLSearchParams({
@@ -490,11 +486,11 @@ function coerceExpiresIn(value) {
490
486
  }
491
487
  return {};
492
488
  }
493
- function readEnvOrConfig(envName, fallback) {
489
+ function readEnvOrConfig(envName, fallback, env = process.env) {
494
490
  if (!envName) {
495
491
  return fallback;
496
492
  }
497
- const value = process.env[envName];
493
+ const value = env[envName];
498
494
  if (value === void 0 || value.trim().length === 0) {
499
495
  throw new Error(`Environment variable '${envName}' is required for bearer token refresh.`);
500
496
  }
@@ -505,21 +501,18 @@ function formEncodeCredential(value) {
505
501
  }
506
502
  function readClientSecret(definition, refreshClientSecretEnv) {
507
503
  if (refreshClientSecretEnv) {
508
- return readEnvOrConfig(refreshClientSecretEnv, void 0);
504
+ return readEnvOrConfig(refreshClientSecretEnv, void 0, definition.env);
509
505
  }
510
506
  return resolveOAuthClientSecret(definition, { rejectBlank: true });
511
507
  }
512
508
 
513
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-persistence.js
509
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-persistence.js
514
510
  async function buildOAuthPersistence(definition, logger) {
515
511
  return await createOAuthPersistenceStores(definition, logger);
516
512
  }
517
513
  async function clearOAuthCaches(definition, logger, scope = "all") {
518
514
  const persistence = await buildOAuthPersistence(definition, logger);
519
515
  await persistence.clear(scope);
520
- if (definition.tokenCacheDir && scope === "all") {
521
- await fs.rm(definition.tokenCacheDir, { recursive: true, force: true });
522
- }
523
516
  await clearLegacyOAuthArtifacts(definition, logger, scope);
524
517
  }
525
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-FAJPJTOC.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-OP3IW2V6.js";
10
+ } from "./chunk-L6OOGZVA.js";
11
11
 
12
- // node_modules/.pnpm/mcporter@0.13.8/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.8/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-I5GI2A2D.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.8/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.8/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-FS5JIKT6.js";
4
+ } from "./chunk-UHO6KIUJ.js";
5
5
 
6
- // node_modules/.pnpm/mcporter@0.13.8/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.8/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-IME7DGLJ.js";
4
+ } from "./chunk-UKM35J67.js";
5
5
  import {
6
6
  persistEphemeralServer,
7
7
  resolveEphemeralServer,
8
8
  splitCommandLine
9
- } from "./chunk-3R2WK3NB.js";
9
+ } from "./chunk-6RG6AD5X.js";
10
10
  import {
11
11
  looksLikeHttpUrl,
12
12
  normalizeHttpUrlCandidate
13
- } from "./chunk-G6OMDUNG.js";
13
+ } from "./chunk-2P2HVZ3G.js";
14
14
 
15
- // node_modules/.pnpm/mcporter@0.13.8/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.8/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-7WOKCV6Q.js";
5
+ } from "./chunk-P463YBJM.js";
6
6
 
7
- // node_modules/.pnpm/mcporter@0.13.8/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,16 +1,27 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
 
3
- // node_modules/.pnpm/mcporter@0.13.8/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
- function launchDaemonDetached(options, launch = spawn) {
6
+ import { existsSync } from "node:fs";
7
+ import { fileURLToPath } from "node:url";
8
+ async function launchDaemonDetached(options, launch = spawn) {
7
9
  const invocation = buildDaemonLaunchInvocation(options);
8
- const child = launch(invocation.command, invocation.args, {
9
- detached: true,
10
- stdio: "ignore",
11
- env: invocation.env
12
- });
13
- child.unref();
10
+ try {
11
+ await new Promise((resolve, reject) => {
12
+ const child = launch(invocation.command, invocation.args, {
13
+ detached: true,
14
+ stdio: "ignore",
15
+ env: invocation.env
16
+ });
17
+ child.on("error", reject);
18
+ child.once("spawn", resolve);
19
+ child.unref();
20
+ });
21
+ } catch (error) {
22
+ const message = error instanceof Error ? error.message : String(error);
23
+ throw new Error(`Failed to start MCPorter daemon (${invocation.command}): ${message}`, { cause: error });
24
+ }
14
25
  }
15
26
  function buildDaemonLaunchInvocation(options, processInfo = {
16
27
  argvEntry: process.argv[1],
@@ -20,12 +31,9 @@ function buildDaemonLaunchInvocation(options, processInfo = {
20
31
  platform: process.platform
21
32
  }) {
22
33
  const cliEntry = resolveCliEntry(processInfo.argvEntry);
23
- const configArgs = options.configExplicit ? ["--config", options.configPath] : [];
24
34
  const args = [
25
35
  ...processInfo.execArgv,
26
36
  ...cliEntry ? [cliEntry] : [],
27
- ...configArgs,
28
- ...options.rootDir ? ["--root", options.rootDir] : [],
29
37
  "daemon",
30
38
  "start",
31
39
  "--foreground",
@@ -34,6 +42,7 @@ function buildDaemonLaunchInvocation(options, processInfo = {
34
42
  const env = {
35
43
  ...processInfo.env,
36
44
  MCPORTER_DAEMON_CHILD: "1",
45
+ MCPORTER_DISABLE_AUTORUN: "0",
37
46
  MCPORTER_DAEMON_SOCKET: options.socketPath,
38
47
  MCPORTER_DAEMON_METADATA: options.metadataPath
39
48
  };
@@ -60,6 +69,12 @@ function resolveCliEntry(entry = process.argv[1]) {
60
69
  if (entry.startsWith("/$bunfs/")) {
61
70
  return void 0;
62
71
  }
72
+ const candidate = fileURLToPath(new URL("../cli.js", import.meta.url));
73
+ if (existsSync(candidate))
74
+ return candidate;
75
+ const sourceBuild = fileURLToPath(new URL("../../dist/cli.js", import.meta.url));
76
+ if (existsSync(sourceBuild))
77
+ return sourceBuild;
63
78
  return path.resolve(entry);
64
79
  }
65
80
 
@@ -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-TPHPAEDH.js";
5
+ } from "./chunk-NQW3ES2G.js";
6
6
  import {
7
7
  cyanText,
8
8
  dimText,
9
9
  extraDimText,
10
10
  yellowText
11
- } from "./chunk-SCOMDV54.js";
11
+ } from "./chunk-TUQGOYK6.js";
12
12
 
13
- // node_modules/.pnpm/mcporter@0.13.8/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.8/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.8/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) {