@claudiolabs/claudin 1.1.3 → 1.1.5

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 (913) hide show
  1. package/dist/chunks/AgentTool-1.1.5-car4wryg.mjs +1 -0
  2. package/dist/chunks/App-1.1.5-z0yx1svv.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.5-w45fejta.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.5-wpzenq2z.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.5-4s0r270q.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.5-dx9d1z78.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.5-0k0z6a1m.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.5-sbdb54nq.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.5-9tz97bn9.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.5-apx3wyew.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.5-891875tg.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.5-7qgs0ctk.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.5-6sez284v.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.5-5dj12wwy.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.5-qhe96ke7.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.5-n3ckkvap.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.5-3zcfdapk.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.5-md334w8f.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.5-nsj3srpq.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.5-19hsx4tm.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.5-h3eyae2y.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.5-f81xwyhr.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.5-nx2v36t1.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.5-rk93z4dr.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.5-7xpzhazh.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.5-vwdgwpbq.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.5-d9yxahsv.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.5-h81mhrtj.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.5-9z4prdv7.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.5-2r72vjnd.mjs +1 -0
  31. package/dist/chunks/agents-1.1.5-42ak0q7h.mjs +110 -0
  32. package/dist/chunks/agents-1.1.5-6mddedjv.mjs +3 -0
  33. package/dist/chunks/api-1.1.5-wv0hk17a.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.5-6hpenp1g.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.5-gtrb1ytz.mjs +1 -0
  36. package/dist/chunks/auth-1.1.5-3gb86bzb.mjs +1 -0
  37. package/dist/chunks/auth-1.1.5-nmydgbfa.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.5-7dv0v1v1.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.5-64mbk0zw.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.5-g7cnfdvq.mjs +1 -0
  41. package/dist/chunks/branch-1.1.5-yaqv3wbc.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.5-154psxbc.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.5-s174he1k.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.5-w6e3wcsk.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.5-yhcrds6r.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.5-kebmje48.mjs +1 -0
  47. package/dist/chunks/btw-1.1.5-mfkqctq8.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.5-k7ntvcd9.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.5-c43ce176.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.5-wjk6v8ah.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.5-tw30ndt7.mjs +4 -0
  52. package/dist/chunks/caches-1.1.5-cftgxft7.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.5-pwme5y05.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.5-4ze3v28n.mjs +1 -0
  55. package/dist/chunks/clear-1.1.5-gwbert39.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.5-dgbcqbp5.mjs +1 -0
  57. package/dist/chunks/cli-1.1.5-04a4w5qm.mjs +2 -0
  58. package/dist/chunks/cli-1.1.5-04mta7g9.mjs +2 -0
  59. package/dist/chunks/cli-1.1.5-06s5q1ja.mjs +2 -0
  60. package/dist/chunks/cli-1.1.5-0a8jb3pr.mjs +2 -0
  61. package/dist/chunks/cli-1.1.5-0amg980q.mjs +2 -0
  62. package/dist/chunks/cli-1.1.5-0gd61h7z.mjs +2 -0
  63. package/dist/chunks/cli-1.1.5-0jp6cq2j.mjs +2 -0
  64. package/dist/chunks/cli-1.1.5-0kq9h6ts.mjs +2 -0
  65. package/dist/chunks/cli-1.1.5-0rnv5bg3.mjs +9 -0
  66. package/dist/chunks/cli-1.1.5-0yw3n72x.mjs +2 -0
  67. package/dist/chunks/cli-1.1.5-126h7k7m.mjs +2 -0
  68. package/dist/chunks/cli-1.1.5-1385z6tg.mjs +2 -0
  69. package/dist/chunks/cli-1.1.5-15q297nh.mjs +2 -0
  70. package/dist/chunks/cli-1.1.5-17pq11ad.mjs +15 -0
  71. package/dist/chunks/cli-1.1.5-1k6n7e0p.mjs +2 -0
  72. package/dist/chunks/cli-1.1.5-1ms5wad6.mjs +2 -0
  73. package/dist/chunks/cli-1.1.5-1qr5p3pk.mjs +3 -0
  74. package/dist/chunks/cli-1.1.5-20206ha7.mjs +3 -0
  75. package/dist/chunks/cli-1.1.5-2bc86bd2.mjs +2 -0
  76. package/dist/chunks/cli-1.1.5-2e2rwx0h.mjs +2 -0
  77. package/dist/chunks/cli-1.1.5-2evbbg97.mjs +2 -0
  78. package/dist/chunks/cli-1.1.5-2g7w64ck.mjs +2 -0
  79. package/dist/chunks/cli-1.1.5-2kgng99f.mjs +24 -0
  80. package/dist/chunks/cli-1.1.5-2qf8qy7f.mjs +2 -0
  81. package/dist/chunks/cli-1.1.5-2r25f40p.mjs +2 -0
  82. package/dist/chunks/cli-1.1.5-2rmwkb2s.mjs +4 -0
  83. package/dist/chunks/cli-1.1.5-2v5ehg8c.mjs +2 -0
  84. package/dist/chunks/cli-1.1.5-3389j5t0.mjs +17 -0
  85. package/dist/chunks/cli-1.1.5-362kw0jy.mjs +2 -0
  86. package/dist/chunks/cli-1.1.5-3mact63s.mjs +2 -0
  87. package/dist/chunks/cli-1.1.5-3n83mvmz.mjs +2 -0
  88. package/dist/chunks/cli-1.1.5-3q931f2n.mjs +2 -0
  89. package/dist/chunks/cli-1.1.5-3wtxx0sm.mjs +133 -0
  90. package/dist/chunks/cli-1.1.5-3xf010sx.mjs +4 -0
  91. package/dist/chunks/cli-1.1.5-3zc9bseg.mjs +6 -0
  92. package/dist/chunks/cli-1.1.5-3zpkftsv.mjs +2 -0
  93. package/dist/chunks/cli-1.1.5-43ng5pm1.mjs +3 -0
  94. package/dist/chunks/cli-1.1.5-43y030nv.mjs +2 -0
  95. package/dist/chunks/cli-1.1.5-46qvwkna.mjs +12 -0
  96. package/dist/chunks/cli-1.1.5-4gt9am76.mjs +2 -0
  97. package/dist/chunks/cli-1.1.5-4w21hywc.mjs +34 -0
  98. package/dist/chunks/cli-1.1.5-4xh64wf2.mjs +2 -0
  99. package/dist/chunks/cli-1.1.5-4zdp08yw.mjs +2 -0
  100. package/dist/chunks/cli-1.1.5-50vh2xqs.mjs +2 -0
  101. package/dist/chunks/cli-1.1.5-54qyvbmc.mjs +2 -0
  102. package/dist/chunks/cli-1.1.5-5973nce5.mjs +2 -0
  103. package/dist/chunks/cli-1.1.5-5pmp4wy1.mjs +2 -0
  104. package/dist/chunks/cli-1.1.5-5rsae1r8.mjs +2 -0
  105. package/dist/chunks/cli-1.1.5-600z85n1.mjs +18 -0
  106. package/dist/chunks/cli-1.1.5-60cafcfa.mjs +2 -0
  107. package/dist/chunks/cli-1.1.5-62ntg4mw.mjs +2 -0
  108. package/dist/chunks/cli-1.1.5-6cxs0npd.mjs +25 -0
  109. package/dist/chunks/cli-1.1.5-6dmtdkjb.mjs +3 -0
  110. package/dist/chunks/cli-1.1.5-6s77vhbn.mjs +2 -0
  111. package/dist/chunks/cli-1.1.5-6yjhrk9v.mjs +2 -0
  112. package/dist/chunks/cli-1.1.5-6zgcprsm.mjs +4 -0
  113. package/dist/chunks/cli-1.1.5-74d8s15n.mjs +20 -0
  114. package/dist/chunks/cli-1.1.5-7fh6xvxr.mjs +24 -0
  115. package/dist/chunks/cli-1.1.5-7fnn4cxx.mjs +2 -0
  116. package/dist/chunks/cli-1.1.5-7fr21xne.mjs +2 -0
  117. package/dist/chunks/cli-1.1.5-7rnam3pn.mjs +2 -0
  118. package/dist/chunks/cli-1.1.5-7x24fkdt.mjs +2 -0
  119. package/dist/chunks/cli-1.1.5-81ek1hnd.mjs +7 -0
  120. package/dist/chunks/cli-1.1.5-8nkgdwbz.mjs +2 -0
  121. package/dist/chunks/cli-1.1.5-8sm7bn8y.mjs +2 -0
  122. package/dist/chunks/cli-1.1.5-8y8kwrpv.mjs +50 -0
  123. package/dist/chunks/cli-1.1.5-8z6nvxgy.mjs +2 -0
  124. package/dist/chunks/cli-1.1.5-91h2qx3w.mjs +4 -0
  125. package/dist/chunks/cli-1.1.5-97sv1sx5.mjs +2 -0
  126. package/dist/chunks/cli-1.1.5-9d2hd2n0.mjs +2 -0
  127. package/dist/chunks/cli-1.1.5-9eg1em3k.mjs +4 -0
  128. package/dist/chunks/cli-1.1.5-9myk8nsj.mjs +2 -0
  129. package/dist/chunks/cli-1.1.5-9p1q31nx.mjs +2 -0
  130. package/dist/chunks/cli-1.1.5-9pjr2mxf.mjs +5 -0
  131. package/dist/chunks/cli-1.1.5-9q40r2jj.mjs +59 -0
  132. package/dist/chunks/cli-1.1.5-9s6mqtv8.mjs +3 -0
  133. package/dist/chunks/cli-1.1.5-a41pf5rk.mjs +2 -0
  134. package/dist/chunks/cli-1.1.5-am2yr9em.mjs +2 -0
  135. package/dist/chunks/cli-1.1.5-ay6eds7m.mjs +6 -0
  136. package/dist/chunks/cli-1.1.5-azgr9ksh.mjs +45 -0
  137. package/dist/chunks/cli-1.1.5-ba4n22ph.mjs +2 -0
  138. package/dist/chunks/cli-1.1.5-bcgy5mbp.mjs +5649 -0
  139. package/dist/chunks/cli-1.1.5-bh2pjxv2.mjs +12 -0
  140. package/dist/chunks/cli-1.1.5-brfx4pre.mjs +3 -0
  141. package/dist/chunks/cli-1.1.5-bs0hzzxt.mjs +2 -0
  142. package/dist/chunks/cli-1.1.5-c5wk6r1v.mjs +2 -0
  143. package/dist/chunks/cli-1.1.5-cbafqtmk.mjs +2 -0
  144. package/dist/chunks/cli-1.1.5-cy7bp5f8.mjs +2 -0
  145. package/dist/chunks/cli-1.1.5-d60etcng.mjs +2 -0
  146. package/dist/chunks/cli-1.1.5-dbfj54qv.mjs +4 -0
  147. package/dist/chunks/cli-1.1.5-denrjjr8.mjs +2 -0
  148. package/dist/chunks/cli-1.1.5-djfg6qcy.mjs +4 -0
  149. package/dist/chunks/cli-1.1.5-dknh0wry.mjs +2 -0
  150. package/dist/chunks/cli-1.1.5-dmgep5pw.mjs +15 -0
  151. package/dist/chunks/cli-1.1.5-dpwkjrhv.mjs +2 -0
  152. package/dist/chunks/cli-1.1.5-dv98e0wx.mjs +17 -0
  153. package/dist/chunks/cli-1.1.5-dvzmss5c.mjs +12 -0
  154. package/dist/chunks/cli-1.1.5-e51n4cww.mjs +2 -0
  155. package/dist/chunks/cli-1.1.5-ecxx0wpb.mjs +2 -0
  156. package/dist/chunks/cli-1.1.5-eg17f7k7.mjs +2 -0
  157. package/dist/chunks/cli-1.1.5-ehbpt4w6.mjs +2 -0
  158. package/dist/chunks/cli-1.1.5-epjw98jw.mjs +3 -0
  159. package/dist/chunks/cli-1.1.5-ez9ctahf.mjs +133 -0
  160. package/dist/chunks/cli-1.1.5-fqwwgfme.mjs +21 -0
  161. package/dist/chunks/cli-1.1.5-fr76ha7s.mjs +2 -0
  162. package/dist/chunks/cli-1.1.5-g04gzz34.mjs +2 -0
  163. package/dist/chunks/cli-1.1.5-g5gyt5h8.mjs +2 -0
  164. package/dist/chunks/cli-1.1.5-gm4ptwx4.mjs +2 -0
  165. package/dist/chunks/cli-1.1.5-gr7dgsaq.mjs +2 -0
  166. package/dist/chunks/cli-1.1.5-gsmrbqh1.mjs +2 -0
  167. package/dist/chunks/cli-1.1.5-gwt7szsh.mjs +2 -0
  168. package/dist/chunks/cli-1.1.5-h1w0v5x0.mjs +2 -0
  169. package/dist/chunks/cli-1.1.5-h5k7t8m7.mjs +8 -0
  170. package/dist/chunks/cli-1.1.5-hs02jchx.mjs +2 -0
  171. package/dist/chunks/cli-1.1.5-j298304z.mjs +2 -0
  172. package/dist/chunks/cli-1.1.5-j5g040vf.mjs +2 -0
  173. package/dist/chunks/cli-1.1.5-jknqq4v0.mjs +2 -0
  174. package/dist/chunks/cli-1.1.5-jq32vtrb.mjs +58 -0
  175. package/dist/chunks/cli-1.1.5-jqef0dgk.mjs +42 -0
  176. package/dist/chunks/cli-1.1.5-k0y1mt50.mjs +4 -0
  177. package/dist/chunks/cli-1.1.5-k7zeqxym.mjs +9 -0
  178. package/dist/chunks/cli-1.1.5-kbpaxqg8.mjs +2 -0
  179. package/dist/chunks/cli-1.1.5-kc9qhatt.mjs +18 -0
  180. package/dist/chunks/cli-1.1.5-kdxm5m52.mjs +2 -0
  181. package/dist/chunks/cli-1.1.5-keef1hq8.mjs +2 -0
  182. package/dist/chunks/cli-1.1.5-khj9bq82.mjs +3 -0
  183. package/dist/chunks/cli-1.1.5-kq8vk6pv.mjs +2 -0
  184. package/dist/chunks/cli-1.1.5-ks2gq7tg.mjs +2 -0
  185. package/dist/chunks/cli-1.1.5-kzdgyb0j.mjs +3 -0
  186. package/dist/chunks/cli-1.1.5-m78s0fnh.mjs +2 -0
  187. package/dist/chunks/cli-1.1.5-mrwhx936.mjs +15 -0
  188. package/dist/chunks/cli-1.1.5-mx0yvg1w.mjs +2 -0
  189. package/dist/chunks/cli-1.1.5-mzxdmdxn.mjs +2 -0
  190. package/dist/chunks/cli-1.1.5-n4xgjbwe.mjs +2 -0
  191. package/dist/chunks/cli-1.1.5-n6wx6zn2.mjs +2 -0
  192. package/dist/chunks/cli-1.1.5-nkhse0vg.mjs +67 -0
  193. package/dist/chunks/cli-1.1.5-nvf47p1p.mjs +12 -0
  194. package/dist/chunks/cli-1.1.5-p76ywbdf.mjs +2 -0
  195. package/dist/chunks/cli-1.1.5-pthrjd43.mjs +2 -0
  196. package/dist/chunks/cli-1.1.5-q2x467jp.mjs +6 -0
  197. package/dist/chunks/cli-1.1.5-qdha9akj.mjs +2 -0
  198. package/dist/chunks/cli-1.1.5-qg67v24h.mjs +2 -0
  199. package/dist/chunks/cli-1.1.5-qxvbnypq.mjs +2 -0
  200. package/dist/chunks/cli-1.1.5-qypb27cc.mjs +2 -0
  201. package/dist/chunks/cli-1.1.5-r152533n.mjs +2 -0
  202. package/dist/chunks/cli-1.1.5-r43zh250.mjs +3 -0
  203. package/dist/chunks/cli-1.1.5-ra53k7hj.mjs +39 -0
  204. package/dist/chunks/cli-1.1.5-rah577er.mjs +2 -0
  205. package/dist/chunks/cli-1.1.5-rc2g2735.mjs +2 -0
  206. package/dist/chunks/cli-1.1.5-rdfya3vt.mjs +2 -0
  207. package/dist/chunks/cli-1.1.5-rqvgas0b.mjs +2 -0
  208. package/dist/chunks/cli-1.1.5-rqw75dc4.mjs +2 -0
  209. package/dist/chunks/cli-1.1.5-rwv58vt9.mjs +2 -0
  210. package/dist/chunks/cli-1.1.5-s0cez7yn.mjs +2 -0
  211. package/dist/chunks/cli-1.1.5-sc49xm3j.mjs +2 -0
  212. package/dist/chunks/cli-1.1.5-sf5x5qyd.mjs +2 -0
  213. package/dist/chunks/cli-1.1.5-sfnf38sj.mjs +2 -0
  214. package/dist/chunks/cli-1.1.5-sm03z8tn.mjs +4 -0
  215. package/dist/chunks/cli-1.1.5-srf8k7x8.mjs +2 -0
  216. package/dist/chunks/cli-1.1.5-stcmqfnq.mjs +2 -0
  217. package/dist/chunks/cli-1.1.5-sxj5bjbt.mjs +24 -0
  218. package/dist/chunks/cli-1.1.5-syhvsvgh.mjs +2 -0
  219. package/dist/chunks/cli-1.1.5-szzwagmb.mjs +1 -0
  220. package/dist/chunks/cli-1.1.5-t4gteprn.mjs +2 -0
  221. package/dist/chunks/cli-1.1.5-t9j8c92k.mjs +2 -0
  222. package/dist/chunks/cli-1.1.5-tae4w5sa.mjs +2 -0
  223. package/dist/chunks/cli-1.1.5-tbr6vnhr.mjs +2 -0
  224. package/dist/chunks/cli-1.1.5-ttm2crpm.mjs +2 -0
  225. package/dist/chunks/cli-1.1.5-v9a6fbsq.mjs +202 -0
  226. package/dist/chunks/cli-1.1.5-va6jtxjw.mjs +2 -0
  227. package/dist/chunks/cli-1.1.5-vnrym8w3.mjs +2 -0
  228. package/dist/chunks/cli-1.1.5-vrkwrr2h.mjs +2 -0
  229. package/dist/chunks/cli-1.1.5-w81t9aj2.mjs +3 -0
  230. package/dist/chunks/cli-1.1.5-weseckxt.mjs +2 -0
  231. package/dist/chunks/cli-1.1.5-wv8954rf.mjs +2 -0
  232. package/dist/chunks/cli-1.1.5-x7xwtg60.mjs +25 -0
  233. package/dist/chunks/cli-1.1.5-x8h674be.mjs +2 -0
  234. package/dist/chunks/cli-1.1.5-x8r6zvjf.mjs +2 -0
  235. package/dist/chunks/cli-1.1.5-xd8qwq5t.mjs +4 -0
  236. package/dist/chunks/cli-1.1.5-xm9scgfb.mjs +6 -0
  237. package/dist/chunks/cli-1.1.5-xn9p8nks.mjs +2 -0
  238. package/dist/chunks/cli-1.1.5-xzxcvrkj.mjs +18 -0
  239. package/dist/chunks/cli-1.1.5-y2bqj565.mjs +2 -0
  240. package/dist/chunks/cli-1.1.5-y39w08qk.mjs +16 -0
  241. package/dist/chunks/cli-1.1.5-y3cdh5em.mjs +2 -0
  242. package/dist/chunks/cli-1.1.5-y3dcmn9x.mjs +2 -0
  243. package/dist/chunks/cli-1.1.5-y489qfqe.mjs +2 -0
  244. package/dist/chunks/cli-1.1.5-y72dp044.mjs +2 -0
  245. package/dist/chunks/cli-1.1.5-y8301wby.mjs +2 -0
  246. package/dist/chunks/cli-1.1.5-y9z2ea67.mjs +3 -0
  247. package/dist/chunks/cli-1.1.5-ybhszeme.mjs +6 -0
  248. package/dist/chunks/cli-1.1.5-yhnfdcpq.mjs +2 -0
  249. package/dist/chunks/cli-1.1.5-yprjw8c0.mjs +2 -0
  250. package/dist/chunks/cli-1.1.5-ysgr8ehw.mjs +2 -0
  251. package/dist/chunks/cli-1.1.5-za0gqhad.mjs +2 -0
  252. package/dist/chunks/cli-1.1.5-za286hep.mjs +2 -0
  253. package/dist/chunks/cli-1.1.5-zaqz0p2z.mjs +2 -0
  254. package/dist/chunks/cli-1.1.5-zf1qpy4s.mjs +5 -0
  255. package/dist/chunks/cli-1.1.5-zfdptz6e.mjs +2 -0
  256. package/dist/chunks/cli-1.1.5-zhrqhz6k.mjs +2 -0
  257. package/dist/chunks/cli-1.1.5-znkch0ha.mjs +2 -0
  258. package/dist/chunks/cli-1.1.5-zp9z6jbr.mjs +4 -0
  259. package/dist/chunks/cli-1.1.5-zqf5btpq.mjs +2 -0
  260. package/dist/chunks/client-1.1.5-b7jy0ghd.mjs +1 -0
  261. package/dist/chunks/color-1.1.5-6y847zdb.mjs +1 -0
  262. package/dist/chunks/compact-1.1.5-qeq8t2tr.mjs +3 -0
  263. package/dist/chunks/config-1.1.5-80m4yf0n.mjs +1 -0
  264. package/dist/chunks/config-1.1.5-k42c66af.mjs +1 -0
  265. package/dist/chunks/constants-1.1.5-j7wq8kbt.mjs +1 -0
  266. package/dist/chunks/context-1.1.5-yg5tzb6e.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.5-x9avg7mv.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.5-26nfjzvp.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.5-r1ppkqcb.mjs +1 -0
  270. package/dist/chunks/copy-1.1.5-ca7qm1hb.mjs +9 -0
  271. package/dist/chunks/cost-1.1.5-78gr4gxd.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.5-kqscm0vz.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.5-p3sakr7e.mjs +1 -0
  274. package/dist/chunks/debug-1.1.5-p8srxkzw.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.5-eyhb0fk5.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.5-5grfbqvk.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.5-bwa3vtz3.mjs +1 -0
  278. package/dist/chunks/detection-1.1.5-vt7wfg5r.mjs +1 -0
  279. package/dist/chunks/diff-1.1.5-s3pxjw5c.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.5-4wbxz46k.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.5-kr5t2280.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.5-skyzxj8w.mjs +1 -0
  283. package/dist/chunks/effort-1.1.5-s9va7gy4.mjs +13 -0
  284. package/dist/chunks/engine-1.1.5-wx72h5z7.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.5-tpxb4pq7.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.5-6e5wrnvd.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.5-3mw0z7qc.mjs +1 -0
  288. package/dist/chunks/environments-1.1.5-m3j75h8p.mjs +1 -0
  289. package/dist/chunks/errors-1.1.5-nq9vsksc.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.5-q9e08k2w.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.5-dydczmz0.mjs +1 -0
  292. package/dist/chunks/exit-1.1.5-5h9189tx.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.5-wqz086gd.mjs +1 -0
  294. package/dist/chunks/export-1.1.5-1k3wgj33.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.5-06tk7xa5.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.5-xjjt7q6e.mjs +1 -0
  297. package/dist/chunks/fast-1.1.5-we1vtmqs.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.5-pkxyr6az.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.5-px4bh3ss.mjs +1 -0
  300. package/dist/chunks/git-1.1.5-g821etp0.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.5-jbdn9dvv.mjs +1 -0
  302. package/dist/chunks/goal-1.1.5-ysbtt444.mjs +4 -0
  303. package/dist/chunks/grove-1.1.5-mhavkgtj.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.5-dm9d5fyr.mjs +1 -0
  305. package/dist/chunks/headless-1.1.5-2a7gvzd4.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.5-mwggejz6.mjs +6 -0
  307. package/dist/chunks/help-1.1.5-7dqcztc7.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.5-cmdxm1q5.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.5-07j88vdd.mjs +1 -0
  310. package/dist/chunks/hooks-1.1.5-cf4zytg3.mjs +79 -0
  311. package/dist/chunks/ide-1.1.5-gqbtkqh9.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.5-xdg4a2re.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.5-mmme8bgb.mjs +1 -0
  314. package/dist/chunks/index-1.1.5-0e8nxkr5.mjs +1 -0
  315. package/dist/chunks/index-1.1.5-2psfav1z.mjs +1 -0
  316. package/dist/chunks/index-1.1.5-31yhmzz8.mjs +30 -0
  317. package/dist/chunks/index-1.1.5-7xbjb6c2.mjs +1 -0
  318. package/dist/chunks/index-1.1.5-8gbjp6gm.mjs +1 -0
  319. package/dist/chunks/index-1.1.5-9qaxnf95.mjs +9 -0
  320. package/dist/chunks/index-1.1.5-d80m9w2r.mjs +1 -0
  321. package/dist/chunks/index-1.1.5-dd9v93f3.mjs +1 -0
  322. package/dist/chunks/index-1.1.5-f15v7ehp.mjs +2 -0
  323. package/dist/chunks/index-1.1.5-gtcrsq6a.mjs +1 -0
  324. package/dist/chunks/index-1.1.5-k2mjk2hh.mjs +1 -0
  325. package/dist/chunks/index-1.1.5-k56wbbcc.mjs +1 -0
  326. package/dist/chunks/index-1.1.5-m8h0gt4v.mjs +5 -0
  327. package/dist/chunks/index-1.1.5-pc824vej.mjs +17 -0
  328. package/dist/chunks/index-1.1.5-r9dx3d9c.mjs +9 -0
  329. package/dist/chunks/index-1.1.5-rfsmfb7z.mjs +1 -0
  330. package/dist/chunks/index-1.1.5-skqdqj9f.mjs +1 -0
  331. package/dist/chunks/index-1.1.5-t75dn8we.mjs +1 -0
  332. package/dist/chunks/index-1.1.5-tje0j1qr.mjs +1 -0
  333. package/dist/chunks/index-1.1.5-vacssesj.mjs +1 -0
  334. package/dist/chunks/index-1.1.5-wypaz2jv.mjs +2 -0
  335. package/dist/chunks/index-1.1.5-z8sj89fp.mjs +1 -0
  336. package/dist/chunks/index-1.1.5-zw1sqbsw.mjs +1 -0
  337. package/dist/chunks/init-1.1.5-9n4y6y9n.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.5-9vj405en.mjs +1 -0
  339. package/dist/chunks/ink-1.1.5-vzb2fpxv.mjs +1 -0
  340. package/dist/chunks/insights-1.1.5-wfvxz2j9.mjs +870 -0
  341. package/dist/chunks/install-1.1.5-zxa0xtc5.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.5-gjkvtpss.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.5-cn8k75hh.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.5-ra2c7a9w.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.5-hc7k117d.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.5-pvq5zpgs.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.5-04xy0wqx.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.5-q0n7h96f.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.5-x8j4b3r6.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.5-2f77cnnd.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.5-r82hvbrr.mjs +1 -0
  352. package/dist/chunks/log-1.1.5-bq8jjtaf.mjs +1 -0
  353. package/dist/chunks/main-1.1.5-g2ptyrq9.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.5-rhwtthhc.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.5-3kpff1y9.mjs +4 -0
  356. package/dist/chunks/mcp-1.1.5-7w7pv5qr.mjs +17 -0
  357. package/dist/chunks/mcp-1.1.5-qdck46bh.mjs +1 -0
  358. package/dist/chunks/mcpb-1.1.5-s6qaatsk.mjs +1 -0
  359. package/dist/chunks/memory-1.1.5-sahcfrfk.mjs +72 -0
  360. package/dist/chunks/model-1.1.5-fyw5q2ag.mjs +1 -0
  361. package/dist/chunks/model-1.1.5-q7rv0mjx.mjs +2 -0
  362. package/dist/chunks/node-1.1.5-mpnx0eww.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.5-3j8hpr8a.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.5-3gwkgyz6.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.5-zmb3q1dm.mjs +1 -0
  366. package/dist/chunks/package-2VNCXFNY-1.1.5-c28vg45a.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.5-5m4axefq.mjs +1 -0
  368. package/dist/chunks/parser-1.1.5-z6sbh7rn.mjs +1 -0
  369. package/dist/chunks/passes-1.1.5-5wv8397q.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.5-4j98y6ey.mjs +1 -0
  371. package/dist/chunks/permissions-1.1.5-rg816dk9.mjs +3 -0
  372. package/dist/chunks/plan-1.1.5-5ta24jg9.mjs +1 -0
  373. package/dist/chunks/plist-1.1.5-g61dbe0t.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.5-qpm7s8qr.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.5-mrx0c0tk.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.5-sqsfnz52.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.5-97bkr9c6.mjs +2 -0
  378. package/dist/chunks/print-1.1.5-dmhsr0z8.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.5-m80j4n8y.mjs +1 -0
  380. package/dist/chunks/process-1.1.5-wgen5xeq.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.5-kbtffj67.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.5-e9gs2skb.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.5-nze4mgb1.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.5-rt3khqxe.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.5-n7j717c7.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.5-t2gwfb5r.mjs +13 -0
  387. package/dist/chunks/provider-1.1.5-frpk8g8n.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.5-73fdzmet.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.5-jgwkyrde.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.5-r2g52qq0.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.5-7a3c8p1r.mjs +34 -0
  392. package/dist/chunks/registry-1.1.5-ez5tf749.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.5-3s2ydgkr.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.5-ewy48323.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.5-fjnn4w8w.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.5-dykd344q.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.5-zh3f0taa.mjs +1 -0
  398. package/dist/chunks/rename-1.1.5-87w96zgn.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.5-k6qqd6n9.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.5-f5be34k2.mjs +1 -0
  401. package/dist/chunks/resume-1.1.5-6m8daxjc.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.5-h0p52671.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.5-vwgeptzg.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.5-rq7nrfys.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.5-v44d4c8t.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.5-1p7ft47t.mjs +1 -0
  407. package/dist/chunks/session-1.1.5-z13kjbfr.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.5-ay13sxfh.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.5-657ppg5q.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.5-6wbgfrx2.mjs +1 -0
  411. package/dist/chunks/settings-1.1.5-trqwe36q.mjs +1 -0
  412. package/dist/chunks/setup-1.1.5-36qva9ce.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.5-xrb884av.mjs +1 -0
  414. package/dist/chunks/skills-1.1.5-fx5xev0z.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.5-4srbezwa.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.5-z783f2gh.mjs +1 -0
  417. package/dist/chunks/state-1.1.5-emwaw100.mjs +1 -0
  418. package/dist/chunks/stats-1.1.5-yq9rd0vh.mjs +6 -0
  419. package/dist/chunks/status-1.1.5-3z0rsyyn.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.5-svtd2cf2.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.5-s8t729hb.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.5-7xtpdxmb.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.5-3f13a139.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.5-mppw7mas.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.5-kcw56shc.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.5-775nwnpp.mjs +1 -0
  427. package/dist/chunks/theme-1.1.5-05qfpzcq.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.5-w56d1tpy.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.5-316nwkk0.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.5-q7fh21qp.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.5-y8qqtj5g.mjs +1 -0
  432. package/dist/chunks/tools-1.1.5-z7xa3j7q.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.5-b691w8cr.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.5-37sae4sj.mjs +69 -0
  435. package/dist/chunks/types-1.1.5-2g1j2fq0.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.5-0c9fawfn.mjs +4 -0
  437. package/dist/chunks/update-1.1.5-xd9ws9t3.mjs +72 -0
  438. package/dist/chunks/upgrade-1.1.5-534zzem5.mjs +1 -0
  439. package/dist/chunks/upload-1.1.5-c4826hfz.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.5-7zb7f97v.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.5-0vy3dhf8.mjs +1 -0
  442. package/dist/chunks/usage-1.1.5-xc1ksj33.mjs +1 -0
  443. package/dist/chunks/util-1.1.5-fx75rnha.mjs +1 -0
  444. package/dist/chunks/utils-1.1.5-1fxys2da.mjs +1 -0
  445. package/dist/chunks/vim-1.1.5-p9apxkqt.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.5-s6ntndn2.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.5-vsvwk41x.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.5-9egxgqaa.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.5-rgerb51y.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.5-9byj3hpm.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.5-abb9xdvs.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.5-tad03vhy.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.1.3-yxsndsyn.mjs +0 -1
  456. package/dist/chunks/App-1.1.3-se36kt2q.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.1.3-5jxsmx40.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.1.3-7bjbdd37.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.1.3-3vs1q0ta.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.1.3-p08x7sv8.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.3-gyv29cn4.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.1.3-6ka5hf2k.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.1.3-1wejx4tn.mjs +0 -7
  464. package/dist/chunks/Doctor-1.1.3-0ccnyend.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.1.3-jspvqy7q.mjs +0 -6
  466. package/dist/chunks/Grove-1.1.3-wvxs1xk4.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.1.3-5cr9f3wk.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.1.3-yy0jqsbj.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.1.3-2pqy4mte.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.1.3-781zj4fa.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.1.3-a5n3c2kk.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.1.3-vbk4qqdv.mjs +0 -1
  473. package/dist/chunks/REPL-1.1.3-c8ng1hcs.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.1.3-67axvmvd.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.1.3-84q4vb17.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.1.3-hthcjsxf.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.1.3-af7j2gjm.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.1.3-q0n84g2v.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.1.3-dvsnx3eq.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.1.3-376a028q.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.1.3-01rkjtmv.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.1.3-ppxd3mj8.mjs +0 -1
  483. package/dist/chunks/add-dir-1.1.3-z1vd7ra4.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.1.3-w924n1yy.mjs +0 -1
  485. package/dist/chunks/agents-1.1.3-5atkby3f.mjs +0 -110
  486. package/dist/chunks/agents-1.1.3-mjqamerj.mjs +0 -3
  487. package/dist/chunks/api-1.1.3-1s5dk2h7.mjs +0 -1
  488. package/dist/chunks/asciicast-1.1.3-exg42b9c.mjs +0 -1
  489. package/dist/chunks/assistant-1.1.3-sdwgcm2q.mjs +0 -1
  490. package/dist/chunks/auth-1.1.3-g5e9e91f.mjs +0 -1
  491. package/dist/chunks/auth-1.1.3-jqasmv33.mjs +0 -1
  492. package/dist/chunks/autoMode-1.1.3-tjgwmrj8.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.1.3-r3vs5bsn.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.1.3-k14x3rw1.mjs +0 -1
  495. package/dist/chunks/branch-1.1.3-42at4fgy.mjs +0 -4
  496. package/dist/chunks/bridge-1.1.3-02wgv1mq.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.1.3-pz9qyfzz.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.1.3-e833e9ca.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.1.3-aqjdgpdy.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.1.3-b3hwkb6e.mjs +0 -1
  501. package/dist/chunks/btw-1.1.3-3q7kvnj8.mjs +0 -1
  502. package/dist/chunks/buddy-1.1.3-mxnf2f34.mjs +0 -3
  503. package/dist/chunks/cacache-1.1.3-rxz1pgwz.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.1.3-ey8g5sks.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.3-mwmp8as6.mjs +0 -4
  506. package/dist/chunks/caches-1.1.3-zwf2m9j5.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.3-v480vs32.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.3-aspbzmhd.mjs +0 -1
  509. package/dist/chunks/clear-1.1.3-9apn4h2w.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.3-jbzj4fvw.mjs +0 -1
  511. package/dist/chunks/cli-1.1.3-01ceyj4y.mjs +0 -45
  512. package/dist/chunks/cli-1.1.3-01phj35m.mjs +0 -25
  513. package/dist/chunks/cli-1.1.3-07ap3q60.mjs +0 -2
  514. package/dist/chunks/cli-1.1.3-0cbh861c.mjs +0 -9
  515. package/dist/chunks/cli-1.1.3-0cq4713y.mjs +0 -2
  516. package/dist/chunks/cli-1.1.3-0p8krrf1.mjs +0 -2
  517. package/dist/chunks/cli-1.1.3-1ey46s2h.mjs +0 -3
  518. package/dist/chunks/cli-1.1.3-1krr9n6p.mjs +0 -4
  519. package/dist/chunks/cli-1.1.3-1m40cjft.mjs +0 -2
  520. package/dist/chunks/cli-1.1.3-1vw4gdpc.mjs +0 -3
  521. package/dist/chunks/cli-1.1.3-1zv90s1n.mjs +0 -17
  522. package/dist/chunks/cli-1.1.3-25jbatj6.mjs +0 -2
  523. package/dist/chunks/cli-1.1.3-2at6mxpr.mjs +0 -2
  524. package/dist/chunks/cli-1.1.3-2nhp8krw.mjs +0 -2
  525. package/dist/chunks/cli-1.1.3-2pzwezgd.mjs +0 -2
  526. package/dist/chunks/cli-1.1.3-2whk95g7.mjs +0 -2
  527. package/dist/chunks/cli-1.1.3-35pxqjkd.mjs +0 -3
  528. package/dist/chunks/cli-1.1.3-35sq031q.mjs +0 -2
  529. package/dist/chunks/cli-1.1.3-3b1emj77.mjs +0 -2
  530. package/dist/chunks/cli-1.1.3-3ck9nde3.mjs +0 -4
  531. package/dist/chunks/cli-1.1.3-3cqnvz5q.mjs +0 -2
  532. package/dist/chunks/cli-1.1.3-3n4z9x5v.mjs +0 -2
  533. package/dist/chunks/cli-1.1.3-3v1pwmy8.mjs +0 -4
  534. package/dist/chunks/cli-1.1.3-3v7vzx20.mjs +0 -18
  535. package/dist/chunks/cli-1.1.3-3yaqqcdz.mjs +0 -25
  536. package/dist/chunks/cli-1.1.3-474ezzb0.mjs +0 -2
  537. package/dist/chunks/cli-1.1.3-4kjm8mzq.mjs +0 -1
  538. package/dist/chunks/cli-1.1.3-4qnt7xps.mjs +0 -6
  539. package/dist/chunks/cli-1.1.3-542yg99v.mjs +0 -3
  540. package/dist/chunks/cli-1.1.3-59xex268.mjs +0 -4
  541. package/dist/chunks/cli-1.1.3-5bkfd3vc.mjs +0 -2
  542. package/dist/chunks/cli-1.1.3-5g0d524n.mjs +0 -2
  543. package/dist/chunks/cli-1.1.3-5vqc0ws1.mjs +0 -2
  544. package/dist/chunks/cli-1.1.3-5zveqbgr.mjs +0 -2
  545. package/dist/chunks/cli-1.1.3-61cw0bsj.mjs +0 -2
  546. package/dist/chunks/cli-1.1.3-62xmen1t.mjs +0 -3
  547. package/dist/chunks/cli-1.1.3-6arxtxjd.mjs +0 -2
  548. package/dist/chunks/cli-1.1.3-6f17b1wv.mjs +0 -9
  549. package/dist/chunks/cli-1.1.3-6jpsfc7q.mjs +0 -2
  550. package/dist/chunks/cli-1.1.3-6kd24w49.mjs +0 -2
  551. package/dist/chunks/cli-1.1.3-6kse36ke.mjs +0 -2
  552. package/dist/chunks/cli-1.1.3-6qebqran.mjs +0 -4
  553. package/dist/chunks/cli-1.1.3-728j7hk7.mjs +0 -2
  554. package/dist/chunks/cli-1.1.3-754qsxzp.mjs +0 -2
  555. package/dist/chunks/cli-1.1.3-784k913c.mjs +0 -42
  556. package/dist/chunks/cli-1.1.3-794cnnf6.mjs +0 -2
  557. package/dist/chunks/cli-1.1.3-7a40xj94.mjs +0 -4
  558. package/dist/chunks/cli-1.1.3-7b34969p.mjs +0 -24
  559. package/dist/chunks/cli-1.1.3-7dbam07b.mjs +0 -2
  560. package/dist/chunks/cli-1.1.3-81p48g5s.mjs +0 -2
  561. package/dist/chunks/cli-1.1.3-88949m1z.mjs +0 -2
  562. package/dist/chunks/cli-1.1.3-8a7nh0f1.mjs +0 -2
  563. package/dist/chunks/cli-1.1.3-8aghq1w8.mjs +0 -2
  564. package/dist/chunks/cli-1.1.3-8cqhzz5c.mjs +0 -2
  565. package/dist/chunks/cli-1.1.3-8fdttrf4.mjs +0 -2
  566. package/dist/chunks/cli-1.1.3-8fxwqvfj.mjs +0 -3
  567. package/dist/chunks/cli-1.1.3-8mf46r85.mjs +0 -18
  568. package/dist/chunks/cli-1.1.3-93mxysb6.mjs +0 -2
  569. package/dist/chunks/cli-1.1.3-9a9bythm.mjs +0 -2
  570. package/dist/chunks/cli-1.1.3-9cvgj0zc.mjs +0 -2
  571. package/dist/chunks/cli-1.1.3-9dawtrvk.mjs +0 -2
  572. package/dist/chunks/cli-1.1.3-9zpwt3yw.mjs +0 -2
  573. package/dist/chunks/cli-1.1.3-9zvc4hsj.mjs +0 -2
  574. package/dist/chunks/cli-1.1.3-aby773wx.mjs +0 -2
  575. package/dist/chunks/cli-1.1.3-and2rzgx.mjs +0 -2
  576. package/dist/chunks/cli-1.1.3-atjv82jv.mjs +0 -2
  577. package/dist/chunks/cli-1.1.3-atp5y7j7.mjs +0 -2
  578. package/dist/chunks/cli-1.1.3-aw2b0yn9.mjs +0 -2
  579. package/dist/chunks/cli-1.1.3-b88x3k01.mjs +0 -2
  580. package/dist/chunks/cli-1.1.3-bbqwb2vd.mjs +0 -2
  581. package/dist/chunks/cli-1.1.3-bh5gftey.mjs +0 -12
  582. package/dist/chunks/cli-1.1.3-bkev2xdr.mjs +0 -2
  583. package/dist/chunks/cli-1.1.3-bp3q6zqx.mjs +0 -2
  584. package/dist/chunks/cli-1.1.3-bqn6026m.mjs +0 -39
  585. package/dist/chunks/cli-1.1.3-btgs6ac2.mjs +0 -2
  586. package/dist/chunks/cli-1.1.3-c06t4mva.mjs +0 -202
  587. package/dist/chunks/cli-1.1.3-c627h4he.mjs +0 -2
  588. package/dist/chunks/cli-1.1.3-c63ht2fx.mjs +0 -24
  589. package/dist/chunks/cli-1.1.3-c89bkw1j.mjs +0 -50
  590. package/dist/chunks/cli-1.1.3-cf6phy33.mjs +0 -4
  591. package/dist/chunks/cli-1.1.3-cfbvqt93.mjs +0 -2
  592. package/dist/chunks/cli-1.1.3-ckgtccms.mjs +0 -2
  593. package/dist/chunks/cli-1.1.3-cn4g4e3p.mjs +0 -2
  594. package/dist/chunks/cli-1.1.3-czckb3b7.mjs +0 -2
  595. package/dist/chunks/cli-1.1.3-d2q4t4ng.mjs +0 -2
  596. package/dist/chunks/cli-1.1.3-d2rfc4qe.mjs +0 -21
  597. package/dist/chunks/cli-1.1.3-d3ktet0r.mjs +0 -15
  598. package/dist/chunks/cli-1.1.3-d8scjpye.mjs +0 -2
  599. package/dist/chunks/cli-1.1.3-dab6k7an.mjs +0 -2
  600. package/dist/chunks/cli-1.1.3-db63qype.mjs +0 -2
  601. package/dist/chunks/cli-1.1.3-dgv6zkw4.mjs +0 -2
  602. package/dist/chunks/cli-1.1.3-dnk7vvb1.mjs +0 -3
  603. package/dist/chunks/cli-1.1.3-dnyndczq.mjs +0 -15
  604. package/dist/chunks/cli-1.1.3-e3jtz0sv.mjs +0 -2
  605. package/dist/chunks/cli-1.1.3-ehynfa14.mjs +0 -6
  606. package/dist/chunks/cli-1.1.3-ep77k52g.mjs +0 -2
  607. package/dist/chunks/cli-1.1.3-ezvsqkxt.mjs +0 -2
  608. package/dist/chunks/cli-1.1.3-f3b9x47a.mjs +0 -2
  609. package/dist/chunks/cli-1.1.3-f4y81bfm.mjs +0 -2
  610. package/dist/chunks/cli-1.1.3-ffhb6dgp.mjs +0 -2
  611. package/dist/chunks/cli-1.1.3-ffnbm5dy.mjs +0 -2
  612. package/dist/chunks/cli-1.1.3-ffxb379j.mjs +0 -2
  613. package/dist/chunks/cli-1.1.3-fg4s0rf2.mjs +0 -2
  614. package/dist/chunks/cli-1.1.3-fn3gz1mm.mjs +0 -2
  615. package/dist/chunks/cli-1.1.3-fwnvqcgg.mjs +0 -6
  616. package/dist/chunks/cli-1.1.3-g22t8964.mjs +0 -17
  617. package/dist/chunks/cli-1.1.3-gbtb2prg.mjs +0 -2
  618. package/dist/chunks/cli-1.1.3-gmkpq85h.mjs +0 -2
  619. package/dist/chunks/cli-1.1.3-gqvr1ctv.mjs +0 -2
  620. package/dist/chunks/cli-1.1.3-grr7gey9.mjs +0 -2
  621. package/dist/chunks/cli-1.1.3-gthp8mbw.mjs +0 -2
  622. package/dist/chunks/cli-1.1.3-h27e7q5x.mjs +0 -12
  623. package/dist/chunks/cli-1.1.3-h382pr6p.mjs +0 -2
  624. package/dist/chunks/cli-1.1.3-hb7g5y9p.mjs +0 -12
  625. package/dist/chunks/cli-1.1.3-hftwajch.mjs +0 -2
  626. package/dist/chunks/cli-1.1.3-hs9ck03n.mjs +0 -5639
  627. package/dist/chunks/cli-1.1.3-hw5kjqjr.mjs +0 -12
  628. package/dist/chunks/cli-1.1.3-hx22x48p.mjs +0 -2
  629. package/dist/chunks/cli-1.1.3-hx6z3g2t.mjs +0 -15
  630. package/dist/chunks/cli-1.1.3-hzettfd9.mjs +0 -2
  631. package/dist/chunks/cli-1.1.3-j0hxvf5w.mjs +0 -2
  632. package/dist/chunks/cli-1.1.3-jgpsz36y.mjs +0 -3
  633. package/dist/chunks/cli-1.1.3-jm2670xx.mjs +0 -3
  634. package/dist/chunks/cli-1.1.3-jsvyner6.mjs +0 -2
  635. package/dist/chunks/cli-1.1.3-jvgmswx0.mjs +0 -2
  636. package/dist/chunks/cli-1.1.3-jxcrr2k0.mjs +0 -2
  637. package/dist/chunks/cli-1.1.3-jz35kydf.mjs +0 -2
  638. package/dist/chunks/cli-1.1.3-k71pqbzv.mjs +0 -2
  639. package/dist/chunks/cli-1.1.3-kb2p4ces.mjs +0 -2
  640. package/dist/chunks/cli-1.1.3-kh7s1ptn.mjs +0 -59
  641. package/dist/chunks/cli-1.1.3-m0nv5m3n.mjs +0 -2
  642. package/dist/chunks/cli-1.1.3-m1drez65.mjs +0 -20
  643. package/dist/chunks/cli-1.1.3-maxd7q4j.mjs +0 -2
  644. package/dist/chunks/cli-1.1.3-mk0pqpe5.mjs +0 -2
  645. package/dist/chunks/cli-1.1.3-n4fjs3wh.mjs +0 -2
  646. package/dist/chunks/cli-1.1.3-n4sxmh0k.mjs +0 -3
  647. package/dist/chunks/cli-1.1.3-n69km65c.mjs +0 -2
  648. package/dist/chunks/cli-1.1.3-n94f70dw.mjs +0 -4
  649. package/dist/chunks/cli-1.1.3-nb6jng8k.mjs +0 -24
  650. package/dist/chunks/cli-1.1.3-neffpndz.mjs +0 -2
  651. package/dist/chunks/cli-1.1.3-nskz3j4r.mjs +0 -6
  652. package/dist/chunks/cli-1.1.3-nv18abf3.mjs +0 -2
  653. package/dist/chunks/cli-1.1.3-nwwtaht8.mjs +0 -3
  654. package/dist/chunks/cli-1.1.3-p96mn5e3.mjs +0 -4
  655. package/dist/chunks/cli-1.1.3-pfyraqmy.mjs +0 -2
  656. package/dist/chunks/cli-1.1.3-pmd2p2dk.mjs +0 -2
  657. package/dist/chunks/cli-1.1.3-q419ra7q.mjs +0 -2
  658. package/dist/chunks/cli-1.1.3-qffw70jy.mjs +0 -2
  659. package/dist/chunks/cli-1.1.3-qhw7mafg.mjs +0 -2
  660. package/dist/chunks/cli-1.1.3-r8hnm5n8.mjs +0 -2
  661. package/dist/chunks/cli-1.1.3-r9m8cyrc.mjs +0 -2
  662. package/dist/chunks/cli-1.1.3-ramkctnw.mjs +0 -58
  663. package/dist/chunks/cli-1.1.3-rkx4c6ey.mjs +0 -2
  664. package/dist/chunks/cli-1.1.3-rneam354.mjs +0 -2
  665. package/dist/chunks/cli-1.1.3-s1ttygbf.mjs +0 -67
  666. package/dist/chunks/cli-1.1.3-sc9bm6f1.mjs +0 -2
  667. package/dist/chunks/cli-1.1.3-scnwb2jp.mjs +0 -2
  668. package/dist/chunks/cli-1.1.3-sfy0pdyx.mjs +0 -2
  669. package/dist/chunks/cli-1.1.3-sjkaxzsp.mjs +0 -2
  670. package/dist/chunks/cli-1.1.3-sk7xsym3.mjs +0 -2
  671. package/dist/chunks/cli-1.1.3-skvx9y6v.mjs +0 -2
  672. package/dist/chunks/cli-1.1.3-sp010xtk.mjs +0 -2
  673. package/dist/chunks/cli-1.1.3-spxtmdrr.mjs +0 -2
  674. package/dist/chunks/cli-1.1.3-ssgr0hah.mjs +0 -2
  675. package/dist/chunks/cli-1.1.3-swhwjey8.mjs +0 -4
  676. package/dist/chunks/cli-1.1.3-t15g5zbq.mjs +0 -2
  677. package/dist/chunks/cli-1.1.3-t2tn9dft.mjs +0 -2
  678. package/dist/chunks/cli-1.1.3-t847whez.mjs +0 -2
  679. package/dist/chunks/cli-1.1.3-t9f7yqmm.mjs +0 -2
  680. package/dist/chunks/cli-1.1.3-tbnf15hh.mjs +0 -2
  681. package/dist/chunks/cli-1.1.3-trr6cmmr.mjs +0 -2
  682. package/dist/chunks/cli-1.1.3-v2tjwmbp.mjs +0 -5
  683. package/dist/chunks/cli-1.1.3-v32wjr75.mjs +0 -5
  684. package/dist/chunks/cli-1.1.3-v35td7vm.mjs +0 -2
  685. package/dist/chunks/cli-1.1.3-v5ceeb5d.mjs +0 -6
  686. package/dist/chunks/cli-1.1.3-vbsx7ezp.mjs +0 -7
  687. package/dist/chunks/cli-1.1.3-vmmx1en5.mjs +0 -2
  688. package/dist/chunks/cli-1.1.3-vnwxm9wr.mjs +0 -2
  689. package/dist/chunks/cli-1.1.3-vy745mt9.mjs +0 -2
  690. package/dist/chunks/cli-1.1.3-w64jkj6r.mjs +0 -2
  691. package/dist/chunks/cli-1.1.3-wb3qve9j.mjs +0 -2
  692. package/dist/chunks/cli-1.1.3-wd2xqmmr.mjs +0 -2
  693. package/dist/chunks/cli-1.1.3-wnmbr0xp.mjs +0 -2
  694. package/dist/chunks/cli-1.1.3-wpkhmx2n.mjs +0 -34
  695. package/dist/chunks/cli-1.1.3-wrfkmhf7.mjs +0 -2
  696. package/dist/chunks/cli-1.1.3-x42n0xaw.mjs +0 -133
  697. package/dist/chunks/cli-1.1.3-x86k4av4.mjs +0 -2
  698. package/dist/chunks/cli-1.1.3-xdkzmwps.mjs +0 -4
  699. package/dist/chunks/cli-1.1.3-xdx3kmb4.mjs +0 -2
  700. package/dist/chunks/cli-1.1.3-xkvherr0.mjs +0 -2
  701. package/dist/chunks/cli-1.1.3-xs1sydv3.mjs +0 -2
  702. package/dist/chunks/cli-1.1.3-xvbcvemx.mjs +0 -18
  703. package/dist/chunks/cli-1.1.3-xwh6kwee.mjs +0 -2
  704. package/dist/chunks/cli-1.1.3-y50zzrst.mjs +0 -3
  705. package/dist/chunks/cli-1.1.3-yaa47h2d.mjs +0 -2
  706. package/dist/chunks/cli-1.1.3-ymajywr8.mjs +0 -2
  707. package/dist/chunks/cli-1.1.3-yxab9ewb.mjs +0 -2
  708. package/dist/chunks/cli-1.1.3-z2zjezjw.mjs +0 -2
  709. package/dist/chunks/cli-1.1.3-z57276ym.mjs +0 -8
  710. package/dist/chunks/cli-1.1.3-zdr6e0yt.mjs +0 -2
  711. package/dist/chunks/cli-1.1.3-zg0yshsb.mjs +0 -16
  712. package/dist/chunks/cli-1.1.3-zpzzcahe.mjs +0 -133
  713. package/dist/chunks/cli-1.1.3-zw8vt024.mjs +0 -2
  714. package/dist/chunks/client-1.1.3-xm226xj6.mjs +0 -1
  715. package/dist/chunks/color-1.1.3-8ab65cjs.mjs +0 -1
  716. package/dist/chunks/compact-1.1.3-hcapbx0q.mjs +0 -3
  717. package/dist/chunks/config-1.1.3-g43dtaxy.mjs +0 -1
  718. package/dist/chunks/config-1.1.3-wb6deh5d.mjs +0 -1
  719. package/dist/chunks/constants-1.1.3-3b936cvz.mjs +0 -1
  720. package/dist/chunks/context-1.1.3-xvy8khnx.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.3-dmzhbz2k.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.3-hrdt4vvs.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.3-2j9metc4.mjs +0 -1
  724. package/dist/chunks/copy-1.1.3-2d905bsm.mjs +0 -9
  725. package/dist/chunks/cost-1.1.3-z4msw06f.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.3-xq7rb9ae.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.3-t81dkj2y.mjs +0 -1
  728. package/dist/chunks/debug-1.1.3-3bkwy7n0.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.3-hvw12khs.mjs +0 -1446
  730. package/dist/chunks/desktop-1.1.3-bxb4ht8y.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.3-38e9bq6c.mjs +0 -1
  732. package/dist/chunks/detection-1.1.3-w4ezq6bb.mjs +0 -1
  733. package/dist/chunks/diff-1.1.3-fjz0ec55.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.3-9wwq26y8.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.3-9abfp9t6.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.3-d2cs4fwc.mjs +0 -1
  737. package/dist/chunks/effort-1.1.3-j0n7czrz.mjs +0 -13
  738. package/dist/chunks/engine-1.1.3-pr4qnwy3.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.3-wc95rk7b.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.3-5tct25a9.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.3-qtqtxdf3.mjs +0 -1
  742. package/dist/chunks/environments-1.1.3-4yp11kx1.mjs +0 -1
  743. package/dist/chunks/errors-1.1.3-839qw7sv.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.3-7xyshaxw.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.3-mq74sze8.mjs +0 -1
  746. package/dist/chunks/exit-1.1.3-rhdfh4z2.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.3-qp41d17d.mjs +0 -1
  748. package/dist/chunks/export-1.1.3-h7nhy37k.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.3-x22bxhyr.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.3-9b1pnfdq.mjs +0 -1
  751. package/dist/chunks/fast-1.1.3-zpw1g4fr.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.3-ak2cw09m.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.3-3ma1a2a5.mjs +0 -1
  754. package/dist/chunks/git-1.1.3-5v2874t5.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.3-cbegmxdf.mjs +0 -1
  756. package/dist/chunks/goal-1.1.3-20rnxcrw.mjs +0 -4
  757. package/dist/chunks/grove-1.1.3-txbghpb5.mjs +0 -1
  758. package/dist/chunks/growthbook-1.1.3-78e8e871.mjs +0 -1
  759. package/dist/chunks/headless-1.1.3-93ardmg6.mjs +0 -2
  760. package/dist/chunks/heapdump-1.1.3-hvdttsk2.mjs +0 -6
  761. package/dist/chunks/help-1.1.3-v94jvsxq.mjs +0 -1
  762. package/dist/chunks/hookChains-1.1.3-9ma5vjz9.mjs +0 -3
  763. package/dist/chunks/hooks-1.1.3-my305rqa.mjs +0 -1
  764. package/dist/chunks/hooks-1.1.3-qnjv2ceq.mjs +0 -79
  765. package/dist/chunks/ide-1.1.3-0b6tx1fn.mjs +0 -3
  766. package/dist/chunks/image-processor-napi-1.1.3-e0yr3jf6.mjs +0 -1
  767. package/dist/chunks/inboundAttachments-1.1.3-1xk4z18x.mjs +0 -1
  768. package/dist/chunks/index-1.1.3-05dj3vyn.mjs +0 -1
  769. package/dist/chunks/index-1.1.3-0xj4kyd8.mjs +0 -1
  770. package/dist/chunks/index-1.1.3-3jppvcra.mjs +0 -2
  771. package/dist/chunks/index-1.1.3-3vd48szb.mjs +0 -30
  772. package/dist/chunks/index-1.1.3-40fcsdhn.mjs +0 -1
  773. package/dist/chunks/index-1.1.3-6jjz6ctb.mjs +0 -1
  774. package/dist/chunks/index-1.1.3-70e6zr9d.mjs +0 -1
  775. package/dist/chunks/index-1.1.3-a1hhr2m3.mjs +0 -9
  776. package/dist/chunks/index-1.1.3-cqhk9amz.mjs +0 -1
  777. package/dist/chunks/index-1.1.3-ey0w9snc.mjs +0 -1
  778. package/dist/chunks/index-1.1.3-hvbtn9kp.mjs +0 -1
  779. package/dist/chunks/index-1.1.3-k6y0hd0p.mjs +0 -9
  780. package/dist/chunks/index-1.1.3-n02hxa0w.mjs +0 -1
  781. package/dist/chunks/index-1.1.3-nr5wza2c.mjs +0 -1
  782. package/dist/chunks/index-1.1.3-r28aemv7.mjs +0 -1
  783. package/dist/chunks/index-1.1.3-rhcxh4xp.mjs +0 -1
  784. package/dist/chunks/index-1.1.3-t1h4z32w.mjs +0 -2
  785. package/dist/chunks/index-1.1.3-tnh0vetx.mjs +0 -17
  786. package/dist/chunks/index-1.1.3-v3bygtqf.mjs +0 -1
  787. package/dist/chunks/index-1.1.3-vzk1g7qa.mjs +0 -1
  788. package/dist/chunks/index-1.1.3-wnr572f2.mjs +0 -5
  789. package/dist/chunks/index-1.1.3-ww7fhvcj.mjs +0 -1
  790. package/dist/chunks/index-1.1.3-yj99jfkc.mjs +0 -1
  791. package/dist/chunks/init-1.1.3-9tpzjm03.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.3-9qbyncbf.mjs +0 -1
  793. package/dist/chunks/ink-1.1.3-hdvkkyj6.mjs +0 -1
  794. package/dist/chunks/insights-1.1.3-5zza0gsp.mjs +0 -870
  795. package/dist/chunks/install-1.1.3-10xet3fs.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.3-zw78ccj9.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.3-9tftq49n.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.3-cpa9f6b5.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.3-agbgadm7.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.3-13kdt9tg.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.3-gp9qcrrs.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.3-kgy1wyv0.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.3-75zjfd3k.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.3-7wwgb03c.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.3-jfmwjb98.mjs +0 -1
  806. package/dist/chunks/log-1.1.3-9zqwe1w7.mjs +0 -1
  807. package/dist/chunks/main-1.1.3-jhjmcs48.mjs +0 -1
  808. package/dist/chunks/managedEnv-1.1.3-t9w50rpt.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.3-207rw6m3.mjs +0 -1
  810. package/dist/chunks/mcp-1.1.3-kd4j31we.mjs +0 -17
  811. package/dist/chunks/mcp-1.1.3-kws6bzpc.mjs +0 -4
  812. package/dist/chunks/mcpb-1.1.3-f30fv87k.mjs +0 -1
  813. package/dist/chunks/memory-1.1.3-r9sjskzv.mjs +0 -72
  814. package/dist/chunks/model-1.1.3-6bjss6ed.mjs +0 -1
  815. package/dist/chunks/model-1.1.3-vsqw9dyb.mjs +0 -2
  816. package/dist/chunks/node-1.1.3-rsp1nxjt.mjs +0 -12
  817. package/dist/chunks/oauth-1.1.3-enrprjzc.mjs +0 -1
  818. package/dist/chunks/openaiShim-1.1.3-f5dhxmdz.mjs +0 -14
  819. package/dist/chunks/output-style-1.1.3-z351smrw.mjs +0 -1
  820. package/dist/chunks/package-2VNCXFNY-1.1.3-d53d5n86.mjs +0 -1
  821. package/dist/chunks/parseConnectUrl-1.1.3-bqm4rp08.mjs +0 -1
  822. package/dist/chunks/parser-1.1.3-eyj95pq4.mjs +0 -1
  823. package/dist/chunks/passes-1.1.3-0a11epnb.mjs +0 -1
  824. package/dist/chunks/permissions-1.1.3-eegvrpq9.mjs +0 -3
  825. package/dist/chunks/permissions-1.1.3-pypjshjc.mjs +0 -1
  826. package/dist/chunks/plan-1.1.3-3kcm7qd3.mjs +0 -1
  827. package/dist/chunks/plist-1.1.3-nwtjgx23.mjs +0 -1
  828. package/dist/chunks/plugin-1.1.3-nmwsekb7.mjs +0 -29
  829. package/dist/chunks/pluginStartupCheck-1.1.3-r2gw8rs8.mjs +0 -1
  830. package/dist/chunks/plugins-1.1.3-8kpaagz8.mjs +0 -9
  831. package/dist/chunks/preActionHook-1.1.3-bxphk64e.mjs +0 -2
  832. package/dist/chunks/print-1.1.3-gm79pshf.mjs +0 -57
  833. package/dist/chunks/privacy-settings-1.1.3-sd4vzmf5.mjs +0 -1
  834. package/dist/chunks/process-1.1.3-01ryma15.mjs +0 -1
  835. package/dist/chunks/processBashCommand-1.1.3-qatq374q.mjs +0 -1
  836. package/dist/chunks/processSlashCommand-1.1.3-g45j16m5.mjs +0 -9
  837. package/dist/chunks/prompt-1.1.3-6m7zdbwt.mjs +0 -1
  838. package/dist/chunks/prompt-1.1.3-bxzv3knp.mjs +0 -1
  839. package/dist/chunks/prompts-1.1.3-da4jzheb.mjs +0 -1
  840. package/dist/chunks/protocolHandler-1.1.3-8efrcbr5.mjs +0 -13
  841. package/dist/chunks/provider-1.1.3-jk006gs1.mjs +0 -2
  842. package/dist/chunks/providerProfiles-1.1.3-7czyj40k.mjs +0 -1
  843. package/dist/chunks/providerValidation-1.1.3-099qkvzg.mjs +0 -6
  844. package/dist/chunks/rate-limit-options-1.1.3-4y4ya1ax.mjs +0 -1
  845. package/dist/chunks/registerSubcommands-1.1.3-59f6nvsp.mjs +0 -34
  846. package/dist/chunks/registry-1.1.3-8dqn0waj.mjs +0 -1
  847. package/dist/chunks/release-notes-1.1.3-smjt1xpb.mjs +0 -5
  848. package/dist/chunks/reload-plugins-1.1.3-ry02kg4r.mjs +0 -2
  849. package/dist/chunks/remote-env-1.1.3-ypt8cj78.mjs +0 -1
  850. package/dist/chunks/remoteBridgeCore-1.1.3-e0q527yd.mjs +0 -1
  851. package/dist/chunks/remoteSession-1.1.3-99dcc6yz.mjs +0 -1
  852. package/dist/chunks/rename-1.1.3-z8ht01vn.mjs +0 -1
  853. package/dist/chunks/replBridgeHandle-1.1.3-9ajh2zsz.mjs +0 -1
  854. package/dist/chunks/replLauncher-1.1.3-phft6q3m.mjs +0 -1
  855. package/dist/chunks/resume-1.1.3-ryb53bar.mjs +0 -2
  856. package/dist/chunks/rewind-1.1.3-yc7kmt10.mjs +0 -1
  857. package/dist/chunks/rootOptions-1.1.3-21mvhhbz.mjs +0 -1
  858. package/dist/chunks/runWorkflowHeadless-1.1.3-c5x1xygs.mjs +0 -10
  859. package/dist/chunks/sandbox-adapter-1.1.3-qaxp436e.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-1.1.3-yd6gnwq0.mjs +0 -1
  861. package/dist/chunks/session-1.1.3-d6bcmdqc.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-1.1.3-yengby74.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-1.1.3-z5h2mh2d.mjs +0 -1
  864. package/dist/chunks/sessionStorage-1.1.3-g2087x3k.mjs +0 -1
  865. package/dist/chunks/settings-1.1.3-kdw73w2n.mjs +0 -1
  866. package/dist/chunks/setup-1.1.3-6x82pe5r.mjs +0 -5
  867. package/dist/chunks/sinks-1.1.3-bnwaz6jy.mjs +0 -1
  868. package/dist/chunks/skills-1.1.3-xzvzszw5.mjs +0 -1
  869. package/dist/chunks/startupProfiler-1.1.3-vmfrefxy.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-1.1.3-xnsmptgv.mjs +0 -1
  871. package/dist/chunks/state-1.1.3-9qvv8c8a.mjs +0 -1
  872. package/dist/chunks/stats-1.1.3-xkfhs48y.mjs +0 -6
  873. package/dist/chunks/status-1.1.3-bkvdfpf2.mjs +0 -1
  874. package/dist/chunks/stickers-1.1.3-tdyragdz.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-1.1.3-bnpw017t.mjs +0 -1
  876. package/dist/chunks/tasks-1.1.3-3jnhmrad.mjs +0 -1
  877. package/dist/chunks/teamHelpers-1.1.3-3rhp7h7y.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-1.1.3-sjhagf52.mjs +0 -1
  879. package/dist/chunks/teleport-1.1.3-0qc9xkzf.mjs +0 -1
  880. package/dist/chunks/terminalSetup-1.1.3-r9zefqyy.mjs +0 -1
  881. package/dist/chunks/theme-1.1.3-ygj5ahxz.mjs +0 -1
  882. package/dist/chunks/thinkback-1.1.3-692khvzr.mjs +0 -1
  883. package/dist/chunks/thinkback-play-1.1.3-ebnc9f7w.mjs +0 -1
  884. package/dist/chunks/toolPool-1.1.3-9tmyh9kx.mjs +0 -1
  885. package/dist/chunks/toolSearch-1.1.3-dt6xjx6s.mjs +0 -1
  886. package/dist/chunks/tools-1.1.3-qg2w37bw.mjs +0 -1
  887. package/dist/chunks/trustedDevice-1.1.3-nt2dpn34.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-1.1.3-vky94jfh.mjs +0 -69
  889. package/dist/chunks/types-1.1.3-h2n5wzra.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-1.1.3-j3a7dzxc.mjs +0 -4
  891. package/dist/chunks/update-1.1.3-ypnffaj9.mjs +0 -72
  892. package/dist/chunks/upgrade-1.1.3-zgwkz8e1.mjs +0 -1
  893. package/dist/chunks/upload-1.1.3-z9452eam.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-1.1.3-qv2f69gf.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-1.1.3-t5z79vre.mjs +0 -1
  896. package/dist/chunks/usage-1.1.3-qhz8fs40.mjs +0 -1
  897. package/dist/chunks/util-1.1.3-xj9x5fyp.mjs +0 -1
  898. package/dist/chunks/utils-1.1.3-0rv54nxw.mjs +0 -1
  899. package/dist/chunks/vim-1.1.3-7ka37gbw.mjs +0 -1
  900. package/dist/chunks/watchLoop-1.1.3-gfvkcgdc.mjs +0 -13
  901. package/dist/chunks/watcher-1.1.3-g46sx9g8.mjs +0 -1
  902. package/dist/chunks/wiki-1.1.3-e72sp9z3.mjs +0 -132
  903. package/dist/chunks/workflows-1.1.3-1ahbfzb6.mjs +0 -1
  904. package/dist/chunks/worktree-1.1.3-e2ht6w6r.mjs +0 -1
  905. package/dist/chunks/worktreeModeEnabled-1.1.3-r91kaqdc.mjs +0 -1
  906. package/dist/chunks/wrapper-1.1.3-7dpd8b9v.mjs +0 -7
  907. /package/dist/chunks/{cli-1.1.3-ddqw4d0f.mjs → cli-1.1.5-60nnwyjy.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.3-k333nezw.mjs → cli-1.1.5-9tkrrje2.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.3-bhvdy7a7.mjs → cli-1.1.5-a3ew1094.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.3-kftm6an7.mjs → cli-1.1.5-bfqs63at.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.3-nh0p50e1.mjs → cli-1.1.5-k89gf8y1.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.3-z6nmkfhs.mjs → cli-1.1.5-m2tvhjca.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.3-n8e1g4ez.mjs → cli-1.1.5-v8kvgy84.mjs} +0 -0
