@claudiolabs/claudio 0.1.11 → 0.1.12

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 (805) hide show
  1. package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +1 -0
  2. package/dist/chunks/App-0.1.12-t1g68ag4.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.1.12-x3zt5579.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +1 -0
  7. package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.1.12-tzjdg5ys.mjs +3 -0
  11. package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +1 -0
  12. package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +1 -0
  14. package/dist/chunks/InProcessTransport-0.1.12-xnrc78z1.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +1 -0
  20. package/dist/chunks/REPL-0.1.12-4750qvss.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-0.1.12-f1byjres.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +1 -0
  30. package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +1 -0
  31. package/dist/chunks/agents-0.1.12-1dz073e3.mjs +3 -0
  32. package/dist/chunks/agents-0.1.12-vfwpnn0d.mjs +111 -0
  33. package/dist/chunks/api-0.1.12-e314x4g9.mjs +1 -0
  34. package/dist/chunks/asciicast-0.1.12-nwzfr5gz.mjs +1 -0
  35. package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +1 -0
  36. package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +1 -0
  37. package/dist/chunks/auth-0.1.12-vhdwtwhb.mjs +1 -0
  38. package/dist/chunks/autoMode-0.1.12-xjr5qd6q.mjs +48 -0
  39. package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +1 -0
  40. package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +4 -0
  41. package/dist/chunks/bridgePointer-0.1.12-vdj4j4ke.mjs +1 -0
  42. package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +1 -0
  43. package/dist/chunks/buddy-0.1.12-4q50s2x4.mjs +3 -0
  44. package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +1 -0
  45. package/dist/chunks/cache-probe-0.1.12-4s8cc2km.mjs +21 -0
  46. package/dist/chunks/cacheStats-0.1.12-qqcw6b5n.mjs +4 -0
  47. package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +1 -0
  48. package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +1 -0
  49. package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +2 -0
  50. package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +1 -0
  51. package/dist/chunks/claudeDesktop-0.1.12-1yrkynq4.mjs +1 -0
  52. package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +1 -0
  53. package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +1 -0
  54. package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +1 -0
  55. package/dist/chunks/cli-0.1.12-024a8zz7.mjs +2 -0
  56. package/dist/chunks/cli-0.1.12-04jw23rj.mjs +2 -0
  57. package/dist/chunks/cli-0.1.12-04v3yab2.mjs +3 -0
  58. package/dist/chunks/cli-0.1.12-0eznapyf.mjs +2 -0
  59. package/dist/chunks/cli-0.1.12-0kqx19vz.mjs +2 -0
  60. package/dist/chunks/cli-0.1.12-0vf5f6qn.mjs +2 -0
  61. package/dist/chunks/cli-0.1.12-0x3cd401.mjs +2 -0
  62. package/dist/chunks/cli-0.1.12-0xzdygm2.mjs +50 -0
  63. package/dist/chunks/cli-0.1.12-19as1myk.mjs +2 -0
  64. package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +2 -0
  65. package/dist/chunks/cli-0.1.12-1hv04bp7.mjs +2 -0
  66. package/dist/chunks/cli-0.1.12-1x06khjr.mjs +2 -0
  67. package/dist/chunks/cli-0.1.12-238c85zt.mjs +2 -0
  68. package/dist/chunks/cli-0.1.12-242der7s.mjs +5036 -0
  69. package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +2 -0
  70. package/dist/chunks/cli-0.1.12-2fajd44n.mjs +2 -0
  71. package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +2 -0
  72. package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +2 -0
  73. package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +2 -0
  74. package/dist/chunks/cli-0.1.12-2zqgfhrb.mjs +2 -0
  75. package/dist/chunks/cli-0.1.12-34gqc6yf.mjs +2 -0
  76. package/dist/chunks/cli-0.1.12-352pjhkh.mjs +2 -0
  77. package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +2 -0
  78. package/dist/chunks/cli-0.1.12-37ga9zc2.mjs +2 -0
  79. package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +2 -0
  80. package/dist/chunks/cli-0.1.12-3ywnr2v1.mjs +2 -0
  81. package/dist/chunks/cli-0.1.12-4gj8p030.mjs +22 -0
  82. package/dist/chunks/cli-0.1.12-4qedbzt3.mjs +24 -0
  83. package/dist/chunks/cli-0.1.12-4sh0f4y1.mjs +3 -0
  84. package/dist/chunks/cli-0.1.12-4syxz3pe.mjs +12 -0
  85. package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +2 -0
  86. package/dist/chunks/cli-0.1.12-4wwhk7dc.mjs +2 -0
  87. package/dist/chunks/cli-0.1.12-4ys47rex.mjs +2 -0
  88. package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +4 -0
  89. package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +2 -0
  90. package/dist/chunks/cli-0.1.12-5exp787z.mjs +18 -0
  91. package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +2 -0
  92. package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +2 -0
  93. package/dist/chunks/cli-0.1.12-5pw10pf8.mjs +2 -0
  94. package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +2 -0
  95. package/dist/chunks/cli-0.1.12-5ye0t0xd.mjs +2 -0
  96. package/dist/chunks/cli-0.1.12-6238zg7k.mjs +2 -0
  97. package/dist/chunks/cli-0.1.12-6ddq5n4e.mjs +2 -0
  98. package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +16 -0
  99. package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +2 -0
  100. package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +2 -0
  101. package/dist/chunks/cli-0.1.12-6zryzryc.mjs +2 -0
  102. package/dist/chunks/cli-0.1.12-73k5qd97.mjs +13 -0
  103. package/dist/chunks/cli-0.1.12-74tt2500.mjs +2 -0
  104. package/dist/chunks/cli-0.1.12-756ngehz.mjs +4 -0
  105. package/dist/chunks/cli-0.1.12-7da43cy1.mjs +2 -0
  106. package/dist/chunks/cli-0.1.12-7ehqw1dk.mjs +2 -0
  107. package/dist/chunks/cli-0.1.12-7mjpbm22.mjs +2 -0
  108. package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +2 -0
  109. package/dist/chunks/cli-0.1.12-7xsa2bcp.mjs +2 -0
  110. package/dist/chunks/cli-0.1.12-817sd5bc.mjs +6 -0
  111. package/dist/chunks/cli-0.1.12-830kqdpq.mjs +3 -0
  112. package/dist/chunks/cli-0.1.12-86nmrm6g.mjs +2 -0
  113. package/dist/chunks/cli-0.1.12-8qm558mj.mjs +2 -0
  114. package/dist/chunks/cli-0.1.12-8qvgy8xr.mjs +2 -0
  115. package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +2 -0
  116. package/dist/chunks/cli-0.1.12-8znn9f50.mjs +2 -0
  117. package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +2 -0
  118. package/dist/chunks/cli-0.1.12-9gs0g8yb.mjs +2 -0
  119. package/dist/chunks/cli-0.1.12-9pq0gse0.mjs +3 -0
  120. package/dist/chunks/cli-0.1.12-9v01t95v.mjs +2 -0
  121. package/dist/chunks/cli-0.1.12-a2frnpdd.mjs +2 -0
  122. package/dist/chunks/cli-0.1.12-a2qh6gjr.mjs +5 -0
  123. package/dist/chunks/cli-0.1.12-a5h71tt8.mjs +34 -0
  124. package/dist/chunks/cli-0.1.12-actnmgw5.mjs +2 -0
  125. package/dist/chunks/cli-0.1.12-ae3e3ffp.mjs +2 -0
  126. package/dist/chunks/cli-0.1.12-af1r644n.mjs +2 -0
  127. package/dist/chunks/cli-0.1.12-awb2yac7.mjs +3 -0
  128. package/dist/chunks/cli-0.1.12-b01yrner.mjs +2 -0
  129. package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +4 -0
  130. package/dist/chunks/cli-0.1.12-bddm1g1s.mjs +59 -0
  131. package/dist/chunks/cli-0.1.12-bh7jp3zk.mjs +2 -0
  132. package/dist/chunks/cli-0.1.12-bhxgr018.mjs +4 -0
  133. package/dist/chunks/cli-0.1.12-bjzb0sjt.mjs +132 -0
  134. package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +2 -0
  135. package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +2 -0
  136. package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +833 -0
  137. package/dist/chunks/cli-0.1.12-c23pyffx.mjs +2 -0
  138. package/dist/chunks/cli-0.1.12-c28bme4j.mjs +2 -0
  139. package/dist/chunks/cli-0.1.12-c47ape20.mjs +7 -0
  140. package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +2 -0
  141. package/dist/chunks/cli-0.1.12-cxn1ke77.mjs +2 -0
  142. package/dist/chunks/cli-0.1.12-d0es0fxd.mjs +2 -0
  143. package/dist/chunks/cli-0.1.12-d8m01qtm.mjs +2 -0
  144. package/dist/chunks/cli-0.1.12-dc4e6688.mjs +2 -0
  145. package/dist/chunks/cli-0.1.12-dqynn0at.mjs +2 -0
  146. package/dist/chunks/cli-0.1.12-ds2mn8zn.mjs +2 -0
  147. package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +8 -0
  148. package/dist/chunks/cli-0.1.12-e262snmb.mjs +3 -0
  149. package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +2 -0
  150. package/dist/chunks/cli-0.1.12-erggrdth.mjs +9 -0
  151. package/dist/chunks/cli-0.1.12-f0x1y6nn.mjs +2 -0
  152. package/dist/chunks/cli-0.1.12-faa9mx3m.mjs +15 -0
  153. package/dist/chunks/cli-0.1.12-fqpxr3qb.mjs +2 -0
  154. package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +2 -0
  155. package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +2 -0
  156. package/dist/chunks/cli-0.1.12-g2s9mjr6.mjs +2 -0
  157. package/dist/chunks/cli-0.1.12-g3ycbjxk.mjs +2 -0
  158. package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +2 -0
  159. package/dist/chunks/cli-0.1.12-g604mknq.mjs +2 -0
  160. package/dist/chunks/cli-0.1.12-g728hcdr.mjs +2 -0
  161. package/dist/chunks/cli-0.1.12-g8mny195.mjs +2 -0
  162. package/dist/chunks/cli-0.1.12-h0d833vg.mjs +24 -0
  163. package/dist/chunks/cli-0.1.12-h248m986.mjs +2 -0
  164. package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +2 -0
  165. package/dist/chunks/cli-0.1.12-hsw67esw.mjs +2 -0
  166. package/dist/chunks/cli-0.1.12-j6gjfwh5.mjs +31 -0
  167. package/dist/chunks/cli-0.1.12-j6hwb68p.mjs +45 -0
  168. package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +2 -0
  169. package/dist/chunks/cli-0.1.12-jqrk975g.mjs +15 -0
  170. package/dist/chunks/cli-0.1.12-k2164g7e.mjs +2 -0
  171. package/dist/chunks/cli-0.1.12-kea0zcje.mjs +2 -0
  172. package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +2 -0
  173. package/dist/chunks/cli-0.1.12-ktpqrbjc.mjs +2 -0
  174. package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +2 -0
  175. package/dist/chunks/cli-0.1.12-kys514qx.mjs +2 -0
  176. package/dist/chunks/cli-0.1.12-kzd4y6yq.mjs +3 -0
  177. package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +2 -0
  178. package/dist/chunks/cli-0.1.12-m6jeef2z.mjs +6 -0
  179. package/dist/chunks/cli-0.1.12-mevh0dza.mjs +2 -0
  180. package/dist/chunks/cli-0.1.12-mr41yjpw.mjs +2 -0
  181. package/dist/chunks/cli-0.1.12-mwp84gtr.mjs +2 -0
  182. package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +2 -0
  183. package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +2 -0
  184. package/dist/chunks/cli-0.1.12-nv2m8kgk.mjs +2 -0
  185. package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +4 -0
  186. package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +2 -0
  187. package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +2 -0
  188. package/dist/chunks/cli-0.1.12-ps94e9y5.mjs +2 -0
  189. package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +3 -0
  190. package/dist/chunks/cli-0.1.12-q63qrz06.mjs +2 -0
  191. package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +2 -0
  192. package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +2 -0
  193. package/dist/chunks/cli-0.1.12-qn20n18h.mjs +12 -0
  194. package/dist/chunks/cli-0.1.12-qrx9nssg.mjs +21 -0
  195. package/dist/chunks/cli-0.1.12-qsh4sj4y.mjs +2 -0
  196. package/dist/chunks/cli-0.1.12-r6f9sy54.mjs +2 -0
  197. package/dist/chunks/cli-0.1.12-ra3sby5b.mjs +2 -0
  198. package/dist/chunks/cli-0.1.12-rqedb88a.mjs +10 -0
  199. package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +4 -0
  200. package/dist/chunks/cli-0.1.12-rwhrpb6w.mjs +2 -0
  201. package/dist/chunks/cli-0.1.12-rwzav5h1.mjs +11 -0
  202. package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +2 -0
  203. package/dist/chunks/cli-0.1.12-rzpc0tr9.mjs +44 -0
  204. package/dist/chunks/cli-0.1.12-s0cwq66w.mjs +2 -0
  205. package/dist/chunks/cli-0.1.12-sd72y750.mjs +12 -0
  206. package/dist/chunks/cli-0.1.12-sgtpyf6y.mjs +11 -0
  207. package/dist/chunks/cli-0.1.12-strz382t.mjs +2 -0
  208. package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +2 -0
  209. package/dist/chunks/cli-0.1.12-t8712dbc.mjs +2 -0
  210. package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +2 -0
  211. package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +2 -0
  212. package/dist/chunks/cli-0.1.12-taqfqnag.mjs +4 -0
  213. package/dist/chunks/cli-0.1.12-trdq9d6x.mjs +2 -0
  214. package/dist/chunks/cli-0.1.12-tyt09z73.mjs +2 -0
  215. package/dist/chunks/cli-0.1.12-v000x470.mjs +2 -0
  216. package/dist/chunks/cli-0.1.12-v0510w04.mjs +2 -0
  217. package/dist/chunks/cli-0.1.12-v79j5ced.mjs +2 -0
  218. package/dist/chunks/cli-0.1.12-v8j9zstg.mjs +2 -0
  219. package/dist/chunks/cli-0.1.12-vgbc3g9x.mjs +2 -0
  220. package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +100 -0
  221. package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +2 -0
  222. package/dist/chunks/cli-0.1.12-vxej5jdm.mjs +2 -0
  223. package/dist/chunks/cli-0.1.12-vzga2are.mjs +192 -0
  224. package/dist/chunks/cli-0.1.12-w0qbr98a.mjs +2 -0
  225. package/dist/chunks/cli-0.1.12-wcdh3m4s.mjs +5 -0
  226. package/dist/chunks/cli-0.1.12-wdmxm11z.mjs +2 -0
  227. package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +3 -0
  228. package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +134 -0
  229. package/dist/chunks/cli-0.1.12-xanhpra7.mjs +2 -0
  230. package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +2 -0
  231. package/dist/chunks/cli-0.1.12-xekep4qg.mjs +58 -0
  232. package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +2 -0
  233. package/dist/chunks/cli-0.1.12-xj3mv67x.mjs +39 -0
  234. package/dist/chunks/cli-0.1.12-y04asmqh.mjs +2 -0
  235. package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +2 -0
  236. package/dist/chunks/cli-0.1.12-y9598sy3.mjs +16 -0
  237. package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +4 -0
  238. package/dist/chunks/cli-0.1.12-yk12dgnx.mjs +2 -0
  239. package/dist/chunks/cli-0.1.12-ytxphavm.mjs +2 -0
  240. package/dist/chunks/cli-0.1.12-z8eybrhz.mjs +2 -0
  241. package/dist/chunks/cli-0.1.12-zk49aaxv.mjs +2 -0
  242. package/dist/chunks/cli-0.1.12-zs5rpqmb.mjs +5 -0
  243. package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +2 -0
  244. package/dist/chunks/client-0.1.12-f54egbjx.mjs +1 -0
  245. package/dist/chunks/color-0.1.12-jss6svg8.mjs +1 -0
  246. package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +3 -0
  247. package/dist/chunks/config-0.1.12-1pyte6wv.mjs +1 -0
  248. package/dist/chunks/config-0.1.12-ryxz4stj.mjs +1 -0
  249. package/dist/chunks/context-0.1.12-mnwn2xss.mjs +1 -0
  250. package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +1 -0
  251. package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +1 -0
  252. package/dist/chunks/copy-0.1.12-w6tabpy0.mjs +9 -0
  253. package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +1 -0
  254. package/dist/chunks/createSession-0.1.12-117q0efg.mjs +1 -0
  255. package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +1 -0
  257. package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +1 -0
  258. package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +1 -0
  259. package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +1 -0
  260. package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +1 -0
  261. package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +8 -0
  262. package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +1 -0
  263. package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +1 -0
  264. package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +1 -0
  265. package/dist/chunks/export-0.1.12-s6ag6jke.mjs +2 -0
  266. package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +1 -0
  267. package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +1 -0
  268. package/dist/chunks/fast-0.1.12-9x69m50c.mjs +1 -0
  269. package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +14 -0
  270. package/dist/chunks/firstPartyEventLogger-0.1.12-95kzm3md.mjs +1 -0
  271. package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +1 -0
  272. package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +1 -0
  273. package/dist/chunks/growthbook-0.1.12-4phnr6b3.mjs +1 -0
  274. package/dist/chunks/heapdump-0.1.12-m49qs4r7.mjs +6 -0
  275. package/dist/chunks/help-0.1.12-f02ce11x.mjs +1 -0
  276. package/dist/chunks/hookChains-0.1.12-brq8x7f7.mjs +3 -0
  277. package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +1 -0
  278. package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +79 -0
  279. package/dist/chunks/ide-0.1.12-553mazfs.mjs +3 -0
  280. package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +1 -0
  281. package/dist/chunks/index-0.1.12-218arkqe.mjs +9 -0
  282. package/dist/chunks/index-0.1.12-2ykt90tn.mjs +1 -0
  283. package/dist/chunks/index-0.1.12-34ew4zjx.mjs +1 -0
  284. package/dist/chunks/index-0.1.12-3nbh75ta.mjs +1 -0
  285. package/dist/chunks/index-0.1.12-41g5mvtk.mjs +7 -0
  286. package/dist/chunks/index-0.1.12-77szwkm6.mjs +1 -0
  287. package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +1 -0
  288. package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +1 -0
  289. package/dist/chunks/index-0.1.12-d5w1w05d.mjs +1 -0
  290. package/dist/chunks/index-0.1.12-d7j83tkh.mjs +1 -0
  291. package/dist/chunks/index-0.1.12-hvf65cbr.mjs +1 -0
  292. package/dist/chunks/index-0.1.12-m0e193t8.mjs +1 -0
  293. package/dist/chunks/index-0.1.12-nc3z95ph.mjs +5 -0
  294. package/dist/chunks/index-0.1.12-r92p75vh.mjs +1 -0
  295. package/dist/chunks/index-0.1.12-rhj8dsvk.mjs +30 -0
  296. package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +1 -0
  297. package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +1 -0
  298. package/dist/chunks/index-0.1.12-v53nbtdb.mjs +2 -0
  299. package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +1 -0
  300. package/dist/chunks/index-0.1.12-z0brwe1k.mjs +2 -0
  301. package/dist/chunks/index-0.1.12-zc2ayczg.mjs +1 -0
  302. package/dist/chunks/index-0.1.12-zqrp5tve.mjs +9 -0
  303. package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +1 -0
  304. package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +1 -0
  305. package/dist/chunks/insights-0.1.12-93mz1f1d.mjs +870 -0
  306. package/dist/chunks/install-0.1.12-11xkk6vf.mjs +1 -0
  307. package/dist/chunks/install-github-app-0.1.12-qd8g81v4.mjs +149 -0
  308. package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +1 -0
  309. package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +12 -0
  310. package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +1 -0
  311. package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +2 -0
  312. package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +2 -0
  313. package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +1 -0
  314. package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +1 -0
  315. package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +1 -0
  316. package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +1 -0
  317. package/dist/chunks/main-0.1.12-47ck3kj2.mjs +1 -0
  318. package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +1 -0
  319. package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +1 -0
  320. package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +4 -0
  321. package/dist/chunks/mcp-0.1.12-vm3tpth6.mjs +17 -0
  322. package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +1 -0
  323. package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +1 -0
  324. package/dist/chunks/memory-0.1.12-7x2msczw.mjs +3 -0
  325. package/dist/chunks/mobile-0.1.12-qdtxwz76.mjs +2 -0
  326. package/dist/chunks/model-0.1.12-15e9c8j0.mjs +2 -0
  327. package/dist/chunks/model-0.1.12-z2qjscwh.mjs +1 -0
  328. package/dist/chunks/oauth-0.1.12-3aky0v8n.mjs +1 -0
  329. package/dist/chunks/openaiShim-0.1.12-p458t1q6.mjs +14 -0
  330. package/dist/chunks/output-style-0.1.12-cahkbh9x.mjs +1 -0
  331. package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +1 -0
  332. package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +1 -0
  333. package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +1 -0
  334. package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +3 -0
  335. package/dist/chunks/plan-0.1.12-waed49m8.mjs +1 -0
  336. package/dist/chunks/plist-0.1.12-65r770yt.mjs +1 -0
  337. package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +29 -0
  338. package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +1 -0
  339. package/dist/chunks/plugins-0.1.12-sm87b8fm.mjs +9 -0
  340. package/dist/chunks/print-0.1.12-8mgqmx4k.mjs +57 -0
  341. package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +1 -0
  342. package/dist/chunks/process-0.1.12-t401v84c.mjs +1 -0
  343. package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +1 -0
  344. package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +9 -0
  345. package/dist/chunks/prompt-0.1.12-786vk11a.mjs +1 -0
  346. package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +1 -0
  347. package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +1 -0
  348. package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +2 -0
  349. package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +1 -0
  350. package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +1 -0
  351. package/dist/chunks/registry-0.1.12-btwd6z61.mjs +1 -0
  352. package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +5 -0
  353. package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +2 -0
  354. package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +1 -0
  355. package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +1 -0
  356. package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +1 -0
  357. package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +1 -0
  358. package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +1 -0
  359. package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +2 -0
  360. package/dist/chunks/rewind-0.1.12-707se5pz.mjs +1 -0
  361. package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +1 -0
  362. package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +1 -0
  363. package/dist/chunks/session-0.1.12-2xgt0x74.mjs +2 -0
  364. package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +1 -0
  365. package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +1 -0
  366. package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +5 -0
  367. package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +1 -0
  368. package/dist/chunks/skills-0.1.12-sh637gsv.mjs +1 -0
  369. package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +1 -0
  370. package/dist/chunks/state-0.1.12-e374v6h8.mjs +1 -0
  371. package/dist/chunks/stats-0.1.12-5pj1c6sr.mjs +6 -0
  372. package/dist/chunks/status-0.1.12-qphx08h4.mjs +1 -0
  373. package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +1 -0
  374. package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +1 -0
  375. package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +1 -0
  376. package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +1 -0
  377. package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +1 -0
  378. package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +1 -0
  379. package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +1 -0
  380. package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +1 -0
  381. package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +1 -0
  382. package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +1 -0
  383. package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +1 -0
  384. package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +1 -0
  385. package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +1 -0
  386. package/dist/chunks/turndown.cjs-0.1.12-9525v010.mjs +69 -0
  387. package/dist/chunks/ultrareviewCommand-0.1.12-d5c4096k.mjs +4 -0
  388. package/dist/chunks/update-0.1.12-hwx0e6fq.mjs +94 -0
  389. package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +1 -0
  390. package/dist/chunks/upstreamproxy-0.1.12-yhnqfcyb.mjs +14 -0
  391. package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +1 -0
  392. package/dist/chunks/util-0.1.12-qdejkkj5.mjs +1 -0
  393. package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +1 -0
  394. package/dist/chunks/vim-0.1.12-z78k9k65.mjs +1 -0
  395. package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +1 -0
  396. package/dist/chunks/wiki-0.1.12-vecp82xq.mjs +132 -0
  397. package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +1 -0
  398. package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +1 -0
  399. package/dist/chunks/wrapper-0.1.12-bpewypaz.mjs +7 -0
  400. package/dist/claudio-vscode.vsix +0 -0
  401. package/dist/cli.mjs +3 -3
  402. package/package.json +4 -1
  403. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +0 -1
  404. package/dist/chunks/App-0.1.11-z60c27dk.mjs +0 -1
  405. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +0 -1
  406. package/dist/chunks/AssistantSessionChooser-0.1.11-kb5jvw8n.mjs +0 -1
  407. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +0 -1
  408. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +0 -1
  409. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +0 -1
  410. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +0 -1
  411. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +0 -1
  412. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +0 -3
  413. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +0 -1
  414. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +0 -1
  415. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +0 -1
  416. package/dist/chunks/InProcessTransport-0.1.11-xecmx0sw.mjs +0 -1
  417. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +0 -1
  418. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +0 -1
  419. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +0 -1
  420. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +0 -1
  421. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +0 -1
  422. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +0 -1
  423. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +0 -1
  424. package/dist/chunks/SnapshotUpdateDialog-0.1.11-h881m192.mjs +0 -1
  425. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +0 -1
  426. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +0 -1
  427. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +0 -1
  428. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +0 -9
  429. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +0 -1
  430. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +0 -1
  431. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +0 -1
  432. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +0 -1
  433. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +0 -3
  434. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +0 -111
  435. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +0 -1
  436. package/dist/chunks/asciicast-0.1.11-7mkaazy8.mjs +0 -1
  437. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +0 -1
  438. package/dist/chunks/auth-0.1.11-2363mst5.mjs +0 -1
  439. package/dist/chunks/auth-0.1.11-p47wajra.mjs +0 -1
  440. package/dist/chunks/autoMode-0.1.11-nv8vsag0.mjs +0 -48
  441. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +0 -1
  442. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +0 -4
  443. package/dist/chunks/bridgePointer-0.1.11-wr8dfs91.mjs +0 -1
  444. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +0 -1
  445. package/dist/chunks/buddy-0.1.11-gsj76spy.mjs +0 -3
  446. package/dist/chunks/cacache-0.1.11-wtz0ca19.mjs +0 -1
  447. package/dist/chunks/cache-probe-0.1.11-pgsemwpr.mjs +0 -21
  448. package/dist/chunks/cacheStats-0.1.11-1zqq6pm7.mjs +0 -4
  449. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +0 -1
  450. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +0 -1
  451. package/dist/chunks/chromeNativeHost-0.1.11-m5kskzjw.mjs +0 -2
  452. package/dist/chunks/claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs +0 -1
  453. package/dist/chunks/claudeDesktop-0.1.11-zpdtj6k8.mjs +0 -1
  454. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +0 -1
  455. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +0 -1
  456. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +0 -1
  457. package/dist/chunks/cli-0.1.11-036me3yr.mjs +0 -2
  458. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +0 -2
  459. package/dist/chunks/cli-0.1.11-05ngjm8p.mjs +0 -2
  460. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +0 -2
  461. package/dist/chunks/cli-0.1.11-0n77qn68.mjs +0 -2
  462. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +0 -2
  463. package/dist/chunks/cli-0.1.11-0tge574q.mjs +0 -2
  464. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +0 -8
  465. package/dist/chunks/cli-0.1.11-16086k9e.mjs +0 -2
  466. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +0 -2
  467. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +0 -2
  468. package/dist/chunks/cli-0.1.11-1bryv90w.mjs +0 -2
  469. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +0 -833
  470. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +0 -3
  471. package/dist/chunks/cli-0.1.11-1xr9et85.mjs +0 -2
  472. package/dist/chunks/cli-0.1.11-21epc92q.mjs +0 -2
  473. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +0 -2
  474. package/dist/chunks/cli-0.1.11-2w8d5vqb.mjs +0 -2
  475. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +0 -45
  476. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +0 -2
  477. package/dist/chunks/cli-0.1.11-3p2f194m.mjs +0 -2
  478. package/dist/chunks/cli-0.1.11-3tqzgd9f.mjs +0 -2
  479. package/dist/chunks/cli-0.1.11-424zgj5k.mjs +0 -4
  480. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +0 -2
  481. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +0 -3
  482. package/dist/chunks/cli-0.1.11-4ggr81tw.mjs +0 -2
  483. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +0 -2
  484. package/dist/chunks/cli-0.1.11-50naxqgt.mjs +0 -2
  485. package/dist/chunks/cli-0.1.11-56bdg2vw.mjs +0 -3
  486. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +0 -2
  487. package/dist/chunks/cli-0.1.11-5e45zda5.mjs +0 -2
  488. package/dist/chunks/cli-0.1.11-5hrysrcd.mjs +0 -2
  489. package/dist/chunks/cli-0.1.11-5hs4xyjq.mjs +0 -2
  490. package/dist/chunks/cli-0.1.11-5vqj6k7m.mjs +0 -2
  491. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +0 -2
  492. package/dist/chunks/cli-0.1.11-6r97rwda.mjs +0 -2
  493. package/dist/chunks/cli-0.1.11-6vqzqsdj.mjs +0 -3
  494. package/dist/chunks/cli-0.1.11-6zkfmcxp.mjs +0 -2
  495. package/dist/chunks/cli-0.1.11-70f778wy.mjs +0 -2
  496. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +0 -50
  497. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +0 -2
  498. package/dist/chunks/cli-0.1.11-7mmhsc3x.mjs +0 -2
  499. package/dist/chunks/cli-0.1.11-7qpnfx56.mjs +0 -2
  500. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +0 -3
  501. package/dist/chunks/cli-0.1.11-7tybqg56.mjs +0 -2
  502. package/dist/chunks/cli-0.1.11-7vz357wm.mjs +0 -58
  503. package/dist/chunks/cli-0.1.11-7xr2ermy.mjs +0 -2
  504. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +0 -2
  505. package/dist/chunks/cli-0.1.11-852v06g0.mjs +0 -2
  506. package/dist/chunks/cli-0.1.11-8qrhqvh5.mjs +0 -2
  507. package/dist/chunks/cli-0.1.11-91mf8dfr.mjs +0 -2
  508. package/dist/chunks/cli-0.1.11-96y2d09c.mjs +0 -2
  509. package/dist/chunks/cli-0.1.11-98zcwng9.mjs +0 -2
  510. package/dist/chunks/cli-0.1.11-anegs86e.mjs +0 -7
  511. package/dist/chunks/cli-0.1.11-anvzywg4.mjs +0 -5
  512. package/dist/chunks/cli-0.1.11-at3c85af.mjs +0 -2
  513. package/dist/chunks/cli-0.1.11-b0jasw23.mjs +0 -9
  514. package/dist/chunks/cli-0.1.11-bbx2h4x9.mjs +0 -2
  515. package/dist/chunks/cli-0.1.11-be28ty4m.mjs +0 -2
  516. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +0 -2
  517. package/dist/chunks/cli-0.1.11-bqpcwywz.mjs +0 -4
  518. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +0 -2
  519. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +0 -252
  520. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +0 -2
  521. package/dist/chunks/cli-0.1.11-bwpemkht.mjs +0 -2
  522. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +0 -2
  523. package/dist/chunks/cli-0.1.11-cezypfbt.mjs +0 -2
  524. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +0 -134
  525. package/dist/chunks/cli-0.1.11-chnrb9xx.mjs +0 -10
  526. package/dist/chunks/cli-0.1.11-ctjvkg5k.mjs +0 -2
  527. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +0 -4
  528. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +0 -12
  529. package/dist/chunks/cli-0.1.11-d10nfa6g.mjs +0 -11
  530. package/dist/chunks/cli-0.1.11-d3exw047.mjs +0 -2
  531. package/dist/chunks/cli-0.1.11-d4ahh3jz.mjs +0 -2
  532. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +0 -2
  533. package/dist/chunks/cli-0.1.11-dcswnc8x.mjs +0 -24
  534. package/dist/chunks/cli-0.1.11-dpfxvfty.mjs +0 -2
  535. package/dist/chunks/cli-0.1.11-e5ecf583.mjs +0 -2
  536. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +0 -4
  537. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +0 -16
  538. package/dist/chunks/cli-0.1.11-egck69w4.mjs +0 -2
  539. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +0 -18
  540. package/dist/chunks/cli-0.1.11-ek6mck0j.mjs +0 -2
  541. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +0 -3
  542. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +0 -2
  543. package/dist/chunks/cli-0.1.11-fptq9w4t.mjs +0 -2
  544. package/dist/chunks/cli-0.1.11-fs3d0ajf.mjs +0 -2
  545. package/dist/chunks/cli-0.1.11-fstfs72j.mjs +0 -2
  546. package/dist/chunks/cli-0.1.11-ft47r1wq.mjs +0 -2
  547. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +0 -22
  548. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +0 -5
  549. package/dist/chunks/cli-0.1.11-g2202evh.mjs +0 -2
  550. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +0 -2
  551. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +0 -2
  552. package/dist/chunks/cli-0.1.11-gdcvfp9f.mjs +0 -2
  553. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +0 -2
  554. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +0 -2
  555. package/dist/chunks/cli-0.1.11-h2hxx8ma.mjs +0 -12
  556. package/dist/chunks/cli-0.1.11-h3jatwe1.mjs +0 -2
  557. package/dist/chunks/cli-0.1.11-h762f6hr.mjs +0 -2
  558. package/dist/chunks/cli-0.1.11-h7e4rkwk.mjs +0 -31
  559. package/dist/chunks/cli-0.1.11-h7phna9g.mjs +0 -2
  560. package/dist/chunks/cli-0.1.11-hgsa4nnp.mjs +0 -2
  561. package/dist/chunks/cli-0.1.11-hhs8ke9g.mjs +0 -2
  562. package/dist/chunks/cli-0.1.11-hmfevmz1.mjs +0 -4
  563. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +0 -2
  564. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +0 -2
  565. package/dist/chunks/cli-0.1.11-jj3s3dxd.mjs +0 -15
  566. package/dist/chunks/cli-0.1.11-jjgjkqqv.mjs +0 -2
  567. package/dist/chunks/cli-0.1.11-jkrt4znb.mjs +0 -11
  568. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +0 -2
  569. package/dist/chunks/cli-0.1.11-jr50ahcv.mjs +0 -3
  570. package/dist/chunks/cli-0.1.11-jye250b3.mjs +0 -2
  571. package/dist/chunks/cli-0.1.11-kghg51gb.mjs +0 -6
  572. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +0 -7
  573. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +0 -2
  574. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +0 -24
  575. package/dist/chunks/cli-0.1.11-ktwtyqmp.mjs +0 -2
  576. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +0 -4
  577. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +0 -2
  578. package/dist/chunks/cli-0.1.11-mj78w4sp.mjs +0 -2
  579. package/dist/chunks/cli-0.1.11-mr356stf.mjs +0 -2
  580. package/dist/chunks/cli-0.1.11-mstxxz33.mjs +0 -2
  581. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +0 -2
  582. package/dist/chunks/cli-0.1.11-n24p2y0p.mjs +0 -2
  583. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +0 -2
  584. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +0 -2
  585. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +0 -2
  586. package/dist/chunks/cli-0.1.11-nhwmv5g6.mjs +0 -4
  587. package/dist/chunks/cli-0.1.11-nx8a99hz.mjs +0 -4
  588. package/dist/chunks/cli-0.1.11-p22bdjhv.mjs +0 -2
  589. package/dist/chunks/cli-0.1.11-p4eeg584.mjs +0 -5
  590. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +0 -2
  591. package/dist/chunks/cli-0.1.11-pr9jdfxt.mjs +0 -3
  592. package/dist/chunks/cli-0.1.11-q58q9jqr.mjs +0 -2
  593. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +0 -2
  594. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +0 -16
  595. package/dist/chunks/cli-0.1.11-qheffjft.mjs +0 -2
  596. package/dist/chunks/cli-0.1.11-qpzn4q17.mjs +0 -15
  597. package/dist/chunks/cli-0.1.11-qrq0sw0h.mjs +0 -2
  598. package/dist/chunks/cli-0.1.11-r990p54m.mjs +0 -100
  599. package/dist/chunks/cli-0.1.11-rj68n2kw.mjs +0 -2
  600. package/dist/chunks/cli-0.1.11-rj9ea3zn.mjs +0 -2
  601. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +0 -2
  602. package/dist/chunks/cli-0.1.11-rrnr3ab1.mjs +0 -2
  603. package/dist/chunks/cli-0.1.11-rvk3t45h.mjs +0 -2
  604. package/dist/chunks/cli-0.1.11-s6yfjcm5.mjs +0 -6
  605. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +0 -5036
  606. package/dist/chunks/cli-0.1.11-sma2xhvv.mjs +0 -2
  607. package/dist/chunks/cli-0.1.11-sqqzwx4h.mjs +0 -132
  608. package/dist/chunks/cli-0.1.11-t07hba0z.mjs +0 -2
  609. package/dist/chunks/cli-0.1.11-t7dc7fbj.mjs +0 -2
  610. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +0 -2
  611. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +0 -2
  612. package/dist/chunks/cli-0.1.11-tvfkn5mh.mjs +0 -2
  613. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +0 -12
  614. package/dist/chunks/cli-0.1.11-v6kwgrqc.mjs +0 -2
  615. package/dist/chunks/cli-0.1.11-v7bwjqf0.mjs +0 -192
  616. package/dist/chunks/cli-0.1.11-v8j5bkfs.mjs +0 -2
  617. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +0 -2
  618. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +0 -2
  619. package/dist/chunks/cli-0.1.11-vq5fvf9m.mjs +0 -44
  620. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +0 -2
  621. package/dist/chunks/cli-0.1.11-w3fp9par.mjs +0 -39
  622. package/dist/chunks/cli-0.1.11-w3trj52p.mjs +0 -21
  623. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +0 -2
  624. package/dist/chunks/cli-0.1.11-wc9bay3d.mjs +0 -34
  625. package/dist/chunks/cli-0.1.11-weav8142.mjs +0 -2
  626. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +0 -2
  627. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +0 -14
  628. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +0 -2
  629. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +0 -2
  630. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +0 -2
  631. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +0 -2
  632. package/dist/chunks/cli-0.1.11-y4c6y87y.mjs +0 -2
  633. package/dist/chunks/cli-0.1.11-y909w8bb.mjs +0 -2
  634. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +0 -2
  635. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +0 -2
  636. package/dist/chunks/cli-0.1.11-yrfxpjhr.mjs +0 -2
  637. package/dist/chunks/cli-0.1.11-yv5pfq6n.mjs +0 -2
  638. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +0 -3
  639. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +0 -2
  640. package/dist/chunks/cli-0.1.11-z4hb2mcd.mjs +0 -2
  641. package/dist/chunks/cli-0.1.11-z62s8qx1.mjs +0 -2
  642. package/dist/chunks/cli-0.1.11-zb2sa3e2.mjs +0 -13
  643. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +0 -2
  644. package/dist/chunks/cli-0.1.11-zfnmx1ny.mjs +0 -2
  645. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +0 -2
  646. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +0 -1
  647. package/dist/chunks/color-0.1.11-b7favzc8.mjs +0 -1
  648. package/dist/chunks/compact-0.1.11-damm234b.mjs +0 -3
  649. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +0 -1
  650. package/dist/chunks/config-0.1.11-cqy7fnab.mjs +0 -1
  651. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +0 -1
  652. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +0 -1
  653. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +0 -1
  654. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +0 -9
  655. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +0 -1
  656. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +0 -1
  657. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +0 -1
  658. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +0 -1
  659. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +0 -1
  660. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +0 -1
  661. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +0 -1
  662. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +0 -1
  663. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +0 -1
  664. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +0 -8
  665. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +0 -1
  666. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +0 -1
  667. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +0 -1
  668. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +0 -2
  669. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +0 -1
  670. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +0 -1
  671. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +0 -1
  672. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +0 -14
  673. package/dist/chunks/firstPartyEventLogger-0.1.11-y7qkhdj6.mjs +0 -1
  674. package/dist/chunks/git-0.1.11-g77ppr52.mjs +0 -1
  675. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +0 -1
  676. package/dist/chunks/growthbook-0.1.11-2w2b1mzd.mjs +0 -1
  677. package/dist/chunks/heapdump-0.1.11-b216wzt7.mjs +0 -6
  678. package/dist/chunks/help-0.1.11-byp88gen.mjs +0 -1
  679. package/dist/chunks/hookChains-0.1.11-jp8f82q7.mjs +0 -3
  680. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +0 -1
  681. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +0 -79
  682. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +0 -3
  683. package/dist/chunks/image-processor-napi-0.1.11-dpg3ygnw.mjs +0 -1
  684. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +0 -1
  685. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +0 -9
  686. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +0 -1
  687. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +0 -1
  688. package/dist/chunks/index-0.1.11-b2q967nq.mjs +0 -30
  689. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +0 -1
  690. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +0 -1
  691. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +0 -1
  692. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +0 -5
  693. package/dist/chunks/index-0.1.11-gb3saayk.mjs +0 -2
  694. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +0 -1
  695. package/dist/chunks/index-0.1.11-n564rmwy.mjs +0 -1
  696. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +0 -1
  697. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +0 -1
  698. package/dist/chunks/index-0.1.11-pmkgntay.mjs +0 -7
  699. package/dist/chunks/index-0.1.11-qspcw49p.mjs +0 -1
  700. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +0 -1
  701. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +0 -9
  702. package/dist/chunks/index-0.1.11-wbhj1ny7.mjs +0 -1
  703. package/dist/chunks/index-0.1.11-wze82293.mjs +0 -1
  704. package/dist/chunks/index-0.1.11-xs4mng75.mjs +0 -1
  705. package/dist/chunks/index-0.1.11-yej3awws.mjs +0 -2
  706. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +0 -1
  707. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +0 -1
  708. package/dist/chunks/insights-0.1.11-4yjg2bxs.mjs +0 -870
  709. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +0 -1
  710. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +0 -149
  711. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +0 -1
  712. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +0 -12
  713. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +0 -1
  714. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +0 -2
  715. package/dist/chunks/knowledge-0.1.11-wpjw8ybd.mjs +0 -2
  716. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +0 -1
  717. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +0 -1
  718. package/dist/chunks/logout-0.1.11-48ynp610.mjs +0 -1
  719. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +0 -1
  720. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +0 -1
  721. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +0 -1
  722. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +0 -17
  723. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +0 -4
  724. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +0 -1
  725. package/dist/chunks/mcpServer-0.1.11-czg51mvy.mjs +0 -1
  726. package/dist/chunks/mcpb-0.1.11-czkze48a.mjs +0 -1
  727. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +0 -3
  728. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +0 -2
  729. package/dist/chunks/model-0.1.11-4v166f98.mjs +0 -2
  730. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +0 -1
  731. package/dist/chunks/oauth-0.1.11-jkkd9wzq.mjs +0 -1
  732. package/dist/chunks/openaiShim-0.1.11-b9yqnc9c.mjs +0 -14
  733. package/dist/chunks/output-style-0.1.11-zwxn1knb.mjs +0 -1
  734. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +0 -1
  735. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +0 -1
  736. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +0 -1
  737. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +0 -3
  738. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +0 -1
  739. package/dist/chunks/plist-0.1.11-0sn6nqv3.mjs +0 -1
  740. package/dist/chunks/plugin-0.1.11-menj210d.mjs +0 -29
  741. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +0 -1
  742. package/dist/chunks/plugins-0.1.11-t3pgcpcj.mjs +0 -9
  743. package/dist/chunks/print-0.1.11-y9vz77h9.mjs +0 -57
  744. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +0 -1
  745. package/dist/chunks/process-0.1.11-s6jnx5xw.mjs +0 -1
  746. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +0 -1
  747. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +0 -9
  748. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +0 -1
  749. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +0 -1
  750. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +0 -1
  751. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +0 -2
  752. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +0 -1
  753. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +0 -1
  754. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +0 -1
  755. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +0 -5
  756. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +0 -2
  757. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +0 -1
  758. package/dist/chunks/remoteBridgeCore-0.1.11-hn821p07.mjs +0 -1
  759. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +0 -1
  760. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +0 -1
  761. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +0 -1
  762. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +0 -2
  763. package/dist/chunks/rewind-0.1.11-t4mfk815.mjs +0 -1
  764. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +0 -1
  765. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +0 -1
  766. package/dist/chunks/session-0.1.11-2z972raf.mjs +0 -2
  767. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +0 -1
  768. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +0 -1
  769. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +0 -5
  770. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +0 -1
  771. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +0 -1
  772. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +0 -1
  773. package/dist/chunks/state-0.1.11-3fjxywyv.mjs +0 -1
  774. package/dist/chunks/stats-0.1.11-hxzms6gg.mjs +0 -6
  775. package/dist/chunks/status-0.1.11-drvp15n8.mjs +0 -1
  776. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +0 -1
  777. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +0 -1
  778. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +0 -1
  779. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +0 -1
  780. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +0 -1
  781. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +0 -1
  782. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +0 -1
  783. package/dist/chunks/theme-0.1.11-p447kczd.mjs +0 -1
  784. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +0 -1
  785. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +0 -1
  786. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +0 -1
  787. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +0 -1
  788. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +0 -1
  789. package/dist/chunks/turndown.cjs-0.1.11-brwqmyse.mjs +0 -69
  790. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +0 -4
  791. package/dist/chunks/update-0.1.11-p33kxpg4.mjs +0 -94
  792. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +0 -1
  793. package/dist/chunks/upstreamproxy-0.1.11-vk16qw88.mjs +0 -14
  794. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +0 -1
  795. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +0 -1
  796. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +0 -1
  797. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +0 -1
  798. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +0 -1
  799. package/dist/chunks/wiki-0.1.11-v0twhcnn.mjs +0 -132
  800. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +0 -1
  801. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +0 -1
  802. package/dist/chunks/wrapper-0.1.11-rt9xsnjh.mjs +0 -7
  803. /package/dist/chunks/{cli-0.1.11-4px8nt5r.mjs → cli-0.1.12-41zq3gv6.mjs} +0 -0
  804. /package/dist/chunks/{cli-0.1.11-tyh8gms9.mjs → cli-0.1.12-ng34ay3g.mjs} +0 -0
  805. /package/dist/chunks/{cli-0.1.11-x3q39kf7.mjs → cli-0.1.12-tvawkeks.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{Aw as z,Bw as h,fK as L,gK as M,ki as J,li as Z}from"./cli-0.1.11-s8ygndzf.mjs";import{eT as X}from"./cli-0.1.11-bvd2r7an.mjs";import{rX as W}from"./cli-0.1.11-x37jysc0.mjs";import{Vma as V,vma as H}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as D,Rna as U}from"./cli-0.1.11-yrfxpjhr.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{M();V();h();Z();P=D(X(),1),x=D(W(),1)});
