@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/cli/terminal.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/terminal.js
4
4
  var forceColorRaw = process.env.FORCE_COLOR?.toLowerCase();
5
5
  var forceDisableColor = forceColorRaw === "0" || forceColorRaw === "false";
6
6
  var forceEnableColor = forceColorRaw === "1" || forceColorRaw === "true" || forceColorRaw === "2" || forceColorRaw === "3";
@@ -7,26 +7,31 @@ import {
7
7
  reconcilePersistedTokens,
8
8
  withRefreshLock,
9
9
  withRefreshRequestTimeout
10
- } from "./chunk-ASG4OY3M.js";
10
+ } from "./chunk-IF6LRV3J.js";
11
11
  import {
12
+ runtimeEnvironment,
12
13
  sameOAuthTokenGeneration
13
- } from "./chunk-53NRFMB3.js";
14
+ } from "./chunk-XNHGMWN2.js";
14
15
  import {
15
- isUnauthorizedError
16
- } from "./chunk-IRTJXFWA.js";
16
+ isFileLockTimeoutError
17
+ } from "./chunk-H7ARMBV7.js";
18
+ import {
19
+ analyzeConnectionError
20
+ } from "./chunk-O4JIUOWF.js";
17
21
  import {
18
22
  IssuerMismatchError,
19
23
  auth,
20
24
  validateClientMetadataUrl
21
- } from "./chunk-PZ323CXI.js";
22
- import {
23
- suppressBrowserLaunchFromEnv
24
- } from "./chunk-DTZHEVKC.js";
25
- import {
26
- isFileLockTimeoutError
27
- } from "./chunk-ITR7FQM3.js";
25
+ } from "./chunk-S5F3HEZZ.js";
28
26
 
29
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth.js
27
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-browser-suppression.js
28
+ var TRUE_VALUES = /* @__PURE__ */ new Set(["1", "true", "yes"]);
29
+ function suppressBrowserLaunchFromEnv(env = runtimeEnvironment()) {
30
+ const raw = env.MCPORTER_OAUTH_NO_BROWSER;
31
+ return raw !== void 0 && TRUE_VALUES.has(raw.trim().toLowerCase());
32
+ }
33
+
34
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth.js
30
35
  import { spawn } from "node:child_process";
31
36
  import { createHash, randomUUID } from "node:crypto";
32
37
  import http from "node:http";
@@ -61,20 +66,13 @@ var OAuthRedirectUriMismatchError = class extends Error {
61
66
  this.name = "OAuthRedirectUriMismatchError";
62
67
  }
63
68
  };