@@ -0,0 +1,9 @@
1
+ import{Asa as su,Csa as K_,Dsa as f_,zsa as V_}from"./cli-1.1.5-3389j5t0.mjs";import{Gsa as H,Jsa as $_}from"./cli-1.1.5-keef1hq8.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2
+ versions published after the first week of January 2027
3
+ will require node >=${E}. You are running node ${_}.
4
+
5
+ To continue receiving updates to AWS services, bug fixes,
6
+ and security updates please upgrade to node >=${E}.
7
+
8
+ More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
9
+ export{W_ as ssa,D_ as tsa,yu as usa,ou as vsa};
@@ -0,0 +1,2 @@
1
+ import{Fo as E,Go as m,Gp as l,Ho as Xq,Ip as Rq,Jp as i,Kp as Aq,ap as S,fp as Zq}from"./cli-1.1.5-bcgy5mbp.mjs";import{Cca as u,Eca as g,Hca as h,Ica as n,Nca as vq,Qga as D,Yga as Qq}from"./cli-1.1.5-v9a6fbsq.mjs";import{Bia as d,Dia as Uq}from"./cli-1.1.5-nkhse0vg.mjs";import{Cka as e,cka as P,dka as v,hka as f,lka as M,pka as y,zka as V}from"./cli-1.1.5-3zc9bseg.mjs";import{$ka as C,Zka as W,_ka as O,ela as _}from"./cli-1.1.5-xd8qwq5t.mjs";import{Tra as p,jsa as qq}from"./cli-1.1.5-xzxcvrkj.mjs";import{Isa as N}from"./cli-1.1.5-keef1hq8.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 qd,r as rd,nq as sd,lq as td,Oq as ud,QQ as vd,XQ as wd,Dq as xd};
@@ -0,0 +1,2 @@
1
+ import{Ak as I,eS as R,nK as Y,um as W,xm as P,zk as Q}from"./cli-1.1.5-bcgy5mbp.mjs";import{$ga as B,aha as f}from"./cli-1.1.5-3xf010sx.mjs";import{Ria as H,Sia as J,lja as F}from"./cli-1.1.5-0amg980q.mjs";import{Zqa as $,_ma as v}from"./cli-1.1.5-0gd61h7z.mjs";import{Isa as Z}from"./cli-1.1.5-keef1hq8.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
+ export{S as bf,V as cf,X as df,r as ef,w as ff,T as gf,G as hf};
@@ -0,0 +1,2 @@
1
+ import{Cfa as k,Ofa as f,Uea as M,Xea as L,pfa as G,qfa as h,ufa as v,vfa as P}from"./cli-1.1.5-v9a6fbsq.mjs";import{mja as E,vja as x}from"./cli-1.1.5-fr76ha7s.mjs";import{hla as T,ula as u}from"./cli-1.1.5-rqw75dc4.mjs";import{Isa as C}from"./cli-1.1.5-keef1hq8.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
+ export{Vj as Hc,Wj as Ic,e as Jc,Xj as Kc,Yj as Lc,jj as Mc};
@@ -0,0 +1,2 @@
1
+ import{v4 as K,x4 as Z}from"./cli-1.1.5-ehbpt4w6.mjs";import{A4 as Y,y4 as J}from"./cli-1.1.5-ttm2crpm.mjs";import{C8 as D,G5 as B,H8 as F,I8 as G,L5 as W,a9 as X}from"./cli-1.1.5-y39w08qk.mjs";import{uja as y,vja as Q}from"./cli-1.1.5-fr76ha7s.mjs";import{Tra as z,jsa as V}from"./cli-1.1.5-xzxcvrkj.mjs";import{Isa as N}from"./cli-1.1.5-keef1hq8.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
+ export{P as Ui,_ as Vi};
@@ -0,0 +1,15 @@
1
+ import{B2 as qJ,E2 as VJ}from"./cli-1.1.5-0jp6cq2j.mjs";import{Aba as E,Fba as ZJ,Hba as jJ,Qga as q,U$ as YJ,Uea as U,V$ as TJ,V_ as W,W_ as f,Wda as $J,Yga as u,eea as AJ,qfa as m,yba as y}from"./cli-1.1.5-v9a6fbsq.mjs";import{wja as F,zja as NJ}from"./cli-1.1.5-zqf5btpq.mjs";import{Cka as xJ,cka as b,dka as N,hka as P,lka as w,pka as D,zka as K}from"./cli-1.1.5-3zc9bseg.mjs";import{$ka as v,Jka as QJ,_ka as M,cla as n,ela as j}from"./cli-1.1.5-xd8qwq5t.mjs";import{hla as O,ula as k}from"./cli-1.1.5-rqw75dc4.mjs";import{Isa as T}from"./cli-1.1.5-keef1hq8.mjs";import{access as d,chmod as vJ,writeFile as RJ}from"fs/promises";import{homedir as h}from"os";import{join as B}from"path";function A(){return B(O(),"local")}function _J(J=h()){return B(J,".claude","local")}function p(J){let Q=J?.homeDir??h(),Y=J?.configHomeDir??O();return Array.from(new Set([B(Y,"local"),_J(Q)]))}function c(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function GJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return B(A(),"claudin")}function rJ(){return GJ(y())}async function I(J,Q,Y){try{return await RJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function OJ(){try{let J=A();await w().mkdir(J),await I(B(J,"package.json"),b({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await I(Q,`#!/bin/sh
2
+ exec "${J}/node_modules/.bin/claudin" "$@"`,493))await vJ(Q,493);return!0}catch(J){return q(J),!1}}async function JQ(J,Q){try{if(!await OJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return U(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function QQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),!0}catch{}return!1}async function YQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),J}catch{}return null}function ZQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var g=T(()=>{E();m();k();j();f();D();u();P()});import{open as MJ,readFile as wJ,stat as yJ}from"fs/promises";import{homedir as t}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??t(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function a(J){let Q=!1;return{filtered:J.filter((Z)=>{if(s.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await wJ(J,{encoding:"utf8"})).split(`
3
+ `)}catch(Q){if(n(Q))return null;throw Q}}async function l(J,Q){let Y=await MJ(J,"w");try{await Y.writeFile(Q.join(`
4
+ `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function UJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(s.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function HQ(J){let Q=await UJ(J);if(!Q)return null;let Y=J?.homedir??t(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await yJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var s;var o=T(()=>{j();g();s=/^\s*alias\s+claude\s*=/});import{constants as KJ}from"fs";import{access as WJ,readFile as CJ,stat as SJ,writeFile as i}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function LJ(){let J=y();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function XJ(){return LJ()?"bun":"npm"}function zJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function kJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function e(J){try{let Q=await CJ(H(J,"package.json"),"utf8"),Y=N(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!v(Q))q(Q);return null}}function r(J){return J==="bun"?Promise.resolve(zJ()):kJ()}async function bJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await r(Z);if(!$)return;let X=await e($);if(!X)return;let _=await r(J),G=_?await e(_):null;if(G&&X===G)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let x=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(x.code!==0){q(new R(`Failed to refresh the ${Z} global install at ${$}: ${x.stdout} ${x.stderr}`));return}if(Z==="bun")await HJ();Y?.(`Repaired old version ${X} at ${$}`)}async function PJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!IJ.test(Y.error??""))return q(new R(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new R(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function HJ(){let J=zJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await WJ(Q,KJ.F_OK)}catch(Z){if(!v(Z))q(Z);return!1}try{if((await SJ(Y)).size>FJ)return!1}catch(Z){if(!v(Z))return q(Z),!1}if(!await PJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function IQ(){}async function kQ(){return}async function bQ(){return}function PQ(J){let Y=$J()?.minimumVersion;if(!Y)return!1;let Z=!qJ(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function BJ(){return H(O(),".update.lock")}async function DJ(){let J=w(),Q=BJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<JJ)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<JJ)return!1;await J.unlink(Q)}catch($){if(!v($))return q($),!1}}catch(Y){if(!v(Y))return q(Y),!1}try{return await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function fJ(){let J=w(),Q=BJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(v(Y))return;q(Y)}}async function EJ(){let J=XJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function mJ(){try{let J=await EJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await WJ(J,KJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new R("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function DQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function fQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=N(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function EQ(J){return null}async function mQ(){return{latest:null,stable:null}}async function uQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return N(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function dQ(J,Q){if(!await DJ())return q(new R("Another process is currently installing an update")),F("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{await uJ();let Y=XJ();if(Y==="npm"&&ZJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),F("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
5
+ Error: Windows NPM detected in WSL
6
+
7
+ You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
8
+ This configuration is not supported for updates.
9
+
10
+ To fix this issue:
11
+ 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
+ 2. Make sure Linux NPM is in your PATH before the Windows version
13
+ 3. Try updating again with 'claude update'
14
+ `),"install_failed";let{hasPermissions:Z}=await mJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",_=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(_.code!==0){let G=new R(`Failed to install new version of claude: ${_.stdout} ${_.stderr}`);return q(G),"install_failed"}return await HJ(),await bJ(Y,$,Q?.onProgress),U((G)=>({...G,installMethod:"global"})),"success"}finally{await fJ()}}async function uJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=a(Y);if($)await l(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var R,FJ=4096,IJ,JJ=300000;var dJ=T(()=>{NJ();E();m();xJ();jJ();k();j();f();D();u();TJ();VJ();AJ();o();P();R=class R extends QJ{};IJ=/ENOENT/i});
15
+ export{rJ as pU,JQ as qU,QQ as rU,YQ as sU,ZQ as tU,g as uU,S as vU,a as wU,L as xU,l as yU,UJ as zU,HQ as AU,o as BU,zJ as CU,HJ as DU,IQ as EU,kQ as FU,bQ as GU,PQ as HU,BJ as IU,mJ as JU,DQ as KU,fQ as LU,EQ as MU,mQ as NU,uQ as OU,dQ as PU,dJ as QU};
@@ -0,0 +1,2 @@
1
+ import{K0 as v,L0 as Z,M0 as D,r0 as T,s0 as X,t0 as I,v0 as Y,w0 as p}from"./cli-1.1.5-9q40r2jj.mjs";import{o4 as P,q4 as V}from"./cli-1.1.5-0a8jb3pr.mjs";import{r4 as H}from"./cli-1.1.5-43y030nv.mjs";import{Zqa as F,goa as W}from"./cli-1.1.5-0gd61h7z.mjs";import{Esa as A,Isa as C}from"./cli-1.1.5-keef1hq8.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
+ export{u as Vh,M as Wh};
@@ -0,0 +1,2 @@
1
+ import{hX as M,jX as X}from"./cli-1.1.5-m78s0fnh.mjs";import{Rda as K,Xda as L,eea as W,hba as B,qba as V}from"./cli-1.1.5-v9a6fbsq.mjs";import{Isa as Q}from"./cli-1.1.5-keef1hq8.mjs";async function F(){let b=await M();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let z=L()?.remote?.defaultEnvironmentId,H=b.find((x)=>x.kind!=="bridge")??b[0],J=null;if(z){let x=b.find((q)=>q.environment_id===z);if(x){H=x;for(let q=B.length-1;q>=0;q--){let y=B[q];if(!y||y==="flagSettings")continue;if(K(y)?.remote?.defaultEnvironmentId===z){J=y;break}}}}return{availableEnvironments:b,selectedEnvironment:H,selectedEnvironmentSource:J}}var Y=Q(()=>{V();W();X()});
2
+ export{F as fc,Y as gc};
@@ -0,0 +1,3 @@
1
+ import{A2 as X,E2 as N,z2 as d}from"./cli-1.1.5-0jp6cq2j.mjs";import{Qga as B,Uea as U,Xea as G,Yga as y,qea as O,qfa as p,rea as f}from"./cli-1.1.5-v9a6fbsq.mjs";import{Yka as x,ela as b}from"./cli-1.1.5-xd8qwq5t.mjs";import{hla as H,ula as E}from"./cli-1.1.5-rqw75dc4.mjs";import{Poa as w,Zqa as P}from"./cli-1.1.5-0gd61h7z.mjs";import{Tra as k,jsa as S}from"./cli-1.1.5-xzxcvrkj.mjs";import{Esa as M,Isa as R}from"./cli-1.1.5-keef1hq8.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(O())return;let J=await k.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
+ `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{S();P();p();E();b();y();f();N();T=M(d(),1)});
3
+ export{zq as nf,Jq as of,C as pf,h as qf,Kq as rf,Qq as sf,g as tf};
@@ -0,0 +1,3 @@
1
+ import{Gha as L,Kha as O}from"./cli-1.1.5-y3cdh5em.mjs";import{Isa as N}from"./cli-1.1.5-keef1hq8.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 I1,J as J1,T as K1,U as L1,V as M1,W as N1,Q as O1};
@@ -0,0 +1,2 @@
1
+ import{wja as X,zja as z}from"./cli-1.1.5-zqf5btpq.mjs";import{Cka as P,cka as Z,hka as O,zka as $}from"./cli-1.1.5-3zc9bseg.mjs";import{Zka as Y,ela as H}from"./cli-1.1.5-xd8qwq5t.mjs";import{Isa as x}from"./cli-1.1.5-keef1hq8.mjs";function h(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function R(q){let K=typeof q==="string"?q:Z(q),J=h(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function U(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function j(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
2
+ export{N as zf,R as Af,U as Bf,j as Cf,D as Df,L as Ef,m as Ff};
@@ -0,0 +1,2 @@
1
+ import{cc as Y}from"./cli-1.1.5-bfqs63at.mjs";import{TW as N,UW as C}from"./cli-1.1.5-97sv1sx5.mjs";import{Kga as A,Mga as w}from"./cli-1.1.5-v9a6fbsq.mjs";import{wja as B,zja as k}from"./cli-1.1.5-zqf5btpq.mjs";import{Cka as j,dka as L,hka as E,zka as W}from"./cli-1.1.5-3zc9bseg.mjs";import{Zka as G,ela as K}from"./cli-1.1.5-xd8qwq5t.mjs";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
+ export{v as Yb,q as Zb,p as _b,g as $b,d as ac,R as bc};
@@ -0,0 +1,2 @@
1
+ import{Sc as k,Tc as P}from"./cli-1.1.5-06s5q1ja.mjs";import{$c as f,Zc as O,_c as A}from"./cli-1.1.5-y2bqj565.mjs";import{a9 as E,l8 as U,p8 as V,u8 as j}from"./cli-1.1.5-y39w08qk.mjs";import{Ofa as h,Qga as K,Uea as N,Xea as J,Yga as b,cfa as Y,gca as X,hca as H,nca as x,qfa as G,xfa as I}from"./cli-1.1.5-v9a6fbsq.mjs";import{Yka as F,ela as L}from"./cli-1.1.5-xd8qwq5t.mjs";import{Zqa as T,noa as W}from"./cli-1.1.5-0gd61h7z.mjs";import{Isa as y}from"./cli-1.1.5-keef1hq8.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
2
+ export{d as Nc,l as Oc,S as Pc,u as Qc};
@@ -0,0 +1,2 @@
1
+ import{Isa as b}from"./cli-1.1.5-keef1hq8.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
2
+ export{j as if,k as jf,q as kf,w as lf,g as mf};
@@ -0,0 +1,24 @@
1
+ import{Hg as _Q,Jg as iQ}from"./cli-1.1.5-zf1qpy4s.mjs";import{Ai as zX,zi as WQ}from"./cli-1.1.5-6cxs0npd.mjs";import{$J as VQ,Hp as ZQ,Ip as uQ,Ms as CQ,RJ as JJ,SJ as mJ,Ws as qX,ZJ as GQ,_J as KQ,aK as OQ,cK as NQ,fK as IJ,gK as nJ,hK as rJ,iK as gQ,nG as SJ,oG as YQ}from"./cli-1.1.5-bcgy5mbp.mjs";import{BY as AQ,DY as ZX,GY as FQ,HY as $X,NY as zJ,OY as iJ,nY as bJ,oY as aJ}from"./cli-1.1.5-bs0hzzxt.mjs";import{H1 as WJ,MZ as AJ,X0 as FJ,Y0 as CJ,Z0 as oJ,a1 as N,c1 as M,m1 as t,tZ as LJ,uZ as lJ,w1 as e}from"./cli-1.1.5-9q40r2jj.mjs";import{o4 as q,p4 as _,q4 as s}from"./cli-1.1.5-0a8jb3pr.mjs";import{r4 as BJ}from"./cli-1.1.5-43y030nv.mjs";import{w9 as i,x9 as dJ}from"./cli-1.1.5-ay6eds7m.mjs";import{Qga as x,Yga as DJ}from"./cli-1.1.5-v9a6fbsq.mjs";import{bha as f,cha as pJ,eha as n,iha as uJ,nha as vJ,tha as kQ}from"./cli-1.1.5-3xf010sx.mjs";import{Iia as UQ,Kia as aQ}from"./cli-1.1.5-0amg980q.mjs";import{Esa as OJ,Isa as qJ,Jsa as oQ}from"./cli-1.1.5-keef1hq8.mjs";import{writeFile as fQ}from"fs/promises";import{join as hQ}from"path";function PJ(J){if(J<1000)return`${J}ms`;let U=Math.round(J/1000);if(U<60)return`${U}s`;return`${Math.floor(U/60)}m ${U%60}s`}function sJ(J){if(J==="done")return"success";if(J==="stalled"||J==="failed")return"error";if(J==="cancelled")return"warning";return"permission"}function cQ(J){if(J==="running")return"▸";if(J==="failed"||J==="stalled")return"✗";if(J==="cancelled")return"⊘";return"✓"}function tJ(J){let U=0,K=0;for(let H of J.history)for(let B of HJ(H.agents))if(K+=1,!B.failed)U+=1;return{done:U,total:K}}function eJ(J){let U=J.history.map((K)=>{let H=HJ(K.agents);return{step:K.step,done:H.filter((B)=>!B.failed).length,total:H.length,agents:K.agents,decision:K.decision}});if(J.status==="running"&&!J.history.some((K)=>K.step===J.currentStep))U.push({step:J.currentStep,done:J.agentsDone??0,total:J.agentsInPhase??0,agents:null,decision:null});return U}function JQ(J,U){return`${CJ(J)}${U}\x1B[39m`}function jJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function xQ(J,U,K){let H=J.failed?"✗ ":"✓ ",B=JQ(J.failed?K.error:K.success,H.trimEnd())+" ",W=PJ(J.ms),X=f(W),I=Math.max(4,U-f(H)-X-1),w=n(`${J.label} ${J.model||"inherit"} · ${vJ(J.tokens)} tok`,I),S=w.length<=J.label.length?i.bold(w):i.bold(w.slice(0,J.label.length))+i.dim(w.slice(J.label.length)),F=Math.max(1,U-f(H)-f(w)-X);return B+S+" ".repeat(F)+i.dim(W)}function pQ({run:J,phaseIndex:U}){let{columns:K,rows:H}=bJ(),B=eJ(J),W=Math.min(U,Math.max(0,B.length-1)),X=B[W],{done:I,total:w}=tJ(J),[S]=AJ(),F=FJ(S),g=Math.max(6,H-6),R=g-2,l=TJ-4,v=Math.max(20,K-4-TJ-1-4-4),k=X?` ${X.step} · ${X.agents?HJ(X.agents).length:X.total} agents `:" phase ",C=B.map((D,L)=>{let V=L===W,O=D.total>0&&D.done===D.total?"✓":D.agents===null?"▸":"✓",m=n(`${V?") ":" "}${O} ${D.step}${D.total>0?` ${D.done}/${D.total}`:""}`,l);return jJ(V?JQ(F.permission,m):m,f(m),l)});while(C.length<R)C.push(" ".repeat(l));let j=!X?[jJ(i.dim("starting…"),f("starting…"),v)]:X.agents===null?[jJ(i.dim(`running… ${X.done}/${X.total} done`),f(`running… ${X.done}/${X.total} done`),v)]:HJ(X.agents).map((D)=>xQ(D,v,F));while(j.length<R)j.push(" ".repeat(v));return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[_(N,{flexDirection:"column",flexShrink:1,minWidth:0,children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:J.workflow}),J.description?q(M,{dimColor:!0,wrap:"truncate",children:J.description}):null]}),_(M,{color:sJ(J.status),wrap:"truncate",children:[I,"/",w," agents · ",PJ(J.updatedAt-J.startedAt)," · ",J.status]})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:TJ,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:C.slice(0,R),width:l})}),q(N,{flexDirection:"column",flexGrow:1,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:k,position:"top",align:"start"},children:q(t,{lines:j.slice(0,R),width:v})})]})]})}function QQ({liveRun:J,onStop:U,initialRunId:K,onViewChange:H}){let[B,W]=y.useState([]),[X,I]=y.useState(0),[w,S]=y.useState(0),[F,g]=y.useState(K?{mode:"detail",runId:K}:{mode:"list"}),[R,l]=y.useState(null),[v,k]=y.useState(!1),[C,j]=y.useState(new Set);y.useEffect(()=>{IJ().then(W).catch(($)=>x($))},[J?.runId,J?.updatedAt]);let D=(J?[J,...B.filter(($)=>$.runId!==J.runId)]:B).filter(($)=>!C.has($.runId)),L=D[Math.min(X,Math.max(0,D.length-1))],V=F.mode==="detail"?D.find(($)=>$.runId===F.runId):void 0;y.useEffect(()=>{H?.(F.mode==="detail")},[F.mode,H]);let O=y.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]),m=y.useRef(!1);y.useEffect(()=>{if(m.current||!K)return;let $=D.findIndex((Y)=>Y.runId===K);if($>=0)I($),m.current=!0},[K,D]);let T=F.mode==="detail"?V:L,h=y.useCallback(async()=>{if(!T)return;try{let $=hQ(JJ(),`run-${T.runId}.md`);await fQ($,rJ(T)),l($)}catch($){x($)}},[T]),c=y.useCallback(async()=>{if(!L)return;try{await nJ(L.runId),j(($)=>new Set($).add(L.runId)),I(($)=>Math.max(0,Math.min($,D.length-2))),W(await IJ())}catch($){x($)}},[L,D.length]);if(e(($,Y)=>{if(F.mode==="detail"){let P=V?eJ(V).length:0;if(Y.escape)O(),g({mode:"list"});else if(Y.upArrow)O(),S((A)=>Math.max(0,A-1));else if(Y.downArrow)O(),S((A)=>Math.min(Math.max(0,P-1),A+1));else if($==="s")h();else if($==="x"&&V&&J&&V.runId===J.runId)U();return}if(v){if(k(!1),$==="y")c();return}if(Y.upArrow)I((P)=>Math.max(0,P-1));else if(Y.downArrow)I((P)=>Math.min(D.length-1,P+1));else if(Y.return&&L)O(),S(0),g({mode:"detail",runId:L.runId});else if($==="s")h();else if($==="x"&&L&&J&&L.runId===J.runId)U();else if($==="d"&&L&&L.status!=="running")k(!0)},{isActive:!0}),F.mode==="detail"){if(!V)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Run not found."})});return _(N,{flexDirection:"column",paddingX:2,children:[q(pQ,{run:V,phaseIndex:w}),R&&_(M,{color:"success",children:["Saved → ",R]})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission",padding:4}),D.length===0?q(N,{paddingX:2,marginTop:1,children:q(M,{dimColor:!0,children:"No workflow runs yet. Start one from the Library tab."})}):_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[D.map(($,Y)=>{let{total:P}=tJ($);return _(M,{inverse:Y===X,wrap:"truncate",children:[Y===X?"▸ ":" ",q(M,{color:sJ($.status),children:cQ($.status)})," ",$.workflow," ",P," agents · ",vJ($.totalTokens)," tok · ",PJ($.updatedAt-$.startedAt)]},$.runId)}),R&&q(N,{marginTop:1,children:_(M,{color:"success",children:["Saved → ",R]})}),v&&L&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete run "',L.workflow,'" (',PJ(L.updatedAt-L.startedAt),")? (y/n)"]})})]})]})}var y,HJ=(J)=>J.filter((U)=>U.label!=="main"),TJ=26;var XQ=qJ(()=>{dJ();WJ();lJ();pJ();kQ();DJ();oJ();uJ();aJ();iJ();gQ();mJ();s();y=OJ(BJ(),1)});function lQ(J){let U={name:J.name};if(J.agents.length>0)U.agents=J.agents;if(J.handbackTo?.length)U.handbackTo=J.handbackTo;return U}function $Q(J,U={}){let K={name:J.name,description:J.description};if(J.main)K.main=J.main;K.steps=J.steps.map(lQ);for(let[W,X]of Object.entries(U))if(!dQ.has(W))K[W]=X;let H=ZQ(K).trimEnd(),B=J.instructions.trim();return`---
2
+ ${H}
3
+ ---
4
+ ${B?`${B}
5
+ `:""}`}function qQ(J,U,K){let H=J[U]?.name;return J.map((B,W)=>({...B,name:W===U?K:B.name,handbackTo:B.handbackTo?.map((X)=>X===H?K:X)}))}var dQ;var zQ=qJ(()=>{uQ();dQ=new Set(["name","description","main","steps"])});import{unlinkSync as nQ,writeFileSync as rQ}from"fs";import{readFile as sQ,writeFile as tQ}from"fs/promises";import{tmpdir as eQ}from"os";import{join as yJ}from"path";function UJ(J,U){return`${CJ(J)}${U}\x1B[39m`}function ZJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function EJ(J,U,K){let H=J.slice(0,U);while(H.length<U)H.push(" ".repeat(K));return H}function MQ({sourceFile:J,onClose:U}){let{columns:K,rows:H}=bJ(),[B]=AJ(),W=FJ(B),[X,I]=E.useState(null),[w,S]=E.useState({}),[F,g]=E.useState(null),[R,l]=E.useState(!1),[v,k]=E.useState("phases"),[C,j]=E.useState(0),[D,L]=E.useState(0),[V,O]=E.useState(null),[m,T]=E.useState(null),[h,c]=E.useState(null),$=E.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]);E.useEffect(()=>{sQ(yJ(JJ(),J),"utf-8").then((Q)=>{let Z=GQ(Q,J.replace(/\.md$/,""));if(Z.def)I(Z.def),S(Z.rawFrontmatter);else g(Z.errors.join("; "))}).catch((Q)=>{x(Q),g("Failed to read workflow file.")})},[J]),E.useEffect(()=>{import("./agentTypes-1.1.5-2r72vjnd.mjs").then((Q)=>Q.getKnownAgentTypes(UQ())).then(c).catch((Q)=>x(Q))},[]);let Y=E.useMemo(()=>{if(!X)return[];let Q=KQ(X);if(h)Q.push(...VQ(X,h));return Q},[X,h]),P=E.useCallback((Q)=>{$(),I((Z)=>Z?Q(Z):Z),l(!0),T(null)},[$]),A=C-1,u=X&&A>=0?X.steps[A]:void 0,YJ=C===0?["description","main"]:["name","agents","handbackTo"],bQ=E.useCallback(async()=>{if(!X)return;try{let Q=yJ(JJ(),J);await tQ(Q,$Q(X,w)),l(!1),T(`Saved → ${Q}`)}catch(Q){x(Q),T("Failed to save.")}},[X,w,J]),EQ=E.useCallback(()=>{if(!X)return;let Q=yJ(eQ(),`claudin-wf-prompt-${Date.now()}.md`);try{rQ(Q,X.instructions?`${X.instructions}
6
+ `:"");let Z=_Q(Q);if(Z.error)T(Z.error);else if(Z.content===null)T("No external editor available — set $EDITOR or $VISUAL.");else{let z=Z.content.trim();if(z!==X.instructions)P((G)=>({...G,instructions:z}))}}catch(Z){x(Z),T("Failed to open editor.")}finally{try{nQ(Q)}catch{}}},[X,P]),SQ=E.useCallback(()=>{if(!X)return;let Q=YJ[D];if($(),C===0){if(Q==="description")O({kind:"input",target:"description",value:X.description,cursor:X.description.length});else{let Z=["(default)",...[...h??[]].sort()];O({kind:"picker",target:"main",options:Z,checked:new Set([X.main??"(default)"]),cursor:Math.max(0,Z.indexOf(X.main??"(default)")),multi:!1})}return}if(!u)return;if(Q==="name")O({kind:"input",target:"name",value:u.name,cursor:u.name.length});else if(Q==="agents"){let Z=[...new Set([...[...h??[]].sort(),...u.agents])];O({kind:"picker",target:"agents",options:Z,checked:new Set(u.agents),cursor:0,multi:!0})}else{let Z=X.steps.slice(0,A).map((z)=>z.name);if(Z.length===0){T("No earlier phases to hand back to.");return}O({kind:"picker",target:"handbackTo",options:Z,checked:new Set(u.handbackTo??[]),cursor:0,multi:!0})}},[X,YJ,D,C,u,A,h,$]),RQ=E.useCallback((Q,Z)=>{let z=Z.trim();if($(),O(null),!z)return;if(Q==="description")P((G)=>({...G,description:z}));else if(Q==="name"&&A>=0)P((G)=>({...G,steps:qQ(G.steps,A,z)}));else if(Q==="addStep"){let G=C===0?0:C;P((b)=>({...b,steps:[...b.steps.slice(0,G),{name:z,agents:[]},...b.steps.slice(G)]})),j(G+1),k("phases")}},[$,C,A,P]),TQ=E.useCallback((Q)=>{if($(),O(null),Q.target==="main"){let z=Q.options[Q.cursor];P((G)=>({...G,main:z==="(default)"?void 0:z}));return}let Z=Q.options.filter((z)=>Q.checked.has(z));if(Q.target==="agents"&&A>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===A?{...G,agents:Z}:G)}));else if(Q.target==="handbackTo"&&A>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===A?{...G,handbackTo:Z.length?Z:void 0}:G)}))},[$,A,P]),jQ=E.useCallback(()=>{if(A<0)return;P((Q)=>({...Q,steps:Q.steps.filter((Z,z)=>z!==A)})),j((Q)=>Math.max(0,Math.min(Q,(X?.steps.length??1)-1))),k("phases")},[X,A,P]),gJ=E.useCallback((Q)=>{if(!X||A<0)return;let Z=A+Q;if(Z<0||Z>=X.steps.length)return;P((z)=>{let G=[...z.steps],[b]=G.splice(A,1);return G.splice(Z,0,b),{...z,steps:G}}),j(Z+1)},[X,A,P]);if(e((Q,Z)=>{if(!X){if(Z.escape)U();return}if(V?.kind==="input")return;if(V?.kind==="confirmDelete"){if($(),O(null),Q==="y")jQ();return}if(V?.kind==="confirmDiscard"){if($(),O(null),Q==="y")U();return}if(V?.kind==="picker"){let z=(G)=>{$(),O((b)=>b?.kind==="picker"?G(b):b)};if(Z.upArrow)z((G)=>({...G,cursor:Math.max(0,G.cursor-1)}));else if(Z.downArrow)z((G)=>({...G,cursor:Math.min(G.options.length-1,G.cursor+1)}));else if(Q===" "&&V.multi)z((G)=>{let b=G.options[G.cursor];if(b===void 0)return G;let a=new Set(G.checked);if(a.has(b))a.delete(b);else a.add(b);return{...G,checked:a}});else if(Z.return)TQ(V);else if(Z.escape)$(),O(null);return}if(Q==="s"){bQ();return}if(Q==="p"){EQ();return}if(v==="fields"){if(Z.escape)$(),k("phases");else if(Z.upArrow)$(),L((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),L((z)=>Math.min(YJ.length-1,z+1));else if(Z.return)SQ();return}if(Z.escape)if(R)$(),O({kind:"confirmDiscard"});else U();else if(Z.upArrow)$(),j((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),j((z)=>Math.min(X.steps.length,z+1));else if(Z.return)$(),k("fields"),L(0);else if(Q==="a")$(),O({kind:"input",target:"addStep",value:"",cursor:0});else if(Q==="d"&&C>0)$(),O({kind:"confirmDelete"});else if(Q==="K")gJ(-1);else if(Q==="J")gJ(1)},{isActive:!0}),F)return _(N,{flexDirection:"column",paddingX:2,paddingTop:1,children:[_(M,{color:"error",children:["⚠ ",F]}),_(M,{dimColor:!0,children:["Esc to go back — fix the file by hand at .claudin/workflows/",J,"."]})]});if(!X)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Loading…"})});let $J=Math.max(6,H-6),r=wJ-4,o=Math.max(20,K-4-wJ-1-4-4),IQ=$J-2,GJ=(Q)=>Q?") ":" ",KJ=[];{let Q=n(`${GJ(C===0)}${X.name}`,r);KJ.push(ZJ(C===0?UJ(W.permission,Q):i.bold(Q),f(Q),r));let Z=` ${"─".repeat(Math.max(1,r-2))}`;KJ.push(ZJ(i.dim(Z),f(Z),r)),X.steps.forEach((z,G)=>{let b=C===G+1,a=n(`${GJ(b)}${z.name} ${z.agents.length}`,r);KJ.push(ZJ(b?UJ(W.permission,a):a,f(a),r))})}let fJ=V?.kind==="picker",VJ,NJ,vQ=" Prompt (p to edit) ",_J=[],mQ=kJ-2,hJ=Math.max(3,$J-kJ),cJ=hJ-2;if(fJ){let Q=V;VJ=Q.target==="main"?" main orchestrator ":` ${Q.target==="agents"?"agents":"hand back to"} · ${u?.name??X.name} `;let Z=$J-2,z=Math.max(0,Math.min(Q.cursor-Math.floor(Z/2),Q.options.length-Z));NJ=Q.options.slice(z,z+Z).map((G,b)=>{let XJ=z+b===Q.cursor,RJ=Q.multi?Q.checked.has(G)?"[x] ":"[ ] ":"",xJ=Q.target==="agents"&&h&&!h.has(G),MJ=n(`${GJ(XJ)}${RJ}${G}${xJ?" (unknown)":""}`,o),wQ=XJ?UJ(W.permission,MJ):xJ?UJ(W.error,MJ):MJ;return ZJ(wQ,f(MJ),o)})}else{VJ=C===0?` ${X.name} `:` phase: ${u?.name??""} `;let Q=(z)=>{if(z==="description")return X.description||"(empty)";if(z==="main")return X.main??"(default)";if(z==="name")return u?.name??"";if(z==="agents")return u?.agents.join(", ")||"(none)";return u?.handbackTo?.join(", ")??"—"};if(NJ=YJ.map((z,G)=>{let b=v==="fields"&&G===D,a=z==="handbackTo"?"handback":z,XJ=n(`${GJ(b)}${a}: ${Q(z)}`,o),RJ=b?UJ(W.permission,XJ):i.dim(XJ.slice(0,2+a.length+1))+XJ.slice(2+a.length+1);return ZJ(RJ,f(XJ),o)}),_J=(X.instructions?X.instructions.split(`
7
+ `):[]).slice(0,cJ).map((z)=>{let G=n(z,o);return ZJ(i.dim(G),f(G),o)}),_J.length===0)_J=[ZJ(i.dim("(empty — press p to write the prompt)"),f("(empty — press p to write the prompt)"),o)]}let QJ=V?.kind==="input"?V:null,yQ=QJ?.target==="addStep"?"New phase name:":QJ?.target==="name"?"Rename phase:":"Description:";return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:X.name}),q(M,{color:R?"warning":"success",wrap:"truncate",children:R?"● unsaved":"saved"})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:wJ,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:EJ(KJ,IQ,r),width:r})}),fJ?q(N,{flexDirection:"column",flexGrow:1,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,$J-2,o),width:o})}):_(N,{flexDirection:"column",flexGrow:1,children:[q(N,{flexDirection:"column",height:kJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,mQ,o),width:o})}),q(N,{flexDirection:"column",height:hJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:vQ,position:"top",align:"start"},children:q(t,{lines:EJ(_J,cJ,o),width:o})})]})]}),QJ&&_(N,{flexDirection:"column",children:[q(M,{children:yQ}),q(N,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,children:q(SJ,{value:QJ.value,onChange:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,value:Q}:Z),onSubmit:()=>RQ(QJ.target,QJ.value),columns:80,cursorOffset:QJ.cursor,onChangeCursorOffset:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,cursor:Q}:Z),showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]}),V?.kind==="confirmDelete"&&u&&_(M,{color:"warning",children:['Delete phase "',u.name,'"? (y/n)']}),V?.kind==="confirmDiscard"&&q(M,{color:"warning",children:"Discard unsaved changes? (y/n)"}),Y.length>0&&_(M,{color:"error",wrap:"truncate",children:["⚠ ",Y.join(" · ")]}),m&&q(M,{dimColor:!0,wrap:"truncate",children:m})]})}var E,wJ=26,kJ=7;var PQ=qJ(()=>{dJ();WJ();lJ();pJ();YQ();aJ();aQ();DJ();iQ();oJ();uJ();NQ();mJ();zQ();s();E=OJ(BJ(),1)});import{unlink as JX,writeFile as QX}from"fs/promises";import{join as HQ}from"path";function DQ({onRun:J,onInputActiveChange:U,onViewChange:K}){let[H,B]=p.useState([]),[W,X]=p.useState({}),[I,w]=p.useState(0),[S,F]=p.useState("list"),[g,R]=p.useState(""),[l,v]=p.useState(0),[k,C]=p.useState(null),[j,D]=p.useState(null),L=p.useCallback(()=>{OQ().then(({defs:Y,errorsByFile:P})=>{B(Y),X(P)}).catch((Y)=>x(Y))},[]);p.useEffect(L,[L]),p.useEffect(()=>{U(S!=="list")},[S,U]),p.useEffect(()=>{K?.(j!==null)},[j,K]);let V=H[Math.min(I,Math.max(0,H.length-1))],O=(Y)=>Y.sourceFile??`${Y.name}.md`,m=V?W[O(V)]:void 0,T=(Y)=>{R(""),v(0),C(null),F(Y)},h=()=>{if(V&&g.trim())J(V,g.trim());F("list")},c=async()=>{let Y=g.trim();if(!Y){F("list");return}try{let P=HQ(JJ(),`${Y}.md`);await QX(P,XX(Y)),L(),D(`${Y}.md`)}catch(P){x(P),C("Failed to create workflow.")}F("list")},$=async()=>{if(V)try{await JX(HQ(JJ(),O(V))),C(`Deleted ${V.name}.`),L()}catch(Y){x(Y),C("Failed to delete workflow.")}F("list")};if(e((Y,P)=>{if(j!==null)return;if(S==="confirmDelete"){if(Y==="y")$();else F("list");return}if(S!=="list")return;if(P.upArrow)w((A)=>Math.max(0,A-1));else if(P.downArrow)w((A)=>Math.min(H.length-1,A+1));else if(P.return&&V)T("task");else if(Y==="n")T("new");else if(Y==="d"&&V)F("confirmDelete");else if(Y==="e"&&V)C(null),D(O(V));else if(Y==="r")L()},{isActive:!0}),j!==null)return q(N,{paddingX:2,children:q(MQ,{sourceFile:j,onClose:()=>{D(null),L()}})});if(S==="task"||S==="new"){let Y=S==="task"?`Task for "${V?.name}":`:"New workflow name:";return _(N,{flexDirection:"column",paddingTop:1,paddingX:2,children:[q(zJ,{color:"permission"}),q(N,{marginTop:1,children:q(M,{children:Y})}),q(N,{borderStyle:"round",borderDimColor:!0,marginY:1,paddingLeft:1,children:q(SJ,{value:g,onChange:R,onSubmit:S==="task"?h:()=>void c(),columns:80,cursorOffset:l,onChangeCursorOffset:v,showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission"}),_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[H.length===0?q(M,{dimColor:!0,children:'No workflows. Press "n" to create one at .claudin/workflows/.'}):H.map((Y,P)=>{let A=Boolean(W[O(Y)]?.length);return _(M,{inverse:P===I,children:[P===I?"▸ ":" ",Y.name,A?" ⚠":""," ",_(M,{dimColor:!0,children:["· ",Y.steps.length," phases"]})]},Y.name)}),V&&_(N,{flexDirection:"column",marginTop:1,children:[q(M,{dimColor:!0,children:V.description}),V.steps.map((Y)=>_(M,{dimColor:!0,children:[" ",Y.name,": ",Y.agents.join(", ")||"(terminal)",Y.handbackTo?.length?` ↩ ${Y.handbackTo.join(",")}`:""]},Y.name)),m?.length?_(M,{color:"error",children:["⚠ ",m.join("; ")]}):null]}),S==="confirmDelete"&&V&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete "',V.name,'"? (y/n)']})}),k&&q(N,{marginTop:1,children:q(M,{dimColor:!0,children:k})})]})]})}var p,XX=(J)=>`---
8
+ name: ${J}
9
+ description: What this workflow does
10
+ steps:
11
+ - name: explore
12
+ agents: [explorer]
13
+ - name: synthesize
14
+ agents: [synthesizer]
15
+ handbackTo: [explore]
16
+ - name: done
17
+ ---
18
+ Describe the goal and any house rules for this workflow.
19
+ `;var LQ=qJ(()=>{WJ();YQ();DJ();iJ();NQ();mJ();PQ();s();p=OJ(BJ(),1)});function BQ({hint:J,onExit:U,escActive:K=!0}){let H=FQ();return AQ("confirm:no",U,{context:"Settings",isActive:K}),q(N,{marginLeft:2,marginTop:1,children:q(M,{dimColor:!0,children:H.pending?`Press ${H.keyName} again to exit`:J})})}function NZ({context:J,onExit:U,initialTab:K,initialRunId:H}){let[B,W]=d.useState(K??"library"),[X,I]=d.useState(null),[w,S]=d.useState(!1),[F,g]=d.useState(!1),[R,l]=d.useState(!1),v=d.useRef(null),k=d.useRef(!0);d.useEffect(()=>{return k.current=!0,()=>{k.current=!1}},[]);let C=J.canUseTool??UX,j=d.useCallback((O,m)=>{v.current?.abort();let T=new AbortController;v.current=T,W("running");let h={...J,setAppState:()=>{},setAppStateForTasks:J.setAppStateForTasks??J.setAppState};WQ({def:O,task:m,toolUseContext:h,canUseTool:C,signal:T.signal,onProgress:(c)=>{if(k.current)I({...c})}}).then((c)=>{if(k.current)I({...c});let $=(c.artifact||"").slice(0,2000);CQ({value:`<task-notification>
20
+ <status>${c.status}</status>
21
+ <summary>Workflow "${O.name}" ${c.status} (run ${c.runId})</summary>
22
+ <result>${$}</result>
23
+ </task-notification>`,mode:"task-notification"})}).catch((c)=>x(c))},[J,C]),D=d.useCallback(()=>{v.current?.abort()},[]);e((O,m)=>{if(m.tab||m.leftArrow)W((T)=>T==="running"?"library":"running");else if(m.rightArrow)W("running")},{isActive:!w&&!F&&!R});let L=_(N,{flexDirection:"row",gap:1,children:[q(M,{bold:!0,color:"permission",children:"Workflows"}),_(M,{bold:B==="running",inverse:B==="running",children:[" ","Running"," "]}),_(M,{bold:B==="library",inverse:B==="library",children:[" ","Library"," "]})]}),V=()=>U("Workflows dialog dismissed",{display:"system"});if(B==="running")return _(N,{flexDirection:"column",children:[!F&&L,q(QQ,{liveRun:X,onStop:D,initialRunId:H,onViewChange:g}),q(BQ,{hint:F?"↑↓ select · esc back · s save":"Tab tabs · ↑↓ select · Enter view · s save · x stop · d delete · Esc close",escActive:!F,onExit:V})]});return _(N,{flexDirection:"column",children:[!R&&L,q(DQ,{onRun:j,onInputActiveChange:S,onViewChange:l}),q(BQ,{hint:R?"↑↓ nav · Enter edit · a add · d del · K/J move · p prompt · s save · Esc back":"Tab tabs · ↑↓ select · Enter run · n new · e edit · d delete · Esc close",escActive:!R,onExit:V})]})}var d,UX=async(J,U)=>({behavior:"allow",updatedInput:U});var YX=qJ(()=>{WJ();$X();ZX();DJ();qX();zX();XQ();LQ();s();d=OJ(BJ(),1)});
24
+ export{NZ as dc,YX as ec};
@@ -0,0 +1,2 @@
1
+ import{M4 as m}from"./cli-1.1.5-y8301wby.mjs";import{K8 as K,a9 as $}from"./cli-1.1.5-y39w08qk.mjs";import{Uea as Q,Xea as J,Yga as Z,qfa as Y,rea as X}from"./cli-1.1.5-v9a6fbsq.mjs";import{vja as W}from"./cli-1.1.5-fr76ha7s.mjs";import{Isa as V}from"./cli-1.1.5-keef1hq8.mjs";function y(){let z=K()?.organizationUuid;if(!z)return null;let B=J().overageCreditGrantCache?.[z];if(!B)return null;if(Date.now()-B.timestamp>q)return null;return B.info}function G(){let z=K()?.organizationUuid;if(!z)return;let B=J().overageCreditGrantCache;if(!B||!(z in B))return;Q((N)=>{let P={...N.overageCreditGrantCache};return delete P[z],{...N,overageCreditGrantCache:P}})}function U(z){if(z.amount_minor_units==null||!z.currency)return null;if(z.currency.toUpperCase()==="USD"){let B=z.amount_minor_units/100;return Number.isInteger(B)?`$${B}`:`$${B.toFixed(2)}`}return null}var q=3600000;var w=V(()=>{W();$();Y();Z();X();m()});
2
+ export{y as Qi,G as Ri,U as Si,w as Ti};
@@ -0,0 +1,2 @@
1
+ import{Pb as W,Qb as z}from"./cli-1.1.5-81ek1hnd.mjs";import{Vb as R}from"./cli-1.1.5-rc2g2735.mjs";import{KW as M,LW as w}from"./cli-1.1.5-97sv1sx5.mjs";import{Cka as j,zka as L}from"./cli-1.1.5-3zc9bseg.mjs";import{Zka as Z,ela as H}from"./cli-1.1.5-xd8qwq5t.mjs";j();H();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:E,getAuthToken:N}=B,P;if(N)P=()=>{let x=N();if(!x)return{};return{Authorization:`Bearer ${x}`}};else M(_);let Q=B.epoch??await R(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new z(V,{},$,void 0,E,P),X,J=new W(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let f,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){f=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),f?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
2
+ export{I as Kb,k as Lb,D as Mb};
@@ -0,0 +1,4 @@
1
+ import{Kn as R,Ln as BJ,PE as k,QE as HJ,et as D,ft as hJ,up as G,xp as a}from"./cli-1.1.5-bcgy5mbp.mjs";import{C8 as ZJ,N8 as $J,a9 as bJ}from"./cli-1.1.5-y39w08qk.mjs";import{Rda as WJ,eea as jJ,gaa as C,haa as GJ,iaa as h,jaa as FJ,kaa as u,laa as kJ}from"./cli-1.1.5-v9a6fbsq.mjs";import{Yha as x,iia as gJ}from"./cli-1.1.5-dpwkjrhv.mjs";import{Bia as q,Dia as s,Eia as Y,Fia as r}from"./cli-1.1.5-nkhse0vg.mjs";import{gja as M,lja as yJ}from"./cli-1.1.5-0amg980q.mjs";import{$ja as l,Lja as o,Mja as CJ,Vja as n,Wja as EJ,aka as TJ}from"./cli-1.1.5-3zc9bseg.mjs";import{Bma as H,Cma as F,Dma as I,Dqa as QJ,Ema as YJ,Fla as g,Fma as P,Gla as zJ,Gma as XJ,Hla as A,Ila as wJ,Tla as f,Ula as PJ,Zqa as mJ,xma as c,yma as OJ}from"./cli-1.1.5-0gd61h7z.mjs";import{gra as K,hra as DJ}from"./cli-1.1.5-xn9p8nks.mjs";import{Isa as B}from"./cli-1.1.5-keef1hq8.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
2
+ ${Q}
3
+ </${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
+ export{NQ as Yf,_J as Zf,JJ as _f,bQ as $f,uQ as ag,cJ as bg,iQ as cg,oJ as dg};
@@ -0,0 +1,2 @@
1
+ import{Uf as N0,Vf as U0,Xf as VP}from"./cli-1.1.5-60cafcfa.mjs";import{$n as w0,MN as ZP,NN as m0,PN as qP,UM as WP,UN as CP,Yn as h,Zn as c0,_n as p,ao as r,bN as cP,bo as W0,cN as fP,eN as M0,eo as O0,fN as h0,fo as EP,gN as T0,hN as d0,iy as J0,jO as C0,jy as QP,kI as G0,kN as R0,lI as YP,ly as j0,nG as XP,nO as pP,oG as mP,rN as u0,xG as L0,zG as i0}from"./cli-1.1.5-bcgy5mbp.mjs";import{BY as z0,DY as TP,GY as D0,HY as LP,nY as JP,oY as hP}from"./cli-1.1.5-bs0hzzxt.mjs";import{CZ as AP,DZ as I0,H1 as q0,MZ as k0,_0 as C,a1 as X,c1 as L,g1 as F0,w1 as GP,xZ as PP}from"./cli-1.1.5-9q40r2jj.mjs";import{n4 as n,o4 as J,p4 as Q,q4 as a}from"./cli-1.1.5-0a8jb3pr.mjs";import{r4 as $0}from"./cli-1.1.5-43y030nv.mjs";import{O4 as A0,P4 as dP}from"./cli-1.1.5-6dmtdkjb.mjs";import{K8 as e0,a9 as gP}from"./cli-1.1.5-y39w08qk.mjs";import{D_ as _,E_ as r0,Vca as y0,Vga as s0,Wca as B0,Xca as KP,Yga as SP,lda as H0,mda as zP,uda as p0}from"./cli-1.1.5-v9a6fbsq.mjs";import{uja as g0,vja as _P}from"./cli-1.1.5-fr76ha7s.mjs";import{wja as m,zja as IP}from"./cli-1.1.5-zqf5btpq.mjs";import{Zka as f0,ela as t0}from"./cli-1.1.5-xd8qwq5t.mjs";import{Esa as e,Isa as P0}from"./cli-1.1.5-keef1hq8.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(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 V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=J0((q)=>q.mcp),M=QP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)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){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),A0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=M0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await A0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else s0(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(F){if(F instanceof Error&&!(F instanceof ZP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(XP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(L0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{r0();IP();_P();LP();hP();AP();q0();TP();CP();pP();VP();u0();j0();gP();dP();t0();SP();p0();w0();i0();W0();c0();YP();mP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),k=J0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=M0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(L0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{r0();LP();q0();cP();VP();u0();j0();t0();p0();w0();i0();W0();c0();YP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();w0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=J0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(L0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();u0();j0();p0();w0();i0();W0();EP();c0();a();HP=e(I0(),1)});
2
+ export{bG as Lf,$P as Mf,uG as Nf,jP as Of,tG as Pf,uP as Qf,VJ as Rf,aP as Sf};