@claudiolabs/claudin 1.1.1 → 1.1.2

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.2-6zb8pht6.mjs +1 -0
  2. package/dist/chunks/App-1.1.2-8j8hmwy9.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.2-ejb1881w.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.2-y7hdgasp.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.2-b2ckdy5h.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.2-nk59yp5m.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.2-t6wsf59z.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.2-ehy8cjkp.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.2-2834m4pm.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.2-rrjcjsbd.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.2-a4eqp58y.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.2-e07ta9pa.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.2-mdqpkv6t.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.2-fwghx005.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.2-47vmakv0.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.2-tphw5gq9.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.2-a645a6a2.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.2-48xvht72.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.2-a2z2r0kz.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.2-avb3zbsn.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.2-r8c624d9.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.2-1mmfypbv.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.2-ky4az8t9.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.2-w72b36j1.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.2-ejx4rvac.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.2-5m2ekdy4.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.2-b7q0fb2j.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.2-j0pztex4.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.2-fzpmgh1h.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.2-vr9770fz.mjs +1 -0
  31. package/dist/chunks/agents-1.1.2-n6dejn00.mjs +3 -0
  32. package/dist/chunks/agents-1.1.2-rxkey856.mjs +110 -0
  33. package/dist/chunks/api-1.1.2-fpd74byc.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.2-0nvcvhqa.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.2-ywzgwzmt.mjs +1 -0
  36. package/dist/chunks/auth-1.1.2-cg0svgv7.mjs +1 -0
  37. package/dist/chunks/auth-1.1.2-s45hhsck.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.2-6q0pp71h.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.2-bnwzvzbf.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.2-meh5zm3k.mjs +1 -0
  41. package/dist/chunks/branch-1.1.2-exyc66rb.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.2-zvk3eymq.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.2-mr20ypjr.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.2-s41251vp.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.2-tse9m0x8.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.2-grjrm008.mjs +1 -0
  47. package/dist/chunks/btw-1.1.2-6xz6s5f3.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.2-zsy6mntg.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.2-pr00fyac.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.2-dd1ch184.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.2-xnm7ts60.mjs +4 -0
  52. package/dist/chunks/caches-1.1.2-s4tektt8.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.2-krejmvza.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.2-g1dwsxtx.mjs +1 -0
  55. package/dist/chunks/clear-1.1.2-5fz98qqy.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.2-heqmh2ay.mjs +1 -0
  57. package/dist/chunks/cli-1.1.2-00hggnnf.mjs +9 -0
  58. package/dist/chunks/cli-1.1.2-06gbqkw3.mjs +2 -0
  59. package/dist/chunks/cli-1.1.2-06wg9ep0.mjs +2 -0
  60. package/dist/chunks/cli-1.1.2-0q8k3447.mjs +2 -0
  61. package/dist/chunks/cli-1.1.2-10g0wy7w.mjs +2 -0
  62. package/dist/chunks/cli-1.1.2-12xajsdg.mjs +2 -0
  63. package/dist/chunks/cli-1.1.2-1a35rnqk.mjs +2 -0
  64. package/dist/chunks/cli-1.1.2-1kqxt2v2.mjs +2 -0
  65. package/dist/chunks/cli-1.1.2-1rh7zj2h.mjs +133 -0
  66. package/dist/chunks/cli-1.1.2-1v80dsr5.mjs +2 -0
  67. package/dist/chunks/cli-1.1.2-1z8yre0p.mjs +2 -0
  68. package/dist/chunks/cli-1.1.2-22w1aakd.mjs +17 -0
  69. package/dist/chunks/cli-1.1.2-26xrf159.mjs +2 -0
  70. package/dist/chunks/cli-1.1.2-2d3dw4nn.mjs +25 -0
  71. package/dist/chunks/cli-1.1.2-2rf4g79b.mjs +3 -0
  72. package/dist/chunks/cli-1.1.2-2vzy6fgr.mjs +4 -0
  73. package/dist/chunks/cli-1.1.2-2x9dcdpq.mjs +2 -0
  74. package/dist/chunks/cli-1.1.2-2ya2s94w.mjs +15 -0
  75. package/dist/chunks/cli-1.1.2-2ygaa01s.mjs +3 -0
  76. package/dist/chunks/cli-1.1.2-312r29db.mjs +2 -0
  77. package/dist/chunks/cli-1.1.2-38rgkyw3.mjs +2 -0
  78. package/dist/chunks/cli-1.1.2-39xjjhsf.mjs +24 -0
  79. package/dist/chunks/cli-1.1.2-3mhsnff4.mjs +2 -0
  80. package/dist/chunks/cli-1.1.2-3mpy81rn.mjs +2 -0
  81. package/dist/chunks/cli-1.1.2-3v91jtm9.mjs +2 -0
  82. package/dist/chunks/cli-1.1.2-3vhc8676.mjs +2 -0
  83. package/dist/chunks/cli-1.1.2-3w0nbdtc.mjs +2 -0
  84. package/dist/chunks/cli-1.1.2-45nwkmpy.mjs +2 -0
  85. package/dist/chunks/cli-1.1.2-4d1hhyqs.mjs +2 -0
  86. package/dist/chunks/cli-1.1.2-4e3xrjth.mjs +2 -0
  87. package/dist/chunks/cli-1.1.2-4skhxaf4.mjs +6 -0
  88. package/dist/chunks/cli-1.1.2-4x5wz1xq.mjs +67 -0
  89. package/dist/chunks/cli-1.1.2-51pdt76x.mjs +2 -0
  90. package/dist/chunks/cli-1.1.2-526csky8.mjs +2 -0
  91. package/dist/chunks/cli-1.1.2-5dbzz1pp.mjs +12 -0
  92. package/dist/chunks/cli-1.1.2-5pe3b93k.mjs +25 -0
  93. package/dist/chunks/cli-1.1.2-5w2m33hk.mjs +2 -0
  94. package/dist/chunks/cli-1.1.2-5wfgzqgc.mjs +2 -0
  95. package/dist/chunks/cli-1.1.2-61nmeckv.mjs +4 -0
  96. package/dist/chunks/cli-1.1.2-63p3yvzk.mjs +2 -0
  97. package/dist/chunks/cli-1.1.2-64bjkwj9.mjs +2 -0
  98. package/dist/chunks/cli-1.1.2-6cj9ggma.mjs +5638 -0
  99. package/dist/chunks/cli-1.1.2-6kq0hmvj.mjs +2 -0
  100. package/dist/chunks/cli-1.1.2-6r2ybktd.mjs +18 -0
  101. package/dist/chunks/cli-1.1.2-79hm6s3a.mjs +7 -0
  102. package/dist/chunks/cli-1.1.2-7fe75jd9.mjs +2 -0
  103. package/dist/chunks/cli-1.1.2-7fjx7f8d.mjs +2 -0
  104. package/dist/chunks/cli-1.1.2-7jcscwh5.mjs +2 -0
  105. package/dist/chunks/cli-1.1.2-7m5zhsrs.mjs +2 -0
  106. package/dist/chunks/cli-1.1.2-7q8cqbtc.mjs +2 -0
  107. package/dist/chunks/cli-1.1.2-7swa79jc.mjs +24 -0
  108. package/dist/chunks/cli-1.1.2-7xwayv2p.mjs +20 -0
  109. package/dist/chunks/cli-1.1.2-8d3m4zhf.mjs +2 -0
  110. package/dist/chunks/cli-1.1.2-8fsex5c8.mjs +2 -0
  111. package/dist/chunks/cli-1.1.2-8trsbckp.mjs +2 -0
  112. package/dist/chunks/cli-1.1.2-8wc2wcne.mjs +3 -0
  113. package/dist/chunks/cli-1.1.2-94nsdbgk.mjs +2 -0
  114. package/dist/chunks/cli-1.1.2-96wg2gfk.mjs +2 -0
  115. package/dist/chunks/cli-1.1.2-99rcxvch.mjs +2 -0
  116. package/dist/chunks/cli-1.1.2-9ash84j3.mjs +2 -0
  117. package/dist/chunks/cli-1.1.2-9ke8m3ex.mjs +2 -0
  118. package/dist/chunks/cli-1.1.2-9rh5p8p5.mjs +2 -0
  119. package/dist/chunks/cli-1.1.2-a69xymn7.mjs +2 -0
  120. package/dist/chunks/cli-1.1.2-a9n9p929.mjs +2 -0
  121. package/dist/chunks/cli-1.1.2-aav0ncfm.mjs +2 -0
  122. package/dist/chunks/cli-1.1.2-ad1q4yds.mjs +4 -0
  123. package/dist/chunks/cli-1.1.2-aq3e6kg7.mjs +2 -0
  124. package/dist/chunks/cli-1.1.2-ax711ayq.mjs +2 -0
  125. package/dist/chunks/cli-1.1.2-b850wzhk.mjs +2 -0
  126. package/dist/chunks/cli-1.1.2-b9tdyfz3.mjs +21 -0
  127. package/dist/chunks/cli-1.1.2-bhjzjkag.mjs +4 -0
  128. package/dist/chunks/cli-1.1.2-bvvn3mfz.mjs +2 -0
  129. package/dist/chunks/cli-1.1.2-cs3wpy5m.mjs +2 -0
  130. package/dist/chunks/cli-1.1.2-d0dmaqaz.mjs +2 -0
  131. package/dist/chunks/cli-1.1.2-d3vc56eg.mjs +4 -0
  132. package/dist/chunks/cli-1.1.2-d9r7gv39.mjs +2 -0
  133. package/dist/chunks/cli-1.1.2-dg1134n2.mjs +2 -0
  134. package/dist/chunks/cli-1.1.2-dgw89jzs.mjs +4 -0
  135. package/dist/chunks/cli-1.1.2-e9bnprf3.mjs +2 -0
  136. package/dist/chunks/cli-1.1.2-efe0402v.mjs +2 -0
  137. package/dist/chunks/cli-1.1.2-em7hye78.mjs +4 -0
  138. package/dist/chunks/cli-1.1.2-eqyyfzzp.mjs +2 -0
  139. package/dist/chunks/cli-1.1.2-evsw8rmv.mjs +2 -0
  140. package/dist/chunks/cli-1.1.2-f5bj8nyg.mjs +2 -0
  141. package/dist/chunks/cli-1.1.2-f8pc3h46.mjs +16 -0
  142. package/dist/chunks/cli-1.1.2-fcjvcn8t.mjs +2 -0
  143. package/dist/chunks/cli-1.1.2-fmrgtbj6.mjs +2 -0
  144. package/dist/chunks/cli-1.1.2-fnfay3zd.mjs +2 -0
  145. package/dist/chunks/cli-1.1.2-fnp913tz.mjs +2 -0
  146. package/dist/chunks/cli-1.1.2-fq7w78vq.mjs +2 -0
  147. package/dist/chunks/cli-1.1.2-fs1t9yw3.mjs +15 -0
  148. package/dist/chunks/cli-1.1.2-fwcddg2k.mjs +3 -0
  149. package/dist/chunks/cli-1.1.2-g3dcz46h.mjs +2 -0
  150. package/dist/chunks/cli-1.1.2-g3ms995y.mjs +2 -0
  151. package/dist/chunks/cli-1.1.2-g9cs3fkf.mjs +24 -0
  152. package/dist/chunks/cli-1.1.2-gb52rdfa.mjs +2 -0
  153. package/dist/chunks/cli-1.1.2-gb58q1j1.mjs +2 -0
  154. package/dist/chunks/cli-1.1.2-gdcv810d.mjs +2 -0
  155. package/dist/chunks/cli-1.1.2-gqdaxfvm.mjs +2 -0
  156. package/dist/chunks/cli-1.1.2-gtjv8yhc.mjs +2 -0
  157. package/dist/chunks/cli-1.1.2-gvwc8kmd.mjs +6 -0
  158. package/dist/chunks/cli-1.1.2-gws9nr18.mjs +9 -0
  159. package/dist/chunks/cli-1.1.2-gxzwceae.mjs +2 -0
  160. package/dist/chunks/cli-1.1.2-gy0p2qqf.mjs +4 -0
  161. package/dist/chunks/cli-1.1.2-h2avr3ya.mjs +2 -0
  162. package/dist/chunks/cli-1.1.2-h9csstnw.mjs +2 -0
  163. package/dist/chunks/cli-1.1.2-hpx774ph.mjs +3 -0
  164. package/dist/chunks/cli-1.1.2-hzaqg545.mjs +17 -0
  165. package/dist/chunks/cli-1.1.2-j9n5qd1w.mjs +2 -0
  166. package/dist/chunks/cli-1.1.2-jpgqkhxd.mjs +59 -0
  167. package/dist/chunks/cli-1.1.2-js4s7tq5.mjs +2 -0
  168. package/dist/chunks/cli-1.1.2-jv9f8r52.mjs +3 -0
  169. package/dist/chunks/cli-1.1.2-jxkffay4.mjs +2 -0
  170. package/dist/chunks/cli-1.1.2-k077a0s0.mjs +2 -0
  171. package/dist/chunks/cli-1.1.2-k3tsqm2p.mjs +2 -0
  172. package/dist/chunks/cli-1.1.2-k4bpvm06.mjs +2 -0
  173. package/dist/chunks/cli-1.1.2-k61a86d8.mjs +3 -0
  174. package/dist/chunks/cli-1.1.2-kahqzzrg.mjs +2 -0
  175. package/dist/chunks/cli-1.1.2-kav702qr.mjs +2 -0
  176. package/dist/chunks/cli-1.1.2-kcfzd7n8.mjs +2 -0
  177. package/dist/chunks/cli-1.1.2-kkgf4hyc.mjs +3 -0
  178. package/dist/chunks/cli-1.1.2-kq402xqd.mjs +2 -0
  179. package/dist/chunks/cli-1.1.2-m0529q09.mjs +45 -0
  180. package/dist/chunks/cli-1.1.2-m2ar3b2y.mjs +18 -0
  181. package/dist/chunks/cli-1.1.2-m4ksha3b.mjs +2 -0
  182. package/dist/chunks/cli-1.1.2-m7d5acdw.mjs +2 -0
  183. package/dist/chunks/cli-1.1.2-ma8mh6tb.mjs +2 -0
  184. package/dist/chunks/cli-1.1.2-mnp59g5q.mjs +12 -0
  185. package/dist/chunks/cli-1.1.2-mr55880g.mjs +2 -0
  186. package/dist/chunks/cli-1.1.2-mtztdv5m.mjs +2 -0
  187. package/dist/chunks/cli-1.1.2-n2f8jkwd.mjs +2 -0
  188. package/dist/chunks/cli-1.1.2-n2k1y1rv.mjs +2 -0
  189. package/dist/chunks/cli-1.1.2-nd5g2z1v.mjs +2 -0
  190. package/dist/chunks/cli-1.1.2-nskkg1h5.mjs +5 -0
  191. package/dist/chunks/cli-1.1.2-p8amxd73.mjs +4 -0
  192. package/dist/chunks/cli-1.1.2-pbtymf0g.mjs +2 -0
  193. package/dist/chunks/cli-1.1.2-pgt1vydc.mjs +2 -0
  194. package/dist/chunks/cli-1.1.2-qg5xbb38.mjs +2 -0
  195. package/dist/chunks/cli-1.1.2-qge4zbeg.mjs +2 -0
  196. package/dist/chunks/cli-1.1.2-qm56km1n.mjs +4 -0
  197. package/dist/chunks/cli-1.1.2-qxjs641v.mjs +2 -0
  198. package/dist/chunks/cli-1.1.2-r32per66.mjs +2 -0
  199. package/dist/chunks/cli-1.1.2-r39g5zy8.mjs +2 -0
  200. package/dist/chunks/cli-1.1.2-re4qc97z.mjs +6 -0
  201. package/dist/chunks/cli-1.1.2-rm27fqp7.mjs +2 -0
  202. package/dist/chunks/cli-1.1.2-rp3kb2k1.mjs +2 -0
  203. package/dist/chunks/cli-1.1.2-rwfksv3e.mjs +8 -0
  204. package/dist/chunks/cli-1.1.2-rx0kctyq.mjs +15 -0
  205. package/dist/chunks/cli-1.1.2-ryw7gagg.mjs +2 -0
  206. package/dist/chunks/cli-1.1.2-s2xde2xb.mjs +2 -0
  207. package/dist/chunks/cli-1.1.2-s6et33a5.mjs +2 -0
  208. package/dist/chunks/cli-1.1.2-s76jqr70.mjs +2 -0
  209. package/dist/chunks/cli-1.1.2-sd7xc4s3.mjs +2 -0
  210. package/dist/chunks/cli-1.1.2-sdra9y0x.mjs +34 -0
  211. package/dist/chunks/cli-1.1.2-se3yz188.mjs +2 -0
  212. package/dist/chunks/cli-1.1.2-sk8gpfnw.mjs +2 -0
  213. package/dist/chunks/cli-1.1.2-sxp48xhs.mjs +133 -0
  214. package/dist/chunks/cli-1.1.2-t4aw8heb.mjs +2 -0
  215. package/dist/chunks/cli-1.1.2-t9knn0qp.mjs +2 -0
  216. package/dist/chunks/cli-1.1.2-tepjwp3h.mjs +2 -0
  217. package/dist/chunks/cli-1.1.2-thb8wh7v.mjs +2 -0
  218. package/dist/chunks/cli-1.1.2-tk5pscqh.mjs +12 -0
  219. package/dist/chunks/cli-1.1.2-tkr9thek.mjs +6 -0
  220. package/dist/chunks/cli-1.1.2-tn2dw7tr.mjs +2 -0
  221. package/dist/chunks/cli-1.1.2-tyx76ya3.mjs +2 -0
  222. package/dist/chunks/cli-1.1.2-v4dexj9m.mjs +2 -0
  223. package/dist/chunks/cli-1.1.2-v5aq687d.mjs +4 -0
  224. package/dist/chunks/cli-1.1.2-vdnvxk7d.mjs +2 -0
  225. package/dist/chunks/cli-1.1.2-vdtd8tyw.mjs +3 -0
  226. package/dist/chunks/cli-1.1.2-vedfryrw.mjs +39 -0
  227. package/dist/chunks/cli-1.1.2-vkw3t6e1.mjs +2 -0
  228. package/dist/chunks/cli-1.1.2-vn5a5kng.mjs +2 -0
  229. package/dist/chunks/cli-1.1.2-vqhs2nfg.mjs +2 -0
  230. package/dist/chunks/cli-1.1.2-w39dxwaq.mjs +5 -0
  231. package/dist/chunks/cli-1.1.2-w6e54y3j.mjs +2 -0
  232. package/dist/chunks/cli-1.1.2-wd7anmzt.mjs +2 -0
  233. package/dist/chunks/cli-1.1.2-wfh9694n.mjs +42 -0
  234. package/dist/chunks/cli-1.1.2-whyrn26g.mjs +2 -0
  235. package/dist/chunks/cli-1.1.2-wtjpdxah.mjs +2 -0
  236. package/dist/chunks/cli-1.1.2-wz2q0wq7.mjs +2 -0
  237. package/dist/chunks/cli-1.1.2-x6tg8d4f.mjs +58 -0
  238. package/dist/chunks/cli-1.1.2-x7pdyv4r.mjs +3 -0
  239. package/dist/chunks/cli-1.1.2-x7qa1qq3.mjs +50 -0
  240. package/dist/chunks/cli-1.1.2-xbpjh8ph.mjs +2 -0
  241. package/dist/chunks/cli-1.1.2-xpf1bbmk.mjs +2 -0
  242. package/dist/chunks/cli-1.1.2-xrfe457w.mjs +2 -0
  243. package/dist/chunks/cli-1.1.2-y2eet2t4.mjs +2 -0
  244. package/dist/chunks/cli-1.1.2-y8dhsas4.mjs +12 -0
  245. package/dist/chunks/cli-1.1.2-yajs5n37.mjs +18 -0
  246. package/dist/chunks/cli-1.1.2-yh44qbw4.mjs +2 -0
  247. package/dist/chunks/cli-1.1.2-yj8m159m.mjs +2 -0
  248. package/dist/chunks/cli-1.1.2-z2m1x4a9.mjs +2 -0
  249. package/dist/chunks/cli-1.1.2-z31tqg0s.mjs +202 -0
  250. package/dist/chunks/cli-1.1.2-z56w3mhn.mjs +3 -0
  251. package/dist/chunks/cli-1.1.2-z7ha6v3f.mjs +2 -0
  252. package/dist/chunks/cli-1.1.2-ze70ftw0.mjs +1 -0
  253. package/dist/chunks/cli-1.1.2-zm6bk4ph.mjs +2 -0
  254. package/dist/chunks/cli-1.1.2-zn8nzq9g.mjs +2 -0
  255. package/dist/chunks/cli-1.1.2-zv4bhn4s.mjs +6 -0
  256. package/dist/chunks/cli-1.1.2-zy0pbg7t.mjs +3 -0
  257. package/dist/chunks/cli-1.1.2-zy7bxchk.mjs +2 -0
  258. package/dist/chunks/cli-1.1.2-zy8c0mk4.mjs +2 -0
  259. package/dist/chunks/cli-1.1.2-zzd75gm6.mjs +2 -0
  260. package/dist/chunks/client-1.1.2-cfb4as3w.mjs +1 -0
  261. package/dist/chunks/color-1.1.2-1sf55h7k.mjs +1 -0
  262. package/dist/chunks/compact-1.1.2-dd3f57yj.mjs +3 -0
  263. package/dist/chunks/config-1.1.2-6bc1gc6c.mjs +1 -0
  264. package/dist/chunks/config-1.1.2-p9t1wpdw.mjs +1 -0
  265. package/dist/chunks/constants-1.1.2-tkm4c60r.mjs +1 -0
  266. package/dist/chunks/context-1.1.2-rw4msk80.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.2-c5hbr649.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.2-h9dvper4.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.2-nv81crna.mjs +1 -0
  270. package/dist/chunks/copy-1.1.2-hr7v2mx9.mjs +9 -0
  271. package/dist/chunks/cost-1.1.2-hdy89g4q.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.2-6v2x5eg0.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.2-ygyb7e8j.mjs +1 -0
  274. package/dist/chunks/debug-1.1.2-wk2d9rj6.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.2-gjp00h29.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.2-egp65wej.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.2-qh9nf9kg.mjs +1 -0
  278. package/dist/chunks/detection-1.1.2-02zpqkt2.mjs +1 -0
  279. package/dist/chunks/diff-1.1.2-29snp7ez.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.2-b321t9z0.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.2-214xq5kx.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.2-n8b9n8hj.mjs +1 -0
  283. package/dist/chunks/effort-1.1.2-42pxj2ke.mjs +13 -0
  284. package/dist/chunks/engine-1.1.2-071c5ycx.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.2-90nzxgap.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.2-rdsjbb4f.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.2-eeacbnpj.mjs +1 -0
  288. package/dist/chunks/environments-1.1.2-e0a09brc.mjs +1 -0
  289. package/dist/chunks/errors-1.1.2-1fp0w76h.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.2-prrwcbkh.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.2-61na3ack.mjs +1 -0
  292. package/dist/chunks/exit-1.1.2-eh7t4pcy.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.2-7brsg8bj.mjs +1 -0
  294. package/dist/chunks/export-1.1.2-2m0sfme0.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.2-akf4qvp0.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.2-ysbmggsv.mjs +1 -0
  297. package/dist/chunks/fast-1.1.2-43wzezv3.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.2-92k099e0.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.2-ksq42qwt.mjs +1 -0
  300. package/dist/chunks/git-1.1.2-fgm2kpjd.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.2-vj6dwy2c.mjs +1 -0
  302. package/dist/chunks/goal-1.1.2-hnd6dfnz.mjs +4 -0
  303. package/dist/chunks/grove-1.1.2-74zq9th4.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.2-x4pfbgm2.mjs +1 -0
  305. package/dist/chunks/headless-1.1.2-rhab73x2.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.2-a698r5c6.mjs +6 -0
  307. package/dist/chunks/help-1.1.2-er6xvvy0.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.2-yh3dmw0j.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.2-63zxxjj9.mjs +79 -0
  310. package/dist/chunks/hooks-1.1.2-ez3kc0p2.mjs +1 -0
  311. package/dist/chunks/ide-1.1.2-je812srr.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.2-xe8n5srr.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.2-qywwkc7m.mjs +1 -0
  314. package/dist/chunks/index-1.1.2-3evh58r7.mjs +1 -0
  315. package/dist/chunks/index-1.1.2-69bhefzj.mjs +1 -0
  316. package/dist/chunks/index-1.1.2-7kya3jrk.mjs +1 -0
  317. package/dist/chunks/index-1.1.2-7sphewt0.mjs +5 -0
  318. package/dist/chunks/index-1.1.2-947wna4y.mjs +1 -0
  319. package/dist/chunks/index-1.1.2-95c20hmc.mjs +1 -0
  320. package/dist/chunks/index-1.1.2-9xdx0kw2.mjs +1 -0
  321. package/dist/chunks/index-1.1.2-bvpaf73z.mjs +2 -0
  322. package/dist/chunks/index-1.1.2-dkvq5y5c.mjs +1 -0
  323. package/dist/chunks/index-1.1.2-ebc3q9cn.mjs +9 -0
  324. package/dist/chunks/index-1.1.2-htmnqkfh.mjs +1 -0
  325. package/dist/chunks/index-1.1.2-kdaazhrb.mjs +1 -0
  326. package/dist/chunks/index-1.1.2-kzzb5289.mjs +1 -0
  327. package/dist/chunks/index-1.1.2-madt9yt1.mjs +1 -0
  328. package/dist/chunks/index-1.1.2-mvhaw48f.mjs +2 -0
  329. package/dist/chunks/index-1.1.2-pzx0977r.mjs +1 -0
  330. package/dist/chunks/index-1.1.2-r1zg7fm1.mjs +1 -0
  331. package/dist/chunks/index-1.1.2-s1rqf88d.mjs +1 -0
  332. package/dist/chunks/index-1.1.2-t2gvqgcr.mjs +1 -0
  333. package/dist/chunks/index-1.1.2-thaazk19.mjs +17 -0
  334. package/dist/chunks/index-1.1.2-wey7e6ag.mjs +30 -0
  335. package/dist/chunks/index-1.1.2-y8ab1zbc.mjs +1 -0
  336. package/dist/chunks/index-1.1.2-zzrwyq5p.mjs +9 -0
  337. package/dist/chunks/init-1.1.2-85zbvgkj.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.2-de5jg8xg.mjs +1 -0
  339. package/dist/chunks/ink-1.1.2-dqpj9964.mjs +1 -0
  340. package/dist/chunks/insights-1.1.2-y73zf53m.mjs +870 -0
  341. package/dist/chunks/install-1.1.2-89hhj53e.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.2-qvppzny7.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.2-3h092m6m.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.2-knbaf11q.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.2-1ef73k1d.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.2-k2t8cv4v.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.2-ssv0qdb3.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.2-hjg7gvvk.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.2-s1ff144v.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.2-byf6cjm1.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.2-yvdv9pjd.mjs +1 -0
  352. package/dist/chunks/log-1.1.2-8cc3djq5.mjs +1 -0
  353. package/dist/chunks/main-1.1.2-th8b6kt4.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.2-z470j86z.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.2-86tk8ay8.mjs +1 -0
  356. package/dist/chunks/mcp-1.1.2-g64z89y6.mjs +17 -0
  357. package/dist/chunks/mcp-1.1.2-snaa1cjv.mjs +4 -0
  358. package/dist/chunks/mcpb-1.1.2-4mdrmbnx.mjs +1 -0
  359. package/dist/chunks/memory-1.1.2-habj4cwz.mjs +72 -0
  360. package/dist/chunks/model-1.1.2-vdjmatpe.mjs +1 -0
  361. package/dist/chunks/model-1.1.2-y4qnzr5d.mjs +2 -0
  362. package/dist/chunks/node-1.1.2-msn09mvf.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.2-95md8es8.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.2-swxk5w2d.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.2-gk5rwyf3.mjs +1 -0
  366. package/dist/chunks/package-2VNCXFNY-1.1.2-t2qeqjq8.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.2-kh0kdj72.mjs +1 -0
  368. package/dist/chunks/parser-1.1.2-bq2yyqcn.mjs +1 -0
  369. package/dist/chunks/passes-1.1.2-z98me43k.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.2-4q31d83k.mjs +3 -0
  371. package/dist/chunks/permissions-1.1.2-yj6ep04t.mjs +1 -0
  372. package/dist/chunks/plan-1.1.2-aq6tkcvx.mjs +1 -0
  373. package/dist/chunks/plist-1.1.2-wtdpfgrq.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.2-9h7564kc.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.2-xs7cvmve.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.2-gktqysmr.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.2-zbm0ahc2.mjs +2 -0
  378. package/dist/chunks/print-1.1.2-9xz8kk84.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.2-9w8bvgmp.mjs +1 -0
  380. package/dist/chunks/process-1.1.2-4ha9kngp.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.2-t1abzpg8.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.2-krgryjdy.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.2-exabd70s.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.2-qbhgy60q.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.2-z5xqs93q.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.2-jzdef7t2.mjs +13 -0
  387. package/dist/chunks/provider-1.1.2-q784s7t1.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.2-hgq6ezmt.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.2-6svgbwp4.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.2-pdk8r710.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.2-ja3famgz.mjs +34 -0
  392. package/dist/chunks/registry-1.1.2-bteqae43.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.2-m864etmn.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.2-xgc8eghm.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.2-jy20nnyn.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.2-wrzz2zme.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.2-2ms5x1xn.mjs +1 -0
  398. package/dist/chunks/rename-1.1.2-99a39m1m.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.2-6qx7my8a.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.2-8aq6b75y.mjs +1 -0
  401. package/dist/chunks/resume-1.1.2-n0d6rgp7.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.2-4mrqvf42.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.2-3vma1kzy.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.2-qpb0brgp.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.2-985g3rtd.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.2-h5bx372x.mjs +1 -0
  407. package/dist/chunks/session-1.1.2-q3ahqvyx.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.2-qcyr8b8w.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.2-2y6b014f.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.2-6vk4ryr3.mjs +1 -0
  411. package/dist/chunks/settings-1.1.2-nf07eg97.mjs +1 -0
  412. package/dist/chunks/setup-1.1.2-5f344krn.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.2-xq2d5k0p.mjs +1 -0
  414. package/dist/chunks/skills-1.1.2-2e8x03xz.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.2-vbw0t7zn.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.2-7xtv2jhz.mjs +1 -0
  417. package/dist/chunks/state-1.1.2-4stfxgxw.mjs +1 -0
  418. package/dist/chunks/stats-1.1.2-x2men93c.mjs +6 -0
  419. package/dist/chunks/status-1.1.2-k6342tq7.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.2-m2ee29wd.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.2-gfsm4m3z.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.2-52bgwvvk.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.2-fcfqve0r.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.2-s2qw8rtp.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.2-mxjmy1bj.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.2-376p31n2.mjs +1 -0
  427. package/dist/chunks/theme-1.1.2-vhrm8pkz.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.2-2k5azpda.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.2-w3xe66qy.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.2-th0e7c3p.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.2-5vbh7tfs.mjs +1 -0
  432. package/dist/chunks/tools-1.1.2-0tdzn87s.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.2-s31a3mdh.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.2-aj5hafxn.mjs +69 -0
  435. package/dist/chunks/types-1.1.2-vst16v9y.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.2-3tcemmrp.mjs +4 -0
  437. package/dist/chunks/update-1.1.2-7daxbkja.mjs +72 -0
  438. package/dist/chunks/upgrade-1.1.2-paz816ha.mjs +1 -0
  439. package/dist/chunks/upload-1.1.2-tb2wafs2.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.2-k3w1snzk.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.2-2w62pdbp.mjs +1 -0
  442. package/dist/chunks/usage-1.1.2-xa0p51ga.mjs +1 -0
  443. package/dist/chunks/util-1.1.2-790z163z.mjs +1 -0
  444. package/dist/chunks/utils-1.1.2-vs0h9jny.mjs +1 -0
  445. package/dist/chunks/vim-1.1.2-c8e520z8.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.2-e4ehn07s.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.2-731rkpjz.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.2-zbc6h2h9.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.2-g3w76nrf.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.2-7nptnzv3.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.2-kgnb2ck1.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.2-3pstqzgw.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.1.1-s78q59z8.mjs +0 -1
  456. package/dist/chunks/App-1.1.1-efs19kgh.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.1.1-batyxczq.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.1.1-gxh3rb0c.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.1.1-xn0ghhf8.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.1.1-myj4gs4r.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.1-1f2wwv81.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.1.1-915bc3fz.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.1.1-zvp5dxyf.mjs +0 -7
  464. package/dist/chunks/Doctor-1.1.1-j54rpjza.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.1.1-my62gkan.mjs +0 -6
  466. package/dist/chunks/Grove-1.1.1-shq78y5c.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.1.1-f7y0hygx.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.1.1-875g6ewa.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.1.1-1e52f3nk.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.1.1-f7qyyszc.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.1.1-ns4dbmkj.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.1.1-491ha27w.mjs +0 -1
  473. package/dist/chunks/REPL-1.1.1-kkw6hq2j.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.1.1-whkx0y5w.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.1.1-j6jzkdg3.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.1.1-b37cg7xp.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.1.1-52gwqn04.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.1.1-83ejnp5w.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.1.1-4hre6f8b.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.1.1-7tb8517v.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.1.1-z9y2cj95.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.1.1-3c8p876v.mjs +0 -1
  483. package/dist/chunks/add-dir-1.1.1-z9eg0949.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.1.1-hnfrh305.mjs +0 -1
  485. package/dist/chunks/agents-1.1.1-hf8w814g.mjs +0 -3
  486. package/dist/chunks/agents-1.1.1-xqrqkwb5.mjs +0 -110
  487. package/dist/chunks/api-1.1.1-934f8zxk.mjs +0 -1
  488. package/dist/chunks/asciicast-1.1.1-e8353bvt.mjs +0 -1
  489. package/dist/chunks/assistant-1.1.1-mzpss3sh.mjs +0 -1
  490. package/dist/chunks/auth-1.1.1-8xse81z1.mjs +0 -1
  491. package/dist/chunks/auth-1.1.1-9f3cp9gp.mjs +0 -1
  492. package/dist/chunks/autoMode-1.1.1-15ahwpy1.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.1.1-81k0pg1h.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.1.1-pndv2vca.mjs +0 -1
  495. package/dist/chunks/branch-1.1.1-wyjy4jfq.mjs +0 -4
  496. package/dist/chunks/bridge-1.1.1-fz27rnbb.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.1.1-1srg7w12.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.1.1-hpve37v3.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.1.1-va485rwj.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.1.1-4e6545em.mjs +0 -1
  501. package/dist/chunks/btw-1.1.1-2hj5cz16.mjs +0 -1
  502. package/dist/chunks/buddy-1.1.1-mbavcpyj.mjs +0 -3
  503. package/dist/chunks/cacache-1.1.1-5brj0j0a.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.1.1-cy6xfej9.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.1-01qjcc1e.mjs +0 -4
  506. package/dist/chunks/caches-1.1.1-vcss5vxp.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.1-827j42dz.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.1-5j35wnk1.mjs +0 -1
  509. package/dist/chunks/clear-1.1.1-eb6r6tee.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.1-a2zg5e0p.mjs +0 -1
  511. package/dist/chunks/cli-1.1.1-01gn0bc1.mjs +0 -2
  512. package/dist/chunks/cli-1.1.1-01nvax13.mjs +0 -2
  513. package/dist/chunks/cli-1.1.1-05m3jbze.mjs +0 -2
  514. package/dist/chunks/cli-1.1.1-0eqyjkcc.mjs +0 -2
  515. package/dist/chunks/cli-1.1.1-0hn5dj2w.mjs +0 -2
  516. package/dist/chunks/cli-1.1.1-0rnw8vxn.mjs +0 -2
  517. package/dist/chunks/cli-1.1.1-0xwez66d.mjs +0 -67
  518. package/dist/chunks/cli-1.1.1-0xz1de77.mjs +0 -2
  519. package/dist/chunks/cli-1.1.1-152wk4rk.mjs +0 -2
  520. package/dist/chunks/cli-1.1.1-1987jcbz.mjs +0 -5
  521. package/dist/chunks/cli-1.1.1-19wm2xn6.mjs +0 -2
  522. package/dist/chunks/cli-1.1.1-1q3ezkgp.mjs +0 -4
  523. package/dist/chunks/cli-1.1.1-1rn8sc8r.mjs +0 -2
  524. package/dist/chunks/cli-1.1.1-1zr9ww4h.mjs +0 -2
  525. package/dist/chunks/cli-1.1.1-2b66vsz3.mjs +0 -3
  526. package/dist/chunks/cli-1.1.1-2ck5yx9f.mjs +0 -18
  527. package/dist/chunks/cli-1.1.1-2eervm4j.mjs +0 -2
  528. package/dist/chunks/cli-1.1.1-2g0asdx9.mjs +0 -2
  529. package/dist/chunks/cli-1.1.1-2hr65a5m.mjs +0 -4
  530. package/dist/chunks/cli-1.1.1-2jscs5ek.mjs +0 -2
  531. package/dist/chunks/cli-1.1.1-2r6j3hc2.mjs +0 -2
  532. package/dist/chunks/cli-1.1.1-2wmsmw96.mjs +0 -2
  533. package/dist/chunks/cli-1.1.1-2xecrgas.mjs +0 -2
  534. package/dist/chunks/cli-1.1.1-2y2npk6a.mjs +0 -2
  535. package/dist/chunks/cli-1.1.1-2yqkaj2a.mjs +0 -4
  536. package/dist/chunks/cli-1.1.1-38kc1r2d.mjs +0 -2
  537. package/dist/chunks/cli-1.1.1-3avcamf3.mjs +0 -39
  538. package/dist/chunks/cli-1.1.1-3fb7zat9.mjs +0 -9
  539. package/dist/chunks/cli-1.1.1-3nhzbd0x.mjs +0 -2
  540. package/dist/chunks/cli-1.1.1-3pspjtmp.mjs +0 -18
  541. package/dist/chunks/cli-1.1.1-3wx8xt0d.mjs +0 -2
  542. package/dist/chunks/cli-1.1.1-3y91rx7d.mjs +0 -2
  543. package/dist/chunks/cli-1.1.1-3yhgq98b.mjs +0 -2
  544. package/dist/chunks/cli-1.1.1-3yk5zm2a.mjs +0 -2
  545. package/dist/chunks/cli-1.1.1-3zwjajhq.mjs +0 -2
  546. package/dist/chunks/cli-1.1.1-4232y84r.mjs +0 -2
  547. package/dist/chunks/cli-1.1.1-48eqv75k.mjs +0 -202
  548. package/dist/chunks/cli-1.1.1-4exyd7ra.mjs +0 -2
  549. package/dist/chunks/cli-1.1.1-4j7t9vcq.mjs +0 -2
  550. package/dist/chunks/cli-1.1.1-4nf2hftc.mjs +0 -24
  551. package/dist/chunks/cli-1.1.1-51qpx7j4.mjs +0 -2
  552. package/dist/chunks/cli-1.1.1-5a13gyb4.mjs +0 -2
  553. package/dist/chunks/cli-1.1.1-5yv8wq29.mjs +0 -2
  554. package/dist/chunks/cli-1.1.1-6121wy9f.mjs +0 -3
  555. package/dist/chunks/cli-1.1.1-6587ae95.mjs +0 -2
  556. package/dist/chunks/cli-1.1.1-65apqfps.mjs +0 -2
  557. package/dist/chunks/cli-1.1.1-6h5x77nq.mjs +0 -2
  558. package/dist/chunks/cli-1.1.1-6n2sxzhk.mjs +0 -2
  559. package/dist/chunks/cli-1.1.1-6tztmxpt.mjs +0 -2
  560. package/dist/chunks/cli-1.1.1-6wwgxn4p.mjs +0 -2
  561. package/dist/chunks/cli-1.1.1-6zke1wc8.mjs +0 -2
  562. package/dist/chunks/cli-1.1.1-71h16h6t.mjs +0 -4
  563. package/dist/chunks/cli-1.1.1-71vwpynf.mjs +0 -2
  564. package/dist/chunks/cli-1.1.1-774eebcf.mjs +0 -2
  565. package/dist/chunks/cli-1.1.1-783296xh.mjs +0 -6
  566. package/dist/chunks/cli-1.1.1-7bhncvpq.mjs +0 -4
  567. package/dist/chunks/cli-1.1.1-7gkmf39y.mjs +0 -25
  568. package/dist/chunks/cli-1.1.1-7t3w18nd.mjs +0 -2
  569. package/dist/chunks/cli-1.1.1-7x4t5f2a.mjs +0 -2
  570. package/dist/chunks/cli-1.1.1-85rrb9q4.mjs +0 -2
  571. package/dist/chunks/cli-1.1.1-884t9g0f.mjs +0 -2
  572. package/dist/chunks/cli-1.1.1-8ar2s628.mjs +0 -2
  573. package/dist/chunks/cli-1.1.1-8bt9x8md.mjs +0 -2
  574. package/dist/chunks/cli-1.1.1-8g62r2pb.mjs +0 -2
  575. package/dist/chunks/cli-1.1.1-8hpszz5x.mjs +0 -3
  576. package/dist/chunks/cli-1.1.1-8tzp0yrd.mjs +0 -2
  577. package/dist/chunks/cli-1.1.1-8zfnrs72.mjs +0 -2
  578. package/dist/chunks/cli-1.1.1-8zjem87v.mjs +0 -9
  579. package/dist/chunks/cli-1.1.1-8zzt6htb.mjs +0 -3
  580. package/dist/chunks/cli-1.1.1-94s27fva.mjs +0 -2
  581. package/dist/chunks/cli-1.1.1-98h55a72.mjs +0 -2
  582. package/dist/chunks/cli-1.1.1-9kv5a6f4.mjs +0 -2
  583. package/dist/chunks/cli-1.1.1-9p39qc3e.mjs +0 -5638
  584. package/dist/chunks/cli-1.1.1-9q6jbhm6.mjs +0 -6
  585. package/dist/chunks/cli-1.1.1-9rjrg0tv.mjs +0 -7
  586. package/dist/chunks/cli-1.1.1-9rrtz0k2.mjs +0 -2
  587. package/dist/chunks/cli-1.1.1-9syt3cqd.mjs +0 -2
  588. package/dist/chunks/cli-1.1.1-9tqznq04.mjs +0 -6
  589. package/dist/chunks/cli-1.1.1-9w0d3wxf.mjs +0 -2
  590. package/dist/chunks/cli-1.1.1-9wd4xvzd.mjs +0 -2
  591. package/dist/chunks/cli-1.1.1-9xxs59n0.mjs +0 -4
  592. package/dist/chunks/cli-1.1.1-a0pp3xv5.mjs +0 -2
  593. package/dist/chunks/cli-1.1.1-a2aanf2k.mjs +0 -2
  594. package/dist/chunks/cli-1.1.1-a8r32wr9.mjs +0 -2
  595. package/dist/chunks/cli-1.1.1-ajerx2nx.mjs +0 -2
  596. package/dist/chunks/cli-1.1.1-atzkmfy8.mjs +0 -2
  597. package/dist/chunks/cli-1.1.1-b1kqmh2w.mjs +0 -8
  598. package/dist/chunks/cli-1.1.1-b7abx3n7.mjs +0 -2
  599. package/dist/chunks/cli-1.1.1-bb95back.mjs +0 -2
  600. package/dist/chunks/cli-1.1.1-bkqayrk3.mjs +0 -2
  601. package/dist/chunks/cli-1.1.1-bzdx5f9h.mjs +0 -2
  602. package/dist/chunks/cli-1.1.1-bzqzhffr.mjs +0 -4
  603. package/dist/chunks/cli-1.1.1-ck3y4av6.mjs +0 -2
  604. package/dist/chunks/cli-1.1.1-cw6t7x5a.mjs +0 -2
  605. package/dist/chunks/cli-1.1.1-d21wwf9h.mjs +0 -2
  606. package/dist/chunks/cli-1.1.1-d63f9zds.mjs +0 -2
  607. package/dist/chunks/cli-1.1.1-daz59drp.mjs +0 -2
  608. package/dist/chunks/cli-1.1.1-dmd0wakf.mjs +0 -21
  609. package/dist/chunks/cli-1.1.1-e5sc3rwd.mjs +0 -1
  610. package/dist/chunks/cli-1.1.1-ea6eap5z.mjs +0 -2
  611. package/dist/chunks/cli-1.1.1-ebax5r8y.mjs +0 -2
  612. package/dist/chunks/cli-1.1.1-ec3zbk9q.mjs +0 -2
  613. package/dist/chunks/cli-1.1.1-egnem382.mjs +0 -24
  614. package/dist/chunks/cli-1.1.1-ekcthfcd.mjs +0 -25
  615. package/dist/chunks/cli-1.1.1-ex0sqz63.mjs +0 -2
  616. package/dist/chunks/cli-1.1.1-f4f8asne.mjs +0 -12
  617. package/dist/chunks/cli-1.1.1-fnhx5s3j.mjs +0 -18
  618. package/dist/chunks/cli-1.1.1-fwshj75j.mjs +0 -2
  619. package/dist/chunks/cli-1.1.1-g1awxrn4.mjs +0 -4
  620. package/dist/chunks/cli-1.1.1-g69kxy79.mjs +0 -2
  621. package/dist/chunks/cli-1.1.1-g76vwnqj.mjs +0 -2
  622. package/dist/chunks/cli-1.1.1-g7j0r82j.mjs +0 -2
  623. package/dist/chunks/cli-1.1.1-g96by86m.mjs +0 -2
  624. package/dist/chunks/cli-1.1.1-gkynj1h3.mjs +0 -133
  625. package/dist/chunks/cli-1.1.1-gmxcjwmv.mjs +0 -2
  626. package/dist/chunks/cli-1.1.1-gnhxj8zp.mjs +0 -2
  627. package/dist/chunks/cli-1.1.1-gtbama8g.mjs +0 -2
  628. package/dist/chunks/cli-1.1.1-gv6thx1d.mjs +0 -2
  629. package/dist/chunks/cli-1.1.1-h13exkfb.mjs +0 -2
  630. package/dist/chunks/cli-1.1.1-hd439wse.mjs +0 -2
  631. package/dist/chunks/cli-1.1.1-hjpxjf64.mjs +0 -2
  632. package/dist/chunks/cli-1.1.1-hz3enw9q.mjs +0 -5
  633. package/dist/chunks/cli-1.1.1-jebnfazq.mjs +0 -2
  634. package/dist/chunks/cli-1.1.1-jfy1zmx2.mjs +0 -15
  635. package/dist/chunks/cli-1.1.1-jht24afj.mjs +0 -2
  636. package/dist/chunks/cli-1.1.1-jhxy6tyz.mjs +0 -2
  637. package/dist/chunks/cli-1.1.1-jtdjbvbn.mjs +0 -50
  638. package/dist/chunks/cli-1.1.1-jv6s649f.mjs +0 -3
  639. package/dist/chunks/cli-1.1.1-jvcpm7sm.mjs +0 -58
  640. package/dist/chunks/cli-1.1.1-kb84b41j.mjs +0 -45
  641. package/dist/chunks/cli-1.1.1-kbqy5x92.mjs +0 -2
  642. package/dist/chunks/cli-1.1.1-kembhhn1.mjs +0 -3
  643. package/dist/chunks/cli-1.1.1-kwhspda1.mjs +0 -2
  644. package/dist/chunks/cli-1.1.1-ma5v2jch.mjs +0 -2
  645. package/dist/chunks/cli-1.1.1-matkcn4v.mjs +0 -3
  646. package/dist/chunks/cli-1.1.1-mfkfar88.mjs +0 -2
  647. package/dist/chunks/cli-1.1.1-mqrbnazn.mjs +0 -2
  648. package/dist/chunks/cli-1.1.1-mqx6avyz.mjs +0 -4
  649. package/dist/chunks/cli-1.1.1-mxx5vd6y.mjs +0 -2
  650. package/dist/chunks/cli-1.1.1-mymbst6p.mjs +0 -4
  651. package/dist/chunks/cli-1.1.1-n5zzg2fv.mjs +0 -2
  652. package/dist/chunks/cli-1.1.1-n70wqfbp.mjs +0 -2
  653. package/dist/chunks/cli-1.1.1-n7mc6bx5.mjs +0 -2
  654. package/dist/chunks/cli-1.1.1-npd8k2hb.mjs +0 -2
  655. package/dist/chunks/cli-1.1.1-nrfj4jj5.mjs +0 -6
  656. package/dist/chunks/cli-1.1.1-ntngssqy.mjs +0 -2
  657. package/dist/chunks/cli-1.1.1-nwg10cz1.mjs +0 -2
  658. package/dist/chunks/cli-1.1.1-p6v0z6hs.mjs +0 -2
  659. package/dist/chunks/cli-1.1.1-ped3g2j0.mjs +0 -16
  660. package/dist/chunks/cli-1.1.1-q40shhn8.mjs +0 -2
  661. package/dist/chunks/cli-1.1.1-q9wvkkjf.mjs +0 -59
  662. package/dist/chunks/cli-1.1.1-qfasf488.mjs +0 -3
  663. package/dist/chunks/cli-1.1.1-qx9beg4x.mjs +0 -2
  664. package/dist/chunks/cli-1.1.1-r0ewpxvn.mjs +0 -2
  665. package/dist/chunks/cli-1.1.1-r6d3a12p.mjs +0 -2
  666. package/dist/chunks/cli-1.1.1-r6rebhmb.mjs +0 -6
  667. package/dist/chunks/cli-1.1.1-r9nn4cq9.mjs +0 -2
  668. package/dist/chunks/cli-1.1.1-rcxk0q47.mjs +0 -3
  669. package/dist/chunks/cli-1.1.1-rd13jv1m.mjs +0 -2
  670. package/dist/chunks/cli-1.1.1-rkjpq1rt.mjs +0 -2
  671. package/dist/chunks/cli-1.1.1-rrfnctm7.mjs +0 -2
  672. package/dist/chunks/cli-1.1.1-s0qbvs8w.mjs +0 -2
  673. package/dist/chunks/cli-1.1.1-sbhptgsa.mjs +0 -2
  674. package/dist/chunks/cli-1.1.1-sj83jazr.mjs +0 -2
  675. package/dist/chunks/cli-1.1.1-sj9xzz88.mjs +0 -2
  676. package/dist/chunks/cli-1.1.1-str8bn0w.mjs +0 -20
  677. package/dist/chunks/cli-1.1.1-t3pmg9eh.mjs +0 -2
  678. package/dist/chunks/cli-1.1.1-tekhwq09.mjs +0 -2
  679. package/dist/chunks/cli-1.1.1-tmpebtqd.mjs +0 -24
  680. package/dist/chunks/cli-1.1.1-tmrnrx8v.mjs +0 -2
  681. package/dist/chunks/cli-1.1.1-tn50af03.mjs +0 -2
  682. package/dist/chunks/cli-1.1.1-v9ar4kzn.mjs +0 -15
  683. package/dist/chunks/cli-1.1.1-v9xqeqz0.mjs +0 -12
  684. package/dist/chunks/cli-1.1.1-ve2ye3ad.mjs +0 -2
  685. package/dist/chunks/cli-1.1.1-vj8vq3r2.mjs +0 -2
  686. package/dist/chunks/cli-1.1.1-vrj1t108.mjs +0 -2
  687. package/dist/chunks/cli-1.1.1-vsc2bhws.mjs +0 -2
  688. package/dist/chunks/cli-1.1.1-vvjjnyzw.mjs +0 -2
  689. package/dist/chunks/cli-1.1.1-vyet04sj.mjs +0 -2
  690. package/dist/chunks/cli-1.1.1-wp27gqf3.mjs +0 -12
  691. package/dist/chunks/cli-1.1.1-wpky02br.mjs +0 -2
  692. package/dist/chunks/cli-1.1.1-wqdpr3ra.mjs +0 -2
  693. package/dist/chunks/cli-1.1.1-wtn7e4jz.mjs +0 -15
  694. package/dist/chunks/cli-1.1.1-wxtm9yxy.mjs +0 -34
  695. package/dist/chunks/cli-1.1.1-x3ae1bxc.mjs +0 -42
  696. package/dist/chunks/cli-1.1.1-x61tsmhm.mjs +0 -2
  697. package/dist/chunks/cli-1.1.1-x7n7cp4n.mjs +0 -3
  698. package/dist/chunks/cli-1.1.1-xdq9vz2v.mjs +0 -2
  699. package/dist/chunks/cli-1.1.1-xksd65yv.mjs +0 -3
  700. package/dist/chunks/cli-1.1.1-xx3e0bn5.mjs +0 -2
  701. package/dist/chunks/cli-1.1.1-ya166ffm.mjs +0 -17
  702. package/dist/chunks/cli-1.1.1-yc3xhtyn.mjs +0 -12
  703. package/dist/chunks/cli-1.1.1-ych7rrbd.mjs +0 -2
  704. package/dist/chunks/cli-1.1.1-ye3hmdgh.mjs +0 -3
  705. package/dist/chunks/cli-1.1.1-yga1m543.mjs +0 -2
  706. package/dist/chunks/cli-1.1.1-ypkgwx9d.mjs +0 -2
  707. package/dist/chunks/cli-1.1.1-yqss3x1b.mjs +0 -133
  708. package/dist/chunks/cli-1.1.1-z0pk7sm0.mjs +0 -2
  709. package/dist/chunks/cli-1.1.1-z31vnjht.mjs +0 -2
  710. package/dist/chunks/cli-1.1.1-zbnepy2q.mjs +0 -4
  711. package/dist/chunks/cli-1.1.1-zmzpxmeq.mjs +0 -2
  712. package/dist/chunks/cli-1.1.1-zve2w6c9.mjs +0 -17
  713. package/dist/chunks/cli-1.1.1-zxvwb38m.mjs +0 -2
  714. package/dist/chunks/client-1.1.1-j3w0pe6c.mjs +0 -1
  715. package/dist/chunks/color-1.1.1-h26c9ne7.mjs +0 -1
  716. package/dist/chunks/compact-1.1.1-w47181ep.mjs +0 -3
  717. package/dist/chunks/config-1.1.1-6zcy87ar.mjs +0 -1
  718. package/dist/chunks/config-1.1.1-trscazmb.mjs +0 -1
  719. package/dist/chunks/constants-1.1.1-ttnprx1k.mjs +0 -1
  720. package/dist/chunks/context-1.1.1-5sgcsmam.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.1-7hjf19rb.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.1-z6tpmna3.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.1-qv8vd2vd.mjs +0 -1
  724. package/dist/chunks/copy-1.1.1-x5m52tqg.mjs +0 -9
  725. package/dist/chunks/cost-1.1.1-rt2rxwm1.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.1-fgm4775d.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.1-878gtbt1.mjs +0 -1
  728. package/dist/chunks/debug-1.1.1-d8qa0g0j.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.1-bepehy24.mjs +0 -1446
  730. package/dist/chunks/desktop-1.1.1-abjyemqy.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.1-khq8s53d.mjs +0 -1
  732. package/dist/chunks/detection-1.1.1-hjbac0c8.mjs +0 -1
  733. package/dist/chunks/diff-1.1.1-9xwv88x6.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.1-fszqkj4v.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.1-w8ngdv52.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.1-c4n49v4q.mjs +0 -1
  737. package/dist/chunks/effort-1.1.1-esmpmzxn.mjs +0 -13
  738. package/dist/chunks/engine-1.1.1-07myw22m.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.1-byfwm61g.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.1-ww093azg.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.1-295v5dqy.mjs +0 -1
  742. package/dist/chunks/environments-1.1.1-hpwr5w28.mjs +0 -1
  743. package/dist/chunks/errors-1.1.1-hftq1zkm.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.1-f82pb78c.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.1-d1aydfab.mjs +0 -1
  746. package/dist/chunks/exit-1.1.1-yc9akff2.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.1-vmv967b9.mjs +0 -1
  748. package/dist/chunks/export-1.1.1-0z1e15hc.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.1-4twkmntw.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.1-jg9fj653.mjs +0 -1
  751. package/dist/chunks/fast-1.1.1-qys2km8z.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.1-tr4y0ch0.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.1-7wz7x5ra.mjs +0 -1
  754. package/dist/chunks/git-1.1.1-51pkabvr.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.1-2zygs5gw.mjs +0 -1
  756. package/dist/chunks/goal-1.1.1-e9phftpw.mjs +0 -4
  757. package/dist/chunks/grove-1.1.1-1ag8h7p5.mjs +0 -1
  758. package/dist/chunks/growthbook-1.1.1-qef68xgb.mjs +0 -1
  759. package/dist/chunks/headless-1.1.1-jy6w561r.mjs +0 -2
  760. package/dist/chunks/heapdump-1.1.1-ed456vky.mjs +0 -6
  761. package/dist/chunks/help-1.1.1-t8j5v83g.mjs +0 -1
  762. package/dist/chunks/hookChains-1.1.1-vhpc5ejj.mjs +0 -3
  763. package/dist/chunks/hooks-1.1.1-sb1mqcpz.mjs +0 -79
  764. package/dist/chunks/hooks-1.1.1-v40qht7p.mjs +0 -1
  765. package/dist/chunks/ide-1.1.1-jq6fzrr8.mjs +0 -3
  766. package/dist/chunks/image-processor-napi-1.1.1-4y6xb66j.mjs +0 -1
  767. package/dist/chunks/inboundAttachments-1.1.1-kt406stw.mjs +0 -1
  768. package/dist/chunks/index-1.1.1-22g434vw.mjs +0 -1
  769. package/dist/chunks/index-1.1.1-3tqmdx42.mjs +0 -1
  770. package/dist/chunks/index-1.1.1-6b23qrhd.mjs +0 -1
  771. package/dist/chunks/index-1.1.1-831bha9e.mjs +0 -1
  772. package/dist/chunks/index-1.1.1-8cnva9ne.mjs +0 -1
  773. package/dist/chunks/index-1.1.1-8da5q9g0.mjs +0 -1
  774. package/dist/chunks/index-1.1.1-90ykavq0.mjs +0 -2
  775. package/dist/chunks/index-1.1.1-99zmp2ps.mjs +0 -30
  776. package/dist/chunks/index-1.1.1-9px0bvba.mjs +0 -1
  777. package/dist/chunks/index-1.1.1-9y71kyrj.mjs +0 -2
  778. package/dist/chunks/index-1.1.1-adq8vvcq.mjs +0 -5
  779. package/dist/chunks/index-1.1.1-d9d1y0xy.mjs +0 -1
  780. package/dist/chunks/index-1.1.1-f3c3172e.mjs +0 -9
  781. package/dist/chunks/index-1.1.1-faj87xfe.mjs +0 -1
  782. package/dist/chunks/index-1.1.1-g0ax59dw.mjs +0 -1
  783. package/dist/chunks/index-1.1.1-h17gbfyk.mjs +0 -1
  784. package/dist/chunks/index-1.1.1-q6fnrh31.mjs +0 -1
  785. package/dist/chunks/index-1.1.1-qzgt3tqq.mjs +0 -1
  786. package/dist/chunks/index-1.1.1-rkne46w2.mjs +0 -1
  787. package/dist/chunks/index-1.1.1-wy3wddv5.mjs +0 -17
  788. package/dist/chunks/index-1.1.1-x398ec1v.mjs +0 -1
  789. package/dist/chunks/index-1.1.1-y44m8pc8.mjs +0 -9
  790. package/dist/chunks/index-1.1.1-ymbhqb7a.mjs +0 -1
  791. package/dist/chunks/init-1.1.1-xz02rb2g.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.1-kv3zvcqm.mjs +0 -1
  793. package/dist/chunks/ink-1.1.1-ts8kz51v.mjs +0 -1
  794. package/dist/chunks/insights-1.1.1-ngjqkjt0.mjs +0 -870
  795. package/dist/chunks/install-1.1.1-4r1x1e7v.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.1-bwwf005w.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.1-adwykfa7.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.1-mgk4dsdp.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.1-2kmkwc3e.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.1-217cgz80.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.1-h9nvn3pk.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.1-v0bjj4j7.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.1-fvfkg4pz.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.1-09829bee.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.1-ks9c0rqf.mjs +0 -1
  806. package/dist/chunks/log-1.1.1-ny9tjyjz.mjs +0 -1
  807. package/dist/chunks/main-1.1.1-dk2pmpcr.mjs +0 -1
  808. package/dist/chunks/managedEnv-1.1.1-vh54nadj.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.1-0xajrtdb.mjs +0 -17
  810. package/dist/chunks/mcp-1.1.1-vbcrdqmb.mjs +0 -4
  811. package/dist/chunks/mcp-1.1.1-xp78k98x.mjs +0 -1
  812. package/dist/chunks/mcpb-1.1.1-rhne101r.mjs +0 -1
  813. package/dist/chunks/memory-1.1.1-scrmwf7c.mjs +0 -72
  814. package/dist/chunks/model-1.1.1-as90vvvf.mjs +0 -1
  815. package/dist/chunks/model-1.1.1-jyf2vnvg.mjs +0 -2
  816. package/dist/chunks/node-1.1.1-ha7q8qzq.mjs +0 -12
  817. package/dist/chunks/oauth-1.1.1-stj442qp.mjs +0 -1
  818. package/dist/chunks/openaiShim-1.1.1-tbbj59s9.mjs +0 -14
  819. package/dist/chunks/output-style-1.1.1-s7dgeq38.mjs +0 -1
  820. package/dist/chunks/package-2VNCXFNY-1.1.1-sw5txmkn.mjs +0 -1
  821. package/dist/chunks/parseConnectUrl-1.1.1-yq34k18v.mjs +0 -1
  822. package/dist/chunks/parser-1.1.1-905wxz1h.mjs +0 -1
  823. package/dist/chunks/passes-1.1.1-tzyxx4nr.mjs +0 -1
  824. package/dist/chunks/permissions-1.1.1-32frrkp8.mjs +0 -3
  825. package/dist/chunks/permissions-1.1.1-52vyx1cw.mjs +0 -1
  826. package/dist/chunks/plan-1.1.1-1xwn0q2w.mjs +0 -1
  827. package/dist/chunks/plist-1.1.1-x63x823y.mjs +0 -1
  828. package/dist/chunks/plugin-1.1.1-2137mb81.mjs +0 -29
  829. package/dist/chunks/pluginStartupCheck-1.1.1-vswc3yva.mjs +0 -1
  830. package/dist/chunks/plugins-1.1.1-qwrzc7gx.mjs +0 -9
  831. package/dist/chunks/preActionHook-1.1.1-81dgne38.mjs +0 -2
  832. package/dist/chunks/print-1.1.1-zxwjkq6w.mjs +0 -57
  833. package/dist/chunks/privacy-settings-1.1.1-7taqcgcn.mjs +0 -1
  834. package/dist/chunks/process-1.1.1-cmc5gnbm.mjs +0 -1
  835. package/dist/chunks/processBashCommand-1.1.1-7mebt6rm.mjs +0 -1
  836. package/dist/chunks/processSlashCommand-1.1.1-hp957bf8.mjs +0 -9
  837. package/dist/chunks/prompt-1.1.1-1ebtk0je.mjs +0 -1
  838. package/dist/chunks/prompt-1.1.1-rghw84pr.mjs +0 -1
  839. package/dist/chunks/prompts-1.1.1-x63nzadg.mjs +0 -1
  840. package/dist/chunks/protocolHandler-1.1.1-8006jsvm.mjs +0 -13
  841. package/dist/chunks/provider-1.1.1-znmbhpqc.mjs +0 -2
  842. package/dist/chunks/providerProfiles-1.1.1-tncrzs7g.mjs +0 -1
  843. package/dist/chunks/providerValidation-1.1.1-hvgdx6gz.mjs +0 -6
  844. package/dist/chunks/rate-limit-options-1.1.1-03pfc3mn.mjs +0 -1
  845. package/dist/chunks/registerSubcommands-1.1.1-d7trtqbt.mjs +0 -34
  846. package/dist/chunks/registry-1.1.1-10hk5pdr.mjs +0 -1
  847. package/dist/chunks/release-notes-1.1.1-ymmqtngr.mjs +0 -5
  848. package/dist/chunks/reload-plugins-1.1.1-y2fq7m0b.mjs +0 -2
  849. package/dist/chunks/remote-env-1.1.1-09923mmx.mjs +0 -1
  850. package/dist/chunks/remoteBridgeCore-1.1.1-shksn0qq.mjs +0 -1
  851. package/dist/chunks/remoteSession-1.1.1-x6zsy3p0.mjs +0 -1
  852. package/dist/chunks/rename-1.1.1-33edcj9v.mjs +0 -1
  853. package/dist/chunks/replBridgeHandle-1.1.1-pm1k9p9p.mjs +0 -1
  854. package/dist/chunks/replLauncher-1.1.1-v540zdz4.mjs +0 -1
  855. package/dist/chunks/resume-1.1.1-dh01es5c.mjs +0 -2
  856. package/dist/chunks/rewind-1.1.1-c67qy3xg.mjs +0 -1
  857. package/dist/chunks/rootOptions-1.1.1-ffyvn3c6.mjs +0 -1
  858. package/dist/chunks/runWorkflowHeadless-1.1.1-mm9fvkrt.mjs +0 -10
  859. package/dist/chunks/sandbox-adapter-1.1.1-t72pc0m1.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-1.1.1-ftncjx7h.mjs +0 -1
  861. package/dist/chunks/session-1.1.1-npa4qjy3.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-1.1.1-mnz0wg6k.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-1.1.1-rkn2r5h7.mjs +0 -1
  864. package/dist/chunks/sessionStorage-1.1.1-1swj757c.mjs +0 -1
  865. package/dist/chunks/settings-1.1.1-22mzj46y.mjs +0 -1
  866. package/dist/chunks/setup-1.1.1-f7fxdsa8.mjs +0 -5
  867. package/dist/chunks/sinks-1.1.1-000q9sh0.mjs +0 -1
  868. package/dist/chunks/skills-1.1.1-e5343fy7.mjs +0 -1
  869. package/dist/chunks/startupProfiler-1.1.1-47a6124t.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-1.1.1-acthvy1s.mjs +0 -1
  871. package/dist/chunks/state-1.1.1-7pv2ergw.mjs +0 -1
  872. package/dist/chunks/stats-1.1.1-gkq9kw3d.mjs +0 -6
  873. package/dist/chunks/status-1.1.1-c8wh646y.mjs +0 -1
  874. package/dist/chunks/stickers-1.1.1-x16691x3.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-1.1.1-s9eb1ebz.mjs +0 -1
  876. package/dist/chunks/tasks-1.1.1-hf2m8vwd.mjs +0 -1
  877. package/dist/chunks/teamHelpers-1.1.1-bh0tny54.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-1.1.1-33rs06c9.mjs +0 -1
  879. package/dist/chunks/teleport-1.1.1-8tegxvgv.mjs +0 -1
  880. package/dist/chunks/terminalSetup-1.1.1-dckvxw7f.mjs +0 -1
  881. package/dist/chunks/theme-1.1.1-xdyfpwgx.mjs +0 -1
  882. package/dist/chunks/thinkback-1.1.1-48dgjam0.mjs +0 -1
  883. package/dist/chunks/thinkback-play-1.1.1-ja387fza.mjs +0 -1
  884. package/dist/chunks/toolPool-1.1.1-7byzrvcw.mjs +0 -1
  885. package/dist/chunks/toolSearch-1.1.1-ptantdef.mjs +0 -1
  886. package/dist/chunks/tools-1.1.1-ptw1g92g.mjs +0 -1
  887. package/dist/chunks/trustedDevice-1.1.1-adv5nypt.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-1.1.1-b28vqpjf.mjs +0 -69
  889. package/dist/chunks/types-1.1.1-8fh9zk18.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-1.1.1-g05tw4qq.mjs +0 -4
  891. package/dist/chunks/update-1.1.1-kbve1bfd.mjs +0 -88
  892. package/dist/chunks/upgrade-1.1.1-6kxsf3f3.mjs +0 -1
  893. package/dist/chunks/upload-1.1.1-ymhqntg7.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-1.1.1-e5mpv3vk.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-1.1.1-v5t4s4mm.mjs +0 -1
  896. package/dist/chunks/usage-1.1.1-7vhbkw6t.mjs +0 -1
  897. package/dist/chunks/util-1.1.1-1gy72074.mjs +0 -1
  898. package/dist/chunks/utils-1.1.1-dk86qenr.mjs +0 -1
  899. package/dist/chunks/vim-1.1.1-3xxzx58p.mjs +0 -1
  900. package/dist/chunks/watchLoop-1.1.1-cs9xsv8s.mjs +0 -13
  901. package/dist/chunks/watcher-1.1.1-36zhrjfn.mjs +0 -1
  902. package/dist/chunks/wiki-1.1.1-wgesmc0j.mjs +0 -132
  903. package/dist/chunks/workflows-1.1.1-gjxqq9he.mjs +0 -1
  904. package/dist/chunks/worktree-1.1.1-2bwg78x8.mjs +0 -1
  905. package/dist/chunks/worktreeModeEnabled-1.1.1-d42z1v61.mjs +0 -1
  906. package/dist/chunks/wrapper-1.1.1-tevg51mj.mjs +0 -7
  907. /package/dist/chunks/{cli-1.1.1-x3ph4re0.mjs → cli-1.1.2-3vyt3jw9.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.1-10s3pxec.mjs → cli-1.1.2-6d3jf0sj.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.1-xd0vsxbj.mjs → cli-1.1.2-6jbsqbdw.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.1-f1n1hjs0.mjs → cli-1.1.2-8t8veykp.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.1-kr5z77zj.mjs → cli-1.1.2-btgmqahb.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.1-y1n8t2yy.mjs → cli-1.1.2-pgz05ddc.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.1-ghx32shb.mjs → cli-1.1.2-r4rfggdk.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{mra as M,nra as Y}from"./cli-1.1.1-01gn0bc1.mjs";import{ysa as W}from"./cli-1.1.1-vsc2bhws.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDE_CODE_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(){return!1}function O(){return!1}function x(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-5","VERTEX_REGION_CLAUDE_5_OPUS"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
2
- export{$ as Xka,N as Yka,X as Zka,_ as _ka,j as $ka,U as ala,I as bla,S as cla,T as dla,c as ela,L as fla,w as gla,z as hla,O as ila,x as jla,k as kla};
@@ -1,2 +0,0 @@
1
- import{fx as o,gx as n}from"./cli-1.1.1-9p39qc3e.mjs";import{ysa as e}from"./cli-1.1.1-vsc2bhws.mjs";function i(m){t.setState(()=>[...m])}var t,r=()=>t.getState(),d;var s=e(()=>{n();t=o([]),d=t.subscribe});
2
- export{r as Ld,d as Md,i as Nd,s as Od};
@@ -1,2 +0,0 @@
1
- import{ysa as o}from"./cli-1.1.1-vsc2bhws.mjs";var n=()=>null,e;var t=o(()=>{e=n});
2
- export{e as Mi,t as Ni};
@@ -1,2 +0,0 @@
1
- import{$_ as E,Hga as U,Pga as m,U$ as F,Y$ as f,__ as K}from"./cli-1.1.1-48eqv75k.mjs";import{Aia as x,zia as v}from"./cli-1.1.1-ma5v2jch.mjs";import{bka as D,fka as g}from"./cli-1.1.1-nrfj4jj5.mjs";import{ysa as S}from"./cli-1.1.1-vsc2bhws.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
2
- export{P as Fh,o as Gh,h as Hh,C as Ih};
@@ -1,2 +0,0 @@
1
- import{xsa as n,ysa as o}from"./cli-1.1.1-vsc2bhws.mjs";var p={};n(p,{stripProtoFields:()=>e,logEventAsync:()=>c,logEvent:()=>i,attachAnalyticsSink:()=>r,_resetForTesting:()=>s});function e(t){return t}function r(){}function i(){}async function c(){}function s(){}var u=()=>{};
2
- export{i as mja,c as nja,p as oja,u as pja};
@@ -1,2 +0,0 @@
1
- import{pka as Q,ska as $}from"./cli-1.1.1-nrfj4jj5.mjs";import{Rka as K,Wka as Z}from"./cli-1.1.1-zbnepy2q.mjs";import{Zka as J,kla as Y}from"./cli-1.1.1-gmxcjwmv.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
- export{T as ha,w as ia,y as ja};
@@ -1,2 +0,0 @@
1
- import{Zd as Jq,be as Tq}from"./cli-1.1.1-1q3ezkgp.mjs";import{ie as zq,je as bq}from"./cli-1.1.1-8bt9x8md.mjs";import{$L as e,CM as D,FM as Cq,KL as s,LL as _q,PL as a,SL as l,WL as t,bM as Rq,eo as n,fo as yq,gI as u,hI as fq,iM as qq,mM as Fq,rG as r,sG as Gq,wL as S,zL as Nq}from"./cli-1.1.1-9p39qc3e.mjs";import{A1 as Oq,V0 as F,X0 as C,mZ as i,nZ as Kq,wZ as Bq}from"./cli-1.1.1-q9wvkkjf.mjs";import{h4 as v,i4 as R,j4 as p}from"./cli-1.1.1-94s27fva.mjs";import{k4 as Lq}from"./cli-1.1.1-6zke1wc8.mjs";import{A_ as g,B_ as Zq,Hga as m,N$ as o,N_ as $,O$ as Hq,P_ as Xq,Pga as wq,Saa as vq,vaa as x}from"./cli-1.1.1-48eqv75k.mjs";import{pka as B,ska as Yq}from"./cli-1.1.1-nrfj4jj5.mjs";import{Oka as P,Rka as h,Wka as Wq}from"./cli-1.1.1-zbnepy2q.mjs";import{usa as d,ysa as Vq}from"./cli-1.1.1-vsc2bhws.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
- export{Iq as Pd,Yz as Qd,Dq as Rd};
@@ -1,5 +0,0 @@
1
- import{Ao as o,FF as y,GF as S,JF as C,PF as s,wo as F}from"./cli-1.1.1-9p39qc3e.mjs";import{kZ as D,lZ as r,mZ as z,nZ as j}from"./cli-1.1.1-q9wvkkjf.mjs";import{d$ as R,e$ as l,g$ as b,h$ as u}from"./cli-1.1.1-48eqv75k.mjs";import{Xja as O,Zja as c,bka as L,fka as d,pka as N,ska as g}from"./cli-1.1.1-nrfj4jj5.mjs";import{mra as T,nra as I}from"./cli-1.1.1-01gn0bc1.mjs";import{ysa as _}from"./cli-1.1.1-vsc2bhws.mjs";import{spawn as G,spawnSync as w}from"child_process";import{basename as k}from"path";function h(q){return!!b(q)}function V(q){let H=k(q.split(" ")[0]??"");return P.find((B)=>H.includes(B))}function p(q,H,B){if(!B)return[H];if(m.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=V(B);if(Q){let W=p(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>N(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&f.test(k(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=w(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=w(X,M,W)}if(Z.error)return N(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var P,f,m,v;var x=_(()=>{I();j();g();u();P=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],f=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,m=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>h(H))})});function a(q){return V(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=Object.hasOwn(A,J)?A[J]:J;return R(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${F(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=y($),Z=S(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Vq(q,H){let B=L(),J=D();try{let X=H?C(q,H):q;O(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
2
- `)&&!Q.endsWith(`
3
-
4
- `))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var A;var t=_(()=>{s();j();x();l();d();o();c();r();A={code:"code -w",subl:"subl --wait"}});
5
- export{Qq as Eg,v as Fg,x as Gg,i as Hg,Vq as Ig,t as Jg};
@@ -1,2 +0,0 @@
1
- import{ala as B,bla as H,kla as V}from"./cli-1.1.1-gmxcjwmv.mjs";import{ysa as Q}from"./cli-1.1.1-vsc2bhws.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
- export{$ as Qh,Y as Rh};
@@ -1,15 +0,0 @@
1
- import{Gx as L,Hx as k,_R as _,nk as J,tO as f,vO as z}from"./cli-1.1.1-9p39qc3e.mjs";import{$aa as A,Waa as F}from"./cli-1.1.1-48eqv75k.mjs";import{sia as Y,uia as h,via as H,wia as X}from"./cli-1.1.1-0xwez66d.mjs";import{mja as W,pja as M}from"./cli-1.1.1-h13exkfb.mjs";import{pka as D,ska as R}from"./cli-1.1.1-nrfj4jj5.mjs";import{Foa as q,Pqa as C}from"./cli-1.1.1-s0qbvs8w.mjs";import{ysa as V}from"./cli-1.1.1-vsc2bhws.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
2
- `);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
3
-
4
- Return JSON with a single "title" field.
5
-
6
- Good examples:
7
- {"title": "Fix login button on mobile"}
8
- {"title": "Add OAuth authentication"}
9
- {"title": "Debug failing CI tests"}
10
- {"title": "Refactor API client error handling"}
11
-
12
- Bad (too vague): {"title": "Code changes"}
13
- Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
14
- Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
15
- export{S as xe,T as ye,I as ze};
@@ -1,2 +0,0 @@
1
- import{L$ as x,V_ as X,Z_ as k,p$ as Y}from"./cli-1.1.1-48eqv75k.mjs";import{kha as $}from"./cli-1.1.1-9xxs59n0.mjs";import{ysa as Z}from"./cli-1.1.1-vsc2bhws.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
2
- export{H as jb,M as kb};
@@ -1,2 +0,0 @@
1
- import{Uf as N0,Vf as U0,Xf as VP}from"./cli-1.1.1-ebax5r8y.mjs";import{$n as w0,IN as ZP,JN as m0,LN as qP,QM as WP,QN as CP,Yn as h,ZM as cP,Zn as c0,_M as fP,_n as p,aN as M0,ao as r,bN as h0,bo as W0,cN as T0,dN as d0,eo as O0,fO as C0,fo as EP,gI as G0,gN as R0,hG as XP,hI as YP,iG as mP,iy as J0,jO as pP,jy as QP,ly as j0,nN as u0,rG as L0,tG as i0}from"./cli-1.1.1-9p39qc3e.mjs";import{AY as LP,gY as JP,hY as hP,uY as z0,wY as TP,zY as D0}from"./cli-1.1.1-kbqy5x92.mjs";import{$0 as F0,A1 as q0,FZ as k0,T0 as C,V0 as X,X0 as L,p1 as GP,qZ as PP,vZ as AP,wZ as I0}from"./cli-1.1.1-q9wvkkjf.mjs";import{g4 as n,h4 as J,i4 as Q,j4 as a}from"./cli-1.1.1-94s27fva.mjs";import{k4 as $0}from"./cli-1.1.1-6zke1wc8.mjs";import{H4 as A0,I4 as dP}from"./cli-1.1.1-matkcn4v.mjs";import{D8 as e0,V8 as gP}from"./cli-1.1.1-ped3g2j0.mjs";import{Mga as s0,Nca as y0,Oca as B0,Pca as KP,Pga as SP,dda as H0,eda as zP,mda as p0,w_ as _,x_ as r0}from"./cli-1.1.1-48eqv75k.mjs";import{kja as g0,lja as _P}from"./cli-1.1.1-rrfnctm7.mjs";import{mja as m,pja as IP}from"./cli-1.1.1-h13exkfb.mjs";import{Pka as f0,Wka as t0}from"./cli-1.1.1-zbnepy2q.mjs";import{usa as e,ysa as P0}from"./cli-1.1.1-vsc2bhws.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};
@@ -1,50 +0,0 @@
1
- import{Fc as zc,Gc as on}from"./cli-1.1.1-yga1m543.mjs";import{Hc as Vh,Ic as jt,Jc as Vt,Kc as Oc,Mc as jn}from"./cli-1.1.1-mfkfar88.mjs";import{Nc as ft,Qc as Dn}from"./cli-1.1.1-n7mc6bx5.mjs";import{$p as Ln,IG as bu,JG as ln,KG as Ou,LG as zu,MG as Ru,NG as rn,Sp as Mu,Tp as Tu,Up as Uu,Vp as Eu,Wp as nc,Xp as Ct,Yp as Xh,Zp as Pu,_p as Bu,aq as Nh,cq as ou,dq as ac,fq as pu,gI as eh,hG as Xt,hI as jc,iG as sh,iq as ku,jI as In,jq as An,jy as bc,kI as xn,kq as Lu,lq as Qu,ly as Pn,mq as Nu,nq as Ju,oq as at,pq as Ah,qq as gn,rG as S,rq as Jh,sG as Dc,sx as Cc,tG as Bn,tq as Gu,tx as lc,uq as mc,ux as rc,vr as yc,vx as wc,wq as Su,wr as Un,wx as En}from"./cli-1.1.1-9p39qc3e.mjs";import{IY as uc,JY as Tn,uY as D,wY as Mn}from"./cli-1.1.1-kbqy5x92.mjs";import{A1 as Eh,V0 as F,X0 as y}from"./cli-1.1.1-q9wvkkjf.mjs";import{D2 as Ph,E2 as Bh,F2 as Ih,G2 as xh,H2 as Dh,I2 as xc,L2 as jh,P2 as oh,Q2 as cc,R2 as ph}from"./cli-1.1.1-8tzp0yrd.mjs";import{g4 as yt,h4 as n,i4 as z,j4 as Tt}from"./cli-1.1.1-94s27fva.mjs";import{k4 as Qt}from"./cli-1.1.1-6zke1wc8.mjs";import{H4 as Pt,I4 as qu}from"./cli-1.1.1-matkcn4v.mjs";import{T6 as Dt,Y4 as Uh,_4 as Ic,k7 as Wn}from"./cli-1.1.1-ped3g2j0.mjs";import{$fa as hc,Afa as _h,Cfa as kh,Gfa as Th,Lfa as Oh,Mfa as yu,Nfa as Cu,Ofa as Ut,Pfa as zh,Qfa as lu,Rfa as bh,Sfa as ru,Tfa as wu,Ufa as Cn,Vfa as Lh,Wfa as gu,Xfa as Qh,Zfa as Xu,aga as pt,jfa as tc,kfa as $t,lfa as Hn,mfa as ot,nfa as x,pfa as B,pga as Kn,qfa as xt,sfa as Jt,tfa as Fh,ufa as ut,vfa as ct,w_ as qt,x_ as Sn,zfa as nt}from"./cli-1.1.1-48eqv75k.mjs";import{cla as o,kla as Et}from"./cli-1.1.1-gmxcjwmv.mjs";import{usa as Lt,vsa as Gn,ysa as I}from"./cli-1.1.1-vsc2bhws.mjs";function pc(t,h=Ch,u){let a=x().find((w)=>w.provider==="openai"&&w.extras?.githubToken!==void 0);if(a){if(!ct(a.id,{provider:"openai",name:a.name,baseUrl:u||a.baseUrl,model:a.model||h,apiKey:t,extras:{...a.extras,githubToken:t}}))return{mode:"failed"};return nt(a.id),{mode:"updated"}}if(!ut({provider:"openai",name:"GitHub Copilot",baseUrl:u||oc,model:h,apiKey:t,extras:{githubToken:t}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function vh({onDone:t,onBack:h,onChangeAPIKey:u}){let a=jh()?.trim()?"already-authed":"menu",[C,w]=j.useState(a),[f,A]=j.useState(null),[$,R]=j.useState(""),[X,J]=j.useState(0),[Q,H]=j.useState(null),V=j.useCallback(async(i,Z=Ch,mt,N)=>{let P=oh(i,mt,N?.enterpriseDomain);if(!P.success){A(P.warning??"Could not save token to secure storage."),w("error");return}if(pc(i,Z,N?.baseUrl).mode==="failed"){A("Could not save the GitHub Copilot provider profile."),w("error");return}Uh(),u?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[u,t]),O=j.useCallback(async(i)=>{w("device-busy"),A(null),H(null);try{let Z=await Bh({domain:i});H({user_code:Z.user_code,verification_uri:Z.verification_uri}),await xh(Z.verification_uri);let mt=await Ih(Z.device_code,{initialInterval:Z.interval,timeoutSeconds:Z.expires_in,domain:i}),N=await Dh(mt,{domain:i});await V(N.token,Ch,mt,{baseUrl:N.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:i})}catch(Z){A(Z instanceof Error?Z.message:String(Z)),w("error")}},[V]);if(C==="already-authed")return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Copilot"}),n(y,{children:"You are already signed in to GitHub Copilot."}),n(y,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),n(S,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:h?"Back to /provider menu":"Cancel",value:"back"}],onChange:(Z)=>{if(Z==="sign-in-again"){O();return}if(Z==="enterprise"){w("enterprise-domain");return}if(h){h();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(C==="enterprise-domain")return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Enterprise sign-in"}),n(y,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:">"}),n(Xt,{value:$,onChange:R,onSubmit:()=>{let Z=Ph($);if(!Z){O();return}O(Z)},onExit:()=>w(a),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:X,onChangeCursorOffset:J})]}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(C==="error"&&f)return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"red",children:f}),n(S,{options:[{label:h?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(Z)=>{if(Z==="back"){if(h){h();return}w("menu"),A(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(C==="device-busy")return z(F,{flexDirection:"column",gap:1,children:[n(y,{children:"GitHub Copilot sign-in"}),Q?z(yt,{children:[z(y,{children:["Enter code ",n(y,{bold:!0,children:Q.user_code})," at"," ",Q.verification_uri]}),n(y,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):n(y,{dimColor:!0,children:"Requesting device code from GitHub..."}),n(eh,{})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Copilot setup"}),n(y,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),n(S,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:h?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(i)=>{if(i==="cancel"){if(h){h();return}t("GitHub onboard cancelled",{display:"system"});return}if(i==="enterprise"){w("enterprise-domain");return}O()}})]})}var j,Ch="github:copilot",oc="https://api.githubcopilot.com";var tu=I(()=>{Dc();jc();sh();Eh();xc();ph();Ic();Th();Tt();j=Lt(Qt(),1)});function uu(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function Nt(t,h){return h.some((u)=>t.includes(u))}function tn(t){return!Nt(uu(t),hu)}function hn(t){return t.find(tn)??null}function lh(t){let u=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(u?.[1])return Number(u[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function un(t){return(t.quantizationLevel??t.name).toLowerCase()}function cn(t,h,u){if(t===null)return u.push("unknown size"),0;if(h==="latency"){if(t<=4)return u.push("tiny model for low latency"),32;if(t<=8)return u.push("small model for fast responses"),26;if(t<=14)return u.push("mid-sized model with acceptable latency"),16;if(t<=24)return u.push("larger model may be slower"),8;return u.push("large model likely slower locally"),t<=40?0:-8}if(h==="coding"){if(t>=7&&t<=14)return u.push("strong coding size tier"),24;if(t>14&&t<=34)return u.push("large coding-capable size tier"),28;if(t>34)return u.push("very large model with higher quality potential"),18;return u.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return u.push("great balanced size tier"),26;if(t>=3&&t<7)return u.push("compact balanced size tier"),18;if(t>14&&t<=24)return u.push("high quality balanced size tier"),20;if(t>24)return u.push("large model for quality-first usage"),10;return u.push("very small model for general usage"),8}function nn(t,h,u){let a=un(t);if(a.includes("q4"))return u.push("efficient Q4 quantization"),h==="latency"?8:4;if(a.includes("q5"))return u.push("balanced Q5 quantization"),h==="latency"?6:5;if(a.includes("q8"))return u.push("higher quality Q8 quantization"),h==="latency"?2:5;return 0}function an(t,h,u){if(h.score!==t.score)return h.score-t.score;let a=lh(t)??Number.POSITIVE_INFINITY,C=lh(h)??Number.POSITIVE_INFINITY;if(u==="latency")return a-C;if(u==="coding")return C-a;let w=14;return Math.abs(a-w)-Math.abs(C-w)}function rh(t,h){return t.map((u)=>{let a=uu(u),C=[],w=0;if(Nt(a,hu))w-=40,C.push("not a chat-first model");if(Nt(a,sc))w+=h==="coding"?24:h==="balanced"?10:4,C.push("coding-oriented model family");if(Nt(a,ec))w+=h==="latency"?4:h==="coding"?6:8,C.push("strong general-purpose model family");if(Nt(a,vc))w+=h==="latency"?2:6,C.push("chat/instruct tuned");if(a.includes("vision")||a.includes("vl"))w-=2,C.push("vision model adds extra overhead");w+=cn(lh(u),h,C),w+=nn(u,h,C);let f=C.slice(0,3).join(", ");return{...u,score:w,reasons:C,summary:f}}).sort((u,a)=>an(u,a,h))}function cu(t,h){return hn(rh(t,h))}var sc,ec,vc,hu;var nu=I(()=>{sc=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],ec=["llama","qwen","mistral","gemma","phi","deepseek"],vc=["instruct","chat","assistant"],hu=["embed","embedding","rerank","bge","whisper"]});function yn(t){let h=t.toLowerCase();return mn.some((u)=>h.includes(u))}function wh(t){try{let h=new URL(t);if(h.username)h.username="redacted";if(h.password)h.password="redacted";for(let u of h.searchParams.keys())if(yn(u))h.searchParams.set(u,"redacted");return h.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var mn;var au=I(()=>{mn=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function wn(t){let h=`http://localhost:${t.port}/auth/callback`,u=new URL(`${Oh}/oauth/authorize`);return u.searchParams.append("response_type","code"),u.searchParams.append("client_id",zh()),u.searchParams.append("redirect_uri",h),u.searchParams.append("scope",yu),u.searchParams.append("code_challenge",t.codeChallenge),u.searchParams.append("code_challenge_method","S256"),u.searchParams.append("id_token_add_organizations","true"),u.searchParams.append("codex_cli_simplified_flow","true"),u.searchParams.append("state",t.state),u.searchParams.append("originator",Cu),u.toString()}function bn(){return`<!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Codex Login Complete</title>
6
- <style>
7
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
8
- h1 { margin: 0 0 12px; font-size: 22px; }
9
- p { margin: 0 0 10px; }
10
- </style>
11
- </head>
12
- <body>
13
- <h1>Codex login complete</h1>
14
- <p>You can return to Claudin now.</p>
15
- <p>Claudin will finish activating your new Codex OAuth login.</p>
16
- </body>
17
- </html>`}function On(t){return`<!doctype html>
18
- <html lang="en">
19
- <head>
20
- <meta charset="utf-8" />
21
- <title>Codex Login Failed</title>
22
- <style>
23
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
24
- h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
25
- p { margin: 0 0 10px; }
26
- </style>
27
- </head>
28
- <body>
29
- <h1>Codex login failed</h1>
30
- <p>${ru(t)}</p>
31
- <p>You can close this window and try again in Claudin.</p>
32
- </body>
33
- </html>`}function mu(){return`<!doctype html>
34
- <html lang="en">
35
- <head>
36
- <meta charset="utf-8" />
37
- <title>Codex Login Cancelled</title>
38
- <style>
39
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
40
- h1 { margin: 0 0 12px; font-size: 22px; }
41
- p { margin: 0 0 10px; }
42
- </style>
43
- </head>
44
- <body>
45
- <h1>Codex login cancelled</h1>
46
- <p>You can close this window and retry in Claudin.</p>
47
- </body>
48
- </html>`}async function zn(t){let h=`http://localhost:${t.port}/auth/callback`,u=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:h,client_id:zh(),code_verifier:t.codeVerifier}),a=await fetch(`${Oh}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!a.ok){let R=await a.text().catch(()=>"");throw Error(R.trim()?`Codex OAuth token exchange failed (${a.status}): ${R.trim()}`:`Codex OAuth token exchange failed with status ${a.status}.`)}let C=await a.json(),w=Ut(C.access_token),f=Ut(C.refresh_token);if(!w||!f)throw Error("Codex OAuth completed, but the token response was missing credentials.");let A=Ut(C.id_token);return{apiKey:A?await wu(A).catch(()=>{return}):void 0,accessToken:w,refreshToken:f,idToken:A,accountId:bh(A)??bh(w)}}class Rh{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let h=Ou(),u=lu(),a=new bu("/auth/callback");this.authCodeListener=a,this.port=null;try{let C=await a.start(u);this.port=C;let w=Ru(),f=await zu(h),A=wn({port:C,codeChallenge:f,state:w});try{let $=await a.waitForAuthorization(w,async()=>{await t(A)}),R=new AbortController;this.tokenExchangeAbortController=R;let X;try{X=await zn({authorizationCode:$,codeVerifier:h,port:C,signal:R.signal})}finally{if(this.tokenExchangeAbortController===R)this.tokenExchangeAbortController=null}if(this.authCodeListener!==a)throw this.buildCancellationError();return a.handleSuccessRedirect([],(J)=>{J.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),J.end(bn())}),X}catch($){let R=this.authCodeListener===a?$:this.buildCancellationError();if(a.hasPendingResponse()){let X=R instanceof Error&&R.message==="Codex OAuth flow was cancelled.";a.handleErrorRedirect((J)=>{J.writeHead(X?200:400,{"Content-Type":"text/html; charset=utf-8"}),J.end(X?mu():On(R instanceof Error?R.message:String(R)))})}throw R}finally{this.cleanup()}}catch(C){let w=C instanceof Error?C.message:String(C);if(w.includes("EADDRINUSE")||w.includes(String(u)))throw Error(`Codex OAuth needs localhost:${u} for its callback. Close any app already using that port and try again.`);throw C}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((h)=>{h.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),h.end(mu())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var Au=I(()=>{ln();rn();Cn()});function Rn(){return new Rh}function $u(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??Rn,a=t.deps?.openBrowser??Pt,C=t.deps?.saveCodexCredentials??gu,w=t.deps?.isBareMode??o,[f,A]=Bt.useState({state:"starting"});return Bt.useEffect(()=>{if(w()){A({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let $=!1,R=u();return R.startOAuthFlow(async(X)=>{if($)return;A({state:"waiting",authUrl:X,browserOpened:null});let J=await a(X);if($)return;A({state:"waiting",authUrl:X,browserOpened:J})}).then(async(X)=>{if($)return;await h(X,(Q)=>{let H=C({apiKey:X.apiKey,accessToken:X.accessToken,refreshToken:X.refreshToken,idToken:X.idToken,accountId:X.accountId,profileId:Q?.profileId});if(!H.success)throw Error(H.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((X)=>{if($)return;A({state:"error",message:X instanceof Error?X.message:String(X)})}),()=>{$=!0,R.cleanup()}},[u,w,h,a,C]),f}var Bt;var fu=I(()=>{Au();qu();Xu();Et();Bt=Lt(Qt(),1)});function du(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":ku()}}function _u(t,h){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:h}function fn(t,h){if(h?.aborted)return Promise.resolve();return new Promise((u)=>{let a=setTimeout(()=>{h?.removeEventListener("abort",C),u()},t),C=()=>{clearTimeout(a),u()};h?.addEventListener("abort",C,{once:!0})})}async function Fn(t){let h=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),a=await h(Qu,{method:"POST",headers:du(),body:new URLSearchParams({client_id:Ah(),scope:Ju}).toString(),signal:u});if(!a.ok){let $=await a.text().catch(()=>"");throw Error(`xAI device code request failed (${a.status})${$?`: ${$.trim()}`:""}`)}let C=await a.json(),w=at(C.device_code),f=at(C.user_code),A=at(C.verification_uri);if(!w||!f||!A)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:w,user_code:f,verification_uri:A,verification_uri_complete:at(C.verification_uri_complete),expires_in:typeof C.expires_in==="number"&&C.expires_in>0?C.expires_in:Zu/1000,interval:typeof C.interval==="number"&&C.interval>0?C.interval:Vu/1000}}async function _n(t,h){let u=h?.fetchImpl??fetch,a=h?.sleep??fn,C=h?.now??(()=>Date.now()),w=_u(t.expires_in,Zu),f=C()+w,A=Math.max(_u(t.interval,Vu),Xn);while(C()<f){if(h?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let $=await u(Lu,{method:"POST",headers:du(),body:new URLSearchParams({grant_type:Nu,client_id:Ah(),device_code:t.device_code}).toString(),signal:h?.signal});if($.ok){let Q=await $.json(),H=at(Q.access_token),V=at(Q.refresh_token);if(!H||!V)throw Error("xAI OAuth completed, but the token response was missing credentials.");let O=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:3600;return{accessToken:H,refreshToken:V,idToken:at(Q.id_token),expiresAt:C()+O*1000}}let R=await $.json().catch(()=>({})),X=Math.max(0,f-C());if(R.error==="authorization_pending"){await a(Math.min(A+Fu,X),h?.signal);continue}if(R.error==="slow_down"){A=Math.min(A+qn,$n),await a(Math.min(A+Fu,X),h?.signal);continue}if(R.error==="access_denied"||R.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(R.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let J=R.error_description??R.error??"";throw Error(`xAI device token exchange failed (${$.status})${J?`: ${J}`:""}`)}throw Error("xAI device authorization timed out.")}class gh{abortController=null;async startDeviceFlow(t){let h=new AbortController;this.abortController=h;try{let u=await Fn({signal:h.signal});return await t(u),await _n(u,{signal:h.signal})}finally{if(this.abortController===h)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var Vu=5000,Xn=1000,qn=5000,$n=60000,Zu=300000,Fu=3000;var Yu=I(()=>{An();gn()});function kn(){return new gh}function Hu(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??kn,a=t.deps?.saveXaiCredentials??Gu,C=t.deps?.isBareMode??o,[w,f]=It.useState({state:"starting"});return It.useEffect(()=>{if(C()){f({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let A=!1,$=u();return $.startDeviceFlow(async(R)=>{if(A)return;f({state:"waiting",userCode:R.user_code,verificationUri:R.verification_uri,verificationUriComplete:R.verification_uri_complete})}).then(async(R)=>{if(A)return;await h(R,(J)=>{let Q=a({accessToken:R.accessToken,refreshToken:R.refreshToken,idToken:R.idToken,expiresAt:R.expiresAt,profileId:J?.profileId});if(!Q.success)throw Error(Q.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((R)=>{if(A)return;f({state:"error",message:R instanceof Error?R.message:String(R)})}),()=>{A=!0,$.cleanup()}},[u,C,h,a]),w}var It;var Ku=I(()=>{Yu();Et();Su();It=Lt(Qt(),1)});async function Du(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":Eu,...await Bu()}}function iu(t,h){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:h}function Vn(t,h){if(h?.aborted)return Promise.resolve();return new Promise((u)=>{let a=setTimeout(()=>{h?.removeEventListener("abort",C),u()},t),C=()=>{clearTimeout(a),u()};h?.addEventListener("abort",C,{once:!0})})}async function Zn(t){let h=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),a=await h(Mu,{method:"POST",headers:await Du(),body:new URLSearchParams({client_id:Xh()}).toString(),signal:u});if(!a.ok){let $=await a.text().catch(()=>"");throw Error(`Kimi device code request failed (${a.status})${$?`: ${$.trim()}`:""}`)}let C=await a.json(),w=Ct(C.device_code),f=Ct(C.user_code),A=Ct(C.verification_uri);if(!w||!f||!A)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:w,user_code:f,verification_uri:A,verification_uri_complete:Ct(C.verification_uri_complete),expires_in:typeof C.expires_in==="number"&&C.expires_in>0?C.expires_in:xu/1000,interval:typeof C.interval==="number"&&C.interval>0?C.interval:Iu/1000}}async function dn(t,h){let u=h?.fetchImpl??fetch,a=h?.sleep??Vn,C=h?.now??(()=>Date.now()),w=iu(t.expires_in,xu),f=C()+w,A=Math.max(iu(t.interval,Iu),Qn);while(C()<f){if(h?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let $=await u(Tu,{method:"POST",headers:await Du(),body:new URLSearchParams({grant_type:Uu,client_id:Xh(),device_code:t.device_code}).toString(),signal:h?.signal});if($.ok){let Q=await $.json(),H=Ct(Q.access_token),V=Ct(Q.refresh_token);if(!H||!V)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let O=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:900;return{accessToken:H,refreshToken:V,expiresAt:C()+O*1000}}let R=await $.json().catch(()=>({})),X=Math.max(0,f-C());if(R.error==="authorization_pending"){await a(Math.min(A+Wu,X),h?.signal);continue}if(R.error==="slow_down"){A=Math.min(A+Nn,Jn),await a(Math.min(A+Wu,X),h?.signal);continue}if(R.error==="access_denied"||R.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(R.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let J=R.error_description??R.error??"";throw Error(`Kimi device token exchange failed (${$.status})${J?`: ${J}`:""}`)}throw Error("Kimi device authorization timed out.")}class qh{abortController=null;async startDeviceFlow(t){let h=new AbortController;this.abortController=h;try{let u=await Zn({signal:h.signal});return await t(u),await dn(u,{signal:h.signal})}finally{if(this.abortController===h)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var Iu=5000,Qn=1000,Nn=5000,Jn=60000,xu=1800000,Wu=3000;var ju=I(()=>{Ln();Pu()});function Yn(){return new qh}function su(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??Yn,a=t.deps?.saveKimiCredentials??ou,C=t.deps?.isBareMode??o,[w,f]=lt.useState({state:"starting"}),A=lt.useRef(!1);return lt.useEffect(()=>{if(C()){f({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let $=!1,R=u();return R.startDeviceFlow(async(X)=>{if($)return;f({state:"waiting",userCode:X.user_code,verificationUri:X.verification_uri,verificationUriComplete:X.verification_uri_complete})}).then(async(X)=>{if($)return;await h(X,(Q)=>{let H=a({accessToken:X.accessToken,refreshToken:X.refreshToken,expiresAt:X.expiresAt,profileId:Q?.profileId});if(!H.success)throw Error(H.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((X)=>{if($)return;f({state:"error",message:X instanceof Error?X.message:String(X)})}),()=>{$=!0,R.cleanup()}},[u,C,h,a]),lt.useEffect(()=>{if(w.state!=="waiting")return;if(A.current)return;let $=w.verificationUriComplete??w.verificationUri;if(!$)return;A.current=!0,Pt($).catch(()=>{})},[w]),w}var lt;var eu=I(()=>{ju();qu();Et();pu();lt=Lt(Qt(),1)});function ca(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function na(t){let h=ot(t);return{name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""}}function aa(t){let h={};for(let u of t.split(/\r?\n/)){let a=u.trim();if(!a)continue;let C=a.indexOf(":");if(C<=0)continue;let w=a.slice(0,C).trim(),f=a.slice(C+1).trim();if(w&&f)h[w]=f}return h}function ma(t){if(!t)return"";return Object.entries(t).map(([h,u])=>`${h}: ${u}`).join(`
49
- `)}function ya(t,h){let u={},a=t.awsRegion?.trim();if(a)u.awsRegion=a;let C=t.gcpProject?.trim();if(C)u.gcpProject=C;let w=t.gcpRegion?.trim();if(w)u.gcpRegion=w;let f=t.azureResource?.trim();if(f)u.azureResource=f;let A=aa(h);if(Object.keys(A).length>0)u.customHeaders=A;return Object.keys(u).length>0?u:void 0}function la(t,h){let u=h?" (active)":"",a=t.apiKey?"key set":"no key",C=t.provider==="anthropic"?"anthropic":"openai-compatible",w=tc(t.model),f=w.length<=3?w.join(", "):`${w[0]}, ${w[1]} + ${w.length-2} more`;return`${C} · ${t.baseUrl} · ${f} · ${a}${u}`}function ra(t,h){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${wh(h)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function wa(t,h){if(t.state==="unreachable")return`Could not reach Ollama at ${wh(h)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let u=t.probeModel??"the selected model",a=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${u}.${a} Run "ollama run ${u}" once and retry, or enter details manually.`}return""}function fh(t,h){if(!h)return;return t.find((u)=>u.id===h)}function vu(t,h){return Boolean(t&&h&&t.id===h)}function ba(t,h){if(h){let u=t.find((a)=>a.id===h);if(u)return u}return t.find((u)=>u.provider==="openai"&&u.baseUrl===Zh&&!u.apiKey)}function Oa(t,h){if(h){let u=t.find((a)=>a.id===h);if(u)return u}return t.find((u)=>u.provider==="openai"&&u.baseUrl===pt&&!u.apiKey)}function za(t,h){return t.find((u)=>u.provider==="anthropic"&&u.baseUrl===h&&!u.apiKey)}function Ra({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t,[t]);let a=$u({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"Codex OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Codex OAuth"}),n(y,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),a.state==="starting"?n(y,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):a.browserOpened===!1?z(yt,{children:[n(y,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),n(y,{children:a.authUrl})]}):a.browserOpened===!0?z(yt,{children:[n(y,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),n(y,{children:a.authUrl})]}):n(y,{dimColor:!0,children:"Opening your browser..."}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Aa({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t,[t]);let a=Hu({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"xAI OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),a.state==="starting"?n(y,{dimColor:!0,children:"Requesting a device code from xAI..."}):z(yt,{children:[z(y,{children:["Open this URL on any device:"," ",n(y,{bold:!0,children:a.verificationUri})]}),z(y,{children:["Enter code ",n(y,{bold:!0,children:a.userCode})]}),a.verificationUriComplete&&a.verificationUriComplete!==a.verificationUri?z(y,{dimColor:!0,children:["Or open this prefilled URL: ",a.verificationUriComplete]}):null,n(y,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function ga({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t);let a=su({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),a.state==="starting"?n(y,{dimColor:!0,children:"Requesting a device code from Kimi..."}):z(yt,{children:[z(y,{children:["Open this URL on any device:"," ",n(y,{bold:!0,children:a.verificationUri})]}),z(y,{children:["Enter code ",n(y,{bold:!0,children:a.userCode})]}),a.verificationUriComplete&&a.verificationUriComplete!==a.verificationUri?z(y,{dimColor:!0,children:["Or open this prefilled URL: ",a.verificationUriComplete]}):null,n(y,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Vm({mode:t,onDone:h}){let u=bc(),[a,C]=g.useState([]),[w,f]=g.useState(),[A,$]=g.useState(),[R,X]=g.useState(!1),[J,Q]=g.useState(),H=g.useRef(0),[V,O]=g.useState(t==="first-run"?"select-preset":"menu"),[wt,i]=g.useState(null),[Z,mt]=g.useState("openai"),[N,P]=g.useState(()=>na("ollama")),[Zt,dt]=g.useState({}),[dh,st]=g.useState(""),[Rc,Ac]=g.useState(0),[gc,Xc]=g.useState(0),[et,Yh]=g.useState(null),[bt,Ft]=g.useState(0),[Ot,p]=g.useState(0),[qc,s]=g.useState(0),[Gh,Y]=g.useState(),[zt,_]=g.useState(),[$c,fc]=g.useState(),[Sh,Yt]=g.useState(!1),[_t,kt]=g.useState(),[e,Gt]=g.useState({state:"idle"}),[v,St]=g.useState({state:"idle"}),[tt,vt]=g.useState({state:"idle"}),[Fc,_c]=g.useState(!0),[kc,E]=g.useState(!1),th=g.useRef(!1),[hh,uh]=g.useState(()=>Vt()),[Hh,Lc]=g.useState(()=>Oc());g.useEffect(()=>{queueMicrotask(()=>{let c=x(),m=B()?.id;C(c),f(m),$(xt()),Q(Fh()),X(Jt()),_c(!1)})},[]);let Rt=rt[Ot]??rt[0],Ht=Rt.key,Qc=N[Ht],ch=a.length>0,Kt=ch,Kh=g.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...hh?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:J?`Currently: ${a.find((c)=>c.id===J)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!Kt},{value:"activate-project",label:"Set active provider (Project)",description:A?`Currently: ${a.find((c)=>c.id===A)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!Kt},...R?[{value:"clear-project-override",label:"Clear project provider override",description:A?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!ch},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!Kt},...Sh?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[Kt,ch,Sh,hh,J,A,a]),nh=g.useCallback(()=>{if(o()){H.current+=1,Yt(!1),kt(void 0);return}let c=++H.current;(async()=>{let m=await Lh();if(c!==H.current)return;Yt(Boolean(m?.apiKey||m?.accessToken||m?.refreshToken||m?.idToken)),kt(m?.profileId)})()},[]);g.useEffect(()=>{return nh(),()=>{H.current+=1}},[nh]),g.useEffect(()=>{if(V!=="select-ollama-model")return;let c=!1;return Gt({state:"loading"}),(async()=>{let m=await wc({baseUrl:N.baseUrl});if(m.state!=="ready"){if(!c)Gt({state:"unavailable",message:wa(m,N.baseUrl)});return}let l=rh(m.models,"balanced"),r=cu(m.models,"balanced");if(!c)Gt({state:"ready",defaultValue:r?.name??l[0]?.name,options:l.map((b)=>({label:b.name,value:b.name,description:b.summary}))})})(),()=>{c=!0}},[N.baseUrl,V]),g.useEffect(()=>{if(V!=="select-atomic-chat-model")return;let c=!1;return St({state:"loading"}),(async()=>{let m=await rc({baseUrl:N.baseUrl});if(m.state!=="ready"){if(!c)St({state:"unavailable",message:ra(m,N.baseUrl)});return}if(!c)St({state:"ready",defaultValue:m.models[0],options:m.models.map((l)=>({label:l,value:l}))})})(),()=>{c=!0}},[N.baseUrl,V]),g.useEffect(()=>{if(V!=="select-openai-model")return;let c=!1;return vt({state:"loading"}),(async()=>{let m=await Cc({baseUrl:N.baseUrl,apiKey:N.apiKey||void 0});if(c)return;if(!m||m.length===0){vt({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:l,defaultValue:r}=lc(m,N.model);vt({state:"ready",options:l,defaultValue:r})})(),()=>{c=!0}},[N.baseUrl,N.apiKey,V]);function K(){if(th.current)return;th.current=!0,queueMicrotask(()=>{let c=x();C(c),f(B()?.id),$(xt()),Q(Fh()),X(Jt()),nh(),th.current=!1})}function At(){return null}function ah(c){if(c.activationWarning)return`${c.prefix}. Saved for next startup. Warning: ${c.warnings.join("; ")}.`;if(c.warnings.length>0)return`${c.prefix}. Claudin switched to it for this session with warnings: ${c.warnings.join("; ")}.`;return`${c.prefix}. Claudin switched to it for this session.`}async function mh(c){if(c?.accessToken&&c.accountId)return null;let m=await Lh();if(!m)return"stored Codex OAuth credentials could not be loaded";if(!m.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function Wh(){yc()}async function Nc(c){let m="provider";E(!0),Y("Activating provider...");try{await new Promise((ht)=>queueMicrotask(ht));let l=Jt(),r=nt(c);if(!r){_("Could not change active provider."),E(!1),L();return}let b=l?B()??r:r,q=$t(b.model)||Dt();if(!l)u((ht)=>({...ht,mainLoopModel:q,mainLoopModelForSession:null}));m=r.name;let k=At(),d=vu(r,_t),T=d?await mh():null;K();let U=l&&b.id!==r.id?` (project override still active — this project keeps using ${b.name}; use "Clear project provider override" to apply the new default here)`:"",W=d?ah({prefix:`Active provider: ${r.name}${U}`,activationWarning:T,warnings:[T,k?`could not clear startup provider override (${k})`:null].filter((ht)=>Boolean(ht))}):k?`Active provider: ${r.name}${U}. Warning: could not clear startup provider override (${k}).`:`Active provider: ${r.name}${U}`;Y(W),E(!1),h({action:"activated",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:q,message:`Provider switched to ${r.name} (${q})`}),L()}catch(l){K(),Y(void 0),E(!1);let r=l instanceof Error?l.message:String(l);_(`Could not finish activating ${m}: ${r}`),L()}}async function Jc(){E(!0),Y("Clearing project provider override...");try{await new Promise((m)=>queueMicrotask(m)),_h(null),K();let c=B();if(c){let m=$t(c.model)||Dt();ft(),u((l)=>({...l,mainLoopModel:m,mainLoopModelForSession:null})),Y(`Project override cleared. Using global default: ${c.name}.`),E(!1),h({action:"activated",activeProfileId:c.id,activeProviderName:c.name,activeProviderModel:m,message:`Project override cleared — using ${c.name} (${m})`}),L()}else Y("Project provider override cleared. No global default set."),E(!1),h({action:"saved",message:"Project provider override cleared. No global default set."}),L()}catch(c){K(),Y(void 0),E(!1);let m=c instanceof Error?c.message:String(c);_(`Could not clear project provider override: ${m}`),L()}}async function Vc(c){let m="provider";E(!0),Y("Setting provider for this project...");try{await new Promise((W)=>queueMicrotask(W));let l=xt(),r=_h(c);if(!r){_("Could not set project provider override."),E(!1),L();return}let b=$t(r.model)||Dt();if(l===r.id)ft();u((W)=>({...W,mainLoopModel:b,mainLoopModelForSession:null})),m=r.name;let q=At(),k=vu(r,_t),d=k?await mh():null;K();let T=`Active provider for this project: ${r.name}. Other projects keep the global default.`,U=k?ah({prefix:T,activationWarning:d,warnings:[d,q?`could not clear startup provider override (${q})`:null].filter((W)=>Boolean(W))}):q?`${T} Warning: could not clear startup provider override (${q}).`:T;Y(U),E(!1),h({action:"activated",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:b,message:`Provider switched to ${r.name} (${b}) for this project`}),L()}catch(l){K(),Y(void 0),E(!1);let r=l instanceof Error?l.message:String(l);_(`Could not finish setting ${m} for this project: ${r}`),L()}}function L(){fc("done"),O("menu")}function Wt(c){h({action:"cancelled",message:c})}function ih(c){let m=ot(c),l={name:m.name,baseUrl:m.baseUrl,model:m.model,apiKey:m.apiKey??""};if(i(null),mt(m.provider??"openai"),P(l),dt({}),st(""),Yh(c),p(0),Ft(0),s(l.name.length),_(void 0),c==="ollama"){Gt({state:"loading"}),O("select-ollama-model");return}if(c==="atomic-chat"){St({state:"loading"}),O("select-atomic-chat-model");return}if(c==="anthropic"){O("anthropic-auth-choice");return}if(c==="bedrock"||c==="vertex"||c==="foundry"){O("cloud-extras");return}O("form")}function Zc(c){let m=a.find((r)=>r.id===c);if(!m)return;let l=ca(m);i(c),mt(m.provider??"openai"),P(l),dt({awsRegion:m.extras?.awsRegion,gcpProject:m.extras?.gcpProject,gcpRegion:m.extras?.gcpRegion,azureResource:m.extras?.azureResource}),st(ma(m.extras?.customHeaders)),Yh(null),p(0),Ft(0),s(l.name.length),_(void 0),O("form")}function it(c=N){let m=ya(Zt,dh),l={provider:Z,name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey,extras:m},r=wt?ct(wt,l):ut(l,{makeActive:!0});if(!r){_("Could not save provider. Fill all required fields.");return}let b=B()?.id===r.id;if(b)ft(),u((U)=>({...U,mainLoopModel:$t(r.model),mainLoopModelForSession:null}));let q=b?At():null;K();let k=!wt&&Jt()&&!b,d=k?B()?.name??"override target":null,T=wt?`Updated provider: ${r.name}`:k?`Added provider: ${r.name} (now global default — project keeps using ${d}; use "Clear project provider override" to apply here)`:`Added provider: ${r.name} (now active)`;if(Y(q?`${T}. Warning: could not clear startup provider override (${q}).`:T),t==="first-run"){h({action:"saved",activeProfileId:r.id,message:`Provider configured: ${r.name}`});return}i(null),p(0),_(void 0),L()}function dc(){if(v.state==="loading"||v.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),n(y,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(v.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Atomic Chat setup"}),n(y,{dimColor:!0,children:v.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){p(0),s(N.name.length),O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:2})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),n(y,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),n(S,{options:v.options,defaultValue:v.defaultValue,defaultFocusValue:v.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,v.options.length),onChange:(c)=>{let m={...N,model:c};P(m),it(m)},onCancel:()=>O("select-preset")})]})}function Yc(){if(e.state==="loading"||e.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Checking Ollama"}),n(y,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(e.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Ollama setup"}),n(y,{dimColor:!0,children:e.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){p(0),s(N.name.length),O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:2})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose an Ollama model"}),n(y,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),n(S,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(c)=>{let m={...N,model:c};P(m),it(m)},onCancel:()=>O("select-preset")})]})}function gt(c){let m=rt.findIndex((l)=>l.key===c);p(m<0?0:m),s(N[c].length),_(void 0),O("form")}function Gc(){if(tt.state==="loading"||tt.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Fetching models"}),n(y,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),n(y,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(tt.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose a model"}),n(y,{dimColor:!0,children:tt.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(l)=>{if(l==="manual"){gt("model");return}gt("apiKey")},onCancel:()=>gt("apiKey"),visibleOptionCount:2})]});let c=[...tt.options,{value:$h,label:"Enter a model id manually",description:"Type an id the provider did not list"}],m=tt.defaultValue??$h;return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose a model"}),n(y,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),n(S,{options:c,defaultValue:m,defaultFocusValue:m,inlineDescriptions:!0,visibleOptionCount:Math.min(8,c.length),onChange:(l)=>{if(l===$h){gt("model");return}let r={...N,model:l};P(r),Mh(r)},onCancel:()=>gt("apiKey")}),n(y,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function Mh(c){if(et==="anthropic"||et==="custom"){P(c),O("custom-headers");return}it(c)}function Sc(c){let m=c.trim();if(!Rt.optional&&m.length===0){_(`${Rt.label} is required.`);return}let l={...N,[Ht]:m};if(P(l),_(void 0),Ot<rt.length-1){let r=Ot+1,b=rt[r]?.key??"name";if(b==="model"&&!pn.has(Z)&&l.baseUrl.trim().length>0){O("select-openai-model");return}p(r),s(l[b].length);return}Mh(l)}function Hc(){if(_(void 0),Ot>0){let c=Ot-1,m=rt[c]?.key??"name";p(c),s(N[m].length);return}if(t==="first-run"){O("select-preset");return}L()}D("confirm:no",Hc,{context:"Settings",isActive:V==="form"}),D("confirm:no",()=>gt("model"),{context:"Settings",isActive:V==="select-openai-model"&&(tt.state==="loading"||tt.state==="idle")});function Kc(){if(_(void 0),bt>0){Ft(bt-1);return}O("select-preset")}D("confirm:no",Kc,{context:"Settings",isActive:V==="cloud-extras"}),D("confirm:no",()=>O("form"),{context:"Settings",isActive:V==="custom-headers"}),D("confirm:no",()=>O("select-preset"),{context:"Settings",isActive:V==="anthropic-auth-choice"||V==="anthropic-oauth"||V==="kimi-auth-choice"}),D("confirm:no",()=>O("kimi-auth-choice"),{context:"Settings",isActive:V==="kimi-oauth"});function Wc(){let c=!o(),m=[...hh?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...c?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI",description:"API key or Kimi Code OAuth sign-in"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),n(y,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),n(S,{options:m,onChange:(l)=>{if(l==="skip"){Wt("Provider setup skipped");return}if(l==="codex-oauth"){O("codex-oauth");return}if(l==="xai-oauth"){O("xai-oauth");return}if(l==="moonshotai"){O("kimi-auth-choice");return}if(l==="github-onboard"){O("github-onboard");return}if(l==="import-legacy"){(async()=>{let r=await Vh({force:!0});uh(Vt()),K();let b=jt(r);if(r.errors.length>0){_(b);return}let q=B();if(t==="first-run"&&q){h({action:"saved",activeProfileId:q.id,activeProviderName:q.name,activeProviderModel:q.model,message:b});return}if(Y(b),_(void 0),t==="manage")L()})();return}ih(l)},onCancel:()=>{if(t==="first-run"){Wt("Provider setup skipped");return}L()},visibleOptionCount:Math.min(13,m.length)})]})}function ic(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),n(y,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),n(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){O("anthropic-oauth");return}if(c==="apiKey"){O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:3})]})}function Mc(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),n(y,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),n(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){O("kimi-oauth");return}if(c==="apiKey"){ih("moonshotai");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:3})]})}function Tc(){let c=(xn(),Gn(In)).ConsoleOAuthFlow;return n(F,{flexDirection:"column",gap:1,children:n(c,{mode:"login",onDone:()=>{let m=ot("anthropic"),l={provider:"anthropic",name:m.name,baseUrl:m.baseUrl,model:m.model},r=za(x(),m.baseUrl),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("OAuth completed, but the Anthropic profile could not be saved."),O("select-preset");return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("OAuth completed, but the Anthropic profile could not be set as the startup provider."),O("select-preset");return}let k=`Anthropic OAuth configured: ${q.name}`;if(K(),t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}})})}function Uc(){let c=et;if(c!=="bedrock"&&c!=="vertex"&&c!=="foundry")return null;let m=Ca[c],l=m[bt]??m[0],r=Zt[l.key]??"";function b(q){let k=q.trim();if(k.length===0){_(`${l.label} is required.`);return}let d={...Zt,[l.key]:k};if(dt(d),_(void 0),bt<m.length-1){Ft(bt+1);return}Ft(0),O("form")}return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:`${c==="bedrock"?"AWS Bedrock":c==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),n(y,{dimColor:!0,children:l.helpText}),z(y,{dimColor:!0,children:["Step ",bt+1," of ",m.length,": ",l.label]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:r,onChange:(q)=>dt((k)=>({...k,[l.key]:q})),onSubmit:b,focus:!0,showCursor:!0,placeholder:`${l.placeholder}${qt.ellipsis}`,columns:80,cursorOffset:Rc,onChangeCursorOffset:Ac})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Ec(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Custom headers (optional)"}),z(y,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",n(y,{children:"Header: Value"}),". Leave empty to skip."]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:dh,onChange:st,onSubmit:()=>it(N),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:gc,onChangeCursorOffset:Xc})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function Pc(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:wt?"Edit provider profile":"Create provider profile"}),n(y,{dimColor:!0,children:Rt.helpText}),z(y,{dimColor:!0,children:["Provider type:"," ",Z==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),z(y,{dimColor:!0,children:["Step ",Ot+1," of ",rt.length,": ",Rt.label]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:Qc,onChange:(c)=>P((m)=>({...m,[Ht]:c})),onSubmit:Sc,focus:!0,showCursor:!0,placeholder:`${Rt.placeholder}${qt.ellipsis}`,mask:Ht==="apiKey"?"*":void 0,columns:80,cursorOffset:qc,onChangeCursorOffset:s})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Bc(){let c=a.length>0,m=c;return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Provider manager"}),n(y,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),Gh&&n(y,{children:Gh}),n(F,{flexDirection:"column",children:a.length===0?n(y,{dimColor:!0,children:"No provider profiles configured yet."}):a.map((l)=>z(y,{dimColor:!0,children:["- ",l.name,": ",la(l,l.id===w)]},l.id))}),n(S,{options:Kh,onChange:(l)=>{switch(_(void 0),l){case"add":O("select-preset");break;case"import-legacy":{(async()=>{let r=await Vh({force:!0});if(uh(Vt()),K(),r.errors.length>0)_(jt(r));else Y(jt(r))})();break}case"activate":if(m)O("select-active");break;case"activate-project":if(m)O("select-active-project");break;case"clear-project-override":Jc();break;case"edit":if(c)O("select-edit");break;case"delete":if(m)O("select-delete");break;case"logout-codex-oauth":{let r=Qh();if(!r.success){_(r.warning??"Could not clear Codex OAuth credentials.");break}Yt(!1),kt(void 0);let b=fh(x(),_t),q=null;if(b){let k=kh(b.id);if(!k.removed){_("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),K();break}Wh(),q=k.activeProfileId?At():null}K(),Y(q?`Codex OAuth logged out. Warning: could not clear startup provider override (${q}).`:"Codex OAuth logged out.");break}default:Wt("Provider manager closed");break}},onCancel:()=>Wt("Provider manager closed"),defaultFocusValue:$c,visibleOptionCount:Kh.length})]})}function Mt(c,m,l){let r=a.map((b)=>{let q=[];if(b.id===w)q.push("active");if(A&&b.id===A)q.push("this project");if(J&&b.id===J)q.push("global default");let k=q.length>0?` (${q.join(", ")})`:"";return{value:b.id,label:`${b.name}${k}`,description:`${b.provider==="anthropic"?"anthropic":"openai-compatible"} · ${b.baseUrl} · ${b.model}`}});if(r.length===0)return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:c}),n(y,{dimColor:!0,children:m}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>L(),onCancel:()=>L(),visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:c}),n(S,{options:r,onChange:l,onCancel:()=>L(),visibleOptionCount:Math.min(10,Math.max(2,r.length))})]})}let G;switch(V){case"select-preset":G=Wc();break;case"select-ollama-model":G=Yc();break;case"select-openai-model":G=Gc();break;case"select-atomic-chat-model":G=dc();break;case"codex-oauth":G=n(Ra,{onBack:()=>O("select-preset"),onConfigured:async(c,m)=>{let l={provider:"openai",name:sn,baseUrl:hc,model:en,apiKey:""},r=fh(x(),_t),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("Codex OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("Codex OAuth login finished, but the provider could not be set as the startup provider."),L();return}m({profileId:b.id});let k=At(),d=await mh(c);Yt(!0),kt(b.id),K();let T=[d,k?`could not clear startup provider override (${k})`:null].filter((W)=>Boolean(W)),U=ah({prefix:"Codex OAuth configured",activationWarning:d,warnings:T});if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:U});return}Y(U),_(void 0),L()}});break;case"xai-oauth":G=n(Aa,{onBack:()=>O("select-preset"),onConfigured:async(c,m)=>{let l={provider:"openai",name:vn,baseUrl:pt,model:ta,apiKey:""},r=Oa(x(),Jh()?.profileId),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("xAI OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("xAI OAuth login finished, but the provider could not be set as the startup provider."),L();return}try{m({profileId:b.id})}catch(d){_(d instanceof Error?d.message:String(d)),L();return}K();let k="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}});break;case"kimi-auth-choice":G=Mc();break;case"kimi-oauth":G=n(ga,{onBack:()=>O("kimi-auth-choice"),onConfigured:async(c,m)=>{let l={provider:"openai",name:ha,baseUrl:Zh,model:ua,apiKey:""},r=ba(x(),Nh()?.profileId),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("Kimi Code OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),L();return}try{m({profileId:b.id})}catch(d){_(d instanceof Error?d.message:String(d)),L();return}K();let k="Kimi Code configured. Claudin switched to it for this session.";if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}});break;case"github-onboard":G=n(vh,{onDone:(c)=>{if(c)Y(c),_(void 0);K(),L()},onBack:()=>O("select-preset"),onChangeAPIKey:K});break;case"anthropic-auth-choice":G=ic();break;case"anthropic-oauth":G=Tc();break;case"cloud-extras":G=Uc();break;case"custom-headers":G=Ec();break;case"form":G=Pc();break;case"select-active":G=Mt("Set active provider (Global)","No providers available. Add one first.",(c)=>{Nc(c)});break;case"select-active-project":G=Mt("Set active provider (Project)","No providers available. Add one first.",(c)=>{Vc(c)});break;case"select-edit":G=Mt("Edit provider","No providers available. Add one first.",(c)=>{Zc(c)});break;case"select-delete":G=Mt("Delete provider","No providers available. Add one first.",(c)=>{let m=a.find((W)=>W.id===c),l=m?.provider==="openai"&&m?.extras?.githubToken!==void 0,r=fh(a,_t)?.id===c,b=Jh()?.profileId,q=m?.provider==="openai"&&m.baseUrl===pt&&!m.apiKey&&b===c,k=Nh()?.profileId,d=m?.provider==="openai"&&m.baseUrl===Zh&&!m.apiKey&&k===c,T=B()?.id===c,U=kh(c);if(!U.removed)_("Could not delete provider.");else{let W=[];if(r){let M=Qh();if(!M.success)W.push(M.warning??"could not clear Codex OAuth credentials");else kt(void 0);Wh()}if(l){let M=cc();if(!M.success)W.push(M.warning??"could not clear GitHub Copilot token")}if(q){let M=mc();if(!M.success)W.push(M.warning??"could not clear xAI OAuth credentials")}if(d){let M=ac();if(!M.success)W.push(M.warning??"could not clear Kimi Code OAuth credentials")}let ht=U.activeProfileId?At():null;if(ht)W.push(`could not clear startup provider override (${ht})`);if(K(),T){let M=B();if(M)ft(),u((yh)=>({...yh,mainLoopModel:$t(M.model),mainLoopModelForSession:null}));else ft(),u((yh)=>({...yh,mainLoopModel:null,mainLoopModelForSession:null}))}Y(W.length>0?`Provider deleted. Warning: ${W.join("; ")}.`:"Provider deleted")}L()});break;case"menu":default:G=Bc();break}return z(uc,{color:"permission",children:[n(zc,{enabled:Hh,onDismiss:(c)=>{uh(Vt()),Lc(!1),K();let m=B();if(c==="migrated"&&t==="first-run"&&m)h({action:"saved",activeProfileId:m.id,activeProviderName:m.name,activeProviderModel:m.model})}}),Hh?null:Fc?z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Loading providers..."}),n(y,{dimColor:!0,children:"Reading provider profiles from disk."})]}):kc?z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Activating provider..."}),n(y,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var g,rt,$h="\x00__manual__",pn,sn="Codex OAuth",en="codexplan",vn="xAI / Grok (OAuth)",ta="grok-4",ha="Moonshot AI",ua,Zh="https://api.kimi.com/coding/v1",Ca;var Xa=I(()=>{Sn();tu();Kn();Eh();Mn();Pn();Dn();Xu();Et();Hn();Wn();Un();Th();ph();En();nu();au();Bn();Tn();on();sh();fu();Ku();eu();Su();pu();Pu();jn();Tt();g=Lt(Qt(),1),rt=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],pn=new Set(["anthropic","bedrock","vertex","foundry"]),ua=nc;Ca={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
50
- export{wh as Ac,au as Bc,aa as Cc,Vm as Dc,Xa as Ec};
@@ -1,3 +0,0 @@
1
- import{v2 as k,x2 as w}from"./cli-1.1.1-3wx8xt0d.mjs";import{B8 as j,V8 as v}from"./cli-1.1.1-ped3g2j0.mjs";import{$ha as s,Pha as d,_ha as h}from"./cli-1.1.1-4exyd7ra.mjs";import{kla as q}from"./cli-1.1.1-gmxcjwmv.mjs";import{ysa as p}from"./cli-1.1.1-vsc2bhws.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
- Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
3
- export{x as TW,O as UW,P as VW,Q as WW,R as XW,U as YW,W as ZW,X as _W,z as $W};
@@ -1,58 +0,0 @@
1
- import{Ar as U,Dr as h,HR as L,_R as a,eD as A,fD as p,jj as $,kK as F,mj as m,pB as k,qB as I}from"./cli-1.1.1-9p39qc3e.mjs";import{M4 as O,N4 as f}from"./cli-1.1.1-ped3g2j0.mjs";import{bka as S,fka as E}from"./cli-1.1.1-nrfj4jj5.mjs";import{Uka as b,Wka as T}from"./cli-1.1.1-zbnepy2q.mjs";import{Zka as y,kla as C}from"./cli-1.1.1-gmxcjwmv.mjs";import{ysa as N}from"./cli-1.1.1-vsc2bhws.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
-
3
- Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
-
5
- The file {{docPath}} has already been read for you. Here are its current contents:
6
- <current_doc_content>
7
- {{docContents}}
8
- </current_doc_content>
9
-
10
- Document title: {{docTitle}}
11
- {{customInstructions}}
12
-
13
- Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
-
15
- CRITICAL RULES FOR EDITING:
16
- - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
- - If there's an italicized line immediately after the header, preserve it exactly as-is
18
- - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
- - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
- - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
- - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
- - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
- - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
-
25
- DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
- - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
- - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
- - Do NOT duplicate information that's already obvious from reading the source code
29
- - Do NOT document every function, parameter, or line number reference
30
- - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
- - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
-
33
- What TO document:
34
- - High-level architecture and system design
35
- - Non-obvious patterns, conventions, or gotchas
36
- - Key entry points and where to start reading code
37
- - Important design decisions and their rationale
38
- - Critical dependencies or integration points
39
- - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
-
41
- What NOT to document:
42
- - Anything obvious from reading the code itself
43
- - Exhaustive lists of files, functions, or parameters
44
- - Step-by-step implementation details
45
- - Low-level code mechanics
46
- - Information already in CLAUDE.md or other project docs
47
-
48
- Use the Edit tool with file_path: {{docPath}}
49
-
50
- REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
51
-
52
- DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
- The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
-
55
- "${J}"
56
-
57
- These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
- export{Xw as $h,Zw as ai,s as bi};
@@ -1,45 +0,0 @@
1
- import{Qe as BY,Re as Bz}from"./cli-1.1.1-v9xqeqz0.mjs";import{Mg as qY,Ng as qz}from"./cli-1.1.1-1rn8sc8r.mjs";import{ph as $Y,qh as yz,rh as cY,sh as mz}from"./cli-1.1.1-vvjjnyzw.mjs";import{$n as XY,Au as JK,CK as GY,DT as V0,HK as Gz,NP as iY,QP as XJ,RP as GZ,SP as X0,Yn as UJ,Zn as UY,_n as AJ,aT as nY,ao as NJ,bQ as rY,bo as VY,cQ as Lz,gI as hY,hG as uY,hI as Tz,iG as wz,rG as B0,rs as Zz,sG as MY,ss as KK,uP as gY,zu as eY}from"./cli-1.1.1-9p39qc3e.mjs";import{AY as jz,GY as pY,HY as Fz,gY as _Y,hY as Az,uY as $J,wY as KY,zY as SY}from"./cli-1.1.1-kbqy5x92.mjs";import{A1 as U0,FZ as LY,MZ as IY,NZ as Rz,Q0 as fY,S0 as Ez,V0 as b,X0 as N,p1 as xY,wZ as f0,z0 as bY}from"./cli-1.1.1-q9wvkkjf.mjs";import{h4 as U,i4 as m,j4 as bJ}from"./cli-1.1.1-94s27fva.mjs";import{k4 as b0}from"./cli-1.1.1-6zke1wc8.mjs";import{I6 as tY,k7 as ez}from"./cli-1.1.1-ped3g2j0.mjs";import{p9 as $0,q9 as Cz}from"./cli-1.1.1-r6rebhmb.mjs";import{Ega as fJ,Hga as l0,L$ as Mz,Pga as mY,qaa as r0,saa as tz,t$ as yY}from"./cli-1.1.1-48eqv75k.mjs";import{Uga as S0,Vga as Hz,Xga as G0,gha as zY,hha as c0,kha as I0}from"./cli-1.1.1-9xxs59n0.mjs";import{mja as $,pja as Nz}from"./cli-1.1.1-h13exkfb.mjs";import{Vja as oY,Zja as sz,pka as CJ,ska as oz}from"./cli-1.1.1-nrfj4jj5.mjs";import{Pqa as TY,Qma as wY,Wma as H0}from"./cli-1.1.1-s0qbvs8w.mjs";import{usa as UZ,ysa as XZ}from"./cli-1.1.1-vsc2bhws.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let jJ;if(J[30]!==l||J[31]!==M)jJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=jJ;else jJ=J[32];return jJ}var HY,L0;var OY=XZ(()=>{U0();KY();Gz();I0();V0();XY();VY();UY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,jJ=vz,c=Wz,BJ=C??jJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var AY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function dY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${dY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=lY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=iY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,jJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},OZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:A,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(A),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{yY().then((Y)=>jJ(Y)),rY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!A){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==A){let z=A.toLowerCase();Y=EZ.filter((q)=>{let j=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return j.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=A,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,AZ,jZ;if(J[42]!==YJ||J[43]!==yJ)AZ=()=>{},jZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=AZ,J[45]=jZ;else AZ=J[44],jZ=J[45];R.default.useEffect(AZ,jZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let j of mJ.results)if(j.searchableText){let x=Sz(j.searchableText,YJ,_z);if(x)pJ.set(j.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let j;if(J[60]!==z)j=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=j;else j=J[61];let x=mJ.results.map(pz).filter(j);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[j,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${j}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
2
- ${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${j}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
3
- ${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${j}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
4
- ${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,j)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=dY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
5
- ${K0}`:LJ+EJ,dimDescription:!0,value:j.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let j=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return j?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await nY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("tengu_session_search_toggled",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==A)fZ=async()=>{A.trim();return},J[94]=K,J[95]=O,J[96]=A,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==A)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==A||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=A,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==A)_Z=[A,V],J[102]=V,J[103]=A,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let A0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let j0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("tengu_agentic_search_cancelled",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==A||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)A.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("tengu_session_tag_filter_changed",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,j=Y.toLowerCase();if(j==="a"&&z.ctrl&&W)W(),$("tengu_session_all_projects_toggled",{enabled:!C});else if(j==="b"&&z.ctrl){let x=!c;BJ(x),$("tengu_session_branch_filter_toggled",{enabled:x})}else if(j==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("tengu_session_worktree_filter_toggled",{enabled:x})}else if(j==="/"&&q)h("search"),$("tengu_session_search_toggled",{enabled:!0});else if(j==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("tengu_session_rename_started",{});else if(j==="v"&&z.ctrl&&I)k(I),h("preview"),$("tengu_session_preview_opened",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("tengu_session_search_toggled",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=A,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==A||J[179]!==m0)sJ=U($Y,{query:A,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=A,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(hY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==A)YZ=Boolean(A.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=A,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==A0||J[211]!==R0||J[212]!==j0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(uY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:j0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("tengu_session_group_expanded",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let j=new Set(q);return j.delete(z),j})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:A0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=A0,J[211]=R0,J[212]=j0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(gY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,jY),...Z.messages.slice(-jY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var lY,R,Iz=2,bz=4,fz=2000,jY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Cz();TY();jz();mz();Az();Rz();U0();KY();Nz();I0();Lz();Mz();mY();V0();Ez();XY();MY();VY();Fz();UY();yz();OY();Tz();CY();wz();AY();bJ();lY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${r0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return l0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${r0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
6
- ${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
7
- `)}
8
-
9
- Search query: "${Z}"
10
-
11
- Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return l0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
12
-
13
- You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
14
-
15
- Each session may include:
16
- - Title (display name or custom title)
17
- - Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
18
- - Branch (git branch name, shown as [branch: name])
19
- - Summary (AI-generated summary)
20
- - First message (beginning of the conversation)
21
- - Transcript (excerpt of conversation content)
22
-
23
- IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
24
-
25
- For each session, consider (in order of priority):
26
- 1. Exact tag matches (highest priority - user explicitly categorized this session)
27
- 2. Partial tag matches or tag-related terms
28
- 3. Title matches (custom titles or first message content)
29
- 4. Branch name matches
30
- 5. Summary and transcript content matches
31
- 6. Semantic similarity and related concepts
32
-
33
- CRITICAL: Be VERY inclusive in your matching. Include sessions that:
34
- - Contain the query term anywhere in any field
35
- - Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
36
- - Discuss topics that could be related to the query
37
- - Have transcripts that mention the concept even in passing
38
-
39
- When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
40
-
41
- Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
42
-
43
- Respond with ONLY the JSON object, no markdown formatting:
44
- {"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();mY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
45
- export{YU as Ae,az as Be,QU as Ce,zK as De,WU as Ee,UK as Fe};