@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,19 +1,12 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
- isUnauthorizedError
4
- } from "./chunk-IRTJXFWA.js";
5
- import {
6
- ProtocolErrorCode
7
- } from "./chunk-PZ323CXI.js";
8
- import {
9
- DAEMON_OAUTH_FLOW_ERROR_CODE,
10
- DAEMON_OPERATION_TIMEOUT_CODE
11
- } from "./chunk-3Z7MFS6K.js";
3
+ MCPORTER_VERSION
4
+ } from "./chunk-7PFJCLXL.js";
12
5
  import {
13
6
  isKeepAliveServer
14
- } from "./chunk-JG4TRUPF.js";
7
+ } from "./chunk-QJNF3A3F.js";
15
8
 
16
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/daemon/runtime-wrapper.js
9
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/daemon/runtime-wrapper.js
17
10
  function createKeepAliveRuntime(base, options) {
18
11
  if (!options.daemonClient || options.keepAliveServers.size === 0) {
19
12
  return base;
@@ -24,11 +17,18 @@ var KeepAliveRuntime = class {
24
17
  base;
25
18
  daemon;
26
19
  keepAliveServers;
27
- restartPromises = /* @__PURE__ */ new Map();
28
20
  constructor(base, daemon, keepAliveServers) {
29
21
  this.base = base;
30
22
  this.daemon = daemon;
31
23
  this.keepAliveServers = keepAliveServers;
24
+ const info = base.getClientInfo?.();
25
+ if (info)
26
+ this.daemon.setDefinitions(base.getDefinitions(), info);
27
+ else
28
+ this.daemon.setDefinitions(base.getDefinitions());
29
+ }
30
+ getClientInfo() {
31
+ return this.base.getClientInfo?.() ?? { name: "mcporter", version: MCPORTER_VERSION };
32
32
  }
33
33
  listServers() {
34
34
  return this.base.listServers();
@@ -41,6 +41,7 @@ var KeepAliveRuntime = class {
41
41
  }
42
42
  registerDefinition(definition, options) {
43
43
  this.base.registerDefinition(definition, options);
44
+ this.daemon.setDefinitions(this.base.getDefinitions(), this.base.getClientInfo?.());
44
45
  if (isKeepAliveServer(definition)) {
45
46
  this.keepAliveServers.add(definition.name);
46
47
  } else {
@@ -50,12 +51,33 @@ var KeepAliveRuntime = class {
50
51
  async getInstructions(server) {
51
52
  return this.base.getInstructions?.(server);
52
53
  }
53
- async listTools(server, options) {
54
- if (options?.oauthSessionOptions) {
55
- return this.base.listTools(server, options);
54
+ async getServerMetadata(server, options) {
55
+ if (this.shouldUseDaemon(server)) {
56
+ this.assertBrokerOptions(options);
57
+ return this.daemon.getServerMetadata({
58
+ server,
59
+ autoAuthorize: options?.autoAuthorize,
60
+ allowCachedAuth: options?.allowCachedAuth,
61
+ disableOAuth: options?.disableOAuth,
62
+ timeoutMs: options?.timeoutMs
63
+ });
56
64
  }
65
+ if (this.base.getServerMetadata)
66
+ return this.base.getServerMetadata(server, options);
67
+ const { client } = await this.base.connect(server, {
68
+ ...options,
69
+ disableOAuth: options?.autoAuthorize === false ? true : options?.disableOAuth
70
+ });
71
+ return { instructions: client.getInstructions(), serverInfo: client.getServerVersion() };
72
+ }
73
+ assertBrokerOptions(options) {
74
+ if (options?.oauthSessionOptions)
75
+ throw new Error("Interactive OAuth sessions require explicit authentication outside the keep-alive runtime.");
76
+ }
77
+ async listTools(server, options) {
57
78
  if (this.shouldUseDaemon(server)) {
58
- return await this.invokeWithRestart(server, "listTools", () => this.daemon.listTools({
79
+ this.assertBrokerOptions(options);
80
+ return await this.invokeOnce(server, "listTools", () => this.daemon.listTools({
59
81
  server,
60
82
  includeSchema: options?.includeSchema,
61
83
  autoAuthorize: options?.autoAuthorize,
@@ -68,7 +90,7 @@ var KeepAliveRuntime = class {
68
90
  }
69
91
  async callTool(server, toolName, options) {
70
92
  if (this.shouldUseDaemon(server)) {
71
- return this.invokeWithRestart(server, "callTool", () => this.daemon.callTool({
93
+ return this.invokeOnce(server, "callTool", () => this.daemon.callTool({
72
94
  server,
73
95
  tool: toolName,
74
96
  args: options?.args,
@@ -79,21 +101,17 @@ var KeepAliveRuntime = class {
79
101
  return this.base.callTool(server, toolName, options);
80
102
  }
81
103
  async listResources(server, options) {
82
- if (options?.oauthSessionOptions) {
83
- return this.base.listResources(server, options);
84
- }
85
104
  const { allowCachedAuth, disableOAuth, ...params } = options ?? {};
86
105
  if (this.shouldUseDaemon(server)) {
87
- return this.invokeWithRestart(server, "listResources", () => this.daemon.listResources({ server, params, allowCachedAuth, disableOAuth }));
106
+ this.assertBrokerOptions(options);
107
+ return this.invokeOnce(server, "listResources", () => this.daemon.listResources({ server, params, allowCachedAuth, disableOAuth }));
88
108
  }
89
109
  return this.base.listResources(server, options);
90
110
  }
91
111
  async readResource(server, uri, options) {
92
- if (options?.oauthSessionOptions) {
93
- return this.base.readResource(server, uri, options);
94
- }
95
112
  if (this.shouldUseDaemon(server)) {
96
- return this.invokeWithRestart(server, "readResource", () => this.daemon.readResource({
113
+ this.assertBrokerOptions(options);
114
+ return this.invokeOnce(server, "readResource", () => this.daemon.readResource({
97
115
  server,
98
116
  uri,
99
117
  allowCachedAuth: options?.allowCachedAuth,
@@ -103,11 +121,17 @@ var KeepAliveRuntime = class {
103
121
  return this.base.readResource(server, uri, options);
104
122
  }
105
123
  async connect(server, options) {
124
+ if (this.shouldUseDaemon(server))
125
+ throw new Error("Raw connections are unavailable for broker-owned servers; use runtime operations or getServerMetadata.");
106
126
  return this.base.connect(server, options);
107
127
  }
108
128
  async close(server) {
109
129
  if (!server) {
110
- await this.base.close();
130
+ try {
131
+ await this.daemon.release();
132
+ } finally {
133
+ await this.base.close();
134
+ }
111
135
  return;
112
136
  }
113
137
  if (this.shouldUseDaemon(server)) {
@@ -120,63 +144,10 @@ var KeepAliveRuntime = class {
120
144
  shouldUseDaemon(server) {
121
145
  return this.keepAliveServers.has(server);
122
146
  }
123
- async invokeWithRestart(server, operation, action) {
124
- try {
125
- return await action();
126
- } catch (error) {
127
- if (!shouldRestartDaemonServer(error)) {
128
- throw error;
129
- }
130
- logDaemonRetry(server, operation, error);
131
- await this.restartServer(server);
132
- return action();
133
- }
134
- }
135
- async restartServer(server) {
136
- const existing = this.restartPromises.get(server);
137
- if (existing) {
138
- await existing;
139
- return;
140
- }
141
- const restart = this.daemon.closeServer({ server }).catch(() => {
142
- });
143
- this.restartPromises.set(server, restart);
144
- try {
145
- await restart;
146
- } finally {
147
- this.restartPromises.delete(server);
148
- }
147
+ async invokeOnce(_server, _operation, action) {
148
+ return action();
149
149
  }
150
150
  };
151
- var NON_FATAL_CODES = /* @__PURE__ */ new Set([ProtocolErrorCode.InvalidRequest, ProtocolErrorCode.MethodNotFound, ProtocolErrorCode.InvalidParams]);
152
- function shouldRestartDaemonServer(error) {
153
- if (!error) {
154
- return false;
155
- }
156
- if (typeof error === "object") {
157
- const code2 = error.code;
158
- if (code2 === DAEMON_OPERATION_TIMEOUT_CODE || code2 === DAEMON_OAUTH_FLOW_ERROR_CODE) {
159
- return false;
160
- }
161
- }
162
- if (isUnauthorizedError(error)) {
163
- return false;
164
- }
165
- const code = protocolErrorCode(error);
166
- if (code !== void 0) {
167
- return !NON_FATAL_CODES.has(code);
168
- }
169
- return true;
170
- }
171
- function protocolErrorCode(error) {
172
- if (!error || typeof error !== "object" || !("code" in error))
173
- return void 0;
174
- return typeof error.code === "number" ? error.code : void 0;
175
- }
176
- function logDaemonRetry(server, operation, error) {
177
- const reason = error instanceof Error ? error.message : String(error);
178
- console.error(`[mcporter] Restarting '${server}' before retrying ${operation}: ${reason}`);
179
- }
180
151
 
181
152
  export {
182
153
  createKeepAliveRuntime
@@ -1,20 +1,20 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  __configInternals
4
- } from "./chunk-RD7NHCRK.js";
4
+ } from "./chunk-RZIJUJGL.js";
5
5
  import {
6
6
  withFileLock,
7
7
  writeTextFileAtomic
8
- } from "./chunk-ITR7FQM3.js";
8
+ } from "./chunk-H7ARMBV7.js";
9
9
  import {
10
10
  expandHome
11
- } from "./chunk-WTMJMM3B.js";
11
+ } from "./chunk-D6SVCPN6.js";
12
12
  import {
13
13
  canonicalKeepAliveName,
14
14
  resolveLifecycle
15
- } from "./chunk-JG4TRUPF.js";
15
+ } from "./chunk-QJNF3A3F.js";
16
16
 
17
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/ascii-slug.js
17
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/ascii-slug.js
18
18
  function toAsciiSlug(value) {
19
19
  let slug = "";
20
20
  let pendingSeparator = false;
@@ -35,7 +35,7 @@ function toAsciiSlug(value) {
35
35
  return slug;
36
36
  }
37
37
 
38
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/adhoc-server.js
38
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/adhoc-server.js
39
39
  import fs from "node:fs/promises";
40
40
  import path from "node:path";
41
41
  var TEMP_SOURCE = { kind: "local", path: "<adhoc>" };
@@ -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/json-output.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/json-output.js
4
4
  function buildConnectionIssueEnvelope(params) {
5
5
  return {
6
6
  server: params.server,
@@ -0,0 +1,123 @@
1
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
+
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/package.json
4
+ var package_default = {
5
+ name: "mcporter",
6
+ version: "0.13.13",
7
+ description: "TypeScript runtime and CLI for connecting to configured Model Context Protocol servers.",
8
+ keywords: [
9
+ "cli",
10
+ "mcp",
11
+ "model-context-protocol"
12
+ ],
13
+ license: "MIT",
14
+ author: "OpenClaw",
15
+ repository: {
16
+ type: "git",
17
+ url: "git+https://github.com/openclaw/mcporter.git"
18
+ },
19
+ bin: {
20
+ mcporter: "dist/cli.js"
21
+ },
22
+ files: [
23
+ "dist",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ type: "module",
28
+ main: "dist/index.js",
29
+ module: "dist/index.js",
30
+ types: "dist/index.d.ts",
31
+ exports: {
32
+ ".": {
33
+ import: "./dist/index.js",
34
+ types: "./dist/index.d.ts"
35
+ },
36
+ "./cli": {
37
+ import: "./dist/cli.js",
38
+ types: "./dist/cli.d.ts"
39
+ }
40
+ },
41
+ publishConfig: {
42
+ access: "public"
43
+ },
44
+ dependencies: {
45
+ "@iarna/toml": "^2.2.5",
46
+ "@modelcontextprotocol/client": "^2.0.0",
47
+ "@modelcontextprotocol/server": "^2.0.0",
48
+ acorn: "^8.18.0",
49
+ commander: "^15.0.0",
50
+ "es-toolkit": "^1.52.0",
51
+ "jsonc-parser": "^3.3.1",
52
+ ora: "^9.4.1",
53
+ rolldown: "1.2.8",
54
+ zod: "^4.6.2"
55
+ },
56
+ devDependencies: {
57
+ "@modelcontextprotocol/sdk": "^1.30.0",
58
+ "@types/estree": "^1.0.9",
59
+ "@types/express": "^5.0.6",
60
+ "@types/node": "^26.5.1",
61
+ "@typescript/native": "npm:typescript@^7.0.2",
62
+ "@vitest/coverage-v8": "^5.0.0",
63
+ "bun-types": "^1.4.2",
64
+ "cross-env": "^10.1.0",
65
+ express: "^5.2.1",
66
+ oxfmt: "^0.67.0",
67
+ oxlint: "^1.82.0",
68
+ "oxlint-tsgolint": "^7.0.2001",
69
+ rimraf: "^6.1.3",
70
+ tsx: "^4.23.13",
71
+ typescript: "npm:@typescript/typescript6@^6.0.2",
72
+ vite: "8.3.0",
73
+ vitest: "^5.0.0"
74
+ },
75
+ devEngines: {
76
+ runtime: [
77
+ {
78
+ name: "node",
79
+ version: ">=24"
80
+ }
81
+ ]
82
+ },
83
+ engines: {
84
+ node: ">=24"
85
+ },
86
+ scripts: {
87
+ mcporter: "tsx src/cli.ts",
88
+ mcp: "pnpm exec tsx src/cli.ts",
89
+ build: `tsc -p tsconfig.build.json && node -e "require('fs').chmodSync('dist/cli.js', 0o755)"`,
90
+ "build:bun": "bun scripts/build-bun.ts",
91
+ check: "pnpm format:check && pnpm lint:oxlint && pnpm typecheck",
92
+ format: "oxfmt .",
93
+ "format:check": "oxfmt --check .",
94
+ lint: "pnpm check",
95
+ "lint:oxlint": "oxlint --type-aware --tsconfig tsconfig.json --report-unused-disable-directives --deny-warnings --max-warnings=0 --allow eslint/no-underscore-dangle",
96
+ typecheck: "tsc --project tsconfig.json --noEmit",
97
+ test: "cross-env MCPORTER_TEST_REPORTER=quiet pnpm test:verbose",
98
+ "test:quiet": "cross-env MCPORTER_TEST_REPORTER=quiet pnpm test:verbose",
99
+ "test:verbose": "pnpm build && node scripts/test-runner.js",
100
+ "test:live": "MCP_LIVE_TESTS=1 vitest run tests/live",
101
+ "test:coverage": "pnpm build && cross-env MCPORTER_TEST_REPORTER=quiet vitest run --coverage",
102
+ clean: "rimraf dist",
103
+ dev: "tsc -w -p tsconfig.build.json",
104
+ "docs:list": "pnpm exec tsx scripts/docs-list.ts",
105
+ "docs:site": "node scripts/build-docs-site.mjs",
106
+ "generate:schema": "tsx scripts/generate-json-schema.ts",
107
+ "mcporter:list": "pnpm exec tsx src/cli.ts list",
108
+ "mcporter:call": "pnpm exec tsx src/cli.ts call",
109
+ "check:changed": "pnpm run check",
110
+ "test:changed": "pnpm run test",
111
+ "crabbox:hydrate": "crabbox actions hydrate",
112
+ "crabbox:run": "crabbox run",
113
+ "crabbox:stop": "crabbox stop",
114
+ "crabbox:warmup": "crabbox warmup"
115
+ }
116
+ };
117
+
118
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/version.js
119
+ var MCPORTER_VERSION = package_default.version;
120
+
121
+ export {
122
+ MCPORTER_VERSION
123
+ };
@@ -0,0 +1,31 @@
1
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
+ import {
3
+ createKeepAliveRuntime
4
+ } from "./chunk-6QZQZXDJ.js";
5
+ import {
6
+ DaemonClient
7
+ } from "./chunk-FBVRU4Y3.js";
8
+ import {
9
+ isKeepAliveServer
10
+ } from "./chunk-QJNF3A3F.js";
11
+
12
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/generated-daemon-runtime.js
13
+ async function createGeneratedKeepAliveRuntime(base, server) {
14
+ if (!isKeepAliveServer(server)) {
15
+ return {
16
+ runtime: base,
17
+ close: async (target) => {
18
+ await base.close(target);
19
+ }
20
+ };
21
+ }
22
+ const runtime = createKeepAliveRuntime(base, {
23
+ daemonClient: new DaemonClient({ configPath: "", configExplicit: false }),
24
+ keepAliveServers: /* @__PURE__ */ new Set([server.name])
25
+ });
26
+ return { runtime, close: () => runtime.close() };
27
+ }
28
+
29
+ export {
30
+ createGeneratedKeepAliveRuntime
31
+ };
@@ -1,9 +1,9 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  pickSharedDefinitionFields
4
- } from "./chunk-IYWYVHHD.js";
4
+ } from "./chunk-WHJUDBPR.js";
5
5
 
6
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli-metadata.js
6
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli-metadata.js
7
7
  import { spawn } from "node:child_process";
8
8
  import fs from "node:fs/promises";
9
9
  function metadataPathForArtifact(artifactPath) {
@@ -92,7 +92,7 @@ function serializeDefinition(definition) {
92
92
  };
93
93
  }
94
94
 
95
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/generate/tool-selection.js
95
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/generate/tool-selection.js
96
96
  function validateToolSelection(includeTools, excludeTools, context) {
97
97
  if (includeTools && excludeTools) {
98
98
  throw new Error(context.mutuallyExclusiveMessage);
@@ -105,7 +105,7 @@ function validateToolSelection(includeTools, excludeTools, context) {
105
105
  }
106
106
  }
107
107
 
108
- // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/generate/template-data.js
108
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/generate/template-data.js
109
109
  function buildGenerateCliCommand(invocation, definition, globalFlags = {}) {
110
110
  const tokens = ["mcporter"];
111
111
  const configPath = invocation.configPath ?? globalFlags["--config"];
@@ -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/record-replay-env.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/cli/record-replay-env.js
4
4
  var KEEP_ALIVE_DISABLED_FOR_MODE = "*";
5
5
  function buildRecordCommandEnv(sessionName, server) {
6
6
  return buildModeEnv({
@@ -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/runtime/elicitation.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/runtime/elicitation.js
4
4
  import readline from "node:readline";
5
5
  var NON_INTERACTIVE_ELICITATION_HINT = "Server requested interactive input; run mcporter in a terminal.";
6
6
  function createInteractiveElicitationResponder(options = {}) {
@@ -1,17 +1,16 @@
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/env.js
3
+ // node_modules/.pnpm/mcporter@0.13.13/node_modules/mcporter/dist/env.js
4
4
  import os from "node:os";
5
5
  import path from "node:path";
6
6
  var ENV_DEFAULT_PATTERN = /^\$\{([A-Za-z_][A-Za-z0-9_]*)(?::-|:|-)?([^}]*)\}$/;
7
7
  var ENV_INTERPOLATION_PATTERN = /\\?\$\{([A-Za-z_][A-Za-z0-9_]*)(?::-(.*?))?\}/g;
8
8
  var UNSUPPORTED_BRACED_ENV_PATTERN = /\$\{env:[^}]*\}/;
9
9
  var ENV_DIRECT_PREFIX = "$env:";
10
- function expandHome(input) {
10
+ function expandHome(input, home = os.homedir()) {
11
11
  if (!input.startsWith("~")) {
12
12
  return input;
13
13
  }
14
- const home = os.homedir();
15
14
  if (input === "~") {
16
15
  return home;
17
16
  }
@@ -81,35 +80,9 @@ function rejectUnsupportedBracedEnvPlaceholder(value) {
81
80
  }
82
81
  throw new Error(`Unsupported environment placeholder '${unsupported}'. Use '\${VAR}', '\${VAR:-fallback}', or whole-value '$env:VAR'.`);
83
82
  }
84
- async function withEnvOverrides(envOverrides, fn) {
85
- if (!envOverrides || Object.keys(envOverrides).length === 0) {
86
- return await fn();
87
- }
88
- const applied = [];
89
- for (const [key, rawValue] of Object.entries(envOverrides)) {
90
- rejectUnsupportedBracedEnvPlaceholder(rawValue);
91
- if (process.env[key]) {
92
- continue;
93
- }
94
- const resolved = resolveEnvValue(rawValue);
95
- if (resolved === "") {
96
- continue;
97
- }
98
- process.env[key] = resolved;
99
- applied.push(key);
100
- }
101
- try {
102
- return await fn();
103
- } finally {
104
- for (const key of applied) {
105
- delete process.env[key];
106
- }
107
- }
108
- }
109
83
 
110
84
  export {
111
85
  expandHome,
112
86
  resolveEnvValue,
113
- resolveEnvPlaceholders,
114
- withEnvOverrides
87
+ resolveEnvPlaceholders
115
88
  };