64
- function createDeferred() {
65
- let resolve;
66
- let reject;
67
- const promise = new Promise((res, rej) => {
68
- resolve = res;
69
- reject = rej;
70
- });
71
- return { promise, resolve, reject };
72
- }
73
69
  function openExternal(url, platform = process.platform, launch = spawn) {
74
70
  const stdio = "ignore";
75
71
  try {
76
72
  if (platform === "darwin") {
77
73
  const child = launch("open", [url], { stdio, detached: true });
74
+ child.on("error", () => {
75
+ });
78
76
  child.unref();
79
77
  } else if (platform === "win32") {
80
78
  const child = launch("rundll32", ["url.dll,FileProtocolHandler", url], {
@@ -82,6 +80,8 @@ function openExternal(url, platform = process.platform, launch = spawn) {
82
80
  detached: true,
83
81
  windowsHide: true
84
82
  });
83
+ child.on("error", () => {
84
+ });
85
85
  child.unref();
86
86
  } else {
87
87
  try {
@@ -455,10 +455,7 @@ var PersistentOAuthClientProvider = class _PersistentOAuthClientProvider {
455
455
  });
456
456
  }
457
457
  ensureAuthorizationDeferred() {
458
- if (!this.authorizationDeferred) {
459
- this.authorizationDeferred = createDeferred();
460
- }
461
- return this.authorizationDeferred;
458
+ return this.authorizationDeferred ??= Promise.withResolvers();
462
459
  }
463
460
  hasActiveInteractiveAuthorization() {
464
461
  if (!this.interactiveAuthorization) {
@@ -537,7 +534,26 @@ var __oauthInternals = {
537
534
  openExternal
538
535
  };
539
536
 
540
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/runtime/oauth.js
537
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime-oauth-support.js
538
+ function maybeEnableOAuth(definition, logger) {
539
+ if (definition.auth === "oauth" || definition.auth === "refreshable_bearer") {
540
+ return void 0;
541
+ }
542
+ if (definition.command.kind !== "http") {
543
+ return void 0;
544
+ }
545
+ logger.info(`Detected OAuth requirement for '${definition.name}'. Launching browser flow...`);
546
+ return {
547
+ ...definition,
548
+ auth: "oauth"
549
+ };
550
+ }
551
+ function isUnauthorizedError(error) {
552
+ const issue = analyzeConnectionError(error);
553
+ return issue.kind === "auth";
554
+ }
555
+
556
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime/oauth.js
541
557
  var DEFAULT_OAUTH_CODE_TIMEOUT_MS = 3e5;
542
558
  var OAUTH_FLOW_ERROR = /* @__PURE__ */ Symbol("oauth-flow-error");
543
559
  var POST_AUTH_CONNECT_ERROR = /* @__PURE__ */ Symbol("post-auth-connect-error");
@@ -810,11 +826,14 @@ function parseOAuthTimeout(raw) {
810
826
  return parsed;
811
827
  }
812
828
  function resolveOAuthTimeoutFromEnv() {
813
- return parseOAuthTimeout(process.env.MCPORTER_OAUTH_TIMEOUT_MS ?? process.env.MCPORTER_OAUTH_TIMEOUT);
829
+ return parseOAuthTimeout(runtimeEnvironment().MCPORTER_OAUTH_TIMEOUT_MS ?? runtimeEnvironment().MCPORTER_OAUTH_TIMEOUT);
814
830
  }
815
831
 
816
832
  export {
833
+ suppressBrowserLaunchFromEnv,
817
834
  createOAuthSession,
835
+ maybeEnableOAuth,
836
+ isUnauthorizedError,
818
837
  OAuthTimeoutError,
819
838
  isOAuthFlowError,
820
839
  isPostAuthConnectError,
@@ -1,9 +1,9 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  expandHome
4
- } from "./chunk-WTMJMM3B.js";
4
+ } from "./chunk-D6SVCPN6.js";
5
5
 
6
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/paths.js
6
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/paths.js
7
7
  import os from "node:os";
8
8
  import path from "node:path";
9
9
  var XDG_HOME_ENV = {
@@ -25,11 +25,11 @@ function mcporterDir(kind) {
25
25
  }
26
26
  return legacyMcporterDir();
27
27
  }
28
- function mcporterConfigCandidates() {
29
- const base = mcporterDir("config");
28
+ function mcporterConfigCandidates(context) {
29
+ const legacy = context ? path.join(context.home, ".mcporter") : legacyMcporterDir();
30
+ const base = context ? context.configHome ? path.join(context.configHome, "mcporter") : legacy : mcporterDir("config");
30
31
  const candidates = [path.join(base, "mcporter.json"), path.join(base, "mcporter.jsonc")];
31
- if (base !== legacyMcporterDir()) {
32
- const legacy = legacyMcporterDir();
32
+ if (base !== legacy) {
33
33
  candidates.push(path.join(legacy, "mcporter.json"), path.join(legacy, "mcporter.jsonc"));
34
34
  }
35
35
  return candidates;
@@ -1,9 +1,9 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  buildToolMetadataList
4
- } from "./chunk-TPHPAEDH.js";
4
+ } from "./chunk-NQW3ES2G.js";
5
5
 
6
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/tool-cache.js
6
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/tool-cache.js
7
7
  var runtimeCache = /* @__PURE__ */ new WeakMap();
8
8
  function cacheKey(serverName, options) {
9
9
  const includeSchema = options.includeSchema !== false;
@@ -1,9 +1,9 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  normalizeHttpUrl
4
- } from "./chunk-G6OMDUNG.js";
4
+ } from "./chunk-2P2HVZ3G.js";
5
5
 
6
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/server-lookup.js
6
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/server-lookup.js
7
7
  function findServerByHttpUrl(definitions, urlString) {
8
8
  const normalizedTarget = normalizeHttpUrl(urlString);
9
9
  if (!normalizedTarget) {
@@ -1,12 +1,12 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  mcporterConfigCandidates
4
- } from "./chunk-FS5JIKT6.js";
4
+ } from "./chunk-UHO6KIUJ.js";
5
5
  import {
6
6
  expandHome
7
- } from "./chunk-WTMJMM3B.js";
7
+ } from "./chunk-D6SVCPN6.js";
8
8
 
9
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/config/path-discovery.js
9
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/config/path-discovery.js
10
10
  import fsSync from "node:fs";
11
11
  import fs from "node:fs/promises";
12
12
  import path from "node:path";
@@ -4,12 +4,12 @@ import {
4
4
  extraDimText,
5
5
  redText,
6
6
  yellowText
7
- } from "./chunk-SCOMDV54.js";
7
+ } from "./chunk-TUQGOYK6.js";
8
8
  import {
9
9
  analyzeConnectionError
10
- } from "./chunk-QZUC2T72.js";
10
+ } from "./chunk-O4JIUOWF.js";
11
11
 
12
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/path-utils.js
12
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/path-utils.js
13
13
  import os from "node:os";
14
14
  import path from "node:path";
15
15
  function formatPathForDisplay(filePath) {
@@ -19,7 +19,7 @@ function formatPathForDisplay(filePath) {
19
19
  return displayPath;
20
20
  }
21
21
 
22
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/list-format.js
22
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/list-format.js
23
23
  function renderServerListRow(result, timeoutMs, options = {}) {
24
24
  const description = result.server.description ? dimText(` \u2014 ${result.server.description}`) : "";
25
25
  const durationLabel = dimText(`${(result.durationMs / 1e3).toFixed(1)}s`);
@@ -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/definition-fields.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/definition-fields.js
4
4
  var SHARED_DEFINITION_FIELDS = [
5
5
  "auth",
6
6
  "tokenCacheDir",
@@ -4,17 +4,13 @@ import {
4
4
  withFileLock,
5
5
  writeJsonFile,
6
6
  writeTextFileAtomic
7
- } from "./chunk-ITR7FQM3.js";
8
- import {
9
- legacyMcporterDir,
10
- mcporterDir
11
- } from "./chunk-FS5JIKT6.js";
7
+ } from "./chunk-H7ARMBV7.js";
12
8
 
13
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-vault.js
9
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-vault.js
14
10
  import crypto from "node:crypto";
15
- import path from "node:path";
11
+ import path2 from "node:path";
16
12
 
17
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-credential-validation.js
13
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-credential-validation.js
18
14
  function isRecord(value) {
19
15
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
20
16
  }
@@ -35,7 +31,7 @@ function isStoredOAuthClientInformation(value) {
35
31
  return isOptionalString(value, "issuer");
36
32
  }
37
33
 
38
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-token-generation.js
34
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-token-generation.js
39
35
  import { randomUUID } from "node:crypto";
40
36
  import { isDeepStrictEqual } from "node:util";
41
37
  var TOKEN_GENERATION_FIELD = "__mcporter_generation";
@@ -115,9 +111,32 @@ function sameOAuthClientValue(left, right) {
115
111
  return isDeepStrictEqual(withoutClientGeneration(left), withoutClientGeneration(right));
116
112
  }
117
113
 
118
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-vault.js
114
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime/environment.js
115
+ import { AsyncLocalStorage } from "node:async_hooks";
116
+ import os from "node:os";
117
+ import path from "node:path";
118
+ var connectionEnvironment = new AsyncLocalStorage();
119
+ function runtimeEnvironment() {
120
+ return connectionEnvironment.getStore() ?? process.env;
121
+ }
122
+ function withRuntimeEnvironment(env, action) {
123
+ return connectionEnvironment.run(env, action);
124
+ }
125
+ function runtimeHome() {
126
+ if (!connectionEnvironment.getStore())
127
+ return os.homedir();
128
+ const env = runtimeEnvironment();
129
+ return env.HOME ?? env.USERPROFILE ?? os.userInfo().homedir;
130
+ }
131
+ function runtimeStateDir(kind) {
132
+ const env = runtimeEnvironment();
133
+ const root = env[kind === "data" ? "XDG_DATA_HOME" : "XDG_CACHE_HOME"];
134
+ return root && path.isAbsolute(root) ? path.join(root, "mcporter") : path.join(runtimeHome(), ".mcporter");
135
+ }
136
+
137
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-vault.js
119
138
  function getOAuthVaultPath() {
120
- return path.join(mcporterDir("data"), "credentials.json");
139
+ return path2.join(runtimeStateDir("data"), "credentials.json");
121
140
  }
122
141
  async function readVaultState() {
123
142
  try {
@@ -412,10 +431,9 @@ async function clearVaultEntry(definition, scope) {
412
431
  });
413
432
  }
414
433
 
415
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth-persistence-stores.js
434
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/oauth-persistence-stores.js
416
435
  import fs from "node:fs/promises";
417
- import os from "node:os";
418
- import path2 from "node:path";
436
+ import path3 from "node:path";
419
437
  function withStoredExpiry(tokens) {
420
438
  const stored = tokens;
421
439
  if (typeof stored.expires_at === "number" || typeof stored.expiresAt === "number") {
@@ -450,14 +468,14 @@ var DirectoryPersistence = class {
450
468
  this.logger = logger;
451
469
  this.serverUrl = serverUrl;
452
470
  this.skipUrlMarkerWhenMissing = skipUrlMarkerWhenMissing;
453
- this.tokenPath = path2.join(root, "tokens.json");
454
- this.clientInfoPath = path2.join(root, "client.json");
455
- this.codeVerifierPath = path2.join(root, "code_verifier.txt");
456
- this.statePath = path2.join(root, "state.txt");
457
- this.serverUrlPath = path2.join(root, "server_url.txt");
458
- this.discoveryStatePath = path2.join(root, "discovery.json");
459
- this.authorizationServerUrlPath = path2.join(root, "authorization_server_url.txt");
460
- this.resourceUrlPath = path2.join(root, "resource_url.txt");
471
+ this.tokenPath = path3.join(root, "tokens.json");
472
+ this.clientInfoPath = path3.join(root, "client.json");
473
+ this.codeVerifierPath = path3.join(root, "code_verifier.txt");
474
+ this.statePath = path3.join(root, "state.txt");
475
+ this.serverUrlPath = path3.join(root, "server_url.txt");
476
+ this.discoveryStatePath = path3.join(root, "discovery.json");
477
+ this.authorizationServerUrlPath = path3.join(root, "authorization_server_url.txt");
478
+ this.resourceUrlPath = path3.join(root, "resource_url.txt");
461
479
  }
462
480
  describe() {
463
481
  return this.root;
@@ -925,7 +943,7 @@ async function createOAuthPersistenceStores(definition, logger) {
925
943
  if (definition.tokenCacheDir) {
926
944
  stores.unshift(new DirectoryPersistence(definition.tokenCacheDir, logger, serverUrl));
927
945
  }
928
- const legacyDir = path2.join(legacyMcporterDir(), definition.name);
946
+ const legacyDir = path3.join(path3.join(runtimeHome(), ".mcporter"), definition.name);
929
947
  if (!definition.tokenCacheDir) {
930
948
  const legacy = new DirectoryPersistence(legacyDir, logger, serverUrl, true);
931
949
  const snapshot = await legacy.readSnapshot();
@@ -957,14 +975,14 @@ async function createOAuthPersistenceStores(definition, logger) {
957
975
  return stores.length === 1 ? vault : new CompositePersistence(stores);
958
976
  }
959
977
  async function clearLegacyOAuthArtifacts(definition, logger, scope) {
960
- const legacyDir = path2.join(legacyMcporterDir(), definition.name);
978
+ const legacyDir = path3.join(path3.join(runtimeHome(), ".mcporter"), definition.name);
961
979
  if (!definition.tokenCacheDir || legacyDir !== definition.tokenCacheDir) {
962
980
  const legacy = new DirectoryPersistence(legacyDir, logger);
963
981
  await legacy.clear(scope);
964
982
  }
965
983
  const legacyFiles = [];
966
984
  if (definition.name.toLowerCase() === "gmail") {
967
- legacyFiles.push(path2.join(os.homedir(), ".gmail-mcp", "credentials.json"));
985
+ legacyFiles.push(path3.join(runtimeHome(), ".gmail-mcp", "credentials.json"));
968
986
  }
969
987
  await Promise.all(legacyFiles.map(async (file) => {
970
988
  try {
@@ -979,6 +997,9 @@ async function clearLegacyOAuthArtifacts(definition, logger, scope) {
979
997
  }
980
998
 
981
999
  export {
1000
+ runtimeEnvironment,
1001
+ withRuntimeEnvironment,
1002
+ runtimeStateDir,
982
1003
  sameOAuthTokenGeneration,
983
1004
  getOAuthVaultPath,
984
1005
  vaultCredentialKeys,