2
- export{v as Ne,A as Oe};
@@ -1,2 +0,0 @@
1
- import{ta as c}from"./cli-0.1.11-jye250b3.mjs";import{qc as v,uc as Wq}from"./cli-0.1.11-0tge574q.mjs";import{Ac as $,Bc as Xq,yc as I,zc as S}from"./cli-0.1.11-at3c85af.mjs";import{Fq as N,Hq as e,IF as _,JF as Jq,Jz as h,Kz as Bq,Tz as A,Vz as Gq,Yy as L,_G as M,bH as Qq,bK as E,cK as f,cz as qq,eK as Tq,fK as P,gK as Vq,xl as C,yl as r}from"./cli-0.1.11-s8ygndzf.mjs";import{rX as s}from"./cli-0.1.11-x37jysc0.mjs";import{F7 as D,K7 as n,o7 as y,q7 as o,t9 as w,v9 as t}from"./cli-0.1.11-v7bwjqf0.mjs";import{dga as F,ega as a}from"./cli-0.1.11-xwj7cmkj.mjs";import{Cga as x,Jga as d,bha as j,eha as l}from"./cli-0.1.11-vq5fvf9m.mjs";import{Nna as p}from"./cli-0.1.11-yrfxpjhr.mjs";Vq();a();Gq();Tq();Xq();t();l();o();d();n();r();Jq();qq();Bq();e();var V=p(s(),1);Wq();Qq();function hq({enabled:W=!0}={}){let b=V.useSyncExternalStore(S,I,I),H=f(),O=E((J)=>J.plugins.needsRefresh),{addNotification:z}=P(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await M();await c();let X=v();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await _(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await C()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await L()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await N(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await h(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);A(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=x(J);return D(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};F("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),y("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
- export{hq as R};
@@ -1,2 +0,0 @@
1
- import{Ci as l,Di as Rq,Ei as i,Fi as Aq,Gk as S,Lk as Zq,pk as E,qk as m,rk as Xq}from"./cli-0.1.11-s8ygndzf.mjs";import{G6 as Qq,p6 as p}from"./cli-0.1.11-d10nfa6g.mjs";import{C$ as vq,F7 as D,K7 as qq,r$ as u,t$ as g,w$ as h,x$ as n}from"./cli-0.1.11-v7bwjqf0.mjs";import{Vda as d,Xda as Uq}from"./cli-0.1.11-h7e4rkwk.mjs";import{Dga as W,Ega as O,Fga as C,Jga as _,Lga as P,Mga as v,Pga as f,Tga as M,Xga as y,bha as V,eha as e}from"./cli-0.1.11-vq5fvf9m.mjs";import{Rna as N}from"./cli-0.1.11-yrfxpjhr.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{Qq();e();_();y();qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
2
- export{Fq as dc,r as ec,nq as fc,lq as gc,Oq as hc,QQ as ic,XQ as jc,Dq as kc};
@@ -1,4 +0,0 @@
1
- import{Dp as m,Ep as E6,Mj as lJ,Nj as aZ,ik as h,lk as LQ,rt as nJ,st as lZ}from"./cli-0.1.11-s8ygndzf.mjs";import{K4 as VQ,V4 as wQ,i5 as z6}from"./cli-0.1.11-qbcfg80y.mjs";import{Caa as EQ,Q6 as TJ,Qaa as I6,R6 as LZ,U6 as a,V6 as fQ,W6 as E,X6 as c,Y6 as S,Z6 as hJ,c7 as U,c9 as aJ,d7 as F,d9 as Z6,e7 as vJ,e9 as UQ,f7 as RZ,f9 as H6,g7 as mJ,g9 as BQ,h7 as FZ,h9 as K6,i7 as V,j7 as $J,k7 as PJ,l7 as pQ,m7 as yJ,n7 as IZ}from"./cli-0.1.11-v7bwjqf0.mjs";import{Vda as K,Xda as xQ,Yda as I,Zda as NQ}from"./cli-0.1.11-h7e4rkwk.mjs";import{Aea as v,Fea as F6}from"./cli-0.1.11-7xr2ermy.mjs";import{bfa as T,nfa as N6}from"./cli-0.1.11-fag2wtke.mjs";import{$ha as fJ,Aha as U6,Bha as kJ,Cha as DZ,Ema as zQ,Fia as k,Gia as rJ,Hia as _,Iia as tZ,Jia as uJ,Kia as rZ,Lha as WQ,Mha as X6,Nha as O,Oha as dJ,Vha as l,Vma as R6,Wha as kQ,Xha as w,Yha as xJ,Zha as ZQ,_ha as q6,aia as xZ,dia as C,eia as FJ,fia as L,gia as IJ,ria as z,sia as i,tia as _J,uia as NZ,xia as N,yia as f,zha as DQ}from"./cli-0.1.11-rrnr3ab1.mjs";import{$ma as GJ,_ma as x,cna as SJ,dna as MZ}from"./cli-0.1.11-98zcwng9.mjs";import{Rna as Y}from"./cli-0.1.11-yrfxpjhr.mjs";function AQ(J,Q){var Z=-1,q=J==null?0:J.length;while(++Z<q)if(Q(J[Z],Z,J)===!1)break;return J}var p;var b=Y(()=>{p=AQ});function OQ(J,Q){return J&&U(Q,z(Q),J)}var u;var n=Y(()=>{F();i();u=OQ});function SQ(J,Q){return J&&U(Q,E(Q),J)}var o;var r=Y(()=>{F();c();o=SQ});function dQ(J,Q){return U(J,l(J),Q)}var s;var t=Y(()=>{F();kQ();s=dQ});function _Q(J,Q){return U(J,a(J),Q)}var e;var JJ=Y(()=>{F();fQ();e=_Q});function vQ(J){var Q=J.length,Z=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&hQ.call(J,"index"))Z.index=J.index,Z.input=J.input;return Z}var TQ,hQ,QJ;var ZJ=Y(()=>{TQ=Object.prototype,hQ=TQ.hasOwnProperty;QJ=vQ});function mQ(J,Q){var Z=Q?V(J.buffer):J.buffer;return new J.constructor(Z,J.byteOffset,J.byteLength)}var qJ;var WJ=Y(()=>{$J();qJ=mQ});function gQ(J){var Q=new J.constructor(J.source,yQ.exec(J));return Q.lastIndex=J.lastIndex,Q}var yQ,XJ;var YJ=Y(()=>{yQ=/\w*$/;XJ=gQ});function jQ(J){return KJ?Object(KJ.call(J)):{}}var HJ,KJ,UJ;var BJ=Y(()=>{GJ();HJ=x?x.prototype:void 0,KJ=HJ?HJ.valueOf:void 0;UJ=jQ});function YZ(J,Q,Z){var q=J.constructor;switch(Q){case sQ:return V(J);case bQ:case iQ:return new q(+J);case tQ:return qJ(J,Z);case aQ:case eQ:case JZ:case QZ:case ZZ:case $Z:case qZ:case WZ:case XZ:return PJ(J,Z);case uQ:return new q;case nQ:case rQ:return new q(J);case cQ:return XJ(J);case oQ:return new q;case lQ:return UJ(J)}}var bQ="[object Boolean]",iQ="[object Date]",uQ="[object Map]",nQ="[object Number]",cQ="[object RegExp]",oQ="[object Set]",rQ="[object String]",lQ="[object Symbol]",sQ="[object ArrayBuffer]",tQ="[object DataView]",aQ="[object Float32Array]",eQ="[object Float64Array]",JZ="[object Int8Array]",QZ="[object Int16Array]",ZZ="[object Int32Array]",$Z="[object Uint8Array]",qZ="[object Uint8ClampedArray]",WZ="[object Uint16Array]",XZ="[object Uint32Array]",MJ;var DJ=Y(()=>{$J();WJ();YJ();BJ();pQ();MJ=YZ});function KZ(J){return w(J)&&N(J)==HZ}var HZ="[object Map]",NJ;var LJ=Y(()=>{f();xJ();NJ=KZ});var RJ,GZ,zJ;var EJ=Y(()=>{LJ();FJ();IJ();RJ=L&&L.isMap,GZ=RJ?C(RJ):NJ,zJ=GZ});function BZ(J){return w(J)&&N(J)==UZ}var UZ="[object Set]",VJ;var wJ=Y(()=>{f();xJ();VJ=BZ});var CJ,PZ,AJ;var OJ=Y(()=>{wJ();FJ();IJ();CJ=L&&L.isSet,PZ=CJ?C(CJ):VJ,AJ=PZ});function A(J,Q,Z,q,W,H){var $,G=Q&zZ,M=Q&EZ,d=Q&VZ;if(Z)$=W?Z(J,q,W,H):Z(J);if($!==void 0)return $;if(!SJ(J))return J;var R=O(J);if(R){if($=QJ(J),!G)return mJ(J,$)}else{var D=N(J),y=D==jJ||D==SZ;if(fJ(J))return vJ(J,G);if(D==pJ||D==gJ||y&&!W){if($=M||y?{}:yJ(J),!G)return M?e(J,o($,J)):s(J,u($,J))}else{if(!X[D])return W?J:{};$=MJ(J,D,G)}}H||(H=new kJ);var g=H.get(J);if(g)return g;if(H.set(J,$),AJ(J))J.forEach(function(B){$.add(A(B,Q,Z,B,J,H))});else if(zJ(J))J.forEach(function(B,P){$.set(P,A(B,Q,Z,P,J,H))});var CQ=d?M?S:_J:M?E:z,j=R?void 0:CQ(J);return p(j||J,function(B,P){if(j)P=B,B=J[P];TJ($,P,A(B,Q,Z,P,J,H))}),$}var zZ=1,EZ=2,VZ=4,gJ="[object Arguments]",wZ="[object Array]",CZ="[object Boolean]",AZ="[object Date]",OZ="[object Error]",jJ="[object Function]",SZ="[object GeneratorFunction]",kZ="[object Map]",dZ="[object Number]",pJ="[object Object]",fZ="[object RegExp]",_Z="[object Set]",TZ="[object String]",hZ="[object Symbol]",vZ="[object WeakMap]",mZ="[object ArrayBuffer]",yZ="[object DataView]",gZ="[object Float32Array]",jZ="[object Float64Array]",pZ="[object Int8Array]",bZ="[object Int16Array]",iZ="[object Int32Array]",uZ="[object Uint8Array]",nZ="[object Uint8ClampedArray]",cZ="[object Uint16Array]",oZ="[object Uint32Array]",X,bJ;var iJ=Y(()=>{DZ();b();LZ();n();r();RZ();FZ();t();JJ();NZ();hJ();f();ZJ();DJ();IZ();dJ();xZ();EJ();MZ();OJ();i();c();X={};X[gJ]=X[wZ]=X[mZ]=X[yZ]=X[CZ]=X[AZ]=X[gZ]=X[jZ]=X[pZ]=X[bZ]=X[iZ]=X[kZ]=X[dZ]=X[pJ]=X[fZ]=X[_Z]=X[TZ]=X[hZ]=X[uZ]=X[nZ]=X[cZ]=X[oZ]=!0;X[OZ]=X[jJ]=X[vZ]=!1;bJ=A});function sZ(J,Q){return Q.length<2?J:uJ(J,nJ(Q,0,-1))}var cJ;var oJ=Y(()=>{rZ();lZ();cJ=sZ});function Q6(J,Q){Q=k(Q,J);var Z=-1,q=Q.length;if(!q)return!0;while(++Z<q){var W=_(Q[Z]);if(W==="__proto__"&&!J6.call(J,"__proto__"))return!1;if((W==="constructor"||W==="prototype")&&Z<q-1)return!1}var H=cJ(J,Q);return H==null||delete H[_(lJ(Q))]}var eZ,J6,sJ;var tJ=Y(()=>{rJ();aZ();oJ();tZ();eZ=Object.prototype,J6=eZ.hasOwnProperty;sJ=Q6});function $6(J){return aJ(J)?void 0:J}var eJ;var JQ=Y(()=>{Z6();eJ=$6});function W6(J){return O(J)||ZQ(J)||!!(QQ&&J&&J[QQ])}var QQ,$Q;var qQ=Y(()=>{GJ();q6();dJ();QQ=x?x.isConcatSpreadable:void 0;$Q=W6});function XQ(J,Q,Z,q,W){var H=-1,$=J.length;Z||(Z=$Q),W||(W=[]);while(++H<$){var G=J[H];if(Q>0&&Z(G))if(Q>1)XQ(G,Q-1,Z,q,W);else WQ(W,G);else if(!q)W[W.length]=G}return W}var YQ;var HQ=Y(()=>{X6();qQ();YQ=XQ});function Y6(J){var Q=J==null?0:J.length;return Q?YQ(J,1):[]}var KQ;var GQ=Y(()=>{HQ();KQ=Y6});function G6(J){return BQ(UQ(J,void 0,KQ),J+"")}var PQ;var MQ=Y(()=>{GQ();H6();K6();PQ=G6});var B6=1,P6=2,M6=4,D6,D$;var x6=Y(()=>{U6();iJ();tJ();rJ();F();JQ();MQ();hJ();D6=PQ(function(J,Q){var Z={};if(J==null)return Z;var q=!1;if(Q=DQ(Q,function(H){return H=k(H,J),q||(q=H.length>1),H}),U(J,S(J),Z),q)Z=bJ(Z,B6|P6|M6,eJ);var W=Q.length;while(W--)sJ(Z,Q[W]);return Z}),D$=D6});function RQ(){let J=T("tengu_harbor_ledger",[]),Q=L6().safeParse(J);return Q.success?Q.data:[]}function FQ(){return T("tengu_harbor",!1)}var L6;var IQ=Y(()=>{xQ();NQ();LQ();N6();L6=I(()=>K.array(K.object({marketplace:K.string(),plugin:K.string()})))});function f$(J,Q,Z){let q=Object.entries(Z??{}).filter(([W])=>w6.test(W)).map(([W,H])=>` ${W}="${m(H)}"`).join("");return`<${v} source="${m(J)}"${q}>
2
- ${Q}
3
- </${v}>`}function C6(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:RQ(),source:"ledger"}}function A6(J,Q){let Z=J.split(":");return Q.find((q)=>q.kind==="server"?J===q.name:Z[0]==="plugin"&&Z[1]===q.name)}function _$(J,Q,Z){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!FQ())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!VQ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let q=wQ(),W=q==="team"||q==="enterprise",H=W?EQ("policySettings"):void 0;if(W&&H?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let $=A6(J,zQ());if(!$)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if($.kind==="plugin"){let G=Z?h(Z).marketplace:void 0;if(G!==$.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${$.name}@${$.marketplace} but the installed ${$.name} plugin is from ${G??"an unknown source"}`};if(!$.dev){let{entries:M,source:d}=C6(q,H?.allowedChannelPlugins);if(!M.some((R)=>R.plugin===$.name&&R.marketplace===$.marketplace))return{action:"skip",kind:"allowlist",reason:d==="org"?`plugin ${$.name}@${$.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${$.name}@${$.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!$.dev)return{action:"skip",kind:"allowlist",reason:`server ${$.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var k$,V6="notifications/claude/channel/permission",d$,w6;var O6=Y(()=>{xQ();R6();F6();z6();NQ();LQ();I6();E6();IQ();k$=I(()=>K.object({method:K.literal("notifications/claude/channel"),params:K.object({content:K.string(),meta:K.record(K.string(),K.string()).optional()})})),d$=I(()=>K.object({method:K.literal(V6),params:K.object({request_id:K.string(),behavior:K.enum(["allow","deny"])})})),w6=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
- export{D$ as ze,x6 as Ae,IQ as Be,k$ as Ce,f$ as De,A6 as Ee,_$ as Fe,O6 as Ge};
@@ -1,2 +0,0 @@
1
- import{ve as O0,we as I0,ye as FP}from"./cli-0.1.11-jne21ka1.mjs";import{$q as D0,Ay as J0,By as YP,DK as KP,EK as jP,KI as ZP,LI as V0,Mq as MP,NI as qP,Oq as U0,Pq as C0,Qq as p0,Rq as $0,SI as VP,Uq as b0,ZI as E0,bK as Q0,cK as WP,eK as x0,gr as zP,hJ as EP,ov as L0,pr as uP,qv as v0}from"./cli-0.1.11-s8ygndzf.mjs";import{DP as p,EP as u0,FP as j,GP as y0,HP as e,IP as z0,LP as A0,MP as HP}from"./cli-0.1.11-r990p54m.mjs";import{aS as B0,bS as XP}from"./cli-0.1.11-d4ahh3jz.mjs";import{GS as QP,HS as pP,US as w0,WS as $P}from"./cli-0.1.11-h02tyg8p.mjs";import{OU as E,QU as Q,SU as L,WU as k0,eT as h0,eU as JP,jU as CP,kV as LP,nT as N0,vV as K0}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as l}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as i0}from"./cli-0.1.11-x37jysc0.mjs";import{OX as c0,PX as cP}from"./cli-0.1.11-16086k9e.mjs";import{S4 as GP,i5 as dP}from"./cli-0.1.11-qbcfg80y.mjs";import{I7 as e0,J$ as S0,K$ as g0,K7 as hP,L$ as fP,L7 as T,M7 as PP,X$ as R0,Y$ as wP,eaa as j0}from"./cli-0.1.11-v7bwjqf0.mjs";import{Oea as d0,Pea as mP}from"./cli-0.1.11-7qpnfx56.mjs";import{dga as V,ega as TP}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as M0,Jga as r0}from"./cli-0.1.11-vq5fvf9m.mjs";import{Nna as B,Rna as G0}from"./cli-0.1.11-yrfxpjhr.mjs";function f0(G){let P=s0.c(9),{serverToolsCount:X,serverPromptsCount:k,serverResourcesCount:Z}=G,w;if(P[0]!==k||P[1]!==Z||P[2]!==X){if(w=[],X>0)w.push("tools");if(Z>0)w.push("resources");if(k>0)w.push("prompts");P[0]=k,P[1]=Z,P[2]=X,P[3]=w}else w=P[3];let M;if(P[4]===Symbol.for("react.memo_cache_sentinel"))M=W0.jsxDEV(L,{bold:!0,children:"Capabilities: "},void 0,!1,void 0,this),P[4]=M;else M=P[4];let K;if(P[5]!==w)K=w.length>0?W0.jsxDEV(e,{children:w},void 0,!1,void 0,this):"none",P[5]=w,P[6]=K;else K=P[6];let R;if(P[7]!==K)R=W0.jsxDEV(Q,{children:[M,W0.jsxDEV(L,{color:"text",children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[7]=K,P[8]=R;else R=P[8];return R}var s0,W0;var T0=G0(()=>{K0();z0();s0=B(h0(),1),W0=B(l(),1)});function H0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function F0(G,P){let X=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${X}`}var m0=()=>{};function IG({server:G,serverToolsCount:P,onViewTools:X,onCancel:k,onComplete:Z,borderless:w=!1}){let[M]=N0(),K=B0(),{columns:R}=QP(),[g,O]=z.default.useState(!1),[i,I]=z.default.useState(null),m=Q0((q)=>q.mcp),b=WP(),[_,F]=z.default.useState(null),[W,N]=z.useState(!1),y=z.useRef(null),[d,u]=z.useState(!1),[D,$]=z.useState(null),[C,S]=z.useState(!1),[v,x]=z.useState(null),[o,a]=z.useState(!1),[t,P0]=z.useState(!1),n=z.useRef(void 0),A=z.useRef(!1),[n0,X0]=z.useState(""),[NP,UP]=z.useState(0),[l0,o0]=z.useState(null);z.useEffect(()=>()=>{if(A.current=!0,y.current?.abort(),n.current!==void 0)clearTimeout(n.current)},[]);let Y0=G.isAuthenticated||G.client.type==="connected"&&P>0,Z0=O0(),bP=z.default.useCallback(async()=>{u(!1),$(null),N(!0);try{let q=await Z0(G.name),H=q.client.type==="connected";if(V("tengu_claudeai_mcp_auth_completed",{success:H}),H)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){V("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(F0(q,G.name))}finally{N(!1)}},[Z0,G.name,Z]),yP=z.default.useCallback(async()=>{await E0(G.name,{...G.config,scope:G.scope}),b((q)=>{let H=q.mcp.clients.map((s)=>s.name===G.name?{...s,type:"needs-auth"}:s),U=C0(q.mcp.tools,G.name),c=p0(q.mcp.commands,G.name),q0=$0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:H,tools:U,commands:c,resources:q0}}}),V("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),S(!1),x(null),a(!1)},[G.name,G.config,G.scope,b,Z]);w0("confirm:no",()=>{y.current?.abort(),y.current=null,O(!1),F(null)},{context:"Confirmation",isActive:g}),w0("confirm:no",()=>{u(!1),$(null)},{context:"Confirmation",isActive:d}),w0("confirm:no",()=>{S(!1),x(null),a(!1)},{context:"Confirmation",isActive:C}),LP((q,H)=>{if(H.return&&d)bP();if(H.return&&C)if(o)yP();else{let U=`${d0().CLAUDE_AI_ORIGIN}/settings/connectors`;x(U),a(!0),c0(U)}if(q==="c"&&!t){let U=_||D||v;if(U)JP(U).then((c)=>{if(A.current)return;if(c)process.stdout.write(c);if(P0(!0),n.current!==void 0)clearTimeout(n.current);n.current=setTimeout(P0,2000,!1)})}});let BP=R0(String(G.name)),OP=U0(m.commands,G.name).length,t0=I0(),IP=z.default.useCallback(async()=>{let q=d0().CLAUDE_AI_ORIGIN,U=GP()?.organizationUuid,c;if(U&&G.config.type==="claudeai-proxy"&&G.config.id){let q0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,s=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");c=`${q}/api/organizations/${U}/mcp/start-auth/${q0}?product_surface=${s}`}else c=`${q}/settings/connectors`;$(c),u(!0),V("tengu_claudeai_mcp_auth_started",{}),await c0(c)},[G.config]),_P=z.default.useCallback(()=>{S(!0),V("tengu_claudeai_mcp_clear_auth_started",{})},[]),SP=z.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await t0(G.name),G.config.type==="claudeai-proxy")V("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});k()}catch(H){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${M0(H)}`)}},[G.client.type,G.config.type,G.name,t0,k,Z]),gP=z.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;O(!0),I(null);let q=new AbortController;y.current=q;try{if(G.isAuthenticated&&G.config)await V0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,F,q.signal,{onWaitingForCallback:(U)=>{o0(()=>U)}}),V("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let H=await Z0(G.name);if(H.client.type==="connected"){let U=Y0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(U)}else if(H.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else e0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(H){if(H instanceof Error&&!(H instanceof ZP))I(H.message)}finally{O(!1),y.current=null,o0(null),X0("")}},[G.isAuthenticated,G.config,G.name,Z,Z0,Y0]),AP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await V0(G.name,G.config),V("tengu_mcp_auth_config_clear",{}),await E0(G.name,{...G.config,scope:G.scope}),b((q)=>{let H=q.mcp.clients.map((s)=>s.name===G.name?{...s,type:"failed"}:s),U=C0(q.mcp.tools,G.name),c=p0(q.mcp.commands,G.name),q0=$0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:H,tools:U,commands:c,resources:q0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(g){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"claude",children:["Authenticating with ",G.name,"…"]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(J0,{},void 0,!1,void 0,this),J.jsxDEV(L,{children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]},void 0,!0,void 0,this),t?J.jsxDEV(L,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):J.jsxDEV(L,{dimColor:!0,children:J.jsxDEV(p,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(k0,{url:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g&&_&&l0&&J.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[J.jsxDEV(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"},void 0,!1,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["URL ",">"," "]},void 0,!0,void 0,this),J.jsxDEV(KP,{value:n0,onChange:X0,onSubmit:(H)=>{l0(H.trim()),X0("")},cursorOffset:NP,onChangeCursorOffset:UP,columns:R-8},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginLeft:3,children:J.jsxDEV(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(d)return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"claude",children:["Authenticating with ",G.name,"…"]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(J0,{},void 0,!1,void 0,this),J.jsxDEV(L,{children:" A browser window will open for authentication"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D&&J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]},void 0,!0,void 0,this),t?J.jsxDEV(L,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):J.jsxDEV(L,{dimColor:!0,children:J.jsxDEV(p,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(k0,{url:D},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginLeft:3,flexDirection:"column",children:[J.jsxDEV(L,{color:"permission",children:["Press ",J.jsxDEV(L,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," after authenticating in your browser."]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,italic:!0,children:J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(C)return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"claude",children:["Clear authentication for ",G.name]},void 0,!0,void 0,this),o?J.jsxDEV(J.Fragment,{children:[J.jsxDEV(L,{children:'Find the MCP server in the browser and click "Disconnect".'},void 0,!1,void 0,this),v&&J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]},void 0,!0,void 0,this),t?J.jsxDEV(L,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):J.jsxDEV(L,{dimColor:!0,children:J.jsxDEV(p,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(k0,{url:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginLeft:3,flexDirection:"column",children:[J.jsxDEV(L,{color:"permission",children:["Press ",J.jsxDEV(L,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," when done."]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,italic:!0,children:J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):J.jsxDEV(J.Fragment,{children:[J.jsxDEV(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'},void 0,!1,void 0,this),J.jsxDEV(Q,{marginLeft:3,flexDirection:"column",children:[J.jsxDEV(L,{color:"permission",children:["Press ",J.jsxDEV(L,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," to open the browser."]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,italic:!0,children:J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(W)return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"text",children:["Connecting to ",J.jsxDEV(L,{bold:!0,children:G.name},void 0,!1,void 0,this),"…"]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(J0,{},void 0,!1,void 0,this),J.jsxDEV(L,{children:" Establishing connection to MCP server"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,children:"This may take a few moments."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);let h=[];if(G.client.type==="disabled")h.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)h.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")h.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")h.push({label:"Authenticate",value:"claudeai-auth"})}else{if(Y0)h.push({label:"Re-authenticate",value:"reauth"}),h.push({label:"Clear authentication",value:"clear-auth"});if(!Y0)h.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")h.push({label:"Reconnect",value:"reconnectMcpServer"});h.push({label:"Disable",value:"toggle-enabled"})}if(h.length===0)h.push({label:"Back",value:"back"});return J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{flexDirection:"column",paddingX:1,borderStyle:w?void 0:"round",children:[J.jsxDEV(Q,{marginBottom:1,children:J.jsxDEV(L,{bold:!0,children:[BP," MCP Server"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(Q,{flexDirection:"column",gap:0,children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Status: "},void 0,!1,void 0,this),G.client.type==="disabled"?J.jsxDEV(L,{children:[E("inactive",M)(T.radioOff)," disabled"]},void 0,!0,void 0,this):G.client.type==="connected"?J.jsxDEV(L,{children:[E("success",M)(T.tick)," connected"]},void 0,!0,void 0,this):G.client.type==="pending"?J.jsxDEV(J.Fragment,{children:[J.jsxDEV(L,{dimColor:!0,children:T.radioOff},void 0,!1,void 0,this),J.jsxDEV(L,{children:" connecting…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):G.client.type==="needs-auth"?J.jsxDEV(L,{children:[E("warning",M)(T.triangleUpOutline)," needs authentication"]},void 0,!0,void 0,this):J.jsxDEV(L,{children:[E("error",M)(T.cross)," failed"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G.transport!=="claudeai-proxy"&&J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Auth: "},void 0,!1,void 0,this),Y0?J.jsxDEV(L,{children:[E("success",M)(T.tick)," authenticated"]},void 0,!0,void 0,this):J.jsxDEV(L,{children:[E("error",M)(T.cross)," not authenticated"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"URL: "},void 0,!1,void 0,this),J.jsxDEV(L,{dimColor:!0,children:G.config.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Config location: "},void 0,!1,void 0,this),J.jsxDEV(L,{dimColor:!0,children:b0(G.scope)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.client.type==="connected"&&J.jsxDEV(f0,{serverToolsCount:P,serverPromptsCount:OP,serverResourcesCount:m.resources[G.name]?.length||0},void 0,!1,void 0,this),G.client.type==="connected"&&P>0&&J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Tools: "},void 0,!1,void 0,this),J.jsxDEV(L,{dimColor:!0,children:[P," tools"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i&&J.jsxDEV(Q,{marginTop:1,children:J.jsxDEV(L,{color:"error",children:["Error: ",i]},void 0,!0,void 0,this)},void 0,!1,void 0,this),h.length>0&&J.jsxDEV(Q,{marginTop:1,children:J.jsxDEV(L0,{options:h,onChange:async(q)=>{switch(q){case"tools":X();break;case"auth":case"reauth":await gP();break;case"clear-auth":await AP();break;case"claudeai-auth":await IP();break;case"claudeai-clear-auth":_P();break;case"reconnectMcpServer":N(!0);try{let H=await Z0(G.name);if(G.config.type==="claudeai-proxy")V("tengu_claudeai_mcp_reconnect",{success:H.client.type==="connected"});let{message:U}=H0(H,G.name);Z?.(U)}catch(H){if(G.config.type==="claudeai-proxy")V("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(F0(H,G.name))}finally{N(!1)}break;case"toggle-enabled":await SP();break;case"back":k();break}},onCancel:k},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginTop:1,children:J.jsxDEV(L,{dimColor:!0,italic:!0,children:K.pending?J.jsxDEV(J.Fragment,{children:["Press ",K.keyName," again to exit"]},void 0,!0,void 0,this):J.jsxDEV(e,{children:[J.jsxDEV(p,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),J.jsxDEV(p,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var z,J;var iP=G0(()=>{PP();TP();mP();XP();pP();CP();K0();$P();VP();EP();FP();D0();x0();dP();cP();r0();hP();j0();y0();v0();z0();u0();YP();jP();T0();m0();z=B(i0(),1),J=B(l(),1)});function DG({server:G,serverToolsCount:P,onViewTools:X,onCancel:k,onComplete:Z,borderless:w=!1}){let[M]=N0(),K=B0(),R=Q0((W)=>W.mcp),g=O0(),O=I0(),[i,I]=_0.useState(!1),m=_0.default.useCallback(async()=>{let W=G.client.type!=="disabled";try{await O(G.name),k()}catch(N){Z(`Failed to ${W?"disable":"enable"} MCP server '${G.name}': ${M0(N)}`)}},[G.client.type,G.name,O,k,Z]),b=R0(String(G.name)),_=U0(R.commands,G.name).length,F=[];if(G.client.type!=="disabled"&&P>0)F.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")F.push({label:"Reconnect",value:"reconnectMcpServer"});if(F.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),F.length===0)F.push({label:"Back",value:"back"});if(i)return Y.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[Y.jsxDEV(L,{color:"text",children:["Reconnecting to ",Y.jsxDEV(L,{bold:!0,children:G.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{children:[Y.jsxDEV(J0,{},void 0,!1,void 0,this),Y.jsxDEV(L,{children:" Restarting MCP server process"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:"This may take a few moments."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return Y.jsxDEV(Q,{flexDirection:"column",children:[Y.jsxDEV(Q,{flexDirection:"column",paddingX:1,borderStyle:w?void 0:"round",children:[Y.jsxDEV(Q,{marginBottom:1,children:Y.jsxDEV(L,{bold:!0,children:[b," MCP Server"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV(Q,{flexDirection:"column",gap:0,children:[Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Status: "},void 0,!1,void 0,this),G.client.type==="disabled"?Y.jsxDEV(L,{children:[E("inactive",M)(T.radioOff)," disabled"]},void 0,!0,void 0,this):G.client.type==="connected"?Y.jsxDEV(L,{children:[E("success",M)(T.tick)," connected"]},void 0,!0,void 0,this):G.client.type==="pending"?Y.jsxDEV(Y.Fragment,{children:[Y.jsxDEV(L,{dimColor:!0,children:T.radioOff},void 0,!1,void 0,this),Y.jsxDEV(L,{children:" connecting…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):Y.jsxDEV(L,{children:[E("error",M)(T.cross)," failed"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Command: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:G.config.command},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.config.args&&G.config.args.length>0&&Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Args: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:G.config.args.join(" ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Config location: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:b0(zP(G.name)?.scope??"dynamic")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.client.type==="connected"&&Y.jsxDEV(f0,{serverToolsCount:P,serverPromptsCount:_,serverResourcesCount:R.resources[G.name]?.length||0},void 0,!1,void 0,this),G.client.type==="connected"&&P>0&&Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Tools: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:[P," tools"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.length>0&&Y.jsxDEV(Q,{marginTop:1,children:Y.jsxDEV(L0,{options:F,onChange:async(W)=>{if(W==="tools")X();else if(W==="reconnectMcpServer"){I(!0);try{let N=await g(G.name),{message:y}=H0(N,G.name);Z?.(y)}catch(N){Z?.(F0(N,G.name))}finally{I(!1)}}else if(W==="toggle-enabled")await m();else if(W==="back")k()},onCancel:k},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{marginTop:1,children:Y.jsxDEV(L,{dimColor:!0,italic:!0,children:K.pending?Y.jsxDEV(Y.Fragment,{children:["Press ",K.keyName," again to exit"]},void 0,!0,void 0,this):Y.jsxDEV(e,{children:[Y.jsxDEV(p,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),Y.jsxDEV(p,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),Y.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _0,Y;var DP=G0(()=>{PP();XP();K0();uP();FP();D0();x0();r0();j0();y0();v0();z0();u0();YP();T0();m0();_0=B(i0(),1),Y=B(l(),1)});function oG(G){let P=kP.c(44),{tool:X,server:k,onBack:Z}=G,[w,M]=a0.default.useState(""),K,R;if(P[0]!==k.name||P[1]!==X){R=S0(X.name,k.name);let P0=X.userFacingName?X.userFacingName({}):R;K=g0(P0),P[0]=k.name,P[1]=X,P[2]=K,P[3]=R}else K=P[2],R=P[3];let g=K,O;if(P[4]!==X)O=X.isReadOnly?.({})??!1,P[4]=X,P[5]=O;else O=P[5];let i=O,I;if(P[6]!==X)I=X.isDestructive?.({})??!1,P[6]=X,P[7]=I;else I=P[7];let m=I,b;if(P[8]!==X)b=X.isOpenWorld?.({})??!1,P[8]=X,P[9]=b;else b=P[9];let _=b,F,W;if(P[10]!==X)F=()=>{(async function(){try{let A=await X.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});M(A)}catch{M("Failed to load description")}})()},W=[X],P[10]=X,P[11]=F,P[12]=W;else F=P[11],W=P[12];a0.default.useEffect(F,W);let N;if(P[13]!==i)N=i&&f.jsxDEV(L,{color:"success",children:" [read-only]"},void 0,!1,void 0,this),P[13]=i,P[14]=N;else N=P[14];let y;if(P[15]!==m)y=m&&f.jsxDEV(L,{color:"error",children:" [destructive]"},void 0,!1,void 0,this),P[15]=m,P[16]=y;else y=P[16];let d;if(P[17]!==_)d=_&&f.jsxDEV(L,{dimColor:!0,children:" [open-world]"},void 0,!1,void 0,this),P[17]=_,P[18]=d;else d=P[18];let u;if(P[19]!==g||P[20]!==N||P[21]!==y||P[22]!==d)u=f.jsxDEV(f.Fragment,{children:[g,N,y,d]},void 0,!0,void 0,this),P[19]=g,P[20]=N,P[21]=y,P[22]=d,P[23]=u;else u=P[23];let D=u,$;if(P[24]===Symbol.for("react.memo_cache_sentinel"))$=f.jsxDEV(L,{bold:!0,children:"Tool name: "},void 0,!1,void 0,this),P[24]=$;else $=P[24];let C;if(P[25]!==R)C=f.jsxDEV(Q,{children:[$,f.jsxDEV(L,{dimColor:!0,children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[25]=R,P[26]=C;else C=P[26];let S;if(P[27]===Symbol.for("react.memo_cache_sentinel"))S=f.jsxDEV(L,{bold:!0,children:"Full name: "},void 0,!1,void 0,this),P[27]=S;else S=P[27];let v;if(P[28]!==X.name)v=f.jsxDEV(Q,{children:[S,f.jsxDEV(L,{dimColor:!0,children:X.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[28]=X.name,P[29]=v;else v=P[29];let x;if(P[30]!==w)x=w&&f.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[f.jsxDEV(L,{bold:!0,children:"Description:"},void 0,!1,void 0,this),f.jsxDEV(L,{wrap:"wrap",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[30]=w,P[31]=x;else x=P[31];let o;if(P[32]!==X.inputJSONSchema)o=X.inputJSONSchema&&X.inputJSONSchema.properties&&Object.keys(X.inputJSONSchema.properties).length>0&&f.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[f.jsxDEV(L,{bold:!0,children:"Parameters:"},void 0,!1,void 0,this),f.jsxDEV(Q,{marginLeft:2,flexDirection:"column",children:Object.entries(X.inputJSONSchema.properties).map((P0)=>{let[n,A]=P0,X0=X.inputJSONSchema?.required?.includes(n);return f.jsxDEV(L,{children:["• ",n,X0&&f.jsxDEV(L,{dimColor:!0,children:" (required)"},void 0,!1,void 0,this),":"," ",f.jsxDEV(L,{dimColor:!0,children:typeof A==="object"&&A&&"type"in A?String(A.type):"unknown"},void 0,!1,void 0,this),typeof A==="object"&&A&&"description"in A&&f.jsxDEV(L,{dimColor:!0,children:[" - ",String(A.description)]},void 0,!0,void 0,this)]},n,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[32]=X.inputJSONSchema,P[33]=o;else o=P[33];let a;if(P[34]!==C||P[35]!==v||P[36]!==x||P[37]!==o)a=f.jsxDEV(Q,{flexDirection:"column",children:[C,v,x,o]},void 0,!0,void 0,this),P[34]=C,P[35]=v,P[36]=x,P[37]=o,P[38]=a;else a=P[38];let t;if(P[39]!==Z||P[40]!==k.name||P[41]!==a||P[42]!==D)t=f.jsxDEV(A0,{title:D,subtitle:k.name,onCancel:Z,inputGuide:vP,children:a},void 0,!1,void 0,this),P[39]=Z,P[40]=k.name,P[41]=a,P[42]=D,P[43]=t;else t=P[43];return t}function vP(G){return G.pending?f.jsxDEV(L,{children:["Press ",G.keyName," again to exit"]},void 0,!0,void 0,this):f.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"},void 0,!1,void 0,this)}var kP,a0,f;var xP=G0(()=>{K0();fP();y0();HP();kP=B(h0(),1),a0=B(i0(),1),f=B(l(),1)});function ZJ(G){let P=RP.c(21),{server:X,onSelectTool:k,onBack:Z}=G,w=Q0(nP),M;P:{if(X.client.type!=="connected"){let W;if(P[0]===Symbol.for("react.memo_cache_sentinel"))W=[],P[0]=W;else W=P[0];M=W;break P}let F;if(P[1]!==w||P[2]!==X.name)F=MP(w,X.name),P[1]=w,P[2]=X.name,P[3]=F;else F=P[3];M=F}let K=M,R;if(P[4]!==X.name||P[5]!==K){let F;if(P[7]!==X.name)F=(W,N)=>{let y=S0(W.name,X.name),d=W.userFacingName?W.userFacingName({}):y,u=g0(d),D=W.isReadOnly?.({})??!1,$=W.isDestructive?.({})??!1,C=W.isOpenWorld?.({})??!1,S=[];if(D)S.push("read-only");if($)S.push("destructive");if(C)S.push("open-world");return{label:u,value:N.toString(),description:S.length>0?S.join(", "):void 0,descriptionColor:$?"error":D?"success":void 0}},P[7]=X.name,P[8]=F;else F=P[8];R=K.map(F),P[4]=X.name,P[5]=K,P[6]=R}else R=P[6];let g=R,O=`Tools for ${X.name}`,i=K.length,I;if(P[9]!==K.length)I=wP(K.length,"tool"),P[9]=K.length,P[10]=I;else I=P[10];let m=`${i} ${I}`,b;if(P[11]!==Z||P[12]!==k||P[13]!==K||P[14]!==g)b=K.length===0?r.jsxDEV(L,{dimColor:!0,children:"No tools available"},void 0,!1,void 0,this):r.jsxDEV(L0,{options:g,onChange:(F)=>{let W=parseInt(F),N=K[W];if(N)k(N,W)},onCancel:Z},void 0,!1,void 0,this),P[11]=Z,P[12]=k,P[13]=K,P[14]=g,P[15]=b;else b=P[15];let _;if(P[16]!==Z||P[17]!==O||P[18]!==m||P[19]!==b)_=r.jsxDEV(A0,{title:O,subtitle:m,onCancel:Z,inputGuide:aP,children:b},void 0,!1,void 0,this),P[16]=Z,P[17]=O,P[18]=m,P[19]=b,P[20]=_;else _=P[20];return _}function aP(G){return G.pending?r.jsxDEV(L,{children:["Press ",G.keyName," again to exit"]},void 0,!0,void 0,this):r.jsxDEV(e,{children:[r.jsxDEV(p,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),r.jsxDEV(p,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),r.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function nP(G){return G.mcp.tools}var RP,r;var lP=G0(()=>{K0();fP();D0();x0();j0();y0();v0();z0();HP();u0();RP=B(h0(),1),r=B(l(),1)});
2
- export{IG as me,iP as ne,DG as oe,DP as pe,oG as qe,xP as re,ZJ as se,lP as te};
@@ -1,2 +0,0 @@
1
- import{MT as U,NT as _,OT as E,QT as $,RT as V,wU as v,xU as g,yU as B}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as Y}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as p}from"./cli-0.1.11-x37jysc0.mjs";import{Vma as I,gka as Z}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as T,Rna as H}from"./cli-0.1.11-yrfxpjhr.mjs";function M({children:w,ref:A,stickyScroll:C,...L}){let G=K.useRef(null),[,F]=K.useState(0),N=K.useRef(new Set),O=K.useRef(!1),X=()=>{for(let q of N.current)q()};function P(q){if(Z(),U(q),$(),X(),O.current)return;O.current=!0,queueMicrotask(()=>{O.current=!1,_(q)})}return K.useImperativeHandle(A,()=>({scrollTo(q){let z=G.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),P(z)},scrollToElement(q,z=0){let J=G.current;if(!J)return;J.stickyScroll=!1,J.pendingScrollDelta=void 0,J.scrollAnchor={el:q,offset:z},P(J)},scrollBy(q){let z=G.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),P(z)},scrollToBottom(){let q=G.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,U(q),X(),F((z)=>z+1)},getScrollTop(){return G.current?.scrollTop??0},getPendingDelta(){return G.current?.pendingScrollDelta??0},getScrollHeight(){return G.current?.scrollHeight??0},getFreshScrollHeight(){return G.current?.childNodes[0]?.yogaNode?.getComputedHeight()??G.current?.scrollHeight??0},getViewportHeight(){return G.current?.scrollViewportHeight??0},getViewportTop(){return G.current?.scrollViewportTop??0},isSticky(){let q=G.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return N.current.add(q),()=>N.current.delete(q)},setClampBounds(q,z){let J=G.current;if(!J)return;J.scrollClampMin=q,J.scrollClampMax=z}}),[]),W.jsxDEV("ink-box",{ref:(q)=>{if(G.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:L.flexDirection??"row",flexGrow:L.flexGrow??0,flexShrink:L.flexShrink??1,...L,overflowX:"scroll",overflowY:"scroll"},...C?{stickyScroll:!0}:{},children:W.jsxDEV(g,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:w},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var K,W,u;var Q=H(()=>{I();E();V();v();B();K=T(p(),1),W=T(Y(),1);u=M});
2
- export{u as lg,Q as mg};
@@ -1,15 +0,0 @@
1
- import{Qn as J,Rn as k,UH as L,gI as z,pJ as f,rJ as P}from"./cli-0.1.11-s8ygndzf.mjs";import{X9 as F,a_ as A}from"./cli-0.1.11-v7bwjqf0.mjs";import{Vda as W,Xda as R,Yda as H,Zda as X}from"./cli-0.1.11-h7e4rkwk.mjs";import{dga as Y,ega as h}from"./cli-0.1.11-xwj7cmkj.mjs";import{bha as D,eha as M}from"./cli-0.1.11-vq5fvf9m.mjs";import{Pka as q,Vma as C}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as V}from"./cli-0.1.11-yrfxpjhr.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
2
- `);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:J([v]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=L(w.message.content),B=I().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return Y("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),Y("tengu_session_title_generated",{success:!1}),"Claudio"}}var $=1000,v=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
3
-
4
- Return JSON with a single "title" field.
5
-
6
- Good examples:
7
- {"title": "Fix login button on mobile"}
8
- {"title": "Add OAuth authentication"}
9
- {"title": "Debug failing CI tests"}
10
- {"title": "Refactor API client error handling"}
11
-
12
- Bad (too vague): {"title": "Code changes"}
13
- Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
14
- Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,I;var _=V(()=>{R();C();h();P();M();A();X();z();k();I=H(()=>W.object({title:W.string()}))});
15
- export{S as je,T as ke,_ as le};
@@ -1,2 +0,0 @@
1
- import{Cba as B,F7 as A,K7 as L,Vba as N}from"./cli-0.1.11-v7bwjqf0.mjs";import{bha as z,eha as K}from"./cli-0.1.11-vq5fvf9m.mjs";import{Qna as I,Rna as J}from"./cli-0.1.11-yrfxpjhr.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=B().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)A(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{N();K();L()});
2
- export{P as uP,Q as vP,R as wP,H as xP,U as yP,V as zP,W as AP};
@@ -1,11 +0,0 @@
1
- import{Tea as x}from"./cli-0.1.11-vch8cn95.mjs";import{bfa as p,nfa as s}from"./cli-0.1.11-fag2wtke.mjs";import{Vma as r}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as n}from"./cli-0.1.11-yrfxpjhr.mjs";var c="ToolSearch";var h=()=>{};function S(){return p("tengu_glacier_2xr",!1)?"Deferred tools appear by name in <system-reminder> messages.":"Deferred tools appear by name in <available-deferred-tools> messages."}function y(O){if(O.alwaysLoad===!0)return!1;if(O.isMcp===!0)return!0;if(O.name===c)return!1;return O.shouldDefer===!0}function z(O){return O.name}function G(){return N+S()+b}var N=`Fetches full schema definitions for deferred tools so they can be called.
2
-
3
- `,b=` Until fetched, only the name is known — there is no parameter schema, so the tool cannot be invoked. This tool takes a query, matches it against the deferred tool list, and returns the matched tools' complete JSONSchema definitions inside a <functions> block. Once a tool's schema appears in that result, it is callable exactly like any tool defined at the top of the prompt.
4
-
5
- Result format: each matched tool appears as one <function>{"description": "...", "name": "...", "parameters": {...}}</function> line inside the <functions> block — the same encoding as the tool list at the top of this prompt.
6
-
7
- Query forms:
8
- - "select:Read,Edit,Grep" — fetch these exact tools by name
9
- - "notebook jupyter" — keyword search, up to max_results best matches
10
- - "+slack send" — require "slack" in the name, rank by remaining terms`;var d=n(()=>{r();s();x();h();h()});
11
- export{c as JV,y as KV,z as LV,G as MV,d as NV};
@@ -1,2 +0,0 @@
1
- import{Ae as rG,Ge as iG,ze as bG}from"./cli-0.1.11-hmfevmz1.mjs";import{$I as u,$q as mG,Iq as HG,Jq as KG,Lq as dG,Nq as LG,Sq as VG,TI as DG,WI as aG,ZI as v,aJ as c,bJ as r,bK as n,br as WG,cK as _G,cr as qG,dJ as d,dK as UG,eJ as i,eK as sG,fK as $G,gK as cG,go as uG,hJ as oG,hr as a,lr as kG,nr as R,or as o,pr as pG,xI as s,yI as lG}from"./cli-0.1.11-s8ygndzf.mjs";import{eT as JJ}from"./cli-0.1.11-bvd2r7an.mjs";import{MW as vG,qW as FG,tW as OG,yW as jG}from"./cli-0.1.11-424zgj5k.mjs";import{qX as PG}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as BG}from"./cli-0.1.11-x37jysc0.mjs";import{G$ as YG,H7 as E,I7 as D,K7 as CG,L$ as fG}from"./cli-0.1.11-v7bwjqf0.mjs";import{nfa as NG}from"./cli-0.1.11-fag2wtke.mjs";import{dga as x,ega as gG}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as w,Jga as MG,Pga as TG,bha as zG,eha as SG}from"./cli-0.1.11-vq5fvf9m.mjs";import{Vma as ZG,aja as XG}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as M,Rna as l}from"./cli-0.1.11-yrfxpjhr.mjs";var GG=l(()=>{TG();NG()});function JG(F){let B="plugin"in F?F.plugin:"no-plugin";return`${F.type}:${F.source}:${B}`}function QG(F,B){if(B.length===0)return;F((k)=>{let h=new Set(k.plugins.errors.map((K)=>JG(K))),P=B.filter((K)=>!h.has(JG(K)));if(P.length===0)return k;return{...k,plugins:{...k.plugins,errors:[...k.plugins.errors,...P]}}})}function IG(F,B=!1){let k=UG(),h=n((G)=>G.authVersion),P=n((G)=>G.mcp.pluginReconnectKey),K=_G(),L=q.useRef(new Map),N=q.useRef(new Set),C=q.useRef(null);q.useEffect(()=>{},[K]);let{addNotification:T}=$G(),RG=16,m=q.useRef([]),y=q.useRef(null),g=q.useCallback(()=>{y.current=null;let G=m.current;if(G.length===0)return;m.current=[],K((Y)=>{let z=Y.mcp;for(let V of G){let{tools:Q,commands:O,resources:W,...J}=V,j=J.type==="disabled"||J.type==="failed"?Q??[]:Q,X=J.type==="disabled"||J.type==="failed"?O??[]:O,Z=J.type==="disabled"||J.type==="failed"?W??[]:W,H=YG(J.name),f=z.clients.findIndex((I)=>I.name===J.name)===-1?[...z.clients,J]:z.clients.map((I)=>I.name===J.name?J:I),b=j===void 0?z.tools:[...s(z.tools,(I)=>I.name?.startsWith(H)),...j],p=X===void 0?z.commands:[...s(z.commands,(I)=>LG(I,J.name)),...X],hG=Z===void 0?z.resources:{...z.resources,...Z.length>0?{[J.name]:Z}:bG(z.resources,J.name)};z={...z,clients:f,tools:b,commands:p,resources:hG}}return{...Y,mcp:z}})},[K]),_=q.useCallback((G)=>{if(m.current.push(G),y.current===null)y.current=setTimeout(g,RG)},[g]),U=q.useCallback(({client:G,tools:Y,commands:z,resources:V})=>{switch(_({...G,tools:Y,commands:z,resources:V}),G.type){case"connected":{if(DG(G.client,G.name,K),G.client.onclose=()=>{let Q=G.config.type??"stdio";if(v(G.name,G.config).catch(()=>{zG(`Failed to invalidate the server cache: ${G.name}`)}),R(G.name)){D(G.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let O=GJ(Q);D(G.name,`${O} transport closed/disconnected, attempting automatic reconnection`);let W=L.current.get(G.name);if(W)clearTimeout(W),L.current.delete(G.name);(async()=>{for(let j=1;j<=A;j++){if(R(G.name)){D(G.name,"Server disabled during reconnection, stopping retry"),L.current.delete(G.name);return}_({...G,type:"pending",reconnectAttempt:j,maxReconnectAttempts:A});let X=Date.now();try{let H=await d(G.name,G.config),$=Date.now()-X;if(H.client.type==="connected"){D(G.name,`${O} reconnection successful after ${$}ms (attempt ${j})`),L.current.delete(G.name),U(H);return}if(D(G.name,`${O} reconnection attempt ${j} completed with status: ${H.client.type}`),j===A){D(G.name,`Max reconnection attempts (${A}) reached, giving up`),L.current.delete(G.name),U(H);return}}catch(H){let $=Date.now()-X;if(E(G.name,`${O} reconnection attempt ${j} failed after ${$}ms: ${H}`),j===A){D(G.name,`Max reconnection attempts (${A}) reached, giving up`),L.current.delete(G.name),_({...G,type:"failed"});return}}let Z=Math.min(tG*Math.pow(2,j-1),eG);D(G.name,`Scheduling reconnection attempt ${j+1} in ${Z}ms`),await new Promise((H)=>{let $=setTimeout(H,Z);L.current.set(G.name,$)})}})()}else _({...G,type:"failed"})},!1)switch(Q.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(jG,async()=>{D(G.name,"Received tools/list_changed notification, refreshing tools");try{let Q=u.cache.get(G.name);u.cache.delete(G.name);let O=await u(G),W=O.length;if(Q)Q.then((J)=>{x("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:W})},()=>{x("tengu_mcp_list_changed",{type:"tools",newCount:W})});else x("tengu_mcp_list_changed",{type:"tools",newCount:W});_({...G,tools:O})}catch(Q){E(G.name,`Failed to refresh tools after list_changed notification: ${w(Q)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{D(G.name,"Received prompts/list_changed notification, refreshing prompts"),x("tengu_mcp_list_changed",{type:"prompts"});try{r.cache.delete(G.name);let[Q,O]=await Promise.all([r(G),Promise.resolve([])]);_({...G,commands:[...Q,...O]}),nG?.()}catch(Q){E(G.name,`Failed to refresh prompts after list_changed notification: ${w(Q)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{D(G.name,"Received resources/list_changed notification, refreshing resources"),x("tengu_mcp_list_changed",{type:"resources"});try{c.cache.delete(G.name);{let Q=await c(G);_({...G,resources:Q})}}catch(Q){E(G.name,`Failed to refresh resources after list_changed notification: ${w(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[_]),e=XG();q.useEffect(()=>{async function G(){let{servers:Y,errors:z}=B?{servers:{},errors:[]}:await a(F),V={...Y,...F};QG(K,z),K((Q)=>{let{stale:O,...W}=VG(Q.mcp,V);for(let X of O){let Z=L.current.get(X.name);if(Z)clearTimeout(Z),L.current.delete(X.name);if(X.type==="connected")X.client.onclose=void 0,v(X.name,X.config).catch(()=>{})}let J=new Set(W.clients.map((X)=>X.name)),j=Object.entries(V).filter(([X])=>!J.has(X)).map(([X,Z])=>({name:X,type:R(X)?"disabled":"pending",config:Z}));if(j.length===0&&O.length===0)return Q;return{...Q,mcp:{...Q.mcp,...W,clients:[...W.clients,...j]}}})}G().catch((Y)=>{E("useManageMCPConnections",`Failed to initialize servers as pending: ${w(Y)}`)})},[B,F,K,e,P]),q.useEffect(()=>{let G=!1;async function Y(){let z;if(B||kG())z=Promise.resolve({});else KG(),z=HG();let{servers:V,errors:Q}=B?{servers:{},errors:[]}:await a(F,z);if(G)return;QG(K,Q);let O={...V,...F},W=Object.fromEntries(Object.entries(O).filter(([Z])=>!R(Z)));i(U,W).catch((Z)=>{E("useManageMcpConnections",`Failed to get MCP resources: ${w(Z)}`)});let J={};if(!B){if(J=qG(await z).allowed,G)return;if(Object.keys(J).length>0){let{servers:Z}=WG(J,O);J=Z}if(Object.keys(J).length>0){K((H)=>{let $=new Set(H.mcp.clients.map((b)=>b.name)),f=Object.entries(J).filter(([b])=>!$.has(b)).map(([b,p])=>({name:b,type:R(b)?"disabled":"pending",config:p}));if(f.length===0)return H;return{...H,mcp:{...H.mcp,clients:[...H.mcp.clients,...f]}}});let Z=Object.fromEntries(Object.entries(J).filter(([H])=>!R(H)));i(U,Z).catch((H)=>{E("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${w(H)}`)})}}let j={...O,...J},X={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let Z of Object.values(j))if(Z.scope==="enterprise")X.enterprise++;else if(Z.scope==="user")X.global++;else if(Z.scope==="project")X.project++;else if(Z.scope==="local")X.user++;else if(Z.scope==="dynamic")X.plugin++;else if(Z.scope==="claudeai")X.claudeai++;x("tengu_mcp_servers",{...X})}return Y(),()=>{G=!0}},[B,F,U,K,h,e,P]),q.useEffect(()=>{let G=L.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),y.current!==null)clearTimeout(y.current),y.current=null,g()}},[g]);let yG=q.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((Q)=>Q.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let z=L.current.get(G);if(z)clearTimeout(z),L.current.delete(G);let V=await d(G,Y.config);return U(V),V},[k,U]),AG=q.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((V)=>V.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let V=L.current.get(G);if(V)clearTimeout(V),L.current.delete(G);if(o(G,!1),Y.type==="connected")await v(G,Y.config);_({name:G,type:"disabled",config:Y.config})}else{o(G,!0),_({name:G,type:"pending",config:Y.config});let V=await d(G,Y.config);U(V)}},[k,_,U]);return{reconnectMcpServer:yG,toggleMcpServer:AG}}function GJ(F){switch(F){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var q,nG=null,A=5,tG=1000,eG=30000;var EG=l(()=>{ZG();oG();vG();rG();lG();gG();pG();SG();ZG();cG();sG();MG();CG();uG();iG();GG();dG();aG();fG();mG();q=M(BG(),1)});function mJ(){let F=S.useContext(t);if(!F)throw Error("useMcpReconnect must be used within MCPConnectionManager");return F.reconnectMcpServer}function pJ(){let F=S.useContext(t);if(!F)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return F.toggleMcpServer}function lJ(F){let B=wG.c(6),{children:k,dynamicMcpConfig:h,isStrictMcpConfig:P}=F,{reconnectMcpServer:K,toggleMcpServer:L}=IG(h,P),N;if(B[0]!==K||B[1]!==L)N={reconnectMcpServer:K,toggleMcpServer:L},B[0]=K,B[1]=L,B[2]=N;else N=B[2];let C=N,T;if(B[3]!==k||B[4]!==C)T=xG.jsxDEV(t.Provider,{value:C,children:k},void 0,!1,void 0,this),B[3]=k,B[4]=C,B[5]=T;else T=B[5];return T}var wG,S,xG,t;var QJ=l(()=>{EG();wG=M(JJ(),1),S=M(BG(),1),xG=M(PG(),1),t=S.createContext(null)});
2
- export{GG as ue,mJ as ve,pJ as we,lJ as xe,QJ as ye};
@@ -1,3 +0,0 @@
1
- import{_fa as L,cga as O}from"./cli-0.1.11-ktwtyqmp.mjs";import{Rna as N}from"./cli-0.1.11-yrfxpjhr.mjs";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
2
- `,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
3
- export{S as wV,J as xV,T as yV,U as zV,V as AV,W as BV,Q as CV};
@@ -1,2 +0,0 @@
1
- import{pc as Z,qc as _,rc as $,uc as O}from"./cli-0.1.11-0tge574q.mjs";import{Lc as Y,Qc as x}from"./cli-0.1.11-cw0ss3jw.mjs";import{AG as X,KG as V,pG as U,uG as W,zG as S}from"./cli-0.1.11-s8ygndzf.mjs";import{Dga as Q,Jga as C,bha as R,eha as K}from"./cli-0.1.11-vq5fvf9m.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
- export{F as ta};
@@ -1,6 +0,0 @@
1
- import{nX as m,pX as Gt}from"./cli-0.1.11-fstfs72j.mjs";import{Rna as a}from"./cli-0.1.11-yrfxpjhr.mjs";var gt,Dt,Zt=(t)=>typeof t==="string"?{...Dt,name:t}:{...Dt,...t};var S=a(()=>{gt=Symbol("Let zodToJsonSchema decide on which parser to use"),Dt={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"}});var O=a(()=>{Gt()});var I=(t,n)=>{let r=0;for(;r<t.length&&r<n.length;r++)if(t[r]!==n[r])break;return[(t.length-r).toString(),...n.slice(r)].join("/")};var L=()=>{};function g(t){if(t.target!=="openAi")return{};let n=[...t.basePath,t.definitionPath,t.openAiAnyTypeName];return t.flags.hasReferencedOpenAiAnyType=!0,{$ref:t.$refStrategy==="relative"?I(n,t.currentPath):n.join("/")}}var x=a(()=>{L()});function J(t,n,r,o){if(!o?.errorMessages)return;if(r)t.errorMessage={...t.errorMessage,[n]:r}}function l(t,n,r,o,p){t[n]=r,J(t,n,o,p)}var b=()=>{};function vt(t,n){let r={type:"array"};if(t.type?._def&&t.type?._def?.typeName!==m.ZodAny)r.items=i(t.type._def,{...n,currentPath:[...n.currentPath,"items"]});if(t.minLength)l(r,"minItems",t.minLength.value,t.minLength.message,n);if(t.maxLength)l(r,"maxItems",t.maxLength.value,t.maxLength.message,n);if(t.exactLength)l(r,"minItems",t.exactLength.value,t.exactLength.message,n),l(r,"maxItems",t.exactLength.value,t.exactLength.message,n);return r}var q=a(()=>{O();b();Z()});function xt(t,n){let r={type:"integer",format:"int64"};if(!t.checks)return r;for(let o of t.checks)switch(o.kind){case"min":if(n.target==="jsonSchema7")if(o.inclusive)l(r,"minimum",o.value,o.message,n);else l(r,"exclusiveMinimum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMinimum=!0;l(r,"minimum",o.value,o.message,n)}break;case"max":if(n.target==="jsonSchema7")if(o.inclusive)l(r,"maximum",o.value,o.message,n);else l(r,"exclusiveMaximum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMaximum=!0;l(r,"maximum",o.value,o.message,n)}break;case"multipleOf":l(r,"multipleOf",o.value,o.message,n);break}return r}var Q=a(()=>{b()});function _t(){return{type:"boolean"}}var X=()=>{};function M(t,n){return i(t.type._def,n)}var B=a(()=>{Z()});var Tt=(t,n)=>{return i(t.innerType._def,n)};var Y=a(()=>{Z()});function H(t,n,r){let o=r??n.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((p,u)=>H(t,n,p))};switch(o){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return jt(t,n)}}var jt=(t,n)=>{let r={type:"integer",format:"unix-time"};if(n.target==="openApi3")return r;for(let o of t.checks)switch(o.kind){case"min":l(r,"minimum",o.value,o.message,n);break;case"max":l(r,"maximum",o.value,o.message,n);break}return r};var V=a(()=>{b()});function bt(t,n){return{...i(t.innerType._def,n),default:t.defaultValue()}}var W=a(()=>{Z()});function Nt(t,n){return n.effectStrategy==="input"?i(t.schema._def,n):g(n)}var z=a(()=>{Z();x()});function At(t){return{type:"string",enum:Array.from(t.values)}}var d=()=>{};function Pt(t,n){let r=[i(t.left._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),i(t.right._def,{...n,currentPath:[...n.currentPath,"allOf","1"]})].filter((u)=>!!u),o=n.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,p=[];return r.forEach((u)=>{if(Ct(u)){if(p.push(...u.allOf),u.unevaluatedProperties===void 0)o=void 0}else{let y=u;if("additionalProperties"in u&&u.additionalProperties===!1){let{additionalProperties:D,...e}=u;y=e}else o=void 0;p.push(y)}}),p.length?{allOf:p,...o}:void 0}var Ct=(t)=>{if("type"in t&&t.type==="string")return!1;return"allOf"in t};var F=a(()=>{Z()});function St(t,n){let r=typeof t.value;if(r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string")return{type:Array.isArray(t.value)?"array":"object"};if(n.target==="openApi3")return{type:r==="bigint"?"integer":r,enum:[t.value]};return{type:r==="bigint"?"integer":r,const:t.value}}var G=()=>{};function U(t,n){let r={type:"string"};if(t.checks)for(let o of t.checks)switch(o.kind){case"min":l(r,"minLength",typeof r.minLength==="number"?Math.max(r.minLength,o.value):o.value,o.message,n);break;case"max":l(r,"maxLength",typeof r.maxLength==="number"?Math.min(r.maxLength,o.value):o.value,o.message,n);break;case"email":switch(n.emailStrategy){case"format:email":T(r,"email",o.message,n);break;case"format:idn-email":T(r,"idn-email",o.message,n);break;case"pattern:zod":v(r,_.email,o.message,n);break}break;case"url":T(r,"uri",o.message,n);break;case"uuid":T(r,"uuid",o.message,n);break;case"regex":v(r,o.regex,o.message,n);break;case"cuid":v(r,_.cuid,o.message,n);break;case"cuid2":v(r,_.cuid2,o.message,n);break;case"startsWith":v(r,RegExp(`^${C(o.value,n)}`),o.message,n);break;case"endsWith":v(r,RegExp(`${C(o.value,n)}$`),o.message,n);break;case"datetime":T(r,"date-time",o.message,n);break;case"date":T(r,"date",o.message,n);break;case"time":T(r,"time",o.message,n);break;case"duration":T(r,"duration",o.message,n);break;case"length":l(r,"minLength",typeof r.minLength==="number"?Math.max(r.minLength,o.value):o.value,o.message,n),l(r,"maxLength",typeof r.maxLength==="number"?Math.min(r.maxLength,o.value):o.value,o.message,n);break;case"includes":{v(r,RegExp(C(o.value,n)),o.message,n);break}case"ip":{if(o.version!=="v6")T(r,"ipv4",o.message,n);if(o.version!=="v4")T(r,"ipv6",o.message,n);break}case"base64url":v(r,_.base64url,o.message,n);break;case"jwt":v(r,_.jwt,o.message,n);break;case"cidr":{if(o.version!=="v6")v(r,_.ipv4Cidr,o.message,n);if(o.version!=="v4")v(r,_.ipv6Cidr,o.message,n);break}case"emoji":v(r,_.emoji(),o.message,n);break;case"ulid":{v(r,_.ulid,o.message,n);break}case"base64":{switch(n.base64Strategy){case"format:binary":{T(r,"binary",o.message,n);break}case"contentEncoding:base64":{l(r,"contentEncoding","base64",o.message,n);break}case"pattern:zod":{v(r,_.base64,o.message,n);break}}break}case"nanoid":v(r,_.nanoid,o.message,n);case"toLowerCase":case"toUpperCase":case"trim":break;default:((p)=>{})(o)}return r}function C(t,n){return n.patternStrategy==="escape"?kt(t):t}function kt(t){let n="";for(let r=0;r<t.length;r++){if(!Rt.has(t[r]))n+="\\";n+=t[r]}return n}function T(t,n,r,o){if(t.format||t.anyOf?.some((p)=>p.format)){if(!t.anyOf)t.anyOf=[];if(t.format){if(t.anyOf.push({format:t.format,...t.errorMessage&&o.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage){if(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0)delete t.errorMessage}}t.anyOf.push({format:n,...r&&o.errorMessages&&{errorMessage:{format:r}}})}else l(t,"format",n,r,o)}function v(t,n,r,o){if(t.pattern||t.allOf?.some((p)=>p.pattern)){if(!t.allOf)t.allOf=[];if(t.pattern){if(t.allOf.push({pattern:t.pattern,...t.errorMessage&&o.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage){if(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0)delete t.errorMessage}}t.allOf.push({pattern:Ot(n,o),...r&&o.errorMessages&&{errorMessage:{pattern:r}}})}else l(t,"pattern",Ot(n,o),r,o)}function Ot(t,n){if(!n.applyRegexFlags||!t.flags)return t.source;let r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},o=r.i?t.source.toLowerCase():t.source,p="",u=!1,y=!1,D=!1;for(let e=0;e<o.length;e++){if(u){p+=o[e],u=!1;continue}if(r.i){if(y){if(o[e].match(/[a-z]/)){if(D)p+=o[e],p+=`${o[e-2]}-${o[e]}`.toUpperCase(),D=!1;else if(o[e+1]==="-"&&o[e+2]?.match(/[a-z]/))p+=o[e],D=!0;else p+=`${o[e]}${o[e].toUpperCase()}`;continue}}else if(o[e].match(/[a-z]/)){p+=`[${o[e]}${o[e].toUpperCase()}]`;continue}}if(r.m){if(o[e]==="^"){p+=`(^|(?<=[\r
2
- ]))`;continue}else if(o[e]==="$"){p+=`($|(?=[\r
3
- ]))`;continue}}if(r.s&&o[e]==="."){p+=y?`${o[e]}\r
4
- `:`[${o[e]}\r
5
- ]`;continue}if(p+=o[e],o[e]==="\\")u=!0;else if(y&&o[e]==="]")y=!1;else if(!y&&o[e]==="[")y=!0}try{new RegExp(p)}catch{return console.warn(`Could not convert regex pattern at ${n.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),t.source}return p}var j=void 0,_,Rt;var w=a(()=>{b();_={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(j===void 0)j=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return j},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};Rt=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789")});function E(t,n){if(n.target==="openAi")console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");if(n.target==="openApi3"&&t.keyType?._def.typeName===m.ZodEnum)return{type:"object",required:t.keyType._def.values,properties:t.keyType._def.values.reduce((o,p)=>({...o,[p]:i(t.valueType._def,{...n,currentPath:[...n.currentPath,"properties",p]})??g(n)}),{}),additionalProperties:n.rejectedAdditionalProperties};let r={type:"object",additionalProperties:i(t.valueType._def,{...n,currentPath:[...n.currentPath,"additionalProperties"]})??n.allowedAdditionalProperties};if(n.target==="openApi3")return r;if(t.keyType?._def.typeName===m.ZodString&&t.keyType._def.checks?.length){let{type:o,...p}=U(t.keyType._def,n);return{...r,propertyNames:p}}else if(t.keyType?._def.typeName===m.ZodEnum)return{...r,propertyNames:{enum:t.keyType._def.values}};else if(t.keyType?._def.typeName===m.ZodBranded&&t.keyType._def.type._def.typeName===m.ZodString&&t.keyType._def.type._def.checks?.length){let{type:o,...p}=M(t.keyType._def,n);return{...r,propertyNames:p}}return r}var K=a(()=>{O();Z();w();B();x()});function It(t,n){if(n.mapStrategy==="record")return E(t,n);let r=i(t.keyType._def,{...n,currentPath:[...n.currentPath,"items","items","0"]})||g(n),o=i(t.valueType._def,{...n,currentPath:[...n.currentPath,"items","items","1"]})||g(n);return{type:"array",maxItems:125,items:{type:"array",items:[r,o],minItems:2,maxItems:2}}}var R=a(()=>{Z();K();x()});function Lt(t){let n=t.values,o=Object.keys(t.values).filter((u)=>{return typeof n[n[u]]!=="number"}).map((u)=>n[u]),p=Array.from(new Set(o.map((u)=>typeof u)));return{type:p.length===1?p[0]==="string"?"string":"number":["string","number"],enum:o}}var k=()=>{};function Mt(t){return t.target==="openAi"?void 0:{not:g({...t,currentPath:[...t.currentPath,"not"]})}}var c=a(()=>{x()});function Bt(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var h=()=>{};function wt(t,n){if(n.target==="openApi3")return Ut(t,n);let r=t.options instanceof Map?Array.from(t.options.values()):t.options;if(r.every((o)=>(o._def.typeName in A)&&(!o._def.checks||!o._def.checks.length))){let o=r.reduce((p,u)=>{let y=A[u._def.typeName];return y&&!p.includes(y)?[...p,y]:p},[]);return{type:o.length>1?o:o[0]}}else if(r.every((o)=>o._def.typeName==="ZodLiteral"&&!o.description)){let o=r.reduce((p,u)=>{let y=typeof u._def.value;switch(y){case"string":case"number":case"boolean":return[...p,y];case"bigint":return[...p,"integer"];case"object":if(u._def.value===null)return[...p,"null"];case"symbol":case"undefined":case"function":default:return p}},[]);if(o.length===r.length){let p=o.filter((u,y,D)=>D.indexOf(u)===y);return{type:p.length>1?p:p[0],enum:r.reduce((u,y)=>{return u.includes(y._def.value)?u:[...u,y._def.value]},[])}}}else if(r.every((o)=>o._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((o,p)=>[...o,...p._def.values.filter((u)=>!o.includes(u))],[])};return Ut(t,n)}var A,Ut=(t,n)=>{let r=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((o,p)=>i(o._def,{...n,currentPath:[...n.currentPath,"anyOf",`${p}`]})).filter((o)=>!!o&&(!n.strictUnions||typeof o==="object"&&Object.keys(o).length>0));return r.length?{anyOf:r}:void 0};var $=a(()=>{Z();A={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"}});function Et(t,n){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(t.innerType._def.typeName)&&(!t.innerType._def.checks||!t.innerType._def.checks.length)){if(n.target==="openApi3")return{type:A[t.innerType._def.typeName],nullable:!0};return{type:[A[t.innerType._def.typeName],"null"]}}if(n.target==="openApi3"){let o=i(t.innerType._def,{...n,currentPath:[...n.currentPath]});if(o&&"$ref"in o)return{allOf:[o],nullable:!0};return o&&{...o,nullable:!0}}let r=i(t.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}var f=a(()=>{Z();$()});function Kt(t,n){let r={type:"number"};if(!t.checks)return r;for(let o of t.checks)switch(o.kind){case"int":r.type="integer",J(r,"type",o.message,n);break;case"min":if(n.target==="jsonSchema7")if(o.inclusive)l(r,"minimum",o.value,o.message,n);else l(r,"exclusiveMinimum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMinimum=!0;l(r,"minimum",o.value,o.message,n)}break;case"max":if(n.target==="jsonSchema7")if(o.inclusive)l(r,"maximum",o.value,o.message,n);else l(r,"exclusiveMaximum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMaximum=!0;l(r,"maximum",o.value,o.message,n)}break;case"multipleOf":l(r,"multipleOf",o.value,o.message,n);break}return r}var s=a(()=>{b()});function $t(t,n){let r=n.target==="openAi",o={type:"object",properties:{}},p=[],u=t.shape();for(let D in u){let e=u[D];if(e===void 0||e._def===void 0)continue;let N=ht(e);if(N&&r){if(e._def.typeName==="ZodOptional")e=e._def.innerType;if(!e.isNullable())e=e.nullable();N=!1}let P=i(e._def,{...n,currentPath:[...n.currentPath,"properties",D],propertyPath:[...n.currentPath,"properties",D]});if(P===void 0)continue;if(o.properties[D]=P,!N)p.push(D)}if(p.length)o.required=p;let y=ct(t,n);if(y!==void 0)o.additionalProperties=y;return o}function ct(t,n){if(t.catchall._def.typeName!=="ZodNever")return i(t.catchall._def,{...n,currentPath:[...n.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return n.allowedAdditionalProperties;case"strict":return n.rejectedAdditionalProperties;case"strip":return n.removeAdditionalStrategy==="strict"?n.allowedAdditionalProperties:n.rejectedAdditionalProperties}}function ht(t){try{return t.isOptional()}catch{return!0}}var tt=a(()=>{Z()});var Jt=(t,n)=>{if(n.currentPath.toString()===n.propertyPath?.toString())return i(t.innerType._def,n);let r=i(t.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","1"]});return r?{anyOf:[{not:g(n)},r]}:g(n)};var nt=a(()=>{Z();x()});var qt=(t,n)=>{if(n.pipeStrategy==="input")return i(t.in._def,n);else if(n.pipeStrategy==="output")return i(t.out._def,n);let r=i(t.in._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),o=i(t.out._def,{...n,currentPath:[...n.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,o].filter((p)=>p!==void 0)}};var rt=a(()=>{Z()});function Qt(t,n){return i(t.type._def,n)}var ot=a(()=>{Z()});function Xt(t,n){let o={type:"array",uniqueItems:!0,items:i(t.valueType._def,{...n,currentPath:[...n.currentPath,"items"]})};if(t.minSize)l(o,"minItems",t.minSize.value,t.minSize.message,n);if(t.maxSize)l(o,"maxItems",t.maxSize.value,t.maxSize.message,n);return o}var pt=a(()=>{b();Z()});function Yt(t,n){if(t.rest)return{type:"array",minItems:t.items.length,items:t.items.map((r,o)=>i(r._def,{...n,currentPath:[...n.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[]),additionalItems:i(t.rest._def,{...n,currentPath:[...n.currentPath,"additionalItems"]})};else return{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((r,o)=>i(r._def,{...n,currentPath:[...n.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[])}}var it=a(()=>{Z()});function Ht(t){return{not:g(t)}}var ut=a(()=>{x()});function Vt(t){return g(t)}var mt=a(()=>{x()});var Wt=(t,n)=>{return i(t.innerType._def,n)};var at=a(()=>{Z()});var zt=(t,n,r)=>{switch(n){case m.ZodString:return U(t,r);case m.ZodNumber:return Kt(t,r);case m.ZodObject:return $t(t,r);case m.ZodBigInt:return xt(t,r);case m.ZodBoolean:return _t();case m.ZodDate:return H(t,r);case m.ZodUndefined:return Ht(r);case m.ZodNull:return Bt(r);case m.ZodArray:return vt(t,r);case m.ZodUnion:case m.ZodDiscriminatedUnion:return wt(t,r);case m.ZodIntersection:return Pt(t,r);case m.ZodTuple:return Yt(t,r);case m.ZodRecord:return E(t,r);case m.ZodLiteral:return St(t,r);case m.ZodEnum:return At(t);case m.ZodNativeEnum:return Lt(t);case m.ZodNullable:return Et(t,r);case m.ZodOptional:return Jt(t,r);case m.ZodMap:return It(t,r);case m.ZodSet:return Xt(t,r);case m.ZodLazy:return()=>t.getter()._def;case m.ZodPromise:return Qt(t,r);case m.ZodNaN:case m.ZodNever:return Mt(r);case m.ZodEffects:return Nt(t,r);case m.ZodAny:return g(r);case m.ZodUnknown:return Vt(r);case m.ZodDefault:return bt(t,r);case m.ZodBranded:return M(t,r);case m.ZodReadonly:return Wt(t,r);case m.ZodCatch:return Tt(t,r);case m.ZodPipeline:return qt(t,r);case m.ZodFunction:case m.ZodVoid:case m.ZodSymbol:return;default:return((o)=>{return})(n)}};var et=a(()=>{O();x();q();Q();X();B();Y();V();W();z();d();F();G();R();k();c();h();f();s();tt();nt();rt();ot();K();pt();w();it();ut();$();mt();at()});function i(t,n,r=!1){let o=n.seen.get(t);if(n.override){let D=n.override?.(t,n,o,r);if(D!==gt)return D}if(o&&!r){let D=ft(o,n);if(D!==void 0)return D}let p={def:t,path:n.currentPath,jsonSchema:void 0};n.seen.set(t,p);let u=zt(t,t.typeName,n),y=typeof u==="function"?i(u(),n):u;if(y)st(t,n,y);if(n.postProcess){let D=n.postProcess(y,t,n);return p.jsonSchema=y,D}return p.jsonSchema=y,y}var ft=(t,n)=>{switch(n.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:I(n.currentPath,t.path)};case"none":case"seen":{if(t.path.length<n.currentPath.length&&t.path.every((r,o)=>n.currentPath[o]===r))return console.warn(`Recursive reference detected at ${n.currentPath.join("/")}! Defaulting to any`),g(n);return n.$refStrategy==="seen"?g(n):void 0}}},st=(t,n,r)=>{if(t.description){if(r.description=t.description,n.markdownDescription)r.markdownDescription=t.description}return r};var Z=a(()=>{S();et();L();x()});var dt=(t)=>{let n=Zt(t),r=n.name!==void 0?[...n.basePath,n.definitionPath,n.name]:n.basePath;return{...n,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([o,p])=>[p._def,{def:p._def,path:[...n.basePath,n.definitionPath,o],jsonSchema:void 0}]))}};var lt=a(()=>{S()});var tn=(t,n)=>{let r=dt(n),o=typeof n==="object"&&n.definitions?Object.entries(n.definitions).reduce((e,[N,P])=>({...e,[N]:i(P._def,{...r,currentPath:[...r.basePath,r.definitionPath,N]},!0)??g(r)}),{}):void 0,p=typeof n==="string"?n:n?.nameStrategy==="title"?void 0:n?.name,u=i(t._def,p===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,p]},!1)??g(r),y=typeof n==="object"&&n.name!==void 0&&n.nameStrategy==="title"?n.name:void 0;if(y!==void 0)u.title=y;if(r.flags.hasReferencedOpenAiAnyType){if(!o)o={};if(!o[r.openAiAnyTypeName])o[r.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:r.$refStrategy==="relative"?"1":[...r.basePath,r.definitionPath,r.openAiAnyTypeName].join("/")}}}let D=p===void 0?o?{...u,[r.definitionPath]:o}:u:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,p].join("/"),[r.definitionPath]:{...o,[p]:u}};if(r.target==="jsonSchema7")D.$schema="http://json-schema.org/draft-07/schema#";else if(r.target==="jsonSchema2019-09"||r.target==="openAi")D.$schema="https://json-schema.org/draft/2019-09/schema#";if(r.target==="openAi"&&(("anyOf"in D)||("oneOf"in D)||("allOf"in D)||("type"in D)&&Array.isArray(D.type)))console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");return D};var yt=a(()=>{Z();lt();x()});var Ft=()=>{};var nn=a(()=>{yt();S();lt();b();L();Z();Ft();x();q();Q();X();B();Y();V();W();z();d();F();G();R();k();c();h();f();s();tt();nt();rt();ot();at();K();pt();w();it();ut();$();mt();et();yt()});
6
- export{tn as kX,nn as lX};
@@ -1,7 +0,0 @@
1
- import{rX as y}from"./cli-0.1.11-x37jysc0.mjs";import{Nna as o,Pna as c}from"./cli-0.1.11-yrfxpjhr.mjs";var i=c((n)=>{var G=o(y());(function(){function I(q){if(q==null)return null;if(typeof q==="function")return q.$$typeof===s?null:q.displayName||q.name||null;if(typeof q==="string")return q;switch(q){case L:return"Fragment";case k:return"Profiler";case C:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList";case l:return"Activity"}if(typeof q==="object")switch(typeof q.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),q.$$typeof){case K:return"Portal";case f:return q.displayName||"Context";case S:return(q._context.displayName||"Context")+".Consumer";case b:var v=q.render;return q=q.displayName,q||(q=v.displayName||v.name||"",q=q!==""?"ForwardRef("+q+")":"ForwardRef"),q;case m:return v=q.displayName||null,v!==null?v:I(q.type)||"Memo";case M:v=q._payload,q=q._init;try{return I(q(v))}catch(x){}}return null}function U(q){return""+q}function V(q){try{U(q);var v=!1}catch(D){v=!0}if(v){v=console;var x=v.error,B=typeof Symbol==="function"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||"Object";return x.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),U(q)}}function W(q){if(q===L)return"<>";if(typeof q==="object"&&q!==null&&q.$$typeof===M)return"<...>";try{var v=I(q);return v?"<"+v+">":"<...>"}catch(x){return"<...>"}}function _(){var q=F.A;return q===null?null:q.getOwner()}function X(){return Error("react-stack-top-frame")}function w(q){if(J.call(q,"key")){var v=Object.getOwnPropertyDescriptor(q,"key").get;if(v&&v.isReactWarning)return!1}return q.key!==void 0}function A(q,v){function x(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",v))}x.isReactWarning=!0,Object.defineProperty(q,"key",{get:x,configurable:!0})}function j(){var q=I(this.type);return $[q]||($[q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),q=this.props.ref,q!==void 0?q:null}function u(q,v,x,B,D,Q){var z=x.ref;return q={$$typeof:E,type:q,key:v,props:x,_owner:B},(z!==void 0?z:null)!==null?Object.defineProperty(q,"ref",{enumerable:!1,get:j}):Object.defineProperty(q,"ref",{enumerable:!1,value:null}),q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function N(q,v,x,B,D,Q){var z=v.children;if(z!==void 0)if(B)if(d(z)){for(B=0;B<z.length;B++)Y(z[B]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Y(z);if(J.call(v,"key")){z=I(q);var H=Object.keys(v).filter(function(p){return p!=="key"});B=0<H.length?"{key: someKey, "+H.join(": ..., ")+": ...}":"{key: someKey}",T[z+B]||(H=0<H.length?"{"+H.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
- let props = %s;
3
- <%s {...props} />
4
- React keys must be passed directly to JSX without using spread:
5
- let props = %s;
6
- <%s key={someKey} {...props} />`,B,z,H,z),T[z+B]=!0)}if(z=null,x!==void 0&&(V(x),z=""+x),w(v)&&(V(v.key),z=""+v.key),"key"in v){x={};for(var R in v)R!=="key"&&(x[R]=v[R])}else x=v;return z&&A(x,typeof q==="function"?q.displayName||q.name||"Unknown":q),u(q,z,x,_(),D,Q)}function Y(q){Z(q)?q._store&&(q._store.validated=1):typeof q==="object"&&q!==null&&q.$$typeof===M&&(q._payload.status==="fulfilled"?Z(q._payload.value)&&q._payload.value._store&&(q._payload.value._store.validated=1):q._store&&(q._store.validated=1))}function Z(q){return typeof q==="object"&&q!==null&&q.$$typeof===E}var E=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),f=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),l=Symbol.for("react.activity"),s=Symbol.for("react.client.reference"),F=G.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,d=Array.isArray,O=console.createTask?console.createTask:function(){return null};G={react_stack_bottom_frame:function(q){return q()}};var P,$={},a=G.react_stack_bottom_frame.bind(G,X)(),r=O(W(X)),T={};n.Fragment=L,n.jsxDEV=function(q,v,x,B){var D=1e4>F.recentlyCreatedOwnerStacks++;return N(q,v,x,B,D?Error("react-stack-top-frame"):a,D?O(W(q)):r)}})()});
7
- export{i as qX};
@@ -1,2 +0,0 @@
1
- import{ov as E,qv as G}from"./cli-0.1.11-s8ygndzf.mjs";import{LP as A,MP as W}from"./cli-0.1.11-r990p54m.mjs";import{QU as M,SU as i,WU as v,eT as N,vV as U}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as w}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as D}from"./cli-0.1.11-x37jysc0.mjs";import{Iba as S,Vba as P}from"./cli-0.1.11-v7bwjqf0.mjs";import{dga as h,ega as L}from"./cli-0.1.11-xwj7cmkj.mjs";import{Nna as _,Rna as B}from"./cli-0.1.11-yrfxpjhr.mjs";function Q(l){let e=T.c(18),{onDone:g,isStandaloneDialog:b,externalIncludes:a}=l,s;if(e[0]===Symbol.for("react.memo_cache_sentinel"))s=[],e[0]=s;else s=e[0];k.default.useEffect($,s);let d;if(e[1]!==g)d=(I)=>{if(I==="no")h("tengu_claude_md_external_includes_dialog_declined",{}),S(Y);else h("tengu_claude_md_external_includes_dialog_accepted",{}),S(R);g()},e[1]=g,e[2]=d;else d=e[2];let o=d,c;if(e[3]!==o)c=()=>{o("no")},e[3]=o,e[4]=c;else c=e[4];let y=c,C=!b,x=!b,u;if(e[5]===Symbol.for("react.memo_cache_sentinel"))u=t.jsxDEV(i,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."},void 0,!1,void 0,this),e[5]=u;else u=e[5];let n;if(e[6]!==a)n=a&&a.length>0&&t.jsxDEV(M,{flexDirection:"column",children:[t.jsxDEV(i,{dimColor:!0,children:"External imports:"},void 0,!1,void 0,this),a.map(O)]},void 0,!0,void 0,this),e[6]=a,e[7]=n;else n=e[7];let m;if(e[8]===Symbol.for("react.memo_cache_sentinel"))m=t.jsxDEV(i,{dimColor:!0,children:["Important: Only use Claude Code with files you trust. Accessing untrusted files may pose security risks"," ",t.jsxDEV(v,{url:"https://code.claude.com/docs/en/security"},void 0,!1,void 0,this)," "]},void 0,!0,void 0,this),e[8]=m;else m=e[8];let p;if(e[9]===Symbol.for("react.memo_cache_sentinel"))p=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],e[9]=p;else p=e[9];let r;if(e[10]!==o)r=t.jsxDEV(E,{options:p,onChange:(I)=>o(I)},void 0,!1,void 0,this),e[10]=o,e[11]=r;else r=e[11];let f;if(e[12]!==y||e[13]!==r||e[14]!==C||e[15]!==x||e[16]!==n)f=t.jsxDEV(A,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:y,hideBorder:C,hideInputGuide:x,children:[u,n,m,r]},void 0,!0,void 0,this),e[12]=y,e[13]=r,e[14]=C,e[15]=x,e[16]=n,e[17]=f;else f=e[17];return f}function O(l,e){return t.jsxDEV(i,{dimColor:!0,children:[" ",l.path]},e,!0,void 0,this)}function R(l){return{...l,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function Y(l){return{...l,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function $(){h("tengu_claude_md_includes_dialog_shown",{})}var T,k,t;var q=B(()=>{L();U();P();G();W();T=_(N(),1),k=_(D(),1),t=_(w(),1)});
2
- export{Q as xf,q as yf};
@@ -1,24 +0,0 @@
1
- import{ua as VY}from"./cli-0.1.11-4px8nt5r.mjs";import{bb as zY}from"./cli-0.1.11-7tybqg56.mjs";import{Ih as Q9,Jh as CW}from"./cli-0.1.11-7mmhsc3x.mjs";import{$t as IW,Ay as D0,By as d9,CJ as HY,DH as SZ,DN as NY,EJ as cQ,EN as gQ,FF as X9,GF as K9,HF as fW,Hs as k0,Is as kZ,Js as x0,Jy as M0,Ks as p0,Ls as u0,MD as JY,Mk as w9,Ms as m0,My as E0,ND as mQ,Nk as mW,Ns as xZ,Ny as CZ,OH as b0,Os as pZ,Po as UZ,Ps as c0,Qs as g0,RD as a,Rs as d0,Ry as l9,SN as z9,So as yZ,Ss as l0,TD as TW,To as f0,Ts as a0,Us as n0,VH as G9,Vs as i0,Ws as r0,XH as J9,Xm as eZ,Xs as o0,Ym as K0,Ys as KQ,Yt as Y9,Zm as DZ,_m as G0,bI as H9,bK as I0,cH as dY,cO as V9,eK as a9,fH as PW,gI as wZ,gL as N9,gq as bY,hq as LW,io as GY,iq as IY,jO as BY,jo as uQ,jp as Z9,jq as CY,kq as FZ,lp as bW,lq as iZ,mG as O9,mq as TY,nq as YZ,oG as U9,oq as rZ,ov as F0,pH as fZ,pL as B9,pq as RY,pv as g9,qq as fY,rL as L9,rq as vY,sG as y9,tH as r,tx as S0,uF as W9,ux as QQ,vF as RW,vL as SW,wO as LY,zG as cW,zH as QZ}from"./cli-0.1.11-s8ygndzf.mjs";import{aS as $0,bS as m9}from"./cli-0.1.11-d4ahh3jz.mjs";import{GS as U0,HS as p9,US as y0,VS as P0,WS as u9,aT as j0,bT as c9}from"./cli-0.1.11-h02tyg8p.mjs";import{QU as x,SU as M,eT as k9,vV as x9}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as J0}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as h9}from"./cli-0.1.11-x37jysc0.mjs";import{CY as MW,cY as rY,dY as oY,eY as DW,pY as sY}from"./cli-0.1.11-bwpemkht.mjs";import{DY as UY,HY as KW}from"./cli-0.1.11-dcswnc8x.mjs";import{F2 as cY,J2 as UW,i5 as yW,l4 as gY}from"./cli-0.1.11-qbcfg80y.mjs";import{C$ as uW,F7 as s,Haa as mY,K7 as _0,L7 as qZ,M7 as R9,N8 as xW,Qaa as OW,U9 as pW,X9 as OY,a_ as XW,o7 as KY,o8 as v9,q7 as pQ,t9 as IZ,v$ as _9,v9 as f9,w7 as A0,y9 as A9,z7 as T9}from"./cli-0.1.11-v7bwjqf0.mjs";import{Vda as Y,Wda as h,Xda as KZ,Yda as v,Zda as OZ}from"./cli-0.1.11-h7e4rkwk.mjs";import{Fea as C9,aea as xY,bea as _W,dea as bZ,gea as N0,hea as B0,iea as L0,jea as z0,mea as V0,nea as q0,zea as v0}from"./cli-0.1.11-7xr2ermy.mjs";import{Qea as pY,Rea as uY,Tea as wW}from"./cli-0.1.11-vch8cn95.mjs";import{cfa as qY,nfa as oQ}from"./cli-0.1.11-fag2wtke.mjs";import{Bfa as w0,Jfa as O0,Nfa as S9}from"./cli-0.1.11-nx8a99hz.mjs";import{dga as g,ega as _Z}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as q9,Ega as lZ,Jga as cZ,Lga as t,Mga as WY,Pga as $Z,bha as E,eha as XZ,hga as wY,jga as WW,vga as QY}from"./cli-0.1.11-vq5fvf9m.mjs";import{uha as XY,yha as xQ}from"./cli-0.1.11-e5ecf583.mjs";import{Jla as DY,Kla as LZ,Lla as MY,Nla as EY,Sma as iY,Vma as NZ,aja as HZ,gja as Z0,hja as _Y,pka as kY}from"./cli-0.1.11-rrnr3ab1.mjs";import{Nna as vZ,Qna as RZ,Rna as AZ,Sna as oZ}from"./cli-0.1.11-yrfxpjhr.mjs";var ZQ={};RZ(ZQ,{selectableUserMessagesFilter:()=>R0,messagesAfterAreOnlySynthetic:()=>e9,MessageSelector:()=>i9});import{randomUUID as n9}from"crypto";import*as ZZ from"path";function C0(Q){return Q.type==="text"}function TZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function i9({messages:Q,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:K,onClose:H,preselectedMessage:G}){let N=I0((P)=>P.fileHistory),[z,q]=b.useState(void 0),J=M0(),V=b.useMemo(n9,[]),U=b.useMemo(()=>[...Q.filter(R0),{...r({content:""}),uuid:V}],[Q,V]),[_,O]=b.useState(U.length-1),j=Math.max(0,Math.min(_-Math.floor(EZ/2),U.length-EZ)),I=U.length>1,[A,F]=b.useState(G),[$,C]=b.useState(void 0);b.useEffect(()=>{if(!G||!J)return;let P=!1;return CZ(N,G.uuid).then((R)=>{if(!P)C(R)}),()=>{P=!0}},[G,J,N]);let[y,D]=b.useState(!1),[d,l]=b.useState(null),[f,u]=b.useState("both"),[c,k]=b.useState(""),[w,L]=b.useState("");function T(P){let R=P?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],p={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...p,onChange:k}),R.push({value:"nevermind",label:"Never mind"}),R}b.useEffect(()=>{g("tengu_message_selector_opened",{})},[]);async function S(P){Z(),D(!0);try{await W(P),D(!1),H()}catch(R){s(R),D(!1),q(`Failed to restore the conversation:
2
- ${R}`)}}async function n(P){let R=Q.indexOf(P),p=Q.length-1-R;if(g("tengu_message_selector_selected",{index_from_end:p,message_type:P.type,is_current_prompt:!1}),!Q.includes(P)){H();return}if(!J){await S(P);return}let m=await CZ(N,P.uuid);F(P),C(m)}async function o(P){if(g("tengu_message_selector_restore_option_selected",{option:P}),!A){q("Message not found.");return}if(P==="nevermind"){if(G)H();else F(void 0);return}if(TZ(P)){Z(),D(!0),l(P),q(void 0);try{let m=P==="summarize_up_to"?"up_to":"from",e=(m==="up_to"?w:c).trim()||void 0;await K(A,e,m),D(!1),l(null),F(void 0),H()}catch(m){s(m),D(!1),l(null),F(void 0),q(`Failed to summarize:
3
- ${m}`)}return}Z(),D(!0),q(void 0);let R=null,p=null;if(P==="code"||P==="both")try{await X(A)}catch(m){R=m,s(R)}if(P==="conversation"||P==="both")try{await W(A)}catch(m){p=m,s(p)}if(D(!1),F(void 0),p&&R)q(`Failed to restore the conversation and code:
4
- ${p}
5
- ${R}`);else if(p)q(`Failed to restore the conversation:
6
- ${p}`);else if(R)q(`Failed to restore the code:
7
- ${R}`);else H()}let Y0=$0(),$9=b.useCallback(()=>{if(A&&!G){F(void 0);return}g("tengu_message_selector_cancelled",{}),H()},[H,A,G]),j9=b.useCallback(()=>O((P)=>Math.max(0,P-1)),[]),F9=b.useCallback(()=>O((P)=>Math.min(U.length-1,P+1)),[U.length]),D9=b.useCallback(()=>O(0),[]),M9=b.useCallback(()=>O(U.length-1),[U.length]),E9=b.useCallback(()=>{let P=U[_];if(P)n(P)},[U,_,n]);y0("confirm:no",$9,{context:"Confirmation",isActive:!A}),P0({"messageSelector:up":j9,"messageSelector:down":F9,"messageSelector:top":D9,"messageSelector:bottom":M9,"messageSelector:select":E9},{context:"MessageSelector",isActive:!y&&!z&&!A&&I});let[Q0,W0]=b.useState({});b.useEffect(()=>{async function P(){if(!J)return;Promise.all(U.map(async(R,p)=>{if(R.uuid!==V){let m=E0(N,R.uuid),e=U.at(p+1),VZ=m?t9(Q,R.uuid,e?.uuid!==V?e?.uuid:void 0):void 0;if(VZ!==void 0)W0((i)=>({...i,[p]:VZ}));else W0((i)=>({...i,[p]:void 0}))}}))}P()},[U,Q,V,N,J]);let zZ=J&&$?.filesChanged&&$.filesChanged.length>0,b9=!z&&!A&&!G&&I;return B.jsxDEV(x,{flexDirection:"column",width:"100%",children:[B.jsxDEV(j0,{color:"suggestion"},void 0,!1,void 0,this),B.jsxDEV(x,{flexDirection:"column",marginX:1,gap:1,children:[B.jsxDEV(M,{bold:!0,color:"suggestion",children:"Rewind"},void 0,!1,void 0,this),z&&B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{color:"error",children:["Error: ",z]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!I&&B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{children:"Nothing to rewind to yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),!z&&A&&I&&B.jsxDEV(B.Fragment,{children:[B.jsxDEV(M,{children:["Confirm you want to restore"," ",!$&&"the conversation ","to the point before you sent this message:"]},void 0,!0,void 0,this),B.jsxDEV(x,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[B.jsxDEV(H0,{userMessage:A,color:"text",isCurrent:!1},void 0,!1,void 0,this),B.jsxDEV(M,{dimColor:!0,children:["(",O0(new Date(A.timestamp)),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B.jsxDEV(o9,{selectedRestoreOption:f,canRestoreCode:!!zZ,diffStatsForRestore:$},void 0,!1,void 0,this),y&&TZ(d)?B.jsxDEV(x,{flexDirection:"row",gap:1,children:[B.jsxDEV(D0,{},void 0,!1,void 0,this),B.jsxDEV(M,{children:"Summarizing…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):B.jsxDEV(F0,{isDisabled:y,options:T(!!zZ),defaultFocusValue:zZ?"both":"conversation",onFocus:(P)=>u(P),onChange:(P)=>o(P),onCancel:()=>G?H():F(void 0)},void 0,!1,void 0,this),zZ&&B.jsxDEV(x,{marginBottom:1,children:B.jsxDEV(M,{dimColor:!0,children:[qZ.warning," Rewinding does not affect files edited manually or via bash."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b9&&B.jsxDEV(B.Fragment,{children:[J?B.jsxDEV(M,{children:"Restore the code and/or conversation to the point before…"},void 0,!1,void 0,this):B.jsxDEV(M,{children:"Restore and fork the conversation to the point before…"},void 0,!1,void 0,this),B.jsxDEV(x,{width:"100%",flexDirection:"column",children:U.slice(j,j+EZ).map((P,R)=>{let p=j+R,m=p===_,e=P.uuid===V,VZ=p in Q0,i=Q0[p],MZ=i?.filesChanged&&i.filesChanged.length;return B.jsxDEV(x,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[B.jsxDEV(x,{width:2,minWidth:2,children:m?B.jsxDEV(M,{color:"permission",bold:!0,children:[qZ.pointer," "]},void 0,!0,void 0,this):B.jsxDEV(M,{children:" "},void 0,!1,void 0,this)},void 0,!1,void 0,this),B.jsxDEV(x,{flexDirection:"column",children:[B.jsxDEV(x,{flexShrink:1,height:1,overflow:"hidden",children:B.jsxDEV(H0,{userMessage:P,color:m?"suggestion":void 0,isCurrent:e,paddingRight:10},void 0,!1,void 0,this)},void 0,!1,void 0,this),J&&VZ&&B.jsxDEV(x,{height:1,flexDirection:"row",children:i?B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{dimColor:!m,color:"inactive",children:MZ?B.jsxDEV(B.Fragment,{children:[MZ===1&&i.filesChanged[0]?`${ZZ.basename(i.filesChanged[0])} `:`${MZ} files changed `,B.jsxDEV(T0,{diffStats:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this):B.jsxDEV(B.Fragment,{children:"No code changes"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):B.jsxDEV(M,{dimColor:!0,color:"warning",children:[qZ.warning," No code restore"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},P.uuid,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!A&&B.jsxDEV(M,{dimColor:!0,italic:!0,children:Y0.pending?B.jsxDEV(B.Fragment,{children:["Press ",Y0.keyName," again to exit"]},void 0,!0,void 0,this):B.jsxDEV(B.Fragment,{children:[!z&&I&&"Enter to continue · ","Esc to exit"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function r9(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function o9(Q){let Z=WZ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:K}=Q,H=X&&(W==="both"||W==="code"),G;if(Z[0]!==W)G=r9(W),Z[0]=W,Z[1]=G;else G=Z[1];let N;if(Z[2]!==G)N=B.jsxDEV(M,{dimColor:!0,children:G},void 0,!1,void 0,this),Z[2]=G,Z[3]=N;else N=Z[3];let z;if(Z[4]!==K||Z[5]!==W||Z[6]!==H)z=!TZ(W)&&(H?B.jsxDEV(s9,{diffStatsForRestore:K},void 0,!1,void 0,this):B.jsxDEV(M,{dimColor:!0,children:"The code will be unchanged."},void 0,!1,void 0,this)),Z[4]=K,Z[5]=W,Z[6]=H,Z[7]=z;else z=Z[7];let q;if(Z[8]!==N||Z[9]!==z)q=B.jsxDEV(x,{flexDirection:"column",children:[N,z]},void 0,!0,void 0,this),Z[8]=N,Z[9]=z,Z[10]=q;else q=Z[10];return q}function s9(Q){let Z=WZ.c(14),{diffStatsForRestore:W}=Q;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let N;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))N=B.jsxDEV(M,{dimColor:!0,children:"The code has not changed (nothing will be restored)."},void 0,!1,void 0,this),Z[0]=N;else N=Z[0];return N}let X=W.filesChanged.length,K;if(X===1){let N;if(Z[1]!==W.filesChanged[0])N=ZZ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=N;else N=Z[2];K=N}else if(X===2){let N;if(Z[3]!==W.filesChanged[0])N=ZZ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=N;else N=Z[4];let z=N,q;if(Z[5]!==W.filesChanged[1])q=ZZ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=q;else q=Z[6];K=`${z} and ${q}`}else{let N;if(Z[7]!==W.filesChanged[0])N=ZZ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=N;else N=Z[8];K=`${N} and ${W.filesChanged.length-1} other files`}let H;if(Z[9]!==W)H=B.jsxDEV(T0,{diffStats:W},void 0,!1,void 0,this),Z[9]=W,Z[10]=H;else H=Z[10];let G;if(Z[11]!==K||Z[12]!==H)G=B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{dimColor:!0,children:["The code will be restored"," ",H," in ",K,"."]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Z[11]=K,Z[12]=H,Z[13]=G;else G=Z[13];return G}function T0(Q){let Z=WZ.c(7),{diffStats:W}=Q;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=B.jsxDEV(M,{color:"diffAddedWord",children:["+",W.insertions," "]},void 0,!0,void 0,this),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let K;if(Z[2]!==W.deletions)K=B.jsxDEV(M,{color:"diffRemovedWord",children:["-",W.deletions]},void 0,!0,void 0,this),Z[2]=W.deletions,Z[3]=K;else K=Z[3];let H;if(Z[4]!==X||Z[5]!==K)H=B.jsxDEV(B.Fragment,{children:[X,K]},void 0,!0,void 0,this),Z[4]=X,Z[5]=K,Z[6]=H;else H=Z[6];return H}function H0(Q){let Z=WZ.c(31),{userMessage:W,color:X,dimColor:K,isCurrent:H,paddingRight:G}=Q,{columns:N}=U0();if(H){let C;if(Z[0]!==X||Z[1]!==K)C=B.jsxDEV(x,{width:"100%",children:B.jsxDEV(M,{italic:!0,color:X,dimColor:K,children:"(current)"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z[0]=X,Z[1]=K,Z[2]=C;else C=Z[2];return C}let z=W.message.content,q=typeof z==="string"?null:z[z.length-1],J,V,U,_,O,j,I,A;if(Z[3]!==X||Z[4]!==N||Z[5]!==z||Z[6]!==K||Z[7]!==q||Z[8]!==G){A=Symbol.for("react.early_return_sentinel");Z:{let C=typeof z==="string"?z.trim():q&&C0(q)?q.text.trim():"(no prompt)",y=A0(C);if(b0(y)){let D;if(Z[17]!==X||Z[18]!==K)D=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:B.jsxDEV(M,{italic:!0,color:X,dimColor:K,children:"((empty message))"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z[17]=X,Z[18]=K,Z[19]=D;else D=Z[19];A=D;break Z}if(y.includes("<bash-input>")){let D=QZ(y,"bash-input");if(D){let d;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))d=B.jsxDEV(M,{color:"bashBorder",children:"!"},void 0,!1,void 0,this),Z[20]=d;else d=Z[20];A=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:[d,B.jsxDEV(M,{color:X,dimColor:K,children:[" ",D]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);break Z}}if(y.includes(`<${bZ}>`)){let D=QZ(y,bZ),d=QZ(y,"command-args"),l=QZ(y,"skill-format")==="true";if(D)if(l){A=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:B.jsxDEV(M,{color:X,dimColor:K,children:["Skill(",D,")"]},void 0,!0,void 0,this)},void 0,!1,void 0,this);break Z}else{A=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:B.jsxDEV(M,{color:X,dimColor:K,children:["/",D," ",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this);break Z}}V=x,j="row",I="100%",J=M,U=X,_=K,O=G?w0(y,N-G,!0):y.slice(0,500).split(`
8
- `).slice(0,4).join(`
9
- `)}Z[3]=X,Z[4]=N,Z[5]=z,Z[6]=K,Z[7]=q,Z[8]=G,Z[9]=J,Z[10]=V,Z[11]=U,Z[12]=_,Z[13]=O,Z[14]=j,Z[15]=I,Z[16]=A}else J=Z[9],V=Z[10],U=Z[11],_=Z[12],O=Z[13],j=Z[14],I=Z[15],A=Z[16];if(A!==Symbol.for("react.early_return_sentinel"))return A;let F;if(Z[21]!==J||Z[22]!==U||Z[23]!==_||Z[24]!==O)F=B.jsxDEV(J,{color:U,dimColor:_,children:O},void 0,!1,void 0,this),Z[21]=J,Z[22]=U,Z[23]=_,Z[24]=O,Z[25]=F;else F=Z[25];let $;if(Z[26]!==V||Z[27]!==j||Z[28]!==I||Z[29]!==F)$=B.jsxDEV(V,{flexDirection:j,width:I,children:F},void 0,!1,void 0,this),Z[26]=V,Z[27]=j,Z[28]=I,Z[29]=F,Z[30]=$;else $=Z[30];return $}function t9(Q,Z,W){let X=Q.findIndex((z)=>z.uuid===Z);if(X===-1)return;let K=W?Q.findIndex((z)=>z.uuid===W):Q.length;if(K===-1)K=Q.length;let H=[],G=0,N=0;for(let z=X+1;z<K;z++){let q=Q[z];if(!q||!SZ(q))continue;let J=q.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let V of J.structuredPatch){let U=IZ(V.lines,(O)=>O.startsWith("+")),_=IZ(V.lines,(O)=>O.startsWith("-"));G+=U,N+=_}}catch{continue}}return{filesChanged:H,insertions:G,deletions:N}}function R0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(fZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&C0(W)?W.text.trim():"";if(X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${N0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${V0}>`)!==-1||X.indexOf(`<${v0}`)!==-1)return!1;return!0}function e9(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(fZ(X))continue;if(SZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let K=X.message.content;if(Array.isArray(K)){if(K.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var WZ,b,B,EZ=7;var YQ=AZ(()=>{R9();_Z();a9();l9();_0();m9();x9();u9();T9();wZ();g9();d9();p9();C9();f9();S9();c9();WZ=vZ(k9(),1),b=vZ(h9(),1),B=vZ(J0(),1)});var YW={};RZ(YW,{getCronJitterConfig:()=>ZW});function ZW(){let Q=qY("tengu_kairos_cron_config",YZ,sQ),Z=eQ().safeParse(Q);return Z.success?Z.data:YZ}var sQ=60000,gZ=1800000,tQ=2592000000,eQ;var QW=AZ(()=>{KZ();oQ();vY();OZ();eQ=v(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(gZ),oneShotMaxMs:Y.number().int().min(0).max(gZ),oneShotFloorMs:Y.number().int().min(0).max(gZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(tQ).default(YZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as GW,readFile as JW,unlink as yY,writeFile as aZ}from"fs/promises";import{dirname as HW,join as PY}from"path";function JZ(Q){return PY(Q??_Y(),NW)}async function $Y(Q){let Z;try{Z=await JW(JZ(Q),"utf8")}catch{return}let W=BW().safeParse(OY(Z,!1));return W.success?W.data:void 0}async function AY(Q,Z){let W=JZ(Z),X=t(Q);try{return await aZ(W,X,{flag:"wx"}),!0}catch(K){let H=lZ(K);if(H==="EEXIST")return!1;if(H==="ENOENT"){await GW(HW(W),{recursive:!0});try{return await aZ(W,X,{flag:"wx"}),!0}catch(G){if(lZ(G)==="EEXIST")return!1;throw G}}throw K}}function dZ(Q){jZ?.(),jZ=wY(async()=>{await BZ(Q)})}async function nZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??HZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await AY(X,Z))return GZ=void 0,dZ(Q),E(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let K=await $Y(Z);if(K?.sessionId===W){if(K.pid!==process.pid)await aZ(JZ(Z),t(X)),dZ(Q);return!0}if(K&&UY(K.pid)){if(GZ!==K.sessionId)GZ=K.sessionId,E(`[ScheduledTasks] scheduler lock held by session ${K.sessionId} (PID ${K.pid})`);return!1}if(K)E(`[ScheduledTasks] recovering stale scheduler lock from PID ${K.pid}`);if(await yY(JZ(Z)).catch(()=>{}),await AY(X,Z))return GZ=void 0,dZ(Q),!0;return!1}async function BZ(Q){jZ?.(),jZ=void 0,GZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??HZ(),X=await $Y(Z);if(!X||X.sessionId!==W)return;try{await yY(JZ(Z)),E("[ScheduledTasks] released scheduler lock")}catch{}}var NW,BW,jZ,GZ;var jY=AZ(()=>{KZ();NZ();WW();XZ();cZ();KW();XW();OZ();$Z();NW=PY(".claude","scheduled_tasks.lock"),BW=v(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var vW={};RZ(vW,{isRecurringTaskAged:()=>SY,createCronScheduler:()=>qW,buildMissedTaskNotification:()=>hY});function SY(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function qW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:K,onMissed:H,dir:G,lockIdentity:N,getJitterConfig:z,isKilled:q,filter:J}=Q,V=G||N?{dir:G,lockIdentity:N}:void 0,U=[],_=new Map,O=new Set,j=new Set,I=null,A=null,F=null,$=null,C=!1,y=!1;async function D(f){let u=await CY(G);if(C)return;if(U=u,!f)return;let c=Date.now(),k=fY(u,c).filter((w)=>!w.recurring&&!O.has(w.id)&&(!J||J(w)));if(k.length>0){for(let w of k)O.add(w.id),_.set(w.id,1/0);if(g("tengu_scheduled_task_missed",{count:k.length,taskIds:k.map((w)=>w.id).join(",")}),H)H(k);else Z(hY(k));iZ(k.map((w)=>w.id),G).catch((w)=>E(`[ScheduledTasks] failed to remove missed tasks: ${w}`)),E(`[ScheduledTasks] surfaced ${k.length} missed one-shot task(s)`)}}function d(){if(q?.())return;if(W()&&!X)return;let f=Date.now(),u=new Set,c=[],k=z?.()??YZ;function w(L,T){if(J&&!J(L))return;if(u.add(L.id),j.has(L.id))return;let S=_.get(L.id);if(S===void 0)S=L.recurring?rZ(L.cron,L.lastFiredAt??L.createdAt,L.id,k)??1/0:RY(L.cron,L.createdAt,L.id,k)??1/0,_.set(L.id,S),E(`[ScheduledTasks] scheduled ${L.id} for ${S===1/0?"never":new Date(S).toISOString()}`);if(f<S)return;if(E(`[ScheduledTasks] firing ${L.id}${L.recurring?" (recurring)":""}`),g("tengu_scheduled_task_fire",{recurring:L.recurring??!1,taskId:L.id}),K)K(L);else Z(L.prompt);let n=SY(L,f,k.recurringMaxAgeMs);if(n){let o=Math.floor((f-L.createdAt)/1000/60/60);E(`[ScheduledTasks] recurring task ${L.id} aged out (${o}h since creation), deleting after final fire`),g("tengu_scheduled_task_expired",{taskId:L.id,ageHours:o})}if(L.recurring&&!n){let o=rZ(L.cron,f,L.id,k)??1/0;if(_.set(L.id,o),!T)c.push(L.id)}else if(T)EY([L.id]),_.delete(L.id);else j.add(L.id),iZ([L.id],G).catch((o)=>E(`[ScheduledTasks] failed to remove task ${L.id}: ${o}`)).finally(()=>j.delete(L.id)),_.delete(L.id)}if(y){for(let L of U)w(L,!1);if(c.length>0){for(let L of c)j.add(L);TY(c,f,G).catch((L)=>E(`[ScheduledTasks] failed to persist lastFiredAt: ${L}`)).finally(()=>{for(let L of c)j.delete(L)})}}if(G===void 0)for(let L of MY())w(L,!0);if(u.size===0){_.clear();return}for(let L of _.keys())if(!u.has(L))_.delete(L)}async function l(){if(C)return;if(I)clearInterval(I),I=null;let{default:f}=await import("./index-0.1.11-p0j3w83p.mjs");if(C)return;if(y=await nZ(V).catch(()=>!1),C){if(y)y=!1,BZ(V);return}if(!y)F=setInterval(()=>{nZ(V).then((c)=>{if(C){if(c)BZ(V);return}if(c){if(y=!0,F)clearInterval(F),F=null}}).catch((c)=>E(String(c),{level:"error"}))},VW),F.unref?.();D(!0);let u=IY(G);$=f.watch(u,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:zW},ignorePermissionErrors:!0}),$.on("add",()=>void D(!1)),$.on("change",()=>void D(!1)),$.on("unlink",()=>{if(!C)U=[],_.clear()}),A=setInterval(d,FY),A.unref?.()}return{start(){if(C=!1,G!==void 0){E(`[ScheduledTasks] scheduler start() — dir=${G}, hasTasks=${FZ(G)}`),l();return}if(E(`[ScheduledTasks] scheduler start() — enabled=${LZ()}, hasTasks=${FZ()}`),!LZ()&&(X||FZ()))DY(!0);if(LZ()){l();return}I=setInterval((f)=>{if(LZ())f()},FY,l),I.unref?.()},stop(){if(C=!0,I)clearInterval(I),I=null;if(A)clearInterval(A),A=null;if(F)clearInterval(F),F=null;if($?.close(),$=null,y)y=!1,BZ(V)},getNextFireTime(){let f=1/0;for(let u of _.values())if(u<f)f=u;return f===1/0?null:f}}}function hY(Q){let Z=Q.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claude/scheduled_tasks.json.
10
-
11
- Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Q.map((K)=>{let H=`[${bY(K.cron)}, created ${new Date(K.createdAt).toLocaleString()}]`,G=(K.prompt.match(/`+/g)??[]).reduce((z,q)=>Math.max(z,q.length),0),N="`".repeat(Math.max(3,G+1));return`${H}
12
- ${N}
13
- ${K.prompt}
14
- ${N}`});return`${W}
15
-
16
- ${X.join(`
17
-
18
- `)}`}var FY=1000,zW=300,VW=5000;var AW=AZ(()=>{NZ();_Z();LW();vY();jY();XZ()});G0();function nW(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?I9(Z):Z,uuid:W}}function I9(Q){if(!Q.some(X0))return Q;return Q.map((Z)=>{if(!X0(Z))return Z;let W=Z.source,X=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:K0(Z.source.data);return{...Z,source:{type:"base64",media_type:X,data:Z.source.data}}})}function X0(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}KZ();XZ();OZ();f0();QQ();var w6=v(()=>h.object({tool_name:h.string().describe("The name of the tool requesting permission"),input:h.record(h.string(),h.unknown()).describe("The input for the tool"),tool_use_id:h.string().optional().describe("The unique tool use request ID")})),h0=v(()=>h.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),WQ=v(()=>h.object({behavior:h.literal("allow"),updatedInput:h.record(h.string(),h.unknown()),updatedPermissions:h.array(S0()).optional().catch((Q)=>{E(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:h.string().optional(),decisionClassification:h0()})),XQ=v(()=>h.object({behavior:h.literal("deny"),message:h.string(),interrupt:h.boolean().optional(),toolUseID:h.string().optional(),decisionClassification:h0()})),hZ=v(()=>h.union([WQ(),XQ()]));function PZ(Q,Z,W,X){let K={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)X.setAppState((N)=>({...N,toolPermissionContext:UZ(N.toolPermissionContext,H)})),yZ(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:W;return{...Q,updatedInput:G,decisionReason:K}}else if(Q.behavior==="deny"&&Q.interrupt)E(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),X.abortController.abort();return{...Q,decisionReason:K}}import{randomUUID as mZ}from"crypto";KZ();OZ();KQ();var GQ=v(()=>Y.unknown()),JQ=v(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),HQ=v(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(u0(),Y.array(JQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),d0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),$6=v(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(c0()),account:g0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:o0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),NQ=v(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),BQ=v(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(x0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),LQ=v(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:p0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),zQ=v(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),VQ=v(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),qQ=v(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),j6=v(()=>Y.object({mcpServers:Y.array(kZ())}).describe("Response containing the current status of all MCP server connections.")),vQ=v(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),AQ=v(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),_Q=v(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),F6=v(()=>Y.object({categories:Y.array(AQ()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(_Q())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),wQ=v(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),D6=v(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),OQ=v(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),M6=v(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),UQ=v(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=v(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:m0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),PQ=v(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:GQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),$Q=v(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),k0())}).describe("Replaces the set of dynamically managed MCP servers.")),E6=v(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),jQ=v(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),b6=v(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(kZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=v(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),DQ=v(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),MQ=v(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),EQ=v(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),bQ=v(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),I6=v(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),IQ=v(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),s0=v(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),CQ=v(()=>Y.union([NQ(),BQ(),HQ(),LQ(),zQ(),VQ(),qQ(),vQ(),yQ(),PQ(),wQ(),OQ(),UQ(),$Q(),jQ(),FQ(),DQ(),MQ(),EQ(),bQ(),IQ()])),uZ=v(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:CQ()})),TQ=v(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),RQ=v(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>uZ())).optional()})),t0=v(()=>Y.object({type:Y.literal("control_response"),response:Y.union([TQ(),RQ()])})),fQ=v(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),e0=v(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),SQ=v(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),C6=v(()=>Y.union([r0(),a0(),n0(),i0(),t0(),uZ(),fQ(),e0()])),T6=v(()=>Y.union([l0(),uZ(),t0(),e0(),SQ()]));gQ();XZ();pQ();cZ();cQ();xQ();$Z();KZ();uQ();LY();f0();$Z();mQ();$Z();var hQ=/\u2028|\u2029/g;function kQ(Q){return Q.replace(hQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function ZY(Q){return kQ(t(Q))}var dQ="SandboxNetworkAccess";function lQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function aQ(Q,Z,W,X){let K;try{K=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{K=Q.name}return{tool_name:Q.name,action_description:K,tool_use_id:W,request_id:X,input:Z}}var nQ=1000;class iQ{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new JY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>nQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(t({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
19
- `)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let W=Q.indexOf(`
20
- `);if(W===-1)break;let X=Q.slice(0,W);Q=Q.slice(W+1);let K=await this.processLine(X);if(K)KY("info","cli_stdin_message_parsed",{type:K.type}),yield K}}.bind(this);yield*Z();for await(let W of this.input)Q+=W,yield*Z();if(Q){let W=await this.processLine(Q);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")W.reject(Error(Q.response.error));else{let X=Q.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(K){W.reject(K)}else W.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=VY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[X,K]of Object.entries(Z.variables))process.env[X]=K;E(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)GY(W,"completed");let X=this.pendingRequests.get(Z.response.request_id);if(!X){let G=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof G==="string"&&this.resolvedToolUseIds.has(G)){E(`Ignoring duplicate control_response for already-resolved toolUseID=${G} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z.response.request_id),X.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){X.reject(Error(Z.response.error));return}let K=Z.response.response;if(X.schema)try{X.resolve(X.schema.parse(K))}catch(H){X.reject(H)}else X.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){E(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)YY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")YY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){XY(ZY(Q)+`
21
- `)}async sendRequest(Q,Z,W,X=mZ()){let K={type:"control_request",request_id:X,request:Q};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(K),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(K);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let G=this.pendingRequests.get(X);if(G)this.trackResolvedToolUseId(G.request),G.reject(new QY)};if(W)W.addEventListener("abort",H,{once:!0});try{return await new Promise((G,N)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Q},resolve:(z)=>{G(z)},reject:N,schema:Z})})}finally{if(W)W.removeEventListener("abort",H);this.pendingRequests.delete(X)}}createCanUseTool(Q){return async(Z,W,X,K,H,G)=>{let N=G??await HY(Z,W,X,K,H);if(N.behavior==="allow"||N.behavior==="deny")return N;let z=new AbortController,q=X.abortController.signal,J=()=>z.abort();q.addEventListener("abort",J,{once:!0});try{let V=rQ(Z.name,H,W,X,N.suggestions).then((j)=>({source:"hook",decision:j})),U=mZ();Q?.(aQ(Z,W,H,U));let _=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:N.suggestions,blocked_path:N.blockedPath,decision_reason:lQ(N.decisionReason),tool_use_id:H,agent_id:X.agentId},hZ(),z.signal,U).then((j)=>({source:"sdk",result:j})),O=await Promise.race([V,_]);if(O.source==="hook"){if(O.decision)return _.catch(()=>{}),z.abort(),O.decision;let j=await _;return PZ(j.result,Z,W,X)}return PZ(O.result,Z,W,X)}catch(V){return PZ({behavior:"deny",message:`Tool permission request failed: ${V}`,toolUseID:H},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)zY("running");q.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(W,X,K)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:W,tool_use_id:X||void 0},NY(),K)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,W,X,K,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:K,url:H,elicitation_id:G,requested_schema:W},s0(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:dQ,input:{host:Q.host},tool_use_id:mZ(),description:`Allow network connection to ${Q.host}?`},hZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function YY(Q){console.error(Q),process.exit(1)}async function rQ(Q,Z,W,X,K){let G=X.getAppState().toolPermissionContext.mode,N=BY(Q,Z,W,X,G,K,X.abortController.signal);for await(let z of N)if(z.permissionRequestResult&&(z.permissionRequestResult.behavior==="allow"||z.permissionRequestResult.behavior==="deny")){let q=z.permissionRequestResult;if(q.behavior==="allow"){let J=q.updatedInput||W,V=q.updatedPermissions??[];if(V.length>0){yZ(V);let U=X.getAppState(),_=UZ(U.toolPermissionContext,V);X.setAppState((O)=>{if(O.toolPermissionContext===_)return O;return{...O,toolPermissionContext:_}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:q.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}NZ();PW();wW();yW();_W();UW();OW();import{randomUUID as $W}from"crypto";function jW(Q){return Q===pY?uY:Q}function TX(Q){let W=mY()?.outputStyle??dY,X={type:"system",subtype:"init",cwd:xY(),session_id:HZ(),tools:Q.tools.map((K)=>jW(K.name)),mcp_servers:Q.mcpClients.map((K)=>({name:K.name,status:K.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),apiKeySource:gY().source,betas:kY(),claude_code_version:"99.0.0",output_style:W,agents:Q.agents.map((K)=>K.agentType),skills:Q.skills.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),plugins:Q.plugins.map((K)=>({name:K.name,path:K.path,source:K.source})),uuid:$W()};return X.fast_mode_state=cY(Q.model,Q.fastMode),X}var lY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function FW(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let X=[],K=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let V=Q[J];if(K){if(K==="["&&V==="["){H=J;continue}if(V!==lY[K])continue;if(K==="'"&&G(Q[J+1]))continue;X.push({start:H,end:J+1}),K=null}else if(V==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||V==="'"&&!G(Q[J-1])||V!=="<"&&V!=="'"&&V in lY)K=V,H=J}let N=[],z=new RegExp(`\\b${Z}\\b`,"gi"),q=Q.matchAll(z);for(let J of q){if(J.index===void 0)continue;let V=J.index,U=V+J[0].length;if(X.some((j)=>V>=j.start&&V<j.end))continue;let _=Q[V-1],O=Q[U];if(_==="/"||_==="\\"||_==="-")continue;if(O==="/"||O==="\\"||O==="-"||O==="?")continue;if(O==="."&&G(Q[U+1]))continue;N.push({word:J[0],start:V,end:U})}return N}function fX(Q){return FW(Q,"ultrareview")}_Z();wZ();SW();RW();fW();bW();LY();G0();IW();wZ();TW();CW();import{randomUUID as hW}from"crypto";NZ();_Z();wZ();DW();MW();import{randomUUID as EW}from"crypto";function aY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function nY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function tY(Q,Z,W,X,K,H,G){let N=EW();iY(N);let z=typeof Q==="string"?Q:Q.find((_)=>_.type==="text")?.text||"";sY(z);let q=typeof Q==="string"?Q:Q.findLast((_)=>_.type==="text")?.text||"";if(q)oY("user_prompt",{prompt_length:String(q.length),prompt:rY(q),"prompt.id":N});let J=aY(z),V=nY(z);if(g("tengu_input_prompt",{is_negative:J,is_keep_going:V}),Z.length>0){let _=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[r({content:[..._,...Z],uuid:K,imagePasteIds:W.length>0?W:void 0,permissionMode:H,isMeta:G||void 0}),...X],shouldQuery:!0}}return{messages:[r({content:Q,uuid:K,permissionMode:H,isMeta:G||void 0}),...X],shouldQuery:!0}}async function H7({input:Q,preExpansionInput:Z,mode:W,setToolJSX:X,context:K,pastedContents:H,ideSelection:G,messages:N,setUserInputOnProcessing:z,uuid:q,isAlreadyProcessing:J,querySource:V,canUseTool:U,skipSlashCommands:_,bridgeOrigin:O,isMeta:j,skipAttachments:I}){let A=typeof Q==="string"?Q:null;if(W==="prompt"&&A!==null&&!j)z?.(A);a("query_process_user_input_base_start");let F=K.getAppState(),$=await kW(Q,W,X,K,H,G,N,q,J,V,U,F.toolPermissionContext.mode,_,O,j,I,Z);if(a("query_process_user_input_base_end"),!$.shouldQuery)return $;a("query_hooks_start");let C=G9(Q)||"";for await(let y of V9(C,F.toolPermissionContext.mode,K,K.requestPrompt)){if(y.message?.type==="progress")continue;if(y.blockingError){let D=z9(y.blockingError);return{messages:[J9(`${D}
22
-
23
- Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:$.allowedTools}}if(y.preventContinuation){let D=y.stopReason?`Operation stopped by hook: ${y.stopReason}`:"Operation stopped by hook";return $.messages.push(r({content:D})),$.shouldQuery=!1,$}if(y.additionalContexts&&y.additionalContexts.length>0)$.messages.push(K9({type:"hook_additional_context",content:y.additionalContexts.map(eY),hookName:"UserPromptSubmit",toolUseID:`hook-${hW()}`,hookEvent:"UserPromptSubmit"}));if(y.message)switch(y.message.attachment.type){case"hook_success":if(!y.message.attachment.content)break;$.messages.push({...y.message,attachment:{...y.message.attachment,content:eY(y.message.attachment.content)}});break;default:$.messages.push(y.message);break}}return a("query_hooks_end"),$}var sZ=1e4;function eY(Q){if(Q.length>sZ)return`${Q.substring(0,sZ)}… [output truncated - exceeded ${sZ} characters]`;return Q}async function kW(Q,Z,W,X,K,H,G,N,z,q,J,V,U,_,O,j,I){let A=null,F=[],$=[],C=Q;if(typeof Q==="string")A=Q;else if(Q.length>0){a("query_image_processing_start");let w=[];for(let T of Q)if(T.type==="image"){let S=await eZ(T);if(S.dimensions){let n=DZ(S.dimensions);if(n)$.push(n)}w.push(S.block)}else w.push(T);C=w,a("query_image_processing_end");let L=w[w.length-1];if(L?.type==="text")A=L.text,F=w.slice(0,-1);else F=w}if(A===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let y=K?Object.values(K).filter(W9):[],D=y.map((w)=>w.id),d=K?await Y9(K):new Map;a("query_pasted_image_processing_start");let l=await Promise.all(y.map(async(w)=>{let L={type:"image",source:{type:"base64",media_type:w.mediaType||"image/png",data:w.content}};return g("tengu_pasted_image_resize_attempt",{original_size_bytes:w.content.length}),{resized:await eZ(L),originalDimensions:w.dimensions,sourcePath:w.sourcePath??d.get(w.id)}})),f=[];for(let{resized:w,originalDimensions:L,sourcePath:T}of l){if(w.dimensions){let S=DZ(w.dimensions,T);if(S)$.push(S)}else if(L){let S=DZ(L,T);if(S)$.push(S)}else if(T)$.push(`[Image source: ${T}]`);f.push(w.block)}a("query_pasted_image_processing_end");let u=U;if(_&&A!==null&&A.startsWith("/")){let w=Q9(A),L=w?L9(w.commandName,X.options.commands):void 0;if(L)if(B9(L))u=!1;else{let T=`/${N9(L)} isn't available over Remote Control.`;return{messages:[r({content:A,uuid:N}),H9(`<local-command-stdout>${T}</local-command-stdout>`)],shouldQuery:!1,resultText:T}}}let c=!j&&A!==null&&(Z!=="prompt"||u||!A.startsWith("/"));a("query_attachment_loading_start");let k=c?await Z9(X9(A,X,H??null,[],G,q)):[];if(a("query_attachment_loading_end"),A!==null&&Z==="bash"){let{processBashCommand:w}=await import("./processBashCommand-0.1.11-txp79ekj.mjs");return tZ(await w(A,F,k,X,W),$)}if(A!==null&&!u&&A.startsWith("/")){let{processSlashCommand:w}=await import("./processSlashCommand-0.1.11-fdvs7etd.mjs"),L=await w(A,F,f,k,X,W,N,z,J);return tZ(L,$)}if(A!==null&&Z==="prompt"){let w=A.trim(),L=k.find((T)=>T.attachment.type==="agent_mention");if(L){let T=`@agent-${L.attachment.agentType}`,S=w===T,n=w.startsWith(T)&&!S;g("tengu_subagent_at_mention",{is_subagent_only:S,is_prefix:n})}}return tZ(tY(C,f,D,k,N,V,O),$)}function tZ(Q,Z){if(Z.length>0)Q.messages.push(r({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Q}mW();NZ();XZ();cZ();pW();xW();_0();cW();uW();import{isAbsolute as gW,resolve as dW}from"path";function lW(Q,Z,W){let X=[],K=[],H=[];for(let[G,N]of Object.entries(Q)){let z=Z[G],q=P9(N.source,W?.projectRoot);if(!z)X.push(G);else if(N.sourceIsFallback)H.push(G);else if(!w9(q,z.source))K.push({name:G,declaredSource:q,materializedSource:z.source});else H.push(G)}return{missing:X,sourceChanged:K,upToDate:H}}async function U7(Q){let Z=O9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await U9()}catch(J){s(J),W={}}let X=lW(Z,W,{projectRoot:Z0()}),K=[...X.missing.map((J)=>({name:J,source:P9(Z[J].source),action:"install"})),...X.sourceChanged.map(({name:J,declaredSource:V})=>({name:J,source:V,action:"update"}))],H=[],G=[];for(let J of K){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&_9(J.source)&&!await A9(J.source.path)){E(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:H};E(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let N=[],z=[],q=[];for(let J=0;J<G.length;J++){let{name:V,source:U,action:_}=G[J];Q?.onProgress?.({type:"installing",name:V,action:_,index:J+1,total:G.length});try{let O=await y9(U);if(_==="install")N.push(V);else z.push(V);Q?.onProgress?.({type:"installed",name:V,alreadyMaterialized:O.alreadyMaterialized})}catch(O){let j=q9(O);q.push({name:V,error:j}),Q?.onProgress?.({type:"failed",name:V,error:j}),s(O)}}return{installed:N,updated:z,failed:q,upToDate:X.upToDate,skipped:H}}function P9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!gW(Q.path)){let W=Z??Z0(),X=v9(W);return{...Q,path:dW(X??W,Q.path)}}return Q}
24
- export{nW as Z,jW as _,TX as $,i9 as aa,R0 as ba,e9 as ca,ZQ as da,YQ as ea,fX as fa,H7 as ga,hZ as ha,PZ as ia,ZY as ja,iQ as ka,lW as la,U7 as ma,ZW as na,YW as oa,QW as pa,qW as qa,vW as ra,AW as sa};
@@ -1,2 +0,0 @@
1
- import{Rna as H}from"./cli-0.1.11-yrfxpjhr.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
- export{F as Yfa,K as Zfa,M as _fa,N as $fa,O as aga,P as bga,J as cga};
@@ -1,4 +0,0 @@
1
- import{Pna as k,Sna as L}from"./cli-0.1.11-yrfxpjhr.mjs";var Q=k((Te)=>{Te.HttpAuthLocation=void 0;(function(e){e.HEADER="header",e.QUERY="query"})(Te.HttpAuthLocation||(Te.HttpAuthLocation={}));Te.HttpApiKeyAuthLocation=void 0;(function(e){e.HEADER="header",e.QUERY="query"})(Te.HttpApiKeyAuthLocation||(Te.HttpApiKeyAuthLocation={}));Te.EndpointURLScheme=void 0;(function(e){e.HTTP="http",e.HTTPS="https"})(Te.EndpointURLScheme||(Te.EndpointURLScheme={}));Te.AlgorithmId=void 0;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Te.AlgorithmId||(Te.AlgorithmId={}));var de=(e)=>{let t=[];if(e.sha256!==void 0)t.push({algorithmId:()=>Te.AlgorithmId.SHA256,checksumConstructor:()=>e.sha256});if(e.md5!=null)t.push({algorithmId:()=>Te.AlgorithmId.MD5,checksumConstructor:()=>e.md5});return{addChecksumAlgorithm(n){t.push(n)},checksumAlgorithms(){return t}}},le=(e)=>{let t={};return e.checksumAlgorithms().forEach((n)=>{t[n.algorithmId()]=n.checksumConstructor()}),t},me=(e)=>{return de(e)},ge=(e)=>{return le(e)};Te.FieldPosition=void 0;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(Te.FieldPosition||(Te.FieldPosition={}));var Ee="__smithy_context";Te.IniSectionType=void 0;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(Te.IniSectionType||(Te.IniSectionType={}));Te.RequestHandlerProtocol=void 0;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(Te.RequestHandlerProtocol||(Te.RequestHandlerProtocol={}));Te.SMITHY_CONTEXT_KEY=Ee;Te.getDefaultClientConfiguration=me;Te.resolveDefaultRuntimeConfig=ge});var X=k((Re)=>{var Ae=Q(),xe=(e)=>{return{setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}},Ce=(e)=>{return{httpHandler:e.httpHandler()}};class Y{name;kind;values;constructor({name:e,kind:t=Ae.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=t,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t)=>t!==e)}toString(){return this.values.map((e)=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}class V{entries={};encoding;constructor({fields:e=[],encoding:t="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t)=>t.kind===e)}}class P{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let t=new P({...e,headers:{...e.headers}});if(t.query)t.query=Se(t.query);return t}static isInstance(e){if(!e)return!1;let t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query==="object"&&typeof t.headers==="object"}clone(){return P.clone(this)}}function Se(e){return Object.keys(e).reduce((t,n)=>{let o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}},{})}class z{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}function be(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}Re.Field=Y;Re.Fields=V;Re.HttpRequest=P;Re.HttpResponse=z;Re.getHttpHandlerExtensionConfiguration=xe;Re.isValidHostname=be;Re.resolveHttpHandlerRuntimeConfig=Ce});var G=k((Ie)=>{var J=(e)=>encodeURIComponent(e).replace(/[!'()*]/g,Le),Le=(e)=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,$e=(e)=>e.split("/").map(J).join("/");Ie.escapeUri=J;Ie.escapeUriPath=$e});var Z=k((je)=>{var N=G();function Be(e){let t=[];for(let n of Object.keys(e).sort()){let o=e[n];if(n=N.escapeUri(n),Array.isArray(o))for(let r=0,s=o.length;r<s;r++)t.push(`${n}=${N.escapeUri(o[r])}`);else{let r=n;if(o||typeof o==="string")r+=`=${N.escapeUri(o)}`;t.push(r)}}return t.join("&")}je.buildQueryString=Be});var rt=k((qe)=>{var oe=X(),re=Z(),_=L("node:https"),se=L("node:stream"),W=L("node:http2");function D(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let r=Error("Request aborted");return r.name="AbortError",r.cause=t,r}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var We=["ECONNRESET","EPIPE","ETIMEDOUT"],ie=(e)=>{let t={};for(let n of Object.keys(e)){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},l={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},q=1000,Fe=(e,t,n=0)=>{if(!n)return-1;let o=(r)=>{let s=l.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-r),i=(a)=>{if(a?.connecting)a.on("connect",()=>{l.clearTimeout(s)});else l.clearTimeout(s)};if(e.socket)i(e.socket);else e.on("socket",i)};if(n<2000)return o(0),0;return l.setTimeout(o.bind(null,q),q)},Ke=(e,t,n=0,o,r)=>{if(n)return l.setTimeout(()=>{let s=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let i=Object.assign(Error(s),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(i),t(i)}else s+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",r?.warn?.(s)},n);return-1},Qe=3000,Ye=(e,{keepAlive:t,keepAliveMsecs:n},o=Qe)=>{if(t!==!0)return-1;let r=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(s)=>{s.setKeepAlive(t,n||0)})};if(o===0)return r(),0;return l.setTimeout(r,o)},ee=3000,Ve=(e,t,n=0)=>{let o=(r)=>{let s=n-r,i=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(s,i),e.on("close",()=>e.socket?.removeListener("timeout",i));else e.setTimeout(s,i)};if(0<n&&n<6000)return o(0),0;return l.setTimeout(o.bind(null,n===0?0:ee),ee)},te=6000;async function ce(e,t,n=te,o=!1){let r=t.headers??{},s=r.Expect||r.expect,i=-1,a=!0;if(!o&&s==="100-continue")a=await Promise.race([new Promise((c)=>{i=Number(l.setTimeout(()=>c(!0),Math.max(te,n)))}),new Promise((c)=>{e.on("continue",()=>{l.clearTimeout(i),c(!0)}),e.on("response",()=>{l.clearTimeout(i),c(!1)}),e.on("error",()=>{l.clearTimeout(i),c(!1)})})]);if(a)ze(e,t.body)}function ze(e,t){if(t instanceof se.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let r=t;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){e.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}e.end(Buffer.from(t));return}e.end()}var Xe=0,U=void 0,ne=void 0;class H{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new H(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:r,maxSockets:s}=e;if(typeof s!=="number"||s===1/0)return t;let i=15000;if(Date.now()-i<t)return t;if(o&&r)for(let a in o){let c=o[a]?.length??0,E=r[a]?.length??0;if(c>=s&&E>=2*s)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${c} and ${E} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,r=e.protocol==="https:";if(!r&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((s,i)=>{let a=void 0,c=[],E=async(u)=>{await a,c.forEach(l.clearTimeout),s(u)},m=async(u)=>{await a,c.forEach(l.clearTimeout),i(u)};if(t?.aborted){let u=D(t);m(u);return}let p=e.headers??{},A=(p.Expect??p.expect)==="100-continue",x=r?o.httpsAgent:o.httpAgent;if(A&&!this.externalAgent)x=new(r?_.Agent:U)({keepAlive:!1,maxSockets:1/0});c.push(l.setTimeout(()=>{this.socketWarningTimestamp=H.checkSocketUsage(x,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000)));let C=re.buildQueryString(e.query||{}),v=void 0;if(e.username!=null||e.password!=null){let u=e.username??"",f=e.password??"";v=`${u}:${f}`}let S=e.path;if(C)S+=`?${C}`;if(e.fragment)S+=`#${e.fragment}`;let y=e.hostname??"";if(y[0]==="["&&y.endsWith("]"))y=e.hostname.slice(1,-1);else y=e.hostname;let b={headers:e.headers,host:y,method:e.method,path:S,port:e.port,agent:x,auth:v},d=(r?_.request:ne)(b,(u)=>{let f=new oe.HttpResponse({statusCode:u.statusCode||-1,reason:u.statusMessage,headers:ie(u.headers),body:u});E({response:f})});if(d.on("error",(u)=>{if(We.includes(u.code))m(Object.assign(u,{name:"TimeoutError"}));else m(u)}),t){let u=()=>{d.destroy();let f=D(t);m(f)};if(typeof t.addEventListener==="function"){let f=t;f.addEventListener("abort",u,{once:!0}),d.once("close",()=>f.removeEventListener("abort",u))}else t.onabort=u}let T=n??o.requestTimeout;c.push(Fe(d,m,o.connectionTimeout)),c.push(Ke(d,m,T,o.throwOnRequestTimeout,o.logger??console)),c.push(Ve(d,m,o.socketTimeout));let w=b.agent;if(typeof w==="object"&&"keepAlive"in w)c.push(Ye(d,{keepAlive:w.keepAlive,keepAliveMsecs:w.keepAliveMsecs}));a=ce(d,e,T,this.externalAgent).catch((u)=>{return c.forEach(l.clearTimeout),i(u)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:r,httpAgent:s,httpsAgent:i,throwOnRequestTimeout:a,logger:c}=e||{},E=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:r,throwOnRequestTimeout:a,httpAgentProvider:async()=>{let{Agent:p,request:A}=await import("node:http");if(ne=A,U=p,s instanceof U||typeof s?.destroy==="function")return this.externalAgent=!0,s;return new U({keepAlive:!0,maxSockets:50,...s})},httpsAgent:(()=>{if(i instanceof _.Agent||typeof i?.destroy==="function")return this.externalAgent=!0,i;return new _.Agent({keepAlive:!0,maxSockets:50,...i})})(),logger:c}}}class ae{sessions=[];constructor(e){this.sessions=e??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((t)=>t!==e)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(let t of this.sessions)if(t===e){if(!t.destroyed)t.destroy()}}}class ue{constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}config;sessionCache=new Map;lease(e,t){let n=this.getUrlString(e),o=this.sessionCache.get(n);if(o){let a=o.poll();if(a&&!this.config.disableConcurrency)return a}let r=W.connect(n);if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(a)=>{if(a)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});r.unref();let s=()=>{r.destroy(),this.deleteSession(n,r)};if(r.on("goaway",s),r.on("error",s),r.on("frameError",s),r.on("close",()=>this.deleteSession(n,r)),t.requestTimeout)r.setTimeout(t.requestTimeout,s);let i=this.sessionCache.get(n)||new ae;return i.offerLast(r),this.sessionCache.set(n,i),r}deleteSession(e,t){let n=this.sessionCache.get(e);if(!n)return;if(!n.contains(t))return;n.remove(t),this.sessionCache.set(e,n)}release(e,t){let n=this.getUrlString(e);this.sessionCache.get(n)?.offerLast(t)}destroy(){for(let[e,t]of this.sessionCache){for(let n of t){if(!n.destroyed)n.destroy();t.remove(n)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}class F{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new ue({});static create(e){if(typeof e?.handle==="function")return e;return new F(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}let{requestTimeout:o,disableConcurrentStreams:r}=this.config,s=n??o;return new Promise((i,a)=>{let c=!1,E=void 0,m=async(h)=>{await E,i(h)},p=async(h)=>{await E,a(h)};if(t?.aborted){c=!0;let h=D(t);p(h);return}let{hostname:A,method:x,port:C,protocol:v,query:S}=e,y="";if(e.username!=null||e.password!=null){let h=e.username??"",g=e.password??"";y=`${h}:${g}@`}let b=`${v}//${y}${A}${C?`:${C}`:""}`,K={destination:new URL(b)},d=this.connectionManager.lease(K,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:r||!1}),T=(h)=>{if(r)this.destroySession(d);c=!0,p(h)},w=re.buildQueryString(S||{}),u=e.path;if(w)u+=`?${w}`;if(e.fragment)u+=`#${e.fragment}`;let f=d.request({...e.headers,[W.constants.HTTP2_HEADER_PATH]:u,[W.constants.HTTP2_HEADER_METHOD]:x});if(d.ref(),f.on("response",(h)=>{let g=new oe.HttpResponse({statusCode:h[":status"]||-1,headers:ie(h),body:f});if(c=!0,m({response:g}),r)d.close(),this.connectionManager.deleteSession(b,d)}),s)f.setTimeout(s,()=>{f.close();let h=Error(`Stream timed out because of no activity for ${s} ms`);h.name="TimeoutError",T(h)});if(t){let h=()=>{f.close();let g=D(t);T(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",h,{once:!0}),f.once("close",()=>g.removeEventListener("abort",h))}else t.onabort=h}f.on("frameError",(h,g,he)=>{T(Error(`Frame type id ${h} in stream id ${he} has failed with code ${g}.`))}),f.on("error",T),f.on("aborted",()=>{T(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${f.rstCode}.`))}),f.on("close",()=>{if(d.unref(),r)d.destroy();if(!c)T(Error("Unexpected error: http2 request did not get a response"))}),E=ce(f,e,s)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}destroySession(e){if(!e.destroyed)e.destroy()}}class fe extends se.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var Je=(e)=>{if(Ge(e))return Ze(e);return new Promise((t,n)=>{let o=new fe;e.pipe(o),e.on("error",(r)=>{o.end(),n(r)}),o.on("error",n),o.on("finish",function(){let r=new Uint8Array(Buffer.concat(this.bufferedBytes));t(r)})})},Ge=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function Ze(e){let t=[],n=e.getReader(),o=!1,r=0;while(!o){let{done:a,value:c}=await n.read();if(c)t.push(c),r+=c.length;o=a}let s=new Uint8Array(r),i=0;for(let a of t)s.set(a,i),i+=a.length;return s}qe.DEFAULT_REQUEST_TIMEOUT=Xe;qe.NodeHttp2Handler=F;qe.NodeHttpHandler=H;qe.streamCollector=Je});
4
- export{Z as Ina,rt as Jna};
@@ -1,2 +0,0 @@
1
- import{bK as S,cK as Zf,eK as Vf}from"./cli-0.1.11-s8ygndzf.mjs";import{LP as Xf,MP as _f}from"./cli-0.1.11-r990p54m.mjs";import{VS as Wf,WS as Uf}from"./cli-0.1.11-h02tyg8p.mjs";import{OU as x,PU as cf,QU as y,SU as q,WU as Qf,eT as s,kT as n,lT as If,vV as a}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as _}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as Tf}from"./cli-0.1.11-x37jysc0.mjs";import{A2 as zf,I2 as Jf,J2 as hf,N2 as M,Q2 as p,R2 as Rf,p2 as Nf,r2 as D,s2 as j,t2 as Hf,v2 as A,y2 as qf}from"./cli-0.1.11-qbcfg80y.mjs";import{E5 as l,F5 as Pf}from"./cli-0.1.11-s6yfjcm5.mjs";import{Cba as i,Eaa as Gf,G_ as Y,Qaa as Cf,S_ as yf,Vba as Bf}from"./cli-0.1.11-v7bwjqf0.mjs";import{Ffa as mf,Nfa as Of}from"./cli-0.1.11-nx8a99hz.mjs";import{dga as u,ega as Lf}from"./cli-0.1.11-xwj7cmkj.mjs";import{Nna as k,Rna as o}from"./cli-0.1.11-yrfxpjhr.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=g.jsxDEV(q,{color:"promptBorder",dimColor:!0,children:Y},void 0,!1,void 0,this),f[0]=z;else z=f[0];return z}let H;if(f[1]===Symbol.for("react.memo_cache_sentinel"))H=g.jsxDEV(q,{color:"fastMode",children:Y},void 0,!1,void 0,this),f[1]=H;else H=f[1];return H}function V(m=!0,f=!1){if(!m)return Y;let G=n(i().theme);if(f)return l.dim(x("promptBorder",G)(Y));return x("fastMode",G)(Y)}var t,g;var ff=o(()=>{Pf();yf();a();Bf();If();cf();t=k(s(),1),g=k(_(),1)});function b(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let H=!A(G.mainLoopModel);return{...G,...H?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function jf(m){let f=kf.c(30),{onDone:G,unavailableReason:H}=m,z=S(vf),W=S(Ef),X=Zf(),[J,wf]=Kf.useState(W??!1),B;if(f[0]===Symbol.for("react.memo_cache_sentinel"))B=qf(),f[0]=B;else B=f[0];let P=B,$=P.status==="cooldown",Q=H!==null,I;if(f[1]===Symbol.for("react.memo_cache_sentinel"))I=p(M(!0)),f[1]=I;else I=f[1];let d=I,c;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==X)c=function(){if(Q)return;if(b(J,X),u("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let F=V(J),rf=!A(z)?` · model set to ${j}`:"";G(`${F} Fast mode ON${rf} · ${d}`)}else X(Af),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=X,f[7]=c;else c=f[7];let E=c,L;if(f[8]!==W||f[9]!==Q||f[10]!==G||f[11]!==X)L=function(){if(Q){if(W)b(!1,X);G("Fast mode OFF",{display:"system"});return}let F=W?`${V()} Kept Fast mode ON`:"Kept Fast mode OFF";G(F,{display:"system"})},f[8]=W,f[9]=Q,f[10]=G,f[11]=X,f[12]=L;else L=f[12];let v=L,O;if(f[13]!==Q)O=function(){if(Q)return;wf(uf)},f[13]=Q,f[14]=O;else O=f[14];let Z=O,C;if(f[15]!==E||f[16]!==Z)C={"confirm:yes":E,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=E,f[16]=Z,f[17]=C;else C=f[17];let h;if(f[18]===Symbol.for("react.memo_cache_sentinel"))h={context:"Confirmation"},f[18]=h;else h=f[18];Wf(C,h);let R;if(f[19]===Symbol.for("react.memo_cache_sentinel"))R=N.jsxDEV(q,{children:[N.jsxDEV(e,{cooldown:$},void 0,!1,void 0,this)," Fast mode (research preview)"]},void 0,!0,void 0,this),f[19]=R;else R=f[19];let Yf=R,K;if(f[20]!==Q)K=(r)=>r.pending?N.jsxDEV(q,{children:["Press ",r.keyName," again to exit"]},void 0,!0,void 0,this):Q?N.jsxDEV(q,{children:"Esc to cancel"},void 0,!1,void 0,this):N.jsxDEV(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"},void 0,!1,void 0,this),f[20]=Q,f[21]=K;else K=f[21];let w;if(f[22]!==J||f[23]!==H)w=H?N.jsxDEV(y,{marginLeft:2,children:N.jsxDEV(q,{color:"error",children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this):N.jsxDEV(N.Fragment,{children:[N.jsxDEV(y,{flexDirection:"column",gap:0,marginLeft:2,children:N.jsxDEV(y,{flexDirection:"row",gap:2,children:[N.jsxDEV(q,{bold:!0,children:"Fast mode"},void 0,!1,void 0,this),N.jsxDEV(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"},void 0,!1,void 0,this),N.jsxDEV(q,{dimColor:!0,children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$&&P.status==="cooldown"&&N.jsxDEV(y,{marginLeft:2,children:N.jsxDEV(q,{color:"warning",children:[P.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(P.resetAt-Date.now(),{hideTrailingZeros:!0})]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[22]=J,f[23]=H,f[24]=w;else w=f[24];let T;if(f[25]===Symbol.for("react.memo_cache_sentinel"))T=N.jsxDEV(q,{dimColor:!0,children:["Learn more:"," ",N.jsxDEV(Qf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[25]=T;else T=f[25];let U;if(f[26]!==v||f[27]!==w||f[28]!==K)U=N.jsxDEV(Xf,{title:Yf,subtitle:`High-speed mode for ${j}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:v,color:"fastMode",inputGuide:K,children:[w,T]},void 0,!0,void 0,this),f[26]=v,f[27]=w,f[28]=K,f[29]=U;else U=f[29];return U}function uf(m){return!m}function Af(m){return{...m,fastMode:!1}}function Ef(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let H=D();if(H)return`Fast mode unavailable: ${H}`;let{mainLoopModel:z}=f();if(b(m,G),u("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let W=V(!0),X=!A(z)?` · model set to ${j}`:"",J=p(M(!0));return`${W} Fast mode ON${X} · ${J}`}else return"Fast mode OFF"}async function G0(m,f,G){if(!Nf())return null;await Jf();let H=G?.trim().toLowerCase();if(H==="on"||H==="off"){let W=await Ff(H==="on",f.getAppState,f.setAppState);return m(W),null}let z=D();return u("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),N.jsxDEV(jf,{onDone:m,unavailableReason:z},void 0,!1,void 0,this)}var kf,Kf,N;var xf=o(()=>{_f();ff();a();Uf();Lf();Vf();hf();Of();Rf();Cf();kf=k(s(),1),Kf=k(Tf(),1),N=k(_(),1)});
2
- export{V as ad,ff as bd,jf as cd,G0 as dd,xf as ed};