@claudiolabs/claudin 0.5.12 → 0.5.13

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 (844) hide show
  1. package/dist/chunks/AgentTool-0.5.13-6dz2gvzt.mjs +1 -0
  2. package/dist/chunks/App-0.5.13-h8h37pzk.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +3 -0
  10. package/dist/chunks/Doctor-0.5.13-335trspw.mjs +1 -0
  11. package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +1 -0
  18. package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +1 -0
  28. package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +1 -0
  29. package/dist/chunks/agents-0.5.13-manb7tcq.mjs +3 -0
  30. package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +110 -0
  31. package/dist/chunks/api-0.5.13-q2anppzf.mjs +1 -0
  32. package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +1 -0
  33. package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +1 -0
  34. package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +1 -0
  35. package/dist/chunks/auth-0.5.13-jn53extx.mjs +1 -0
  36. package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +1 -0
  39. package/dist/chunks/branch-0.5.13-qmyekghp.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +1 -0
  41. package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +1 -0
  42. package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +3 -0
  43. package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +4 -0
  46. package/dist/chunks/caches-0.5.13-75dr0q42.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +1 -0
  48. package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +1 -0
  49. package/dist/chunks/clear-0.5.13-k8q15yen.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +1 -0
  51. package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +2 -0
  52. package/dist/chunks/cli-0.5.13-055v20cs.mjs +2 -0
  53. package/dist/chunks/cli-0.5.13-061m60f2.mjs +2 -0
  54. package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +3 -0
  55. package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +2 -0
  56. package/dist/chunks/cli-0.5.13-15kmd08p.mjs +2 -0
  57. package/dist/chunks/cli-0.5.13-16khcs2m.mjs +3 -0
  58. package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +2 -0
  59. package/dist/chunks/cli-0.5.13-1qt91z42.mjs +2 -0
  60. package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +45 -0
  61. package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +2 -0
  62. package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +2 -0
  63. package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +5276 -0
  64. package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +2 -0
  65. package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +2 -0
  66. package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +2 -0
  67. package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +2 -0
  68. package/dist/chunks/cli-0.5.13-426cpksk.mjs +4 -0
  69. package/dist/chunks/cli-0.5.13-4at49cv9.mjs +2 -0
  70. package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +2 -0
  71. package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +2 -0
  72. package/dist/chunks/cli-0.5.13-50cwkg00.mjs +2 -0
  73. package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +2 -0
  74. package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +6 -0
  75. package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +2 -0
  76. package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +2 -0
  77. package/dist/chunks/cli-0.5.13-62qasgve.mjs +2 -0
  78. package/dist/chunks/cli-0.5.13-667jxcab.mjs +18 -0
  79. package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +2 -0
  80. package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +2 -0
  81. package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +2 -0
  82. package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +2 -0
  83. package/dist/chunks/cli-0.5.13-6yehabyw.mjs +2 -0
  84. package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +4 -0
  85. package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +2 -0
  86. package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +2 -0
  87. package/dist/chunks/cli-0.5.13-77mqds6w.mjs +2 -0
  88. package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +2 -0
  89. package/dist/chunks/cli-0.5.13-7fzk2679.mjs +2 -0
  90. package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +2 -0
  91. package/dist/chunks/cli-0.5.13-7je48sax.mjs +15 -0
  92. package/dist/chunks/cli-0.5.13-898bb5x7.mjs +2 -0
  93. package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +2 -0
  94. package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +2 -0
  95. package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +2 -0
  96. package/dist/chunks/cli-0.5.13-9r26f53q.mjs +8 -0
  97. package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +2 -0
  98. package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +3 -0
  99. package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +6 -0
  100. package/dist/chunks/cli-0.5.13-acgafbm9.mjs +2 -0
  101. package/dist/chunks/cli-0.5.13-adphma77.mjs +2 -0
  102. package/dist/chunks/cli-0.5.13-atfk3e81.mjs +2 -0
  103. package/dist/chunks/cli-0.5.13-athb0q85.mjs +2 -0
  104. package/dist/chunks/cli-0.5.13-b2593ngv.mjs +4 -0
  105. package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +2 -0
  106. package/dist/chunks/cli-0.5.13-b6aefc28.mjs +1 -0
  107. package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +2 -0
  108. package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +2 -0
  109. package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +3 -0
  110. package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +2 -0
  111. package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +4 -0
  112. package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +2 -0
  113. package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +4 -0
  114. package/dist/chunks/cli-0.5.13-cnzars85.mjs +5 -0
  115. package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +2 -0
  116. package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +39 -0
  117. package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +2 -0
  118. package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +24 -0
  119. package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +2 -0
  120. package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +2 -0
  121. package/dist/chunks/cli-0.5.13-d6bw823x.mjs +2 -0
  122. package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +15 -0
  123. package/dist/chunks/cli-0.5.13-ddpterr2.mjs +2 -0
  124. package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +24 -0
  125. package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +2 -0
  126. package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +2 -0
  127. package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +34 -0
  128. package/dist/chunks/cli-0.5.13-epjykaww.mjs +17 -0
  129. package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +10 -0
  130. package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +2 -0
  131. package/dist/chunks/cli-0.5.13-f1e673b2.mjs +2 -0
  132. package/dist/chunks/cli-0.5.13-f6tattxs.mjs +4 -0
  133. package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +3 -0
  134. package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +2 -0
  135. package/dist/chunks/cli-0.5.13-fgckevv1.mjs +2 -0
  136. package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +2 -0
  137. package/dist/chunks/cli-0.5.13-frerk7s6.mjs +2 -0
  138. package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +2 -0
  139. package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +2 -0
  140. package/dist/chunks/cli-0.5.13-gb0363rs.mjs +2 -0
  141. package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +15 -0
  142. package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +12 -0
  143. package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +12 -0
  144. package/dist/chunks/cli-0.5.13-gw433gw1.mjs +9 -0
  145. package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +17 -0
  146. package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +2 -0
  147. package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +25 -0
  148. package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +4 -0
  149. package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +2 -0
  150. package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +2 -0
  151. package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +2 -0
  152. package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +2 -0
  153. package/dist/chunks/cli-0.5.13-j97wk70q.mjs +2 -0
  154. package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +3 -0
  155. package/dist/chunks/cli-0.5.13-jqns71dy.mjs +2 -0
  156. package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +2 -0
  157. package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +2 -0
  158. package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +2 -0
  159. package/dist/chunks/cli-0.5.13-khtf0a93.mjs +9 -0
  160. package/dist/chunks/cli-0.5.13-kry2fk76.mjs +2 -0
  161. package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +2 -0
  162. package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +2 -0
  163. package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +6 -0
  164. package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +2 -0
  165. package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +2 -0
  166. package/dist/chunks/cli-0.5.13-mwrgy706.mjs +2 -0
  167. package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +2 -0
  168. package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +2 -0
  169. package/dist/chunks/cli-0.5.13-nc37z94b.mjs +2 -0
  170. package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +2 -0
  171. package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +133 -0
  172. package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +16 -0
  173. package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +2 -0
  174. package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +193 -0
  175. package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +2 -0
  176. package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +2 -0
  177. package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +2 -0
  178. package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +2 -0
  179. package/dist/chunks/cli-0.5.13-qfxggvke.mjs +18 -0
  180. package/dist/chunks/cli-0.5.13-qkjyj942.mjs +2 -0
  181. package/dist/chunks/cli-0.5.13-qrn019we.mjs +2 -0
  182. package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +2 -0
  183. package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +3 -0
  184. package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +2 -0
  185. package/dist/chunks/cli-0.5.13-r442vgxt.mjs +2 -0
  186. package/dist/chunks/cli-0.5.13-rd990xfy.mjs +2 -0
  187. package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +2 -0
  188. package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +2 -0
  189. package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +2 -0
  190. package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +58 -0
  191. package/dist/chunks/cli-0.5.13-rrqv533k.mjs +2 -0
  192. package/dist/chunks/cli-0.5.13-s005ka5h.mjs +2 -0
  193. package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +2 -0
  194. package/dist/chunks/cli-0.5.13-s58vke8w.mjs +2 -0
  195. package/dist/chunks/cli-0.5.13-s719y89z.mjs +2 -0
  196. package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +4 -0
  197. package/dist/chunks/cli-0.5.13-sww17qtj.mjs +42 -0
  198. package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +3 -0
  199. package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +2 -0
  200. package/dist/chunks/cli-0.5.13-teedketa.mjs +2 -0
  201. package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +3 -0
  202. package/dist/chunks/cli-0.5.13-thgp6asf.mjs +21 -0
  203. package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +2 -0
  204. package/dist/chunks/cli-0.5.13-tr9s34te.mjs +59 -0
  205. package/dist/chunks/cli-0.5.13-tvfs784w.mjs +2 -0
  206. package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +2 -0
  207. package/dist/chunks/cli-0.5.13-ve50w85d.mjs +2 -0
  208. package/dist/chunks/cli-0.5.13-vee98ybt.mjs +2 -0
  209. package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +3 -0
  210. package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +2 -0
  211. package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +2 -0
  212. package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +3 -0
  213. package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +2 -0
  214. package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +5 -0
  215. package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +2 -0
  216. package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +2 -0
  217. package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +2 -0
  218. package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +2 -0
  219. package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +2 -0
  220. package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +2 -0
  221. package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +2 -0
  222. package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +5 -0
  223. package/dist/chunks/cli-0.5.13-xvg417w8.mjs +7 -0
  224. package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +2 -0
  225. package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +2 -0
  226. package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +2 -0
  227. package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +2 -0
  228. package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +2 -0
  229. package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +67 -0
  230. package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +20 -0
  231. package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +2 -0
  232. package/dist/chunks/cli-0.5.13-yskavx3s.mjs +12 -0
  233. package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +2 -0
  234. package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +4 -0
  235. package/dist/chunks/cli-0.5.13-z0f17269.mjs +2 -0
  236. package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +2 -0
  237. package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +3 -0
  238. package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +4 -0
  239. package/dist/chunks/cli-0.5.13-zms1a287.mjs +50 -0
  240. package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +133 -0
  241. package/dist/chunks/client-0.5.13-wkzv25nn.mjs +1 -0
  242. package/dist/chunks/color-0.5.13-yd46yzt2.mjs +1 -0
  243. package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +3 -0
  244. package/dist/chunks/config-0.5.13-mwq6ejza.mjs +1 -0
  245. package/dist/chunks/config-0.5.13-t1bvsttc.mjs +1 -0
  246. package/dist/chunks/context-0.5.13-zffaf66t.mjs +1 -0
  247. package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +1 -0
  248. package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +1 -0
  249. package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +9 -0
  250. package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +1 -0
  251. package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +1 -0
  252. package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +1 -0
  253. package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +1 -0
  254. package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +1177 -0
  255. package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +1 -0
  257. package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +1 -0
  258. package/dist/chunks/diff-0.5.13-515a1hs6.mjs +1 -0
  259. package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +1 -0
  260. package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +1 -0
  261. package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +1 -0
  262. package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +10 -0
  263. package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +1 -0
  264. package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +1 -0
  265. package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +1 -0
  266. package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +1 -0
  267. package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +1 -0
  268. package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +1 -0
  269. package/dist/chunks/export-0.5.13-d2yz4k76.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +1 -0
  272. package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +1 -0
  273. package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +1 -0
  275. package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +1 -0
  277. package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +1 -0
  278. package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +1 -0
  279. package/dist/chunks/headless-0.5.13-05rns8kj.mjs +2 -0
  280. package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +6 -0
  281. package/dist/chunks/help-0.5.13-8pfrra9q.mjs +1 -0
  282. package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +3 -0
  283. package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +1 -0
  284. package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +79 -0
  285. package/dist/chunks/ide-0.5.13-r40xcg67.mjs +3 -0
  286. package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +1 -0
  287. package/dist/chunks/index-0.5.13-06mj6naw.mjs +1 -0
  288. package/dist/chunks/index-0.5.13-12hemzfc.mjs +1 -0
  289. package/dist/chunks/index-0.5.13-4559xg8z.mjs +17 -0
  290. package/dist/chunks/index-0.5.13-5gmbch0k.mjs +9 -0
  291. package/dist/chunks/index-0.5.13-5qstd1y9.mjs +1 -0
  292. package/dist/chunks/index-0.5.13-5zhr2qys.mjs +1 -0
  293. package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +1 -0
  294. package/dist/chunks/index-0.5.13-9zz559q7.mjs +1 -0
  295. package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +1 -0
  296. package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +2 -0
  297. package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +1 -0
  298. package/dist/chunks/index-0.5.13-ej6cywk8.mjs +30 -0
  299. package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +1 -0
  300. package/dist/chunks/index-0.5.13-fertw6vb.mjs +1 -0
  301. package/dist/chunks/index-0.5.13-jwf634zt.mjs +1 -0
  302. package/dist/chunks/index-0.5.13-nny2e7sx.mjs +5 -0
  303. package/dist/chunks/index-0.5.13-np7s1rcw.mjs +1 -0
  304. package/dist/chunks/index-0.5.13-qkvpat3t.mjs +9 -0
  305. package/dist/chunks/index-0.5.13-qq60ettc.mjs +1 -0
  306. package/dist/chunks/index-0.5.13-rty9gaxf.mjs +2 -0
  307. package/dist/chunks/index-0.5.13-yqdcztr9.mjs +1 -0
  308. package/dist/chunks/index-0.5.13-zhze2z09.mjs +1 -0
  309. package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +1 -0
  310. package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +1 -0
  311. package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +1 -0
  312. package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +870 -0
  313. package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +1 -0
  314. package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +149 -0
  315. package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +1 -0
  316. package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +1 -0
  317. package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +1 -0
  318. package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +2 -0
  319. package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +2 -0
  320. package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +1 -0
  321. package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +1 -0
  322. package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +1 -0
  323. package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +1 -0
  324. package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +1 -0
  325. package/dist/chunks/main-0.5.13-n87gjwzq.mjs +1 -0
  326. package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +1 -0
  327. package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +4 -0
  328. package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +17 -0
  329. package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +1 -0
  330. package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +1 -0
  331. package/dist/chunks/memory-0.5.13-exfd915f.mjs +3 -0
  332. package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +2 -0
  333. package/dist/chunks/model-0.5.13-02rcx381.mjs +1 -0
  334. package/dist/chunks/model-0.5.13-nn224m13.mjs +2 -0
  335. package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +12 -0
  336. package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +1 -0
  337. package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +14 -0
  338. package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +1 -0
  339. package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +1 -0
  340. package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +1 -0
  341. package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +1 -0
  342. package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +1 -0
  343. package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +3 -0
  344. package/dist/chunks/plan-0.5.13-837bdxnq.mjs +1 -0
  345. package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +1 -0
  346. package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +29 -0
  347. package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +1 -0
  348. package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +9 -0
  349. package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +2 -0
  350. package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +57 -0
  351. package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +1 -0
  352. package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +1 -0
  353. package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +1 -0
  354. package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +9 -0
  355. package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +1 -0
  356. package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +1 -0
  357. package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +1 -0
  358. package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +13 -0
  359. package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +2 -0
  360. package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +1 -0
  361. package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +6 -0
  362. package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +1 -0
  363. package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +34 -0
  364. package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +1 -0
  365. package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +5 -0
  366. package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +2 -0
  367. package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +1 -0
  368. package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +1 -0
  369. package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +1 -0
  370. package/dist/chunks/rename-0.5.13-c388bb34.mjs +1 -0
  371. package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +1 -0
  372. package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +1 -0
  373. package/dist/chunks/resume-0.5.13-zwms595g.mjs +2 -0
  374. package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +1 -0
  375. package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +1 -0
  376. package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +1 -0
  377. package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +1 -0
  378. package/dist/chunks/session-0.5.13-ef059m1s.mjs +2 -0
  379. package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +1 -0
  380. package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +1 -0
  381. package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +1 -0
  382. package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +1 -0
  383. package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +5 -0
  384. package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +1 -0
  385. package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +1 -0
  386. package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +1 -0
  387. package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +1 -0
  388. package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +1 -0
  389. package/dist/chunks/stats-0.5.13-6083a1n1.mjs +6 -0
  390. package/dist/chunks/status-0.5.13-043z2z1k.mjs +1 -0
  391. package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +1 -0
  392. package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +1 -0
  393. package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +1 -0
  394. package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +1 -0
  395. package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +1 -0
  396. package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +1 -0
  397. package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +1 -0
  398. package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +1 -0
  399. package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +1 -0
  400. package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +1 -0
  401. package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +1 -0
  402. package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +1 -0
  403. package/dist/chunks/tools-0.5.13-jd6408d0.mjs +1 -0
  404. package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +1 -0
  405. package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +69 -0
  406. package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +4 -0
  407. package/dist/chunks/update-0.5.13-r5daertf.mjs +86 -0
  408. package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +1 -0
  409. package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +14 -0
  410. package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +1 -0
  411. package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +1 -0
  412. package/dist/chunks/util-0.5.13-f4gpmja3.mjs +1 -0
  413. package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +1 -0
  414. package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +1 -0
  415. package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +1 -0
  416. package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +132 -0
  417. package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +1 -0
  418. package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +1 -0
  419. package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +7 -0
  420. package/dist/claudin-vscode.vsix +0 -0
  421. package/dist/cli.mjs +2 -2
  422. package/package.json +1 -1
  423. package/dist/chunks/AgentTool-0.5.12-smdrq819.mjs +0 -1
  424. package/dist/chunks/App-0.5.12-r5wjd7s8.mjs +0 -1
  425. package/dist/chunks/ApproveApiKey-0.5.12-ne9g2ryd.mjs +0 -1
  426. package/dist/chunks/AssistantSessionChooser-0.5.12-xsd6p7kt.mjs +0 -1
  427. package/dist/chunks/AutoModeOptInDialog-0.5.12-ssrkfkmd.mjs +0 -1
  428. package/dist/chunks/BypassPermissionsModeDialog-0.5.12-q6qcrrj2.mjs +0 -1
  429. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.12-gfcmcgxz.mjs +0 -1
  430. package/dist/chunks/ConsoleOAuthFlow-0.5.12-e1f2czf7.mjs +0 -1
  431. package/dist/chunks/DiffDialog-0.5.12-vnm4mz9c.mjs +0 -3
  432. package/dist/chunks/Doctor-0.5.12-rtbvt5mw.mjs +0 -1
  433. package/dist/chunks/Grove-0.5.12-qv18jfe4.mjs +0 -1
  434. package/dist/chunks/ITermBackend-0.5.12-tp63kb2y.mjs +0 -1
  435. package/dist/chunks/InvalidConfigDialog-0.5.12-q3wspzrk.mjs +0 -1
  436. package/dist/chunks/InvalidSettingsDialog-0.5.12-ksv56j0p.mjs +0 -1
  437. package/dist/chunks/MigrationDialog-0.5.12-ekgs1jgb.mjs +0 -1
  438. package/dist/chunks/Onboarding-0.5.12-sjtsxgzz.mjs +0 -1
  439. package/dist/chunks/ProviderManager-0.5.12-sjdymhw7.mjs +0 -1
  440. package/dist/chunks/REPL-0.5.12-8h9bmdjx.mjs +0 -1
  441. package/dist/chunks/ResumeConversation-0.5.12-wpm4mfaa.mjs +0 -1
  442. package/dist/chunks/SnapshotUpdateDialog-0.5.12-n8kyqhdr.mjs +0 -1
  443. package/dist/chunks/TeleportProgress-0.5.12-30xn93y9.mjs +0 -1
  444. package/dist/chunks/TeleportRepoMismatchDialog-0.5.12-e3fg3amd.mjs +0 -1
  445. package/dist/chunks/TeleportResumeWrapper-0.5.12-hk2rzdh9.mjs +0 -1
  446. package/dist/chunks/TmuxBackend-0.5.12-jevh3zhx.mjs +0 -9
  447. package/dist/chunks/ToolSearchTool-0.5.12-9ggdsbtq.mjs +0 -1
  448. package/dist/chunks/TrustDialog-0.5.12-h0w01e8v.mjs +0 -1
  449. package/dist/chunks/activeProvider-0.5.12-gs3tp52z.mjs +0 -1
  450. package/dist/chunks/add-dir-0.5.12-20s2bbpb.mjs +0 -1
  451. package/dist/chunks/agents-0.5.12-3hsbstfa.mjs +0 -3
  452. package/dist/chunks/agents-0.5.12-s6qbjsne.mjs +0 -110
  453. package/dist/chunks/api-0.5.12-0wrh71sa.mjs +0 -1
  454. package/dist/chunks/asciicast-0.5.12-rjjtzjz5.mjs +0 -1
  455. package/dist/chunks/assistant-0.5.12-wv5tm7qb.mjs +0 -1
  456. package/dist/chunks/auth-0.5.12-1jvg770t.mjs +0 -1
  457. package/dist/chunks/auth-0.5.12-s2b8vrty.mjs +0 -1
  458. package/dist/chunks/autoMode-0.5.12-ka6ppwmf.mjs +0 -48
  459. package/dist/chunks/autoUpdater-0.5.12-gdprekp5.mjs +0 -1
  460. package/dist/chunks/backgroundHousekeeping-0.5.12-1yfjbpvk.mjs +0 -1
  461. package/dist/chunks/branch-0.5.12-j64r58dd.mjs +0 -4
  462. package/dist/chunks/bridgePointer-0.5.12-x983by3j.mjs +0 -1
  463. package/dist/chunks/btw-0.5.12-kgz89wa7.mjs +0 -1
  464. package/dist/chunks/buddy-0.5.12-r9nysssz.mjs +0 -3
  465. package/dist/chunks/cacache-0.5.12-4170vfc6.mjs +0 -1
  466. package/dist/chunks/cache-probe-0.5.12-5nr9y8e3.mjs +0 -21
  467. package/dist/chunks/cacheStats-0.5.12-bgxk3p2h.mjs +0 -4
  468. package/dist/chunks/caches-0.5.12-95zf6qzv.mjs +0 -1
  469. package/dist/chunks/claudeDesktop-0.5.12-23kdtzwn.mjs +0 -1
  470. package/dist/chunks/claudemd-0.5.12-nyakrtyn.mjs +0 -1
  471. package/dist/chunks/clear-0.5.12-tngfq6r4.mjs +0 -1
  472. package/dist/chunks/clearTerminal-0.5.12-g53rj1ba.mjs +0 -1
  473. package/dist/chunks/cli-0.5.12-02t9z38y.mjs +0 -2
  474. package/dist/chunks/cli-0.5.12-02yr8j71.mjs +0 -3
  475. package/dist/chunks/cli-0.5.12-057c2cp2.mjs +0 -5
  476. package/dist/chunks/cli-0.5.12-07kx3k7b.mjs +0 -2
  477. package/dist/chunks/cli-0.5.12-097tmfjr.mjs +0 -2
  478. package/dist/chunks/cli-0.5.12-0qasc0ef.mjs +0 -2
  479. package/dist/chunks/cli-0.5.12-11b979hs.mjs +0 -2
  480. package/dist/chunks/cli-0.5.12-15jvdvek.mjs +0 -3
  481. package/dist/chunks/cli-0.5.12-1fs9t3y1.mjs +0 -2
  482. package/dist/chunks/cli-0.5.12-1vyz0tt9.mjs +0 -2
  483. package/dist/chunks/cli-0.5.12-27ngaysm.mjs +0 -2
  484. package/dist/chunks/cli-0.5.12-2fqmc1dw.mjs +0 -17
  485. package/dist/chunks/cli-0.5.12-2jxq8gnm.mjs +0 -2
  486. package/dist/chunks/cli-0.5.12-2thv7xjf.mjs +0 -133
  487. package/dist/chunks/cli-0.5.12-2tqpkne4.mjs +0 -3
  488. package/dist/chunks/cli-0.5.12-2wf629mh.mjs +0 -2
  489. package/dist/chunks/cli-0.5.12-2zcpj03a.mjs +0 -2
  490. package/dist/chunks/cli-0.5.12-30h4rkq5.mjs +0 -4
  491. package/dist/chunks/cli-0.5.12-34cd39ve.mjs +0 -2
  492. package/dist/chunks/cli-0.5.12-36swspqa.mjs +0 -2
  493. package/dist/chunks/cli-0.5.12-3t06hwwh.mjs +0 -2
  494. package/dist/chunks/cli-0.5.12-3v7zr435.mjs +0 -2
  495. package/dist/chunks/cli-0.5.12-3vz2jvfs.mjs +0 -2
  496. package/dist/chunks/cli-0.5.12-3zwt5bt4.mjs +0 -2
  497. package/dist/chunks/cli-0.5.12-41eae9ef.mjs +0 -2
  498. package/dist/chunks/cli-0.5.12-47dbnsz1.mjs +0 -2
  499. package/dist/chunks/cli-0.5.12-495d826j.mjs +0 -18
  500. package/dist/chunks/cli-0.5.12-4dn79vqp.mjs +0 -2
  501. package/dist/chunks/cli-0.5.12-4dxe3951.mjs +0 -2
  502. package/dist/chunks/cli-0.5.12-4h4yvgep.mjs +0 -4
  503. package/dist/chunks/cli-0.5.12-5d3qcvf5.mjs +0 -2
  504. package/dist/chunks/cli-0.5.12-5qad6x1n.mjs +0 -2
  505. package/dist/chunks/cli-0.5.12-60w1a0bs.mjs +0 -2
  506. package/dist/chunks/cli-0.5.12-62bfegwf.mjs +0 -3
  507. package/dist/chunks/cli-0.5.12-63mc4ryd.mjs +0 -2
  508. package/dist/chunks/cli-0.5.12-6h1z8rhs.mjs +0 -2
  509. package/dist/chunks/cli-0.5.12-7bxdfxh2.mjs +0 -7
  510. package/dist/chunks/cli-0.5.12-7c345wdv.mjs +0 -15
  511. package/dist/chunks/cli-0.5.12-7cn41yy7.mjs +0 -6
  512. package/dist/chunks/cli-0.5.12-7dj55dt9.mjs +0 -2
  513. package/dist/chunks/cli-0.5.12-7j2hryxc.mjs +0 -3
  514. package/dist/chunks/cli-0.5.12-7p67dbr2.mjs +0 -2
  515. package/dist/chunks/cli-0.5.12-7repzgzv.mjs +0 -2
  516. package/dist/chunks/cli-0.5.12-7vxpqr5a.mjs +0 -67
  517. package/dist/chunks/cli-0.5.12-7zb3ptxb.mjs +0 -2
  518. package/dist/chunks/cli-0.5.12-8j9p82ea.mjs +0 -2
  519. package/dist/chunks/cli-0.5.12-8v5w8znc.mjs +0 -9
  520. package/dist/chunks/cli-0.5.12-8vg9yqcp.mjs +0 -3
  521. package/dist/chunks/cli-0.5.12-8wzyrrzj.mjs +0 -10
  522. package/dist/chunks/cli-0.5.12-96ne669g.mjs +0 -25
  523. package/dist/chunks/cli-0.5.12-9mq24qzr.mjs +0 -2
  524. package/dist/chunks/cli-0.5.12-9q9g02p5.mjs +0 -2
  525. package/dist/chunks/cli-0.5.12-9qdgpa04.mjs +0 -2
  526. package/dist/chunks/cli-0.5.12-9zz4wk90.mjs +0 -2
  527. package/dist/chunks/cli-0.5.12-afky60yh.mjs +0 -2
  528. package/dist/chunks/cli-0.5.12-ajgk4ksj.mjs +0 -2
  529. package/dist/chunks/cli-0.5.12-am3j4jcx.mjs +0 -12
  530. package/dist/chunks/cli-0.5.12-aqgqkjt4.mjs +0 -2
  531. package/dist/chunks/cli-0.5.12-asbn3d19.mjs +0 -2
  532. package/dist/chunks/cli-0.5.12-b2d3jjn3.mjs +0 -2
  533. package/dist/chunks/cli-0.5.12-b73xqvce.mjs +0 -2
  534. package/dist/chunks/cli-0.5.12-brdpkyjd.mjs +0 -4
  535. package/dist/chunks/cli-0.5.12-bw549ry1.mjs +0 -2
  536. package/dist/chunks/cli-0.5.12-bx2t76qp.mjs +0 -3
  537. package/dist/chunks/cli-0.5.12-bxsvvg0q.mjs +0 -2
  538. package/dist/chunks/cli-0.5.12-bzab36pn.mjs +0 -15
  539. package/dist/chunks/cli-0.5.12-c2yq69h9.mjs +0 -17
  540. package/dist/chunks/cli-0.5.12-c40vvkn4.mjs +0 -2
  541. package/dist/chunks/cli-0.5.12-c6whkxmz.mjs +0 -2
  542. package/dist/chunks/cli-0.5.12-c8f4daey.mjs +0 -2
  543. package/dist/chunks/cli-0.5.12-caz6gx12.mjs +0 -2
  544. package/dist/chunks/cli-0.5.12-cbevkwg4.mjs +0 -3
  545. package/dist/chunks/cli-0.5.12-cqv7z22w.mjs +0 -2
  546. package/dist/chunks/cli-0.5.12-ctqkj6ve.mjs +0 -6
  547. package/dist/chunks/cli-0.5.12-cw1qs4bg.mjs +0 -24
  548. package/dist/chunks/cli-0.5.12-cwbm4b6n.mjs +0 -2
  549. package/dist/chunks/cli-0.5.12-d158qgn4.mjs +0 -2
  550. package/dist/chunks/cli-0.5.12-dda4jky0.mjs +0 -2
  551. package/dist/chunks/cli-0.5.12-dpm51wzp.mjs +0 -2
  552. package/dist/chunks/cli-0.5.12-eb1c0sqs.mjs +0 -2
  553. package/dist/chunks/cli-0.5.12-ecgx5n54.mjs +0 -2
  554. package/dist/chunks/cli-0.5.12-f141d2qa.mjs +0 -2
  555. package/dist/chunks/cli-0.5.12-f15xspgt.mjs +0 -18
  556. package/dist/chunks/cli-0.5.12-f5pfjvdk.mjs +0 -2
  557. package/dist/chunks/cli-0.5.12-f8850v2j.mjs +0 -42
  558. package/dist/chunks/cli-0.5.12-f99c5512.mjs +0 -24
  559. package/dist/chunks/cli-0.5.12-fqp5s15p.mjs +0 -59
  560. package/dist/chunks/cli-0.5.12-g4ffbdep.mjs +0 -2
  561. package/dist/chunks/cli-0.5.12-g4wb8mj2.mjs +0 -193
  562. package/dist/chunks/cli-0.5.12-gfm1s8a2.mjs +0 -4
  563. package/dist/chunks/cli-0.5.12-ghtxkxqx.mjs +0 -2
  564. package/dist/chunks/cli-0.5.12-gt83ysr0.mjs +0 -9
  565. package/dist/chunks/cli-0.5.12-gwg1e43k.mjs +0 -34
  566. package/dist/chunks/cli-0.5.12-had5m07e.mjs +0 -2
  567. package/dist/chunks/cli-0.5.12-hp0508v9.mjs +0 -2
  568. package/dist/chunks/cli-0.5.12-hvtcdcev.mjs +0 -2
  569. package/dist/chunks/cli-0.5.12-j3j0qej1.mjs +0 -2
  570. package/dist/chunks/cli-0.5.12-j75ba781.mjs +0 -2
  571. package/dist/chunks/cli-0.5.12-jp1r2jw2.mjs +0 -1
  572. package/dist/chunks/cli-0.5.12-jy79msaa.mjs +0 -2
  573. package/dist/chunks/cli-0.5.12-k1crwtdc.mjs +0 -2
  574. package/dist/chunks/cli-0.5.12-k976aej3.mjs +0 -2
  575. package/dist/chunks/cli-0.5.12-kez9r81a.mjs +0 -2
  576. package/dist/chunks/cli-0.5.12-khvy67r3.mjs +0 -2
  577. package/dist/chunks/cli-0.5.12-kkfzbxw6.mjs +0 -2
  578. package/dist/chunks/cli-0.5.12-kr31tdde.mjs +0 -2
  579. package/dist/chunks/cli-0.5.12-ktv3envc.mjs +0 -2
  580. package/dist/chunks/cli-0.5.12-m22yxpb9.mjs +0 -2
  581. package/dist/chunks/cli-0.5.12-m2gh4ewc.mjs +0 -2
  582. package/dist/chunks/cli-0.5.12-mgke70yz.mjs +0 -39
  583. package/dist/chunks/cli-0.5.12-n1ax8ehf.mjs +0 -2
  584. package/dist/chunks/cli-0.5.12-n1wc50h4.mjs +0 -2
  585. package/dist/chunks/cli-0.5.12-n4bfatc5.mjs +0 -2
  586. package/dist/chunks/cli-0.5.12-nb3q4dfs.mjs +0 -4
  587. package/dist/chunks/cli-0.5.12-nbcjwzzn.mjs +0 -2
  588. package/dist/chunks/cli-0.5.12-ne0f51vh.mjs +0 -2
  589. package/dist/chunks/cli-0.5.12-nf7cvq82.mjs +0 -2
  590. package/dist/chunks/cli-0.5.12-nj5yya0e.mjs +0 -2
  591. package/dist/chunks/cli-0.5.12-nytegfxk.mjs +0 -4
  592. package/dist/chunks/cli-0.5.12-p4mf644w.mjs +0 -2
  593. package/dist/chunks/cli-0.5.12-p5ps8gf0.mjs +0 -6
  594. package/dist/chunks/cli-0.5.12-p7shsask.mjs +0 -2
  595. package/dist/chunks/cli-0.5.12-pdqnfqg3.mjs +0 -2
  596. package/dist/chunks/cli-0.5.12-pp1549k7.mjs +0 -2
  597. package/dist/chunks/cli-0.5.12-pp1f55mm.mjs +0 -2
  598. package/dist/chunks/cli-0.5.12-pq058s0e.mjs +0 -2
  599. package/dist/chunks/cli-0.5.12-pwee4pmy.mjs +0 -2
  600. package/dist/chunks/cli-0.5.12-pycnjaeg.mjs +0 -16
  601. package/dist/chunks/cli-0.5.12-pzvv2jfe.mjs +0 -2
  602. package/dist/chunks/cli-0.5.12-qafa6js8.mjs +0 -2
  603. package/dist/chunks/cli-0.5.12-qdhvs7zg.mjs +0 -5
  604. package/dist/chunks/cli-0.5.12-qew4mzgp.mjs +0 -2
  605. package/dist/chunks/cli-0.5.12-qffnerrz.mjs +0 -2
  606. package/dist/chunks/cli-0.5.12-qt5dmgd4.mjs +0 -58
  607. package/dist/chunks/cli-0.5.12-qvbpbpwc.mjs +0 -2
  608. package/dist/chunks/cli-0.5.12-r1nnkaek.mjs +0 -3
  609. package/dist/chunks/cli-0.5.12-r1p7bcf8.mjs +0 -2
  610. package/dist/chunks/cli-0.5.12-r6bpk4tm.mjs +0 -50
  611. package/dist/chunks/cli-0.5.12-rb8we522.mjs +0 -2
  612. package/dist/chunks/cli-0.5.12-rc1p9wk6.mjs +0 -3
  613. package/dist/chunks/cli-0.5.12-rt0k97yj.mjs +0 -12
  614. package/dist/chunks/cli-0.5.12-rw2tcb8a.mjs +0 -21
  615. package/dist/chunks/cli-0.5.12-s0h788we.mjs +0 -2
  616. package/dist/chunks/cli-0.5.12-sb5ec9ms.mjs +0 -2
  617. package/dist/chunks/cli-0.5.12-sd5469b2.mjs +0 -3
  618. package/dist/chunks/cli-0.5.12-senanaj4.mjs +0 -15
  619. package/dist/chunks/cli-0.5.12-ssw8vd5p.mjs +0 -45
  620. package/dist/chunks/cli-0.5.12-tczcdzf3.mjs +0 -2
  621. package/dist/chunks/cli-0.5.12-tfdwzg37.mjs +0 -4
  622. package/dist/chunks/cli-0.5.12-tnk4m7zs.mjs +0 -8
  623. package/dist/chunks/cli-0.5.12-tnq5ajv3.mjs +0 -2
  624. package/dist/chunks/cli-0.5.12-va0ce6hc.mjs +0 -2
  625. package/dist/chunks/cli-0.5.12-vkgwh6kg.mjs +0 -2
  626. package/dist/chunks/cli-0.5.12-vp5smcs1.mjs +0 -4
  627. package/dist/chunks/cli-0.5.12-vrbqnjp6.mjs +0 -2
  628. package/dist/chunks/cli-0.5.12-vs30tjk8.mjs +0 -2
  629. package/dist/chunks/cli-0.5.12-vw8gp4d2.mjs +0 -2
  630. package/dist/chunks/cli-0.5.12-vwd5aqnh.mjs +0 -20
  631. package/dist/chunks/cli-0.5.12-w00qj83e.mjs +0 -133
  632. package/dist/chunks/cli-0.5.12-w02bmj5v.mjs +0 -2
  633. package/dist/chunks/cli-0.5.12-w3hy6c60.mjs +0 -2
  634. package/dist/chunks/cli-0.5.12-w7m7knvf.mjs +0 -4
  635. package/dist/chunks/cli-0.5.12-wgqarp3j.mjs +0 -2
  636. package/dist/chunks/cli-0.5.12-wgqshyyq.mjs +0 -2
  637. package/dist/chunks/cli-0.5.12-whfz3xsx.mjs +0 -2
  638. package/dist/chunks/cli-0.5.12-wqg58esg.mjs +0 -2
  639. package/dist/chunks/cli-0.5.12-wqn70xss.mjs +0 -2
  640. package/dist/chunks/cli-0.5.12-x3r8qtwj.mjs +0 -12
  641. package/dist/chunks/cli-0.5.12-x479axrj.mjs +0 -2
  642. package/dist/chunks/cli-0.5.12-xdrtyw81.mjs +0 -2
  643. package/dist/chunks/cli-0.5.12-xdx5bcxv.mjs +0 -5
  644. package/dist/chunks/cli-0.5.12-xg7a0dy4.mjs +0 -2
  645. package/dist/chunks/cli-0.5.12-xhf4y2sm.mjs +0 -2
  646. package/dist/chunks/cli-0.5.12-xsyxpmwt.mjs +0 -2
  647. package/dist/chunks/cli-0.5.12-xyf8b9hh.mjs +0 -4
  648. package/dist/chunks/cli-0.5.12-xysz4vte.mjs +0 -2
  649. package/dist/chunks/cli-0.5.12-xzeb7mtb.mjs +0 -2
  650. package/dist/chunks/cli-0.5.12-y2kq7fe8.mjs +0 -2
  651. package/dist/chunks/cli-0.5.12-y66stscm.mjs +0 -2
  652. package/dist/chunks/cli-0.5.12-yq8ds97a.mjs +0 -2
  653. package/dist/chunks/cli-0.5.12-ysy6e9rz.mjs +0 -2
  654. package/dist/chunks/cli-0.5.12-yxvbh81c.mjs +0 -2
  655. package/dist/chunks/cli-0.5.12-z100r543.mjs +0 -2
  656. package/dist/chunks/cli-0.5.12-z2yzdy27.mjs +0 -2
  657. package/dist/chunks/cli-0.5.12-z6vekb4d.mjs +0 -2
  658. package/dist/chunks/cli-0.5.12-zbcr8cbk.mjs +0 -2
  659. package/dist/chunks/cli-0.5.12-zc0qwdy2.mjs +0 -5268
  660. package/dist/chunks/cli-0.5.12-zd5fps7m.mjs +0 -3
  661. package/dist/chunks/cli-0.5.12-zf4k1ja2.mjs +0 -2
  662. package/dist/chunks/cli-0.5.12-zsjs6asf.mjs +0 -2
  663. package/dist/chunks/client-0.5.12-25cxceb6.mjs +0 -1
  664. package/dist/chunks/color-0.5.12-7ag99jgh.mjs +0 -1
  665. package/dist/chunks/compact-0.5.12-tkdapr9z.mjs +0 -3
  666. package/dist/chunks/config-0.5.12-0c9spewv.mjs +0 -1
  667. package/dist/chunks/config-0.5.12-vc9je2fj.mjs +0 -1
  668. package/dist/chunks/context-0.5.12-rznd55j3.mjs +0 -1
  669. package/dist/chunks/context-noninteractive-0.5.12-fm064xkc.mjs +0 -1
  670. package/dist/chunks/conversation-0.5.12-rstja52a.mjs +0 -1
  671. package/dist/chunks/copy-0.5.12-wfyfcx1t.mjs +0 -9
  672. package/dist/chunks/cost-0.5.12-5t5ppkhd.mjs +0 -1
  673. package/dist/chunks/createSSHSession-0.5.12-n4gfgvy0.mjs +0 -1
  674. package/dist/chunks/createSession-0.5.12-vberyedq.mjs +0 -1
  675. package/dist/chunks/debug-0.5.12-6tk66dq2.mjs +0 -1
  676. package/dist/chunks/defaultActionDeps-0.5.12-cd6kj7vb.mjs +0 -1177
  677. package/dist/chunks/desktop-0.5.12-t4zetpqs.mjs +0 -1
  678. package/dist/chunks/detectRepository-0.5.12-4rer36ef.mjs +0 -1
  679. package/dist/chunks/detection-0.5.12-kc620t5m.mjs +0 -1
  680. package/dist/chunks/diff-0.5.12-t1nwyr97.mjs +0 -1
  681. package/dist/chunks/doctor-0.5.12-6ehwnc02.mjs +0 -1
  682. package/dist/chunks/doctorDiagnostic-0.5.12-715ngvgm.mjs +0 -1
  683. package/dist/chunks/earlyInput-0.5.12-9c0k1b2s.mjs +0 -1
  684. package/dist/chunks/effort-0.5.12-tge1ba18.mjs +0 -10
  685. package/dist/chunks/envUtils-0.5.12-4210d9jh.mjs +0 -1
  686. package/dist/chunks/environmentSelection-0.5.12-fpz6s66f.mjs +0 -1
  687. package/dist/chunks/environments-0.5.12-yjkrj1h3.mjs +0 -1
  688. package/dist/chunks/errors-0.5.12-hx01gb7f.mjs +0 -1
  689. package/dist/chunks/exampleCommands-0.5.12-228rhbph.mjs +0 -1
  690. package/dist/chunks/exit-0.5.12-x0w90ajb.mjs +0 -1
  691. package/dist/chunks/export-0.5.12-cdv2fqe2.mjs +0 -2
  692. package/dist/chunks/extra-usage-0.5.12-d0ypcf8h.mjs +0 -1
  693. package/dist/chunks/extra-usage-noninteractive-0.5.12-1xmkn7xb.mjs +0 -1
  694. package/dist/chunks/fast-0.5.12-pm7p7cea.mjs +0 -1
  695. package/dist/chunks/feedback-0.5.12-k7w5ac6x.mjs +0 -14
  696. package/dist/chunks/firstPartyEventLogger-0.5.12-jbg4z87y.mjs +0 -1
  697. package/dist/chunks/git-0.5.12-rpqpwk1g.mjs +0 -1
  698. package/dist/chunks/githubModelsCredentials-0.5.12-gc6bcfrs.mjs +0 -1
  699. package/dist/chunks/grove-0.5.12-g5c6bca9.mjs +0 -1
  700. package/dist/chunks/growthbook-0.5.12-d3dr2a5b.mjs +0 -1
  701. package/dist/chunks/headless-0.5.12-4en0ynj2.mjs +0 -2
  702. package/dist/chunks/heapdump-0.5.12-bwv2jy65.mjs +0 -6
  703. package/dist/chunks/help-0.5.12-m0n3bja4.mjs +0 -1
  704. package/dist/chunks/hookChains-0.5.12-ybpwc19k.mjs +0 -3
  705. package/dist/chunks/hooks-0.5.12-gd1zgq76.mjs +0 -1
  706. package/dist/chunks/hooks-0.5.12-kmtv873b.mjs +0 -79
  707. package/dist/chunks/ide-0.5.12-kh015qjb.mjs +0 -3
  708. package/dist/chunks/image-processor-napi-0.5.12-gskzpn6n.mjs +0 -1
  709. package/dist/chunks/index-0.5.12-0qdxjc4v.mjs +0 -30
  710. package/dist/chunks/index-0.5.12-1ms14gcb.mjs +0 -1
  711. package/dist/chunks/index-0.5.12-23xwq3mj.mjs +0 -1
  712. package/dist/chunks/index-0.5.12-3k0mgkby.mjs +0 -5
  713. package/dist/chunks/index-0.5.12-3qxmsrhf.mjs +0 -1
  714. package/dist/chunks/index-0.5.12-5nwrep7m.mjs +0 -1
  715. package/dist/chunks/index-0.5.12-5zp8ghw8.mjs +0 -2
  716. package/dist/chunks/index-0.5.12-6t3ctwhj.mjs +0 -1
  717. package/dist/chunks/index-0.5.12-bb0dxhht.mjs +0 -1
  718. package/dist/chunks/index-0.5.12-cdvaqvrt.mjs +0 -1
  719. package/dist/chunks/index-0.5.12-e3g06gch.mjs +0 -2
  720. package/dist/chunks/index-0.5.12-g0waf7b4.mjs +0 -1
  721. package/dist/chunks/index-0.5.12-k2yx7rgg.mjs +0 -1
  722. package/dist/chunks/index-0.5.12-pqbbvhvf.mjs +0 -17
  723. package/dist/chunks/index-0.5.12-v34jg9ty.mjs +0 -1
  724. package/dist/chunks/index-0.5.12-vd2ps0yn.mjs +0 -1
  725. package/dist/chunks/index-0.5.12-vk2f44v8.mjs +0 -9
  726. package/dist/chunks/index-0.5.12-vqmfkmk5.mjs +0 -1
  727. package/dist/chunks/index-0.5.12-vxrpnsbd.mjs +0 -1
  728. package/dist/chunks/index-0.5.12-w00wq0mv.mjs +0 -1
  729. package/dist/chunks/index-0.5.12-wq1ac3z9.mjs +0 -1
  730. package/dist/chunks/index-0.5.12-z05jb67f.mjs +0 -9
  731. package/dist/chunks/init-0.5.12-dek8tx6c.mjs +0 -1
  732. package/dist/chunks/initReplBridge-0.5.12-tzmcc68e.mjs +0 -1
  733. package/dist/chunks/ink-0.5.12-pa331vem.mjs +0 -1
  734. package/dist/chunks/insights-0.5.12-5vdjmpbj.mjs +0 -870
  735. package/dist/chunks/install-0.5.12-vegjn29b.mjs +0 -1
  736. package/dist/chunks/install-github-app-0.5.12-x1q07njz.mjs +0 -149
  737. package/dist/chunks/install-slack-app-0.5.12-xdebh0fz.mjs +0 -1
  738. package/dist/chunks/instrumentation-0.5.12-t5wdqnhp.mjs +0 -1
  739. package/dist/chunks/interactiveHelpers-0.5.12-fs831eqt.mjs +0 -1
  740. package/dist/chunks/keybindings-0.5.12-c5ptskwf.mjs +0 -2
  741. package/dist/chunks/knowledge-0.5.12-vqnz3rhj.mjs +0 -2
  742. package/dist/chunks/latestVersionCache-0.5.12-6ea56sj8.mjs +0 -1
  743. package/dist/chunks/loadAgentsDir-0.5.12-q3cab4jf.mjs +0 -1
  744. package/dist/chunks/loadPluginHooks-0.5.12-teg232ka.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-0.5.12-zqfepr29.mjs +0 -1
  746. package/dist/chunks/log-0.5.12-hb77k1c6.mjs +0 -1
  747. package/dist/chunks/main-0.5.12-a5ye3nrk.mjs +0 -1
  748. package/dist/chunks/managedEnv-0.5.12-9m0enspy.mjs +0 -1
  749. package/dist/chunks/mcp-0.5.12-0g4by910.mjs +0 -1
  750. package/dist/chunks/mcp-0.5.12-kmsa1db8.mjs +0 -17
  751. package/dist/chunks/mcp-0.5.12-tpprk6qh.mjs +0 -4
  752. package/dist/chunks/mcpb-0.5.12-40x6rp03.mjs +0 -1
  753. package/dist/chunks/memory-0.5.12-31smeswe.mjs +0 -3
  754. package/dist/chunks/mobile-0.5.12-trtv6cx8.mjs +0 -2
  755. package/dist/chunks/model-0.5.12-dwyagyf8.mjs +0 -2
  756. package/dist/chunks/model-0.5.12-ncsht9ca.mjs +0 -1
  757. package/dist/chunks/node-0.5.12-n3y2efbq.mjs +0 -12
  758. package/dist/chunks/oauth-0.5.12-vz32m3f2.mjs +0 -1
  759. package/dist/chunks/openaiShim-0.5.12-5vwewpct.mjs +0 -14
  760. package/dist/chunks/output-style-0.5.12-j7kzxe0j.mjs +0 -1
  761. package/dist/chunks/package-D6422PQU-0.5.12-pcrvwm89.mjs +0 -1
  762. package/dist/chunks/parseConnectUrl-0.5.12-k9xxsfd1.mjs +0 -1
  763. package/dist/chunks/parser-0.5.12-dztg8ppe.mjs +0 -1
  764. package/dist/chunks/passes-0.5.12-5z8tw34t.mjs +0 -1
  765. package/dist/chunks/permissions-0.5.12-rww5yb80.mjs +0 -3
  766. package/dist/chunks/plan-0.5.12-69ntjye7.mjs +0 -1
  767. package/dist/chunks/plist-0.5.12-3ab3ry0j.mjs +0 -1
  768. package/dist/chunks/plugin-0.5.12-k1c1ggj8.mjs +0 -29
  769. package/dist/chunks/pluginStartupCheck-0.5.12-4nzjv877.mjs +0 -1
  770. package/dist/chunks/plugins-0.5.12-gjxv18dm.mjs +0 -9
  771. package/dist/chunks/preActionHook-0.5.12-z0z4xe2p.mjs +0 -2
  772. package/dist/chunks/print-0.5.12-9y9vvttb.mjs +0 -57
  773. package/dist/chunks/privacy-settings-0.5.12-w3hpvv24.mjs +0 -1
  774. package/dist/chunks/process-0.5.12-esywnb4j.mjs +0 -1
  775. package/dist/chunks/processBashCommand-0.5.12-24r2r258.mjs +0 -1
  776. package/dist/chunks/processSlashCommand-0.5.12-pt79vh2t.mjs +0 -9
  777. package/dist/chunks/prompt-0.5.12-hc11zacw.mjs +0 -1
  778. package/dist/chunks/prompt-0.5.12-txnbkzk6.mjs +0 -1
  779. package/dist/chunks/prompts-0.5.12-r29ww1bz.mjs +0 -1
  780. package/dist/chunks/protocolHandler-0.5.12-sg2pjg74.mjs +0 -13
  781. package/dist/chunks/provider-0.5.12-kdvewq5e.mjs +0 -2
  782. package/dist/chunks/providerProfiles-0.5.12-z3pct3be.mjs +0 -1
  783. package/dist/chunks/providerValidation-0.5.12-637xxs9q.mjs +0 -6
  784. package/dist/chunks/rate-limit-options-0.5.12-e7czq7ff.mjs +0 -1
  785. package/dist/chunks/registerSubcommands-0.5.12-5jq9w7c4.mjs +0 -34
  786. package/dist/chunks/registry-0.5.12-dcz74t85.mjs +0 -1
  787. package/dist/chunks/release-notes-0.5.12-acaycqgr.mjs +0 -5
  788. package/dist/chunks/reload-plugins-0.5.12-07m62xd2.mjs +0 -2
  789. package/dist/chunks/remote-env-0.5.12-8ffhqnh9.mjs +0 -1
  790. package/dist/chunks/remoteBridgeCore-0.5.12-qes76y4j.mjs +0 -1
  791. package/dist/chunks/remoteSession-0.5.12-wqh0sh5p.mjs +0 -1
  792. package/dist/chunks/rename-0.5.12-pefg421m.mjs +0 -1
  793. package/dist/chunks/replBridgeHandle-0.5.12-mrx144v7.mjs +0 -1
  794. package/dist/chunks/replLauncher-0.5.12-xyajjb89.mjs +0 -1
  795. package/dist/chunks/resume-0.5.12-yz9ysprz.mjs +0 -2
  796. package/dist/chunks/rewind-0.5.12-7n5x67g8.mjs +0 -1
  797. package/dist/chunks/rootOptions-0.5.12-mn1xh15m.mjs +0 -1
  798. package/dist/chunks/sandbox-adapter-0.5.12-g1r9b0p8.mjs +0 -1
  799. package/dist/chunks/sandbox-toggle-0.5.12-w1rx9eck.mjs +0 -1
  800. package/dist/chunks/session-0.5.12-t3cd84ep.mjs +0 -2
  801. package/dist/chunks/sessionDiscovery-0.5.12-905y94g7.mjs +0 -1
  802. package/dist/chunks/sessionFileAccessHooks-0.5.12-9f5qb84p.mjs +0 -1
  803. package/dist/chunks/sessionStorage-0.5.12-b88eps8r.mjs +0 -1
  804. package/dist/chunks/settings-0.5.12-ascz750g.mjs +0 -1
  805. package/dist/chunks/setup-0.5.12-k4bb1v5t.mjs +0 -5
  806. package/dist/chunks/sinks-0.5.12-wra2rxct.mjs +0 -1
  807. package/dist/chunks/skills-0.5.12-tzetjssj.mjs +0 -1
  808. package/dist/chunks/startupProfiler-0.5.12-4mesbnz6.mjs +0 -1
  809. package/dist/chunks/startupUpdateCheck-0.5.12-j9pvbhww.mjs +0 -1
  810. package/dist/chunks/state-0.5.12-fmbxq91j.mjs +0 -1
  811. package/dist/chunks/stats-0.5.12-6dftg0mb.mjs +0 -6
  812. package/dist/chunks/status-0.5.12-prhem3mn.mjs +0 -1
  813. package/dist/chunks/stickers-0.5.12-t4kmsdfn.mjs +0 -1
  814. package/dist/chunks/subprocessEnv-0.5.12-bbjh5kcq.mjs +0 -1
  815. package/dist/chunks/tasks-0.5.12-5zkvc91z.mjs +0 -1
  816. package/dist/chunks/teamHelpers-0.5.12-4993s40p.mjs +0 -1
  817. package/dist/chunks/teammateModeSnapshot-0.5.12-003j14d2.mjs +0 -1
  818. package/dist/chunks/teleport-0.5.12-qc9n0e99.mjs +0 -1
  819. package/dist/chunks/terminalSetup-0.5.12-e0q1ppyp.mjs +0 -1
  820. package/dist/chunks/theme-0.5.12-j3m1w193.mjs +0 -1
  821. package/dist/chunks/thinkback-0.5.12-q0g2nxf8.mjs +0 -1
  822. package/dist/chunks/thinkback-play-0.5.12-q3xptm32.mjs +0 -1
  823. package/dist/chunks/toolPool-0.5.12-99zz2z7m.mjs +0 -1
  824. package/dist/chunks/toolSearch-0.5.12-msyjmzw4.mjs +0 -1
  825. package/dist/chunks/tools-0.5.12-rfpyvm5z.mjs +0 -1
  826. package/dist/chunks/trustedDevice-0.5.12-x17za0q6.mjs +0 -1
  827. package/dist/chunks/turndown.cjs-0.5.12-pe30j67r.mjs +0 -69
  828. package/dist/chunks/ultrareviewCommand-0.5.12-3ns0qpr7.mjs +0 -4
  829. package/dist/chunks/update-0.5.12-4hgf7mr4.mjs +0 -86
  830. package/dist/chunks/upgrade-0.5.12-7gs6mxyh.mjs +0 -1
  831. package/dist/chunks/upstreamproxy-0.5.12-1v1wp95x.mjs +0 -14
  832. package/dist/chunks/url-handler-napi-0.5.12-2w5y94ch.mjs +0 -1
  833. package/dist/chunks/usage-0.5.12-e4h5kk04.mjs +0 -1
  834. package/dist/chunks/util-0.5.12-2p0n6pkd.mjs +0 -1
  835. package/dist/chunks/utils-0.5.12-6hw9zr7a.mjs +0 -1
  836. package/dist/chunks/vim-0.5.12-f95wabwk.mjs +0 -1
  837. package/dist/chunks/watcher-0.5.12-0qy95ccm.mjs +0 -1
  838. package/dist/chunks/wiki-0.5.12-1h2k88h1.mjs +0 -132
  839. package/dist/chunks/worktree-0.5.12-0svdfkzh.mjs +0 -1
  840. package/dist/chunks/worktreeModeEnabled-0.5.12-qxdddvwv.mjs +0 -1
  841. package/dist/chunks/wrapper-0.5.12-553s8689.mjs +0 -7
  842. /package/dist/chunks/{cli-0.5.12-9ghkvy4m.mjs → cli-0.5.13-07hv5jdz.mjs} +0 -0
  843. /package/dist/chunks/{cli-0.5.12-r4t180q2.mjs → cli-0.5.13-c4q1pthh.mjs} +0 -0
  844. /package/dist/chunks/{cli-0.5.12-paj8nhxk.mjs → cli-0.5.13-epw9z05w.mjs} +0 -0
@@ -1,3 +0,0 @@
1
- import{Ef as FY,Ff as AQ}from"./cli-0.5.12-xsyxpmwt.mjs";import{Lf as LQ}from"./cli-0.5.12-b73xqvce.mjs";import{Mf as Lq,Of as Pq,Pf as GX}from"./cli-0.5.12-pq058s0e.mjs";import{Tf as IJ,Uf as kQ,Vf as zY,Wf as MQ}from"./cli-0.5.12-pp1f55mm.mjs";import{Xf as OY,Yf as PQ}from"./cli-0.5.12-qafa6js8.mjs";import{$f as RY,Zf as NY,_f as UQ,ag as BQ}from"./cli-0.5.12-3v7zr435.mjs";import{bg as Eq,cg as l0,eg as HY,fg as DY}from"./cli-0.5.12-wqg58esg.mjs";import{qh as Nq,rh as QX}from"./cli-0.5.12-bxsvvg0q.mjs";import{$F as KY,AD as YQ,AH as IZ,BE as QZ,BH as EZ,CE as XZ,DE as GZ,EE as VZ,FE as WZ,GE as KZ,Gm as OQ,HE as HZ,IE as DZ,JD as T0,JE as OZ,KD as eq,KE as zZ,LD as PZ,LE as xq,LJ as R0,MJ as TJ,Qt as K0,Rt as XY,Sn as QY,St as GY,Tn as zQ,Tt as qZ,Ws as Fq,Xs as n0,Zs as qX,aG as NQ,cQ as tq,cm as J0,dm as DQ,em as C,fm as f0,gm as c,hm as XJ,jQ as MY,km as S0,lm as FJ,ox as Rq,px as XX,rP as LZ,rm as UJ,tH as BJ,tQ as AY,uH as RQ,uQ as UY,vm as qY,yH as YJ,yQ as fQ,zD as TZ,zH as BZ}from"./cli-0.5.12-zc0qwdy2.mjs";import{KR as VY,LR as WY,PR as FQ}from"./cli-0.5.12-pdqnfqg3.mjs";import{uU as Uq,vU as KX}from"./cli-0.5.12-qew4mzgp.mjs";import{BV as zJ,EV as Iq,FV as HX,gV as V0,hV as v0,uV as l,vV as YY,wV as w0,yV as C0,zV as Bq}from"./cli-0.5.12-f5pfjvdk.mjs";import{XW as ZY,YX as D0,_V as U0,hW as e0,iW as eZ,rX as U,tX as V,uW as JY,yW as HQ}from"./cli-0.5.12-fqp5s15p.mjs";import{AZ as n,BZ as Q,CZ as D,DZ as g}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as s}from"./cli-0.5.12-w3hy6c60.mjs";import{MZ as rY,NZ as iQ}from"./cli-0.5.12-f141d2qa.mjs";import{H1 as KQ,Q3 as vJ,W0 as h0,X0 as WQ,d4 as YX,g2 as zq,k2 as sZ,n0 as Oq,n1 as m0,o1 as MJ,q1 as lZ,r1 as AJ,s0 as ZX,s2 as qJ,t1 as oZ,w2 as tZ,y1 as aZ}from"./cli-0.5.12-pycnjaeg.mjs";import{A4 as QQ,z4 as O0}from"./cli-0.5.12-ctqkj6ve.mjs";import{A6 as OJ,Bca as N0,H$ as PJ,J$ as x,Jaa as w,Jca as QJ,M$ as kJ,Maa as T,Qba as fY,Saa as uZ,T9 as mZ,Tba as CY,Uba as CQ,W$ as VQ,Waa as dZ,Wba as SY,X9 as vZ,Xaa as iZ,Y9 as cZ,Z9 as pZ,_9 as xZ,aca as TY,cca as wY,d_ as GQ,eba as rZ,fca as hY,jca as SQ,mca as B0,pca as nZ,z6 as H0}from"./cli-0.5.12-g4wb8mj2.mjs";import{Yca as mJ,Zca as g0,dda as VJ,eda as SJ}from"./cli-0.5.12-vp5smcs1.mjs";import{aea as jZ,mea as XQ}from"./cli-0.5.12-hvtcdcev.mjs";import{pea as t0,qea as YZ}from"./cli-0.5.12-asbn3d19.mjs";import{dfa as f,ffa as qQ}from"./cli-0.5.12-2jxq8gnm.mjs";import{Kfa as Dq,Pfa as JX,fga as p0,iga as EY}from"./cli-0.5.12-p5ps8gf0.mjs";import{Mga as gZ,Oga as IY,Tga as LJ,Wga as $Z}from"./cli-0.5.12-60w1a0bs.mjs";import{Aia as JZ,Jja as Hq,Ria as Qq,Sia as Xq,Tia as Gq,lja as Vq,mja as Wq,rma as ZZ,yja as Kq,yka as RJ,zka as _Z}from"./cli-0.5.12-c8f4daey.mjs";import{Yna as $,aoa as p}from"./cli-0.5.12-xzeb7mtb.mjs";function uq(){let Z=JZ(),q=LZ(Z)??Q(V,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"0.5.12"},{label:"Session name",value:q},{label:"Session ID",value:Z},{label:"cwd",value:t0()},...DZ(),...OZ()]}function dq({mainLoopModel:Z,mcp:J,theme:q,context:X}){return[{label:"Model",value:zZ(Z)},...XZ(J.clients,X.options.ideInstallationStatus,q),...GZ(J.clients,q),...QZ(),...WZ()]}async function FZ(){return[...await KZ(),...await HZ(),...await VZ()]}function iq(Z){let J=JJ.c(8),{value:q}=Z;if(Array.isArray(q)){let X;if(J[0]!==q){let O;if(J[2]!==q.length)O=(F,L)=>D(V,{children:[F,L<q.length-1?",":""]},L),J[2]=q.length,J[3]=O;else O=J[3];X=q.map(O),J[0]=q,J[1]=X}else X=J[1];let W;if(J[4]!==X)W=Q(U,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:X}),J[4]=X,J[5]=W;else W=J[5];return W}if(typeof q==="string"){let X;if(J[6]!==q)X=Q(V,{children:q}),J[6]=q,J[7]=X;else X=J[7];return X}return q}function NZ(Z){let J=JJ.c(20),{context:q,diagnosticsPromise:X}=Z,W=K0(oq),O=K0(lq),[F]=e0(),L;if(J[0]===Symbol.for("react.memo_cache_sentinel"))L=uq(),J[0]=L;else L=J[0];let k;if(J[1]!==q||J[2]!==W||J[3]!==O||J[4]!==F)k=dq({mainLoopModel:W,mcp:O,theme:F,context:q}),J[1]=q,J[2]=W,J[3]=O,J[4]=F,J[5]=k;else k=J[5];let P;if(J[6]!==k)P=[L,k],J[6]=k,J[7]=P;else P=J[7];let K=P,N=C0()?1:void 0,z;if(J[8]!==K)z=K.map(rq),J[8]=K,J[9]=z;else z=J[9];let H;if(J[10]!==X)H=Q(ZJ.Suspense,{fallback:null,children:Q(aq,{promise:X})}),J[10]=X,J[11]=H;else H=J[11];let R;if(J[12]!==N||J[13]!==z||J[14]!==H)R=D(U,{flexDirection:"column",gap:1,flexGrow:N,children:[z,H]}),J[12]=N,J[13]=z,J[14]=H,J[15]=R;else R=J[15];let A;if(J[16]===Symbol.for("react.memo_cache_sentinel"))A=Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),J[16]=A;else A=J[16];let B;if(J[17]!==N||J[18]!==R)B=D(U,{flexDirection:"column",flexGrow:N,children:[R,A]}),J[17]=N,J[18]=R,J[19]=B;else B=J[19];return B}function rq(Z,J){return Z.length>0&&Q(U,{flexDirection:"column",children:Z.map(nq)},J)}function nq(Z,J){let{label:q,value:X}=Z;return D(U,{flexDirection:"row",gap:1,flexShrink:0,children:[q!==void 0&&D(V,{bold:!0,children:[q,":"]}),Q(iq,{value:X})]},J)}function lq(Z){return Z.mcp}function oq(Z){return Z.mainLoopModel}function aq(Z){let J=JJ.c(5),{promise:q}=Z,X=ZJ.use(q);if(X.length===0)return null;let W;if(J[0]===Symbol.for("react.memo_cache_sentinel"))W=Q(V,{bold:!0,children:"System Diagnostics"}),J[0]=W;else W=J[0];let O;if(J[1]!==X)O=X.map(sq),J[1]=X,J[2]=O;else O=J[2];let F;if(J[3]!==O)F=D(U,{flexDirection:"column",paddingBottom:1,children:[W,O]}),J[3]=O,J[4]=F;else F=J[4];return F}function sq(Z,J){return D(U,{flexDirection:"row",gap:1,paddingX:1,children:[Q(V,{color:"error",children:H0.warning}),typeof Z==="string"?Q(V,{wrap:"wrap",children:Z}):Z]},J)}var JJ,ZJ;var RZ=p(()=>{OJ();ZZ();zJ();D0();qZ();YZ();tq();xq();f0();g();JJ=$(U0(),1),ZJ=$(s(),1)});function MZ(Z){let J=kZ.c(17),{currentVersion:q,onChoice:X}=Z,W;if(J[0]!==X)W=function(B){X(B)},J[0]=X,J[1]=W;else W=J[1];let O=W,F;if(J[2]!==X)F=function(){X("cancel")},J[2]=X,J[3]=F;else F=J[3];let L=F,k;if(J[4]!==q)k=D(V,{children:["The stable channel may have an older version than what you're currently running (",q,")."]}),J[4]=q,J[5]=k;else k=J[5];let P;if(J[6]===Symbol.for("react.memo_cache_sentinel"))P=Q(V,{dimColor:!0,children:"How would you like to handle this?"}),J[6]=P;else P=J[6];let K;if(J[7]===Symbol.for("react.memo_cache_sentinel"))K={label:"Allow possible downgrade to stable version",value:"downgrade"},J[7]=K;else K=J[7];let N=`Stay on current version (${q}) until stable catches up`,z;if(J[8]!==N)z=[K,{label:N,value:"stay"}],J[8]=N,J[9]=z;else z=J[9];let H;if(J[10]!==O||J[11]!==z)H=Q(T0,{options:z,onChange:O}),J[10]=O,J[11]=z,J[12]=H;else H=J[12];let R;if(J[13]!==L||J[14]!==k||J[15]!==H)R=D(S0,{title:"Switch to Stable Channel",onCancel:L,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[k,P,H]}),J[13]=L,J[14]=k,J[15]=H,J[16]=R;else R=J[16];return R}var kZ;var AZ=p(()=>{D0();PZ();FJ();g();kZ=$(U0(),1)});function UZ(Z){return Object.entries(Z).map(([J,q])=>({label:q?.name??JQ,value:J,description:q?.description??ZQ}))}function CZ(Z){let J=fZ.c(16),{initialStyle:q,onComplete:X,onCancel:W,isStandaloneCommand:O}=Z,F;if(J[0]===Symbol.for("react.memo_cache_sentinel"))F=[],J[0]=F;else F=J[0];let[L,k]=j0.useState(F),[P,K]=j0.useState(!0),N,z;if(J[1]===Symbol.for("react.memo_cache_sentinel"))N=()=>{IZ(t0()).then((d)=>{let t=UZ(d);k(t),K(!1)}).catch(()=>{let d=UZ(BZ);k(d),K(!1)})},z=[],J[1]=N,J[2]=z;else N=J[1],z=J[2];j0.useEffect(N,z);let H;if(J[3]!==X)H=(d)=>{X(d)},J[3]=X,J[4]=H;else H=J[4];let R=H,A=!O,B=!O,I;if(J[5]===Symbol.for("react.memo_cache_sentinel"))I=Q(U,{marginTop:1,children:Q(V,{dimColor:!0,children:"This changes how Claude Code communicates with you"})}),J[5]=I;else I=J[5];let h;if(J[6]!==R||J[7]!==q||J[8]!==P||J[9]!==L)h=D(U,{flexDirection:"column",gap:1,children:[I,P?Q(V,{dimColor:!0,children:"Loading output styles…"}):Q(T0,{options:L,onChange:R,visibleOptionCount:10,defaultValue:q})]}),J[6]=R,J[7]=q,J[8]=P,J[9]=L,J[10]=h;else h=J[10];let S;if(J[11]!==W||J[12]!==A||J[13]!==B||J[14]!==h)S=Q(S0,{title:"Preferred output style",onCancel:W,hideInputGuide:A,hideBorder:B,children:h}),J[11]=W,J[12]=A,J[13]=B,J[14]=h,J[15]=S;else S=J[15];return S}var fZ,j0,JQ="Default",ZQ="Claude completes coding tasks efficiently and provides concise responses";var SZ=p(()=>{EZ();D0();YZ();eq();FJ();g();fZ=$(U0(),1),j0=$(s(),1)});function hZ(Z){let J=wZ.c(13),{initialLanguage:q,onComplete:X,onCancel:W}=Z,[O,F]=NJ.useState(q),[L,k]=NJ.useState((q??"").length),P;if(J[0]===Symbol.for("react.memo_cache_sentinel"))P={context:"Settings"},J[0]=P;else P=J[0];l("confirm:no",W,P);let K;if(J[1]!==O||J[2]!==X)K=function(){let S=O?.trim();X(S||void 0)},J[1]=O,J[2]=X,J[3]=K;else K=J[3];let N=K,z;if(J[4]===Symbol.for("react.memo_cache_sentinel"))z=Q(V,{children:"Enter your preferred response and voice language:"}),J[4]=z;else z=J[4];let H;if(J[5]===Symbol.for("react.memo_cache_sentinel"))H=Q(V,{children:H0.pointer}),J[5]=H;else H=J[5];let R=O??"",A;if(J[6]!==L||J[7]!==N||J[8]!==R)A=D(U,{flexDirection:"row",gap:1,children:[H,Q(TZ,{value:R,onChange:F,onSubmit:N,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${H0.ellipsis}`,columns:60,cursorOffset:L,onChangeCursorOffset:k})]}),J[6]=L,J[7]=N,J[8]=R,J[9]=A;else A=J[9];let B;if(J[10]===Symbol.for("react.memo_cache_sentinel"))B=Q(V,{dimColor:!0,children:"Leave empty for default (English)"}),J[10]=B;else B=J[10];let I;if(J[11]!==A)I=D(U,{flexDirection:"column",gap:1,children:[z,A,B]}),J[11]=A,J[12]=I;else I=J[12];return I}var wZ,NJ;var bZ=p(()=>{OJ();D0();w0();YQ();g();wZ=$(U0(),1),NJ=$(s(),1)});function PY({onClose:Z,context:J,setTabsHidden:q,onIsSearchModeChange:X,contentHeight:W}){let{headerFocused:O,focusHeader:F}=HY(),L=C0(),[,k]=e0(),P=eZ(),[K,N]=_.useState(T()),z=v.useRef(T()),[H,R]=_.useState(kJ()),A=v.useRef(kJ()),[B,I]=_.useState(H?.outputStyle||YJ),h=v.useRef(B),[S,d]=_.useState(H?.language),t=v.useRef(S),[j,F0]=_.useState(0),[i,Y0]=_.useState(0),[r,q0]=_.useState(!0),$0=ZY(),{rows:I0}=V0(),Cq=W??Math.min(Math.floor(I0*0.8),30),Q0=Math.max(5,Cq-10),E0=K0((Y)=>Y.mainLoopModel),Sq=K0((Y)=>Y.verbose),xJ=K0((Y)=>Y.thinkingEnabled),uJ=K0((Y)=>m0()?Y.fastMode:!1),Tq=K0((Y)=>Y.promptSuggestionEnabled),FX=!1,X0=XY(),[dJ,M0]=_.useState({}),wq=v.useRef(xJ),[iJ]=_.useState(()=>PJ("localSettings")),[rJ]=_.useState(()=>PJ("userSettings")),nJ=v.useRef(P),hq=GY(),[lJ]=_.useState(()=>{let Y=hq.getState();return{mainLoopModel:Y.mainLoopModel,mainLoopModelForSession:Y.mainLoopModelForSession,verbose:Y.verbose,thinkingEnabled:Y.thinkingEnabled,fastMode:Y.fastMode,promptSuggestionEnabled:Y.promptSuggestionEnabled,isBriefOnly:Y.isBriefOnly,replBridgeEnabled:Y.replBridgeEnabled,replBridgeOutboundOnly:Y.replBridgeOutboundOnly,settings:Y.settings}}),[KJ]=_.useState(()=>RJ()),e=v.useRef(!1),[bq,o0]=_.useState(!1),[m,y]=_.useState(null),{query:A0,setQuery:a0,cursorOffset:yq}=RY({isActive:r&&m===null&&!O,onExit:()=>q0(!1),onExitUp:F,passthroughCtrlKeys:["c","d"]}),oJ=r&&!O;v.useEffect(()=>{X?.(oJ)},[oJ,X]);let _q=qY(J.options.mcpClients),gq=!gZ(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),aJ=v.use(MY(!0)),$q=UY(aJ),W0=iZ();function sJ(Y){f("tengu_config_model_changed",{from_model:E0,to_model:Y}),X0((M)=>({...M,mainLoopModel:Y,mainLoopModelForSession:null})),M0((M)=>{let E=qJ(Y)+(zY(Y,!1,sZ())?" · Billed as extra usage":"");if("model"in M){let{model:b,...o}=M;return{...o,model:E}}return{...M,model:E}})}function jq(Y){w((G)=>({...G,verbose:Y})),N({...T(),verbose:Y}),X0((G)=>({...G,verbose:Y})),M0((G)=>{if("verbose"in G){let{verbose:M,...E}=G;return E}return{...G,verbose:Y}})}let HJ=[{id:"autoCompactEnabled",label:"Auto-compact",value:K.autoCompactEnabled,type:"boolean",onChange(Y){w((G)=>({...G,autoCompactEnabled:Y})),N({...T(),autoCompactEnabled:Y}),f("tengu_auto_compact_setting_changed",{enabled:Y})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:K.thinkingHistoryRedactionEnabled,type:"boolean",onChange(Y){w((G)=>({...G,thinkingHistoryRedactionEnabled:Y})),N({...T(),thinkingHistoryRedactionEnabled:Y}),f("claudin_thinking_history_redaction_setting_changed",{enabled:Y})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:K.narrationHistoryRedactionEnabled,type:"boolean",onChange(Y){w((G)=>({...G,narrationHistoryRedactionEnabled:Y})),N({...T(),narrationHistoryRedactionEnabled:Y}),f("claudin_narration_history_redaction_setting_changed",{enabled:Y})}},{id:"showCacheStats",label:"Cache stats display",value:K.showCacheStats,options:["off","compact","full"],type:"enum",onChange(Y){let G=Y==="off"||Y==="compact"||Y==="full"?Y:"compact";w((M)=>({...M,showCacheStats:G})),N({...T(),showCacheStats:G}),f("tengu_show_cache_stats_setting_changed",{mode:G})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:K.toolResultSummarizerEnabled,type:"boolean",onChange(Y){w((G)=>({...G,toolResultSummarizerEnabled:Y})),N({...T(),toolResultSummarizerEnabled:Y}),f("claudin_tool_result_summarizer_setting_changed",{enabled:Y})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:K.bashOutputFilterEnabled!==!1,type:"boolean",onChange(Y){w((G)=>({...G,bashOutputFilterEnabled:Y,bashOutputFilterUserEnabled:Y})),N({...T(),bashOutputFilterEnabled:Y,bashOutputFilterUserEnabled:Y}),f("claudin_bash_output_filter_setting_changed",{enabled:Y})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:K.autoBackgroundAgentsEnabled!==!1,type:"boolean",onChange(Y){w((G)=>({...G,autoBackgroundAgentsEnabled:Y})),N({...T(),autoBackgroundAgentsEnabled:Y}),f("claudin_auto_background_agents_setting_changed",{enabled:Y})}},{id:"inlineImagesMode",label:"Inline terminal images",value:K.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(Y){let G=Y==="auto"||Y==="enable"||Y==="disable"?Y:"auto";w((M)=>({...M,inlineImagesMode:G})),N({...T(),inlineImagesMode:G}),f("claudin_inline_images_setting_changed",{mode:G})}},{id:"spinnerTipsEnabled",label:"Show tips",value:H?.spinnerTipsEnabled??!0,type:"boolean",onChange(Y){x("localSettings",{spinnerTipsEnabled:Y}),R((G)=>({...G,spinnerTipsEnabled:Y})),f("tengu_tips_setting_changed",{enabled:Y})}},{id:"prefersReducedMotion",label:"Reduce motion",value:H?.prefersReducedMotion??!1,type:"boolean",onChange(Y){x("localSettings",{prefersReducedMotion:Y}),R((G)=>({...G,prefersReducedMotion:Y})),X0((G)=>({...G,settings:{...G.settings,prefersReducedMotion:Y}})),f("tengu_reduce_motion_setting_changed",{enabled:Y})}},{id:"thinkingEnabled",label:"Thinking mode",value:xJ??!0,type:"boolean",onChange(Y){X0((G)=>({...G,thinkingEnabled:Y})),x("userSettings",{alwaysThinkingEnabled:Y?void 0:!1}),f("tengu_thinking_toggled",{enabled:Y})}},...m0()&&MJ()?[{id:"fastMode",label:`Fast mode (${lZ} only)`,value:!!uJ,type:"boolean",onChange(Y){if(aZ(),x("userSettings",{fastMode:Y?!0:void 0}),Y)X0((G)=>({...G,mainLoopModel:AJ(),mainLoopModelForSession:null,fastMode:!0})),M0((G)=>({...G,model:AJ(),"Fast mode":"ON"}));else X0((G)=>({...G,fastMode:!1})),M0((G)=>({...G,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:Tq,type:"boolean",onChange(Y){X0((G)=>({...G,promptSuggestionEnabled:Y})),x("userSettings",{promptSuggestionEnabled:Y?void 0:!1})}},...gq?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:K.fileCheckpointingEnabled,type:"boolean",onChange(Y){w((G)=>({...G,fileCheckpointingEnabled:Y})),N({...T(),fileCheckpointingEnabled:Y}),f("tengu_file_history_snapshots_setting_changed",{enabled:Y})}}]:[],{id:"verbose",label:"Verbose output",value:Sq,type:"boolean",onChange:jq},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:K.terminalProgressBarEnabled,type:"boolean",onChange(Y){w((G)=>({...G,terminalProgressBarEnabled:Y})),N({...T(),terminalProgressBarEnabled:Y}),f("tengu_terminal_progress_bar_setting_changed",{enabled:Y})}},...jZ("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:K.showStatusInTerminalTab??!1,type:"boolean",onChange(Y){w((G)=>({...G,showStatusInTerminalTab:Y})),N({...T(),showStatusInTerminalTab:Y}),f("tengu_terminal_tab_status_setting_changed",{enabled:Y})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:K.showTurnDuration,type:"boolean",onChange(Y){w((G)=>({...G,showTurnDuration:Y})),N({...T(),showTurnDuration:Y}),f("tengu_show_turn_duration_setting_changed",{enabled:Y})}},{id:"defaultPermissionMode",label:"Default permission mode",value:H?.permissions?.defaultMode||"default",options:(()=>{let Y=["default","plan"],G=mZ,M=["bypassPermissions"];return[...Y,...G.filter((E)=>!Y.includes(E)&&!M.includes(E))]})(),type:"enum",onChange(Y){let G=pZ(Y),M=vZ(G)?cZ(G):G,E=x("userSettings",{permissions:{...H?.permissions,defaultMode:M}});if(E.error){N0(E.error);return}R((b)=>({...b,permissions:{...b?.permissions,defaultMode:M}})),M0((b)=>({...b,defaultPermissionMode:Y})),f("tengu_config_changed",{setting:"defaultPermissionMode",value:Y})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:H?.useAutoModeDuringPlan??!0,type:"boolean",onChange(Y){x("userSettings",{useAutoModeDuringPlan:Y}),R((G)=>({...G,useAutoModeDuringPlan:Y})),X0((G)=>{let M=BJ(G.toolPermissionContext);if(M===G.toolPermissionContext)return G;return{...G,toolPermissionContext:M}}),M0((G)=>({...G,"Use auto mode during plan":Y}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:K.respectGitignore,type:"boolean",onChange(Y){w((G)=>({...G,respectGitignore:Y})),N({...T(),respectGitignore:Y}),f("tengu_respect_gitignore_setting_changed",{enabled:Y})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy picker)",value:K.copyFullResponse,type:"boolean",onChange(Y){w((G)=>({...G,copyFullResponse:Y})),N({...T(),copyFullResponse:Y}),f("tengu_config_changed",{setting:"copyFullResponse",value:String(Y)})}},...JY()?[{id:"copyOnSelect",label:"Copy on select",value:K.copyOnSelect??!0,type:"boolean",onChange(Y){w((G)=>({...G,copyOnSelect:Y})),N({...T(),copyOnSelect:Y}),f("tengu_config_changed",{setting:"copyOnSelect",value:String(Y)})}}]:[],{id:"flickerFreeMode",label:"Flicker-free mode",value:K.flickerFreeMode??!1,type:"boolean",onChange(Y){w((G)=>({...G,flickerFreeMode:Y})),N({...T(),flickerFreeMode:Y}),f("tengu_config_changed",{setting:"flickerFreeMode",value:String(Y)})}},W0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:H?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:P,type:"managedEnum",onChange:k},{id:"notifChannel",label:"Notifications",value:K.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(Y){w((G)=>({...G,preferredNotifChannel:Y})),N({...T(),preferredNotifChannel:Y})}},{id:"outputStyle",label:"Output style",value:B,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:S??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:K.editorMode==="emacs"?"normal":K.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(Y){w((G)=>({...G,editorMode:Y})),N({...T(),editorMode:Y}),f("tengu_editor_mode_changed",{mode:Y,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR status footer",value:K.prStatusFooterEnabled??!0,type:"boolean",onChange(Y){w((G)=>{if(G.prStatusFooterEnabled===Y)return G;return{...G,prStatusFooterEnabled:Y}}),N({...T(),prStatusFooterEnabled:Y}),f("tengu_pr_status_footer_setting_changed",{enabled:Y})}},{id:"model",label:"Model",value:E0===null?"Default (recommended)":E0,type:"managedEnum",onChange:sJ},..._q?[{id:"diffTool",label:"Diff tool",value:K.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(Y){w((G)=>({...G,diffTool:Y})),N({...T(),diffTool:Y}),f("tengu_diff_tool_changed",{tool:Y,source:"config_panel"})}}]:[],...!UJ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:K.autoConnectIde??!1,type:"boolean",onChange(Y){w((G)=>({...G,autoConnectIde:Y})),N({...T(),autoConnectIde:Y}),f("tengu_auto_connect_ide_changed",{enabled:Y,source:"config_panel"})}}]:[],...UJ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:K.autoInstallIdeExtension??!0,type:"boolean",onChange(Y){w((G)=>({...G,autoInstallIdeExtension:Y})),N({...T(),autoInstallIdeExtension:Y}),f("tengu_auto_install_ide_extension_changed",{enabled:Y,source:"config_panel"})}}]:[],...QY()?(()=>{let Y=VY();return[{id:"teammateMode",label:Y?`Teammate mode [overridden: ${Y}]`:"Teammate mode",value:K.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(M){if(M!=="auto"&&M!=="tmux"&&M!=="in-process")return;WY(M),w((E)=>({...E,teammateMode:M})),N({...T(),teammateMode:M}),f("tengu_teammate_mode_changed",{mode:M})}},{id:"teammateDefaultModel",label:"Default teammate model",value:yZ(K.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...$q?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(uZ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let Y=B0(),G=Y?.transport==="anthropic"?Y.apiKey?.trim():void 0;if(!G||LJ())return[];return[{id:"apiKey",label:D(V,{children:["Use custom API key:"," ",Q(V,{bold:!0,children:h0(G)})]}),searchText:"Use custom API key",value:Boolean(K.customApiKeyResponses?.approved?.includes(h0(G))),type:"boolean",onChange(M){w((E)=>{let b={...E};if(!b.customApiKeyResponses)b.customApiKeyResponses={approved:[],rejected:[]};if(!b.customApiKeyResponses.approved)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[]};if(!b.customApiKeyResponses.rejected)b.customApiKeyResponses={...b.customApiKeyResponses,rejected:[]};{let o=h0(G);if(M)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[...(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),o],rejected:(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o)};else b.customApiKeyResponses={...b.customApiKeyResponses,approved:(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),rejected:[...(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o),o]}}return b}),N(T())}}]})()],G0=v.useMemo(()=>{if(!A0)return HJ;let Y=A0.toLowerCase();return HJ.filter((G)=>{if(G.id.toLowerCase().includes(Y))return!0;return("searchText"in G?G.searchText:G.label).toLowerCase().includes(Y)})},[HJ,A0]);v.useEffect(()=>{if(j>=G0.length){let Y=Math.max(0,G0.length-1);F0(Y),Y0(Math.max(0,Y-Q0+1));return}Y0((Y)=>{if(j<Y)return j;if(j>=Y+Q0)return j-Q0+1;return Y})},[G0.length,j,Q0]);let mq=_.useCallback((Y)=>{Y0((G)=>{if(Y<G)return Y;if(Y>=G+Q0)return Y-Q0+1;return G})},[Q0]),vq=_.useCallback(()=>{if(m!==null)return;let Y=Object.entries(dJ).map(([a,eJ])=>{return f("tengu_config_changed",{key:a,value:eJ}),`Set ${a} to ${O0.bold(eJ)}`}),G=B0(),M=G?.transport==="anthropic"?G.apiKey?.trim():void 0,E=LJ()?void 0:M,b=Boolean(E&&z.current.customApiKeyResponses?.approved?.includes(h0(E))),o=Boolean(E&&K.customApiKeyResponses?.approved?.includes(h0(E)));if(b!==o)Y.push(`${o?"Enabled":"Disabled"} custom API key`),f("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:o});if(K.theme!==z.current.theme)Y.push(`Set theme to ${O0.bold(K.theme)}`);if(K.preferredNotifChannel!==z.current.preferredNotifChannel)Y.push(`Set notifications to ${O0.bold(K.preferredNotifChannel)}`);if(B!==h.current)Y.push(`Set output style to ${O0.bold(B)}`);if(S!==t.current)Y.push(`Set response language to ${O0.bold(S??"Default (English)")}`);if(K.editorMode!==z.current.editorMode)Y.push(`Set editor mode to ${O0.bold(K.editorMode||"emacs")}`);if(K.diffTool!==z.current.diffTool)Y.push(`Set diff tool to ${O0.bold(K.diffTool)}`);if(K.autoConnectIde!==z.current.autoConnectIde)Y.push(`${K.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(K.autoInstallIdeExtension!==z.current.autoInstallIdeExtension)Y.push(`${K.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(K.autoCompactEnabled!==z.current.autoCompactEnabled)Y.push(`${K.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(K.thinkingHistoryRedactionEnabled!==z.current.thinkingHistoryRedactionEnabled)Y.push(`${K.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(K.narrationHistoryRedactionEnabled!==z.current.narrationHistoryRedactionEnabled)Y.push(`${K.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(K.toolResultSummarizerEnabled!==z.current.toolResultSummarizerEnabled)Y.push(`${K.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(K.autoBackgroundAgentsEnabled!==z.current.autoBackgroundAgentsEnabled)Y.push(`${K.autoBackgroundAgentsEnabled!==!1?"Enabled":"Disabled"} auto-background agents`);if(K.bashOutputFilterEnabled!==z.current.bashOutputFilterEnabled)Y.push(`${K.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(K.respectGitignore!==z.current.respectGitignore)Y.push(`${K.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(K.copyFullResponse!==z.current.copyFullResponse)Y.push(`${K.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(K.copyOnSelect!==z.current.copyOnSelect)Y.push(`${K.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(K.terminalProgressBarEnabled!==z.current.terminalProgressBarEnabled)Y.push(`${K.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(K.showStatusInTerminalTab!==z.current.showStatusInTerminalTab)Y.push(`${K.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(K.showTurnDuration!==z.current.showTurnDuration)Y.push(`${K.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(K.remoteControlAtStartup!==z.current.remoteControlAtStartup){let a=K.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${K.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;Y.push(a)}if(H?.autoUpdatesChannel!==A.current?.autoUpdatesChannel)Y.push(`Set auto-update channel to ${O0.bold(H?.autoUpdatesChannel??"latest")}`);if(Y.length>0)Z(Y.join(`
2
- `));else Z("Config dialog dismissed",{display:"system"})},[m,dJ,K,E0,B,S,H?.autoUpdatesChannel,m0()?H?.fastMode:void 0,Z]),tJ=_.useCallback(()=>{if(P!==nJ.current)k(nJ.current);w(()=>z.current);let Y=iJ;x("localSettings",{spinnerTipsEnabled:Y?.spinnerTipsEnabled,prefersReducedMotion:Y?.prefersReducedMotion,defaultView:Y?.defaultView,outputStyle:Y?.outputStyle});let G=rJ;x("userSettings",{alwaysThinkingEnabled:G?.alwaysThinkingEnabled,fastMode:G?.fastMode,promptSuggestionEnabled:G?.promptSuggestionEnabled,autoUpdatesChannel:G?.autoUpdatesChannel,minimumVersion:G?.minimumVersion,language:G?.language,...{useAutoModeDuringPlan:G?.useAutoModeDuringPlan},syntaxHighlightingDisabled:G?.syntaxHighlightingDisabled,permissions:G?.permissions===void 0?void 0:{...G.permissions,defaultMode:G.permissions.defaultMode}});let M=lJ;if(X0((E)=>({...E,mainLoopModel:M.mainLoopModel,mainLoopModelForSession:M.mainLoopModelForSession,verbose:M.verbose,thinkingEnabled:M.thinkingEnabled,fastMode:M.fastMode,promptSuggestionEnabled:M.promptSuggestionEnabled,isBriefOnly:M.isBriefOnly,replBridgeEnabled:M.replBridgeEnabled,replBridgeOutboundOnly:M.replBridgeOutboundOnly,settings:M.settings,toolPermissionContext:BJ(E.toolPermissionContext)})),RJ()!==KJ)_Z(KJ)},[P,k,iJ,rJ,lJ,KJ,X0]),cq=_.useCallback(()=>{if(m!==null)return;if(e.current)tJ();Z("Config dialog dismissed",{display:"system"})},[m,tJ,Z]);l("confirm:no",cq,{context:"Settings",isActive:m===null&&!r&&!O}),l("settings:close",vq,{context:"Settings",isActive:m===null&&!r&&!O});let DJ=_.useCallback(()=>{let Y=G0[j];if(!Y||!Y.onChange)return;if(Y.type==="boolean"){if(e.current=!0,Y.onChange(!Y.value),Y.id==="thinkingEnabled"){if(!Y.value===wq.current)o0(!1);else if(J.messages.some((E)=>E.type==="assistant"))o0(!0)}return}if(Y.id==="theme"||Y.id==="model"||Y.id==="teammateDefaultModel"||Y.id==="showExternalIncludesDialog"||Y.id==="outputStyle"||Y.id==="language")switch(Y.id){case"theme":y("Theme"),q(!0);return;case"model":y("Model"),q(!0);return;case"teammateDefaultModel":y("TeammateModel"),q(!0);return;case"showExternalIncludesDialog":y("ExternalIncludes"),q(!0);return;case"outputStyle":y("OutputStyle"),q(!0);return;case"language":y("Language"),q(!0);return}if(Y.id==="autoUpdatesChannel"){if(W0){y("EnableAutoUpdates"),q(!0);return}if((H?.autoUpdatesChannel??"latest")==="latest")y("ChannelDowngrade"),q(!0);else e.current=!0,x("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((M)=>({...M,autoUpdatesChannel:"latest",minimumVersion:void 0})),f("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(Y.type==="enum"){e.current=!0;let M=(Y.options.indexOf(Y.value)+1)%Y.options.length;Y.onChange(Y.options[M]);return}},[W0,G0,j,H?.autoUpdatesChannel,q]),s0=(Y)=>{o0(!1);let G=Math.max(0,Math.min(G0.length-1,j+Y));F0(G),mq(G)};YY({"select:previous":()=>{if(j===0)o0(!1),q0(!0),Y0(0);else s0(-1)},"select:next":()=>s0(1),"scroll:lineUp":()=>s0(-1),"scroll:lineDown":()=>s0(1),"select:accept":DJ,"settings:search":()=>{q0(!0),a0("")}},{context:"Settings",isActive:m===null&&!r&&!O});let pq=_.useCallback((Y)=>{if(m!==null)return;if(O)return;if(r){if(Y.key==="escape"){if(Y.preventDefault(),A0.length>0)a0("");else q0(!1);return}if(Y.key==="return"||Y.key==="down"||Y.key==="wheeldown")Y.preventDefault(),q0(!1),F0(0),Y0(0);return}if(Y.key==="left"||Y.key==="right"||Y.key==="tab"){Y.preventDefault(),DJ();return}if(Y.ctrl||Y.meta)return;if(Y.key==="j"||Y.key==="k"||Y.key==="/")return;if(Y.key.length===1&&Y.key!==" ")Y.preventDefault(),q0(!0),a0(Y.key)},[m,O,r,A0,a0,DJ]);return Q(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:pq,children:m==="Theme"?D(n,{children:[Q(OY,{onThemeSelect:(Y)=>{e.current=!0,k(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),Q(U,{children:Q(V,{dimColor:!0,italic:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"select"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):m==="Model"?D(n,{children:[Q(IJ,{initial:E0,onSelect:(Y,G)=>{e.current=!0,sJ(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},showFastModeNotice:m0()?uJ&&oZ(E0)&&MJ():!1}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="TeammateModel"?D(n,{children:[Q(IJ,{initial:K.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(Y,G)=>{if(y(null),q(!1),K.teammateDefaultModel===void 0&&Y===null)return;e.current=!0,w((M)=>M.teammateDefaultModel===Y?M:{...M,teammateDefaultModel:Y}),N({...T(),teammateDefaultModel:Y}),M0((M)=>({...M,teammateDefaultModel:yZ(Y)})),f("tengu_teammate_default_model_changed",{model:Y})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="ExternalIncludes"?D(n,{children:[Q(FY,{onDone:()=>{y(null),q(!1)},externalIncludes:AY(aJ)}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):m==="OutputStyle"?D(n,{children:[Q(CZ,{initialStyle:B,onComplete:(Y)=>{e.current=!0,I(Y??YJ),y(null),q(!1),x("localSettings",{outputStyle:Y}),f("tengu_output_style_changed",{style:Y??YJ,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="Language"?D(n,{children:[Q(hZ,{initialLanguage:S,onComplete:(Y)=>{e.current=!0,d(Y),y(null),q(!1),x("userSettings",{language:Y}),f("tengu_language_changed",{language:Y??"default",source:"config_panel"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):m==="EnableAutoUpdates"?Q(S0,{title:"Enable Auto-Updates",onCancel:()=>{y(null),q(!1)},hideBorder:!0,hideInputGuide:!0,children:W0?.type!=="config"?D(n,{children:[Q(V,{children:W0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),W0?.type==="env"&&D(V,{dimColor:!0,children:["Unset ",W0.envVar," to re-enable auto-updates."]})]}):Q(T0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(Y)=>{e.current=!0,y(null),q(!1),w((G)=>({...G,autoUpdates:!0})),N({...T(),autoUpdates:!0}),x("userSettings",{autoUpdatesChannel:Y,minimumVersion:void 0}),R((G)=>({...G,autoUpdatesChannel:Y,minimumVersion:void 0})),f("tengu_autoupdate_enabled",{channel:Y})}})}):m==="ChannelDowngrade"?Q(MZ,{currentVersion:"99.0.0",onChoice:(Y)=>{if(y(null),q(!1),Y==="cancel")return;e.current=!0;let G={autoUpdatesChannel:"stable"};if(Y==="stay")G.minimumVersion="99.0.0";x("userSettings",G),R((M)=>({...M,...G})),f("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:Y==="stay"})}}):D(U,{flexDirection:"column",gap:1,marginY:L?void 0:1,children:[Q(NY,{query:A0,isFocused:r&&!O,isTerminalFocused:$0,cursorOffset:yq,placeholder:"Search settings…"}),Q(U,{flexDirection:"column",children:G0.length===0?D(V,{dimColor:!0,italic:!0,children:['No settings match "',A0,'"']}):D(n,{children:[i>0&&D(V,{dimColor:!0,children:[H0.arrowUp," ",i," more above"]}),G0.slice(i,i+Q0).map((Y,G)=>{let E=i+G===j&&!O&&!r;return Q(v.Fragment,{children:D(U,{children:[Q(U,{width:44,children:D(V,{color:E?"suggestion":void 0,children:[E?H0.pointer:" "," ",Y.label]})}),Q(U,{children:Y.type==="boolean"?D(n,{children:[Q(V,{color:E?"suggestion":void 0,children:Y.value.toString()}),bq&&Y.id==="thinkingEnabled"&&D(V,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):Y.id==="theme"?Q(V,{color:E?"suggestion":void 0,children:IQ[Y.value.toString()]??Y.value.toString()}):Y.id==="notifChannel"?Q(V,{color:E?"suggestion":void 0,children:Q(EQ,{value:Y.value.toString()})}):Y.id==="defaultPermissionMode"?Q(V,{color:E?"suggestion":void 0,children:xZ(Y.value)}):Y.id==="autoUpdatesChannel"&&W0?D(U,{flexDirection:"column",children:[Q(V,{color:E?"suggestion":void 0,children:"disabled"}),D(V,{dimColor:!0,children:["(",dZ(W0),")"]})]}):Q(V,{color:E?"suggestion":void 0,children:Y.value.toString()})},E?"selected":"unselected")]})},Y.id)}),i+Q0<G0.length&&D(V,{dimColor:!0,children:[H0.arrowDown," ",G0.length-i-Q0," ","more below"]})]})}),O?Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"←/→ tab",action:"switch"}),Q(J0,{shortcut:"↓",action:"return"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):r?Q(V,{dimColor:!0,children:D(c,{children:[Q(V,{children:"Type to filter"}),Q(J0,{shortcut:"Enter/↓",action:"select"}),Q(J0,{shortcut:"↑",action:"tabs"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),Q(C,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),Q(C,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function yZ(Z){if(Z===void 0)return qJ(KY());if(Z===null)return"Default (leader's model)";return qJ(Z)}function EQ(Z){let J=LY.c(4),{value:q}=Z;switch(q){case"auto":return"Auto";case"iterm2":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["iTerm2 ",Q(V,{dimColor:!0,children:"(OSC 9)"})]}),J[0]=X;else X=J[0];return X}case"terminal_bell":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["Terminal Bell ",Q(V,{dimColor:!0,children:"(\\a)"})]}),J[1]=X;else X=J[1];return X}case"kitty":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["Kitty ",Q(V,{dimColor:!0,children:"(OSC 99)"})]}),J[2]=X;else X=J[2];return X}case"ghostty":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["Ghostty ",Q(V,{dimColor:!0,children:"(OSC 777)"})]}),J[3]=X;else X=J[3];return X}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return q}}var LY,v,_,IQ;var kY=p(()=>{D0();w0();OJ();rZ();WQ();nZ();rZ();QQ();GQ();RQ();QJ();qQ();LQ();PQ();qZ();kQ();tZ();MQ();AQ();AZ();FJ();PZ();SZ();bZ();fQ();DQ();f0();XJ();DY();zJ();UQ();OQ();VQ();ZZ();EZ();$Z();XQ();zQ();FQ();NQ();BQ();v0();KQ();HQ();g();LY=$(U0(),1),v=$(s(),1),_=$(s(),1);IQ={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)"}});function x0(Z){return typeof Z==="object"&&Z!==null}function Z0(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function b0(Z){return typeof Z==="number"&&Number.isFinite(Z)?Z:void 0}function EJ(Z){return typeof Z==="boolean"?Z:void 0}function fJ(Z){let J=b0(Z);if(J===void 0)return;return new Date(J*1000).toISOString()}function GJ(Z){if(!x0(Z))return;let J=b0(Z.used_percent)??b0(Z.usedPercent);if(J===void 0)return;let q=b0(Z.window_minutes)??b0(Z.windowDurationMins)??(()=>{let W=b0(Z.limit_window_seconds);return W===void 0?void 0:Math.round(W/60)})(),X=fJ(Z.resets_at)??fJ(Z.resetsAt)??fJ(Z.reset_at);return{usedPercent:J,windowMinutes:q,resetsAt:X}}function bY(Z){if(!x0(Z))return;let J=EJ(Z.has_credits)??EJ(Z.hasCredits)??!1,q=EJ(Z.unlimited)??!1,X=Z0(Z.balance);if(!J&&!q&&!X)return;return{hasCredits:J,unlimited:q,balance:X}}function c0(Z,J){if(!x0(Z))return;let q=Z0(Z.limit_name)??Z0(Z.limitName)??Z0(Z.limit_id)??Z0(Z.limitId)??J,X=GJ(Z.primary)??GJ(Z.primary_window),W=GJ(Z.secondary)??GJ(Z.secondary_window),O=bY(Z.credits);if(!X&&!W&&!O)return;return{limitName:q,primary:X,secondary:W,credits:O}}function CJ(Z,J="codex"){if(Array.isArray(Z))return Z.map((q,X)=>c0(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!x0(Z))return[];return Object.entries(Z).map(([q,X])=>c0(X,q)).filter((q)=>q!==void 0)}function TQ(Z){let J=Z0(Z.plan_type)??Z0(Z.planType),q=[],X=bY(Z.credits),W=c0(Z.rate_limit,"codex");if(W)W.credits??=X,q.push(W);else if(X)q.push({limitName:"codex",credits:X});let O=c0(Z.code_review_rate_limit,"code review");if(O)q.push(O);return q.push(...CJ(Z.additional_rate_limits??Z.additionalRateLimits,"additional")),{planType:J,snapshots:q}}function wQ(Z){if(Array.isArray(Z))return{snapshots:CJ(Z)};if(!x0(Z))return{snapshots:[]};if("rate_limit"in Z||"code_review_rate_limit"in Z||"additional_rate_limits"in Z||"credits"in Z)return TQ(Z);let J=Z.rate_limits??Z.rateLimits??Z.rate_limits_by_limit_id??Z.rateLimitsByLimitId;if(J!==void 0)return{planType:Z0(Z.plan_type)??Z0(Z.planType),snapshots:CJ(J)};let q=c0(Z,"codex");return{planType:Z0(Z.plan_type)??Z0(Z.planType),snapshots:q?[q]:[]}}function y0(Z){if(!Z)return Z;return Z[0].toUpperCase()+Z.slice(1)}function BY(Z,J){if(Z===void 0||Z<=0)return J;if(Z===10080)return"weekly";if(Z%1440===0)return`${Z/1440}d`;if(Z%60===0)return`${Z/60}h`;return`${Z}m`}function hQ(Z){let J=Z?.trim();if(!J)return;let q=Number.parseInt(J,10);if(Number.isFinite(q)&&`${q}`===J&&q>0)return`${q}`;let X=Number.parseFloat(J);if(Number.isFinite(X)&&X>0)return`${Math.round(X)}`;return}function bQ(Z){if(!Z?.hasCredits)return;if(Z.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let J=hQ(Z.balance);if(!J)return;return{kind:"text",label:"Credits",value:`${J} credits`}}function yY(Z){let J=[];for(let q of Z){let X=q.limitName.trim()||"codex",W=bQ(q.credits);if(!(q.primary!==void 0||q.secondary!==void 0||W!==void 0))continue;let F=X.toLowerCase()!=="codex",L=Number(q.primary!==void 0)+Number(q.secondary!==void 0),k=F&&L===1;if(F&&!k)J.push({kind:"text",label:`${y0(X)} limit`,value:""});if(q.primary){let P=y0(BY(q.primary.windowMinutes,"5h"));J.push({kind:"window",label:k?`${y0(X)} ${P} limit`:`${P} limit`,usedPercent:q.primary.usedPercent,resetsAt:q.primary.resetsAt})}if(q.secondary){let P=y0(BY(q.secondary.windowMinutes,"weekly"));J.push({kind:"window",label:k?`${y0(X)} ${P} limit`:`${P} limit`,usedPercent:q.secondary.usedPercent,resetsAt:q.secondary.resetsAt})}if(W)J.push(W)}return J}function _Y(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>y0(J.toLowerCase())).join(" ")}function yQ(Z=SY){return new URL("/backend-api/wham/usage",Z).toString()}async function gY(){let Z=await CY().catch(async(W)=>{return p0(`[codex] access token refresh failed before usage fetch: ${W instanceof Error?W.message:String(W)}`,{level:"warn"}),{refreshed:!1,credentials:await fY()}}),J=wY();if(!TY(J.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let q=hY({storedCredentials:Z.credentials});if(!q.apiKey){let W=IY()?"":", choose Codex OAuth in /provider",O=q.authPath?`${W} or place a Codex auth.json at ${q.authPath}`:W;throw Error(`Codex auth is required. Set CODEX_API_KEY${O}.`)}if(!q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let X=await fetch(yQ(J.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q.apiKey}`,"chatgpt-account-id":q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!X.ok){let W=await X.text().catch(()=>"unknown error");throw Error(`Codex usage error ${X.status}: ${W}`)}return wQ(await X.json())}var $Y=p(()=>{CQ();EY();$Z();SQ()});function _Q({label:Z,usedPercent:J,resetsAt:q,maxWidth:X}){let W=Math.max(0,Math.min(100,J)),O=`${Math.floor(W)}% used`,F=q?`Resets ${VJ(q,!0,!0)}`:void 0;if(X>=62)return D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:Z}),D(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:W/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:O})]}),F?Q(V,{dimColor:!0,children:F}):null]});return D(U,{flexDirection:"column",children:[D(V,{children:[Q(V,{bold:!0,children:Z}),F?D(n,{children:[Q(V,{children:" "}),D(V,{dimColor:!0,children:["· ",F]})]}):null]}),Q(R0,{ratio:W/100,width:X,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:O})]})}function gQ({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return D(V,{children:[Q(V,{bold:!0,children:Z}),D(V,{dimColor:!0,children:[" · ",J]})]})}function mY(){let[Z,J]=_0.useState(null),[q,X]=_0.useState(null),[W,O]=_0.useState(!0),{columns:F}=V0(),L=F-2,k=Math.min(L,80),P=jY.useCallback(async()=>{O(!0),X(null);try{J(await gY())}catch(z){N0(z),X(z instanceof Error?z.message:"Failed to load Codex usage")}finally{O(!1)}},[]);if(_0.useEffect(()=>{P()},[P]),l("settings:retry",()=>{P()},{context:"Settings",isActive:!!q&&!W}),q)return D(U,{flexDirection:"column",gap:1,children:[D(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return D(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading Codex usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=yY(Z.snapshots),N=_Y(Z.planType);return D(U,{flexDirection:"column",gap:1,width:"100%",children:[N?D(V,{dimColor:!0,children:["Plan: ",N]}):null,K.length===0?Q(V,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,K.map((z,H)=>z.kind==="window"?Q(_Q,{label:z.label,usedPercent:z.usedPercent,resetsAt:z.resetsAt,maxWidth:k},`${z.label}-${H}`):Q(gQ,{label:z.label,value:z.value},`${z.label}-${H}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var jY,_0;var vY=p(()=>{v0();D0();w0();$Y();SJ();QJ();f0();XJ();TJ();g();jY=$(s(),1),_0=$(s(),1)});var u0="https://api.minimax.io/v1",d0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var wJ=()=>{};function L0(Z){return typeof Z==="object"&&Z!==null}function u(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function bJ(Z){if(typeof Z==="number"&&Number.isFinite(Z))return Z;if(typeof Z==="string"&&Z.trim()){let J=Number.parseFloat(Z);if(Number.isFinite(J))return J}return}function WJ(Z){return Math.max(0,Math.min(100,Math.round(Z)))}function $Q(Z){if(typeof Z==="string"){let X=Date.parse(Z);return Number.isNaN(X)?Z:new Date(X).toISOString()}let J=bJ(Z);if(J===void 0)return;let q=J>1000000000000?J:J*1000;return new Date(q).toISOString()}function jQ(Z,J){let q=bJ(Z);if(/remains?_time/i.test(J)&&q!==void 0){let X=q>604800?q:q*1000;return new Date(Date.now()+X).toISOString()}return $Q(Z)}function i0(Z,J){for(let q of J){let X=bJ(Z[q]);if(X!==void 0)return X}return}function mQ(Z,J){for(let q of J)if(Z[q]!==void 0)return jQ(Z[q],q);return}function r0(Z,J){return J.some((q)=>Z[q]!==void 0)}function xY(Z){return Z?Z[0].toUpperCase()+Z.slice(1):Z}function vQ(Z){if(!Z)return"MiniMax";let J=Z.trim();if(!J)return"MiniMax";if(/[A-Z]/.test(J))return J;return J.split(/[_\s-]+/).filter(Boolean).map((q)=>xY(q.toLowerCase())).join(" ")}function cQ(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>xY(J.toLowerCase())).join(" ")}function uY(Z,J){let q=i0(Z,J.percentKeys),X=i0(Z,J.remainingPercentKeys),W=i0(Z,J.totalKeys),O=i0(Z,J.remainingKeys),F=i0(Z,J.usedKeys),L=W!==void 0&&F!==void 0?W-F:O,k;if(W!==void 0&&W>0&&F!==void 0)k=WJ(F/W*100);else if(W!==void 0&&W>0&&O!==void 0)k=WJ((W-O)/W*100);else if(q!==void 0)k=WJ(q);else if(X!==void 0)k=WJ(100-X);if(k===void 0)return;return{label:J.label,usedPercent:k,remaining:L,total:W,resetsAt:mQ(Z,J.resetKeys)}}function pQ(Z){let J=u(Z.label)??u(Z.name)??u(Z.window_name)??u(Z.windowName)??"Limit";return uY(Z,{label:J,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function uQ(Z){if(r0(Z,xQ))return!0;return dY.some((J)=>r0(Z,J.totalKeys)||r0(Z,J.remainingKeys)||r0(Z,J.usedKeys)||r0(Z,J.percentKeys))}function hJ(Z,J){if(!L0(Z))return;let q=dY.map((W)=>uY(Z,W)).filter((W)=>W!==void 0);if(q.length===0){let W=pQ(Z);if(W)q.push(W)}if(q.length===0)return;return{limitName:u(Z.limit_name)??u(Z.limitName)??u(Z.model_name)??u(Z.modelName)??u(Z.name)??J,windows:q}}function cY(Z,J="MiniMax"){if(Array.isArray(Z))return Z.map((q,X)=>hJ(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!L0(Z))return[];if(uQ(Z)){let q=hJ(Z,J);return q?[q]:[]}return Object.entries(Z).map(([q,X])=>hJ(X,q)).filter((q)=>q!==void 0)}function pY(Z=d0,J){return{availability:"unknown",planType:J,snapshots:[],message:Z}}function yJ(Z){if(!L0(Z))return pY();let J=cQ(u(Z.plan_type)??u(Z.planType)??u(Z.subscription_type)??u(Z.subscriptionType)??u(Z.plan_name)??u(Z.planName)),X=[Z.data,Z.result,Z.model_remains,Z.modelRemains,Z.remains,Z.usage,Z.quotas,Z.models,L0(Z.data)?Z.data.model_remains:void 0,L0(Z.data)?Z.data.modelRemains:void 0,L0(Z.data)?Z.data.models:void 0,L0(Z.data)?Z.data.quotas:void 0,L0(Z.data)?Z.data.remains:void 0].flatMap((O)=>cY(O)).filter((O,F,L)=>{let k=`${O.limitName}:${O.windows.map((P)=>P.label).join("|")}`;return L.findIndex((P)=>`${P.limitName}:${P.windows.map((K)=>K.label).join("|")}`===k)===F});if(X.length>0)return{availability:"available",planType:J,snapshots:X};let W=cY(Z);if(W.length>0)return{availability:"available",planType:J,snapshots:W};return pY(void 0,J)}function dQ(Z){if(Z.remaining===void 0||Z.total===void 0||Z.total<=0)return;return`${Z.remaining}/${Z.total} remaining`}function _J(Z){let J=[];for(let q of Z){let X=vQ(q.limitName),W=X.toLowerCase()!=="minimax",O=W&&q.windows.length===1;if(W&&!O)J.push({kind:"text",label:`${X} quota`,value:""});for(let F of q.windows)J.push({kind:"window",label:O?`${X} ${F.label}`:F.label,usedPercent:F.usedPercent,resetsAt:F.resetsAt,extraSubtext:dQ(F)})}return J}var dY,xQ;var gJ=p(()=>{wJ();dY=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],xQ=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function rQ(Z){return Z.replace(/\/+$/,"")}function nY(Z=B0()?.baseUrl??u0){let J=Z.trim();return J?rQ(J):u0}function nQ(Z){let J=Z??B0()?.baseUrl;if(!J?.trim())return{baseUrl:u0,usedDefault:!0};return{baseUrl:nY(J),usedDefault:!1}}function iY(Z){return{availability:"unknown",snapshots:[],message:Z}}function lY(Z){let{baseUrl:J,usedDefault:q}=nQ(Z);try{let X=new URL(`${J}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}catch{if(q){let X=new URL(`${u0}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}throw Error(`MiniMax usage base URL is invalid: ${J}`)}}async function $J(){let Z=B0()?.apiKey;if(!Z)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let J=lY(),q=[],X=null;for(let W of J){let O;try{O=await fetch(W,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Z}`,"Content-Type":"application/json","User-Agent":rY()},signal:AbortSignal.timeout(5000)})}catch(L){p0(`[minimax] usage request failed for ${W}: ${L instanceof Error?L.message:String(L)}`,{level:"warn"}),X=L instanceof Error?L:Error(String(L));continue}if(!O.ok){let L=await O.text().catch(()=>"");if([400,401,403,404].includes(O.status)){q.push({status:O.status,body:L});continue}X=Error(`MiniMax usage error ${O.status}: ${L||"unknown error"}`);continue}let F=yJ(await O.json());if(F.availability==="available")return F}if(q.length>0){let W=q[q.length-1];return p0(`[minimax] usage endpoint returned non-fatal status ${W.status}: ${W.body}`,{level:"warn"}),iY(d0)}if(X)throw X;return iY(d0)}var oY=p(()=>{nZ();EY();iQ();wJ();gJ()});var aY=p(()=>{gJ();oY()});function aQ(Z){let J=Math.max(1,Math.ceil(Z/60000)),q=Math.floor(J/1440),X=Math.floor(J%1440/60),W=J%60;if(q>0)return X>0?`${q}d ${X}h`:`${q}d`;if(X>0)return W>0?`${X}h ${W}m`:`${X}h`;return`${W}m`}function sQ(Z,J){if(!Z)return;let q=Date.parse(Z);if(!Number.isFinite(q))return;let X=q-J;if(X<=0)return"Resetting now";return`Resets in ${aQ(X)}`}function tQ({label:Z,usedPercent:J,resetsAt:q,extraSubtext:X,maxWidth:W,nowMs:O}){let F=Math.max(0,Math.min(100,J)),L=`${Math.floor(F)}% used`,k=sQ(q,O),P=[L,X].filter((K)=>Boolean(K));return D(U,{flexDirection:"column",children:[D(V,{children:[Q(V,{bold:!0,children:Z}),k?D(V,{dimColor:!0,children:[" · ",k]}):null]}),D(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:F/100,width:Math.min(oQ,Math.max(1,W)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),P.length>0?Q(V,{dimColor:!0,children:P.join(" · ")}):null]})]})}function eQ({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return D(V,{children:[Q(V,{bold:!0,children:Z}),D(V,{dimColor:!0,children:[" · ",J]})]})}function tY(){let[Z,J]=P0.useState(null),[q,X]=P0.useState(null),[W,O]=P0.useState(!0),[F,L]=P0.useState(()=>Date.now()),{columns:k}=V0(),P=k-2,K=Math.min(P,80),N=sY.useCallback(async()=>{O(!0),X(null);try{J(await $J())}catch(H){N0(H),X(H instanceof Error?H.message:"Failed to load MiniMax usage")}finally{O(!1)}},[]);if(P0.useEffect(()=>{N()},[N]),P0.useEffect(()=>{let H=setInterval(()=>{L(Date.now())},lQ);return()=>clearInterval(H)},[]),l("settings:retry",()=>{N()},{context:"Settings",isActive:!!q&&!W}),q)return D(U,{flexDirection:"column",gap:1,children:[D(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return D(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading MiniMax usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let z=Z.availability==="available"?_J(Z.snapshots):[];return D(U,{flexDirection:"column",gap:1,width:"100%",children:[Z.planType?D(V,{dimColor:!0,children:["Plan: ",Z.planType]}):null,Z.availability==="unknown"?Q(V,{dimColor:!0,children:Z.message}):z.length===0?Q(V,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,z.map((H,R)=>H.kind==="window"?Q(tQ,{label:H.label,usedPercent:H.usedPercent,resetsAt:H.resetsAt,extraSubtext:H.extraSubtext,maxWidth:K,nowMs:F},`${H.label}-${R}`):Q(eQ,{label:H.label,value:H.value},`${H.label}-${R}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var sY,P0,lQ=30000,oQ=18;var eY=p(()=>{v0();D0();w0();aY();QJ();f0();XJ();TJ();g();sY=$(s(),1),P0=$(s(),1)});function Jq({providerLabel:Z}){return D(U,{flexDirection:"column",gap:1,children:[D(V,{dimColor:!0,children:["Usage details are not currently available for ",Z,"."]}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var Zq=p(()=>{D0();f0();g()});function Mq(Z){let J=cJ.c(34),{title:q,limit:X,maxWidth:W,showTimeInReset:O,extraSubtext:F}=Z,L=O===void 0?!0:O,{utilization:k,resets_at:P}=X;if(k===null)return null;let K=`${Math.floor(k)}% used`,N;if(P){let z;if(J[0]!==P||J[1]!==L)z=VJ(P,!0,L),J[0]=P,J[1]=L,J[2]=z;else z=J[2];N=`Resets ${z}`}if(F)if(N)N=`${F} · ${N}`;else N=F;if(W>=62){let z;if(J[3]!==q)z=Q(V,{bold:!0,children:q}),J[3]=q,J[4]=z;else z=J[4];let H=k/100,R;if(J[5]!==H)R=Q(R0,{ratio:H,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[5]=H,J[6]=R;else R=J[6];let A;if(J[7]!==K)A=Q(V,{children:K}),J[7]=K,J[8]=A;else A=J[8];let B;if(J[9]!==R||J[10]!==A)B=D(U,{flexDirection:"row",gap:1,children:[R,A]}),J[9]=R,J[10]=A,J[11]=B;else B=J[11];let I;if(J[12]!==N)I=N&&Q(V,{dimColor:!0,children:N}),J[12]=N,J[13]=I;else I=J[13];let h;if(J[14]!==z||J[15]!==B||J[16]!==I)h=D(U,{flexDirection:"column",children:[z,B,I]}),J[14]=z,J[15]=B,J[16]=I,J[17]=h;else h=J[17];return h}else{let z;if(J[18]!==q)z=Q(V,{bold:!0,children:q}),J[18]=q,J[19]=z;else z=J[19];let H;if(J[20]!==N)H=N&&D(n,{children:[Q(V,{children:" "}),D(V,{dimColor:!0,children:["· ",N]})]}),J[20]=N,J[21]=H;else H=J[21];let R;if(J[22]!==z||J[23]!==H)R=D(V,{children:[z,H]}),J[22]=z,J[23]=H,J[24]=R;else R=J[24];let A=k/100,B;if(J[25]!==W||J[26]!==A)B=Q(R0,{ratio:A,width:W,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[25]=W,J[26]=A,J[27]=B;else B=J[27];let I;if(J[28]!==K)I=Q(V,{children:K}),J[28]=K,J[29]=I;else I=J[29];let h;if(J[30]!==R||J[31]!==B||J[32]!==I)h=D(U,{flexDirection:"column",children:[R,B,I]}),J[30]=R,J[31]=B,J[32]=I,J[33]=h;else h=J[33];return h}}function VX(){let[Z,J]=z0.useState(null),[q,X]=z0.useState(null),[W,O]=z0.useState(!0),{columns:F}=V0(),L=F-2,k=Math.min(L,80),P=kq.useCallback(async()=>{O(!0),X(null);try{let H=await Nq();J(H)}catch(H){N0(H);let R=H,A=R.response?.data,B=R.response?.status,I;if(A?.error?.type==="rate_limit_error")I=A.error.message||"Rate limited. Please try again later.";else if(A?.error?.message)I=A.error.message;else if(B)I=`HTTP ${B} — ${Dq(R.response?.data??{})}`;else I=H?.message||"Failed to load usage data";X(I)}finally{O(!1)}},[]);if(z0.useEffect(()=>{P()},[P]),l("settings:retry",()=>{P()},{context:"Settings",isActive:!!q&&!W}),q)return D(U,{flexDirection:"column",gap:1,children:[D(V,{color:"error",children:["Could not load Anthropic rate-limit data: ",q]}),Q(V,{dimColor:!0,children:"(cost/usage totals above are unaffected)"}),Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return D(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=vJ(),N=K==="max"||K==="team"||K===null,z=[{title:"Current session",limit:Z.five_hour},{title:"Current week (all models)",limit:Z.seven_day},...N?[{title:"Current week (Sonnet only)",limit:Z.seven_day_sonnet}]:[]];return D(U,{flexDirection:"column",gap:1,width:"100%",children:[z.some(({limit:H})=>H)||Q(V,{dimColor:!0,children:"/usage is only available for subscription plans."}),z.map(({title:H,limit:R})=>R&&Q(Mq,{title:H,limit:R,maxWidth:k},H)),Z.extra_usage&&Q(WX,{extraUsage:Z.extra_usage,maxWidth:k}),Lq()&&Q(Pq,{maxWidth:k}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}function Yq(Z){let{title:J,totalCost:q,apiDuration:X,wallDuration:W,linesAdded:O,linesRemoved:F,modelUsage:L,unknownCost:k}=Z,P=Object.entries(L);if(q===0&&P.length===0&&O===0&&F===0)return null;let K={};for(let[z,H]of P){let R=zq(z);if(!K[R])K[R]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let A=K[R];A.inputTokens+=H.inputTokens,A.outputTokens+=H.outputTokens,A.cacheReadInputTokens+=H.cacheReadInputTokens,A.cacheCreationInputTokens+=H.cacheCreationInputTokens,A.webSearchRequests+=H.webSearchRequests,A.costUSD+=H.costUSD}let N=Object.entries(K);return D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:J}),D(V,{children:[Q(V,{children:"Total cost: "}),Q(V,{children:n0(q)}),k&&Q(V,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),D(V,{children:["Total duration (API): ",mJ(X)]}),D(V,{children:["Total duration (wall): ",mJ(W)]}),D(V,{children:["Total code changes: ",O," ",O===1?"line":"lines"," added, ",F," ",F===1?"line":"lines"," removed"]}),N.length>0&&Q(V,{children:"Usage by model:"}),N.map(([z,H])=>{let R=`${g0(H.inputTokens)} input, ${g0(H.outputTokens)} output`;if(H.cacheReadInputTokens>0)R+=`, ${g0(H.cacheReadInputTokens)} cache read`;if(H.cacheCreationInputTokens>0)R+=`, ${g0(H.cacheCreationInputTokens)} cache write`;if(H.webSearchRequests>0)R+=`, ${g0(H.webSearchRequests)} web search`;return R+=` (${n0(H.costUSD)})`,D(V,{children:[`${z}:`.padStart(21)," ",R]},z)})]})}function qq(Z={}){let J=Z.view??"global",[,q]=z0.useReducer((F)=>F+1,0);z0.useEffect(()=>{let F=setInterval(()=>q(),1000);return()=>clearInterval(F)},[]);let X=Kq();if(J==="session"){let F=Qq(),L=Hq(),k=Vq(),P=Wq();return Q(Yq,{title:"Current session",totalCost:F,apiDuration:Xq(),wallDuration:Gq(),linesAdded:k,linesRemoved:P,modelUsage:L,unknownCost:X})}let W=Fq();if(!(W.totalCost!==0||Object.keys(W.modelUsage).length>0||W.totalLinesAdded!==0||W.totalLinesRemoved!==0))return null;return D(U,{flexDirection:"column",gap:1,children:[Q(Yq,{title:"Project total (all sessions)",totalCost:W.totalCost,apiDuration:W.totalAPIDuration,wallDuration:W.totalDuration,linesAdded:W.totalLinesAdded,linesRemoved:W.totalLinesRemoved,modelUsage:W.modelUsage,unknownCost:X}),Q(V,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function pJ(Z={}){if((Z.view??"global")==="session")return Q(U,{flexDirection:"column",gap:1,width:"100%",children:Q(qq,{view:"session"})});let q=Oq(),X;if(q==="codex")X=Q(mY,{});else if(q==="minimax")X=Q(tY,{});else if(q!=="firstParty"){let W={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[q]??"this provider";X=Q(Jq,{providerLabel:W})}else X=Q(VX,{});return D(U,{flexDirection:"column",gap:1,width:"100%",children:[Q(qq,{view:"global"}),X]})}function WX(Z){let J=cJ.c(20),{extraUsage:q,maxWidth:X}=Z,W=vJ();if(!(W==="pro"||W==="max"))return!1;if(!q.is_enabled){if(Rq.isEnabled()){let S;if(J[0]===Symbol.for("react.memo_cache_sentinel"))S=D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:jJ}),Q(V,{dimColor:!0,children:"Extra usage not enabled · /extra-usage to enable"})]}),J[0]=S;else S=J[0];return S}return null}if(q.monthly_limit===null){let S;if(J[1]===Symbol.for("react.memo_cache_sentinel"))S=D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:jJ}),Q(V,{dimColor:!0,children:"Unlimited"})]}),J[1]=S;else S=J[1];return S}if(typeof q.used_credits!=="number"||typeof q.utilization!=="number")return null;let F=q.used_credits/100,L;if(J[2]!==F)L=n0(F,2),J[2]=F,J[3]=L;else L=J[3];let k=L,P=q.monthly_limit/100,K;if(J[4]!==P)K=n0(P,2),J[4]=P,J[5]=K;else K=J[5];let N=K,z,H,R,A;if(J[6]!==q.utilization){let S=new Date,d=new Date(S.getFullYear(),S.getMonth()+1,1);z=Mq,A=jJ,H=q.utilization,R=d.toISOString(),J[6]=q.utilization,J[7]=z,J[8]=H,J[9]=R,J[10]=A}else z=J[7],H=J[8],R=J[9],A=J[10];let B;if(J[11]!==H||J[12]!==R)B={utilization:H,resets_at:R},J[11]=H,J[12]=R,J[13]=B;else B=J[13];let I=`${k} / ${N} spent`,h;if(J[14]!==z||J[15]!==X||J[16]!==A||J[17]!==B||J[18]!==I)h=Q(z,{title:A,limit:B,showTimeInReset:!1,extraSubtext:I,maxWidth:X}),J[14]=z,J[15]=X,J[16]=A,J[17]=B,J[18]=I,J[19]=h;else h=J[19];return h}var cJ,kq,z0,jJ="Extra usage";var Aq=p(()=>{XX();qX();tZ();SJ();YX();v0();D0();w0();QX();SJ();QJ();ZX();JX();f0();XJ();TJ();GX();vY();eY();Zq();g();cJ=$(U0(),1),kq=$(s(),1),z0=$(s(),1)});function GW(Z){let J=fq.c(25),{onClose:q,context:X,defaultTab:W}=Z,[O,F]=k0.useState(W),[L,k]=k0.useState(!1),[P,K]=k0.useState(!1),[N,z]=k0.useState(!1),H=C0(),{rows:R}=Bq(V0()),A=H?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[B]=k0.useState(DX);Uq();let I;if(J[0]!==q||J[1]!==L)I=()=>{if(L)return;q("Status dialog dismissed",{display:"system"})},J[0]=q,J[1]=L,J[2]=I;else I=J[2];let h=I,S=!L&&!(O==="Config"&&P)&&!(O==="Gates"&&N),d;if(J[3]!==S)d={context:"Settings",isActive:S},J[3]=S,J[4]=d;else d=J[4];l("confirm:no",h,d);let t;if(J[5]!==X||J[6]!==B)t=Q(l0,{title:"Status",children:Q(NZ,{context:X,diagnosticsPromise:B})},"status"),J[5]=X,J[6]=B,J[7]=t;else t=J[7];let j;if(J[8]!==A||J[9]!==X||J[10]!==q)j=Q(l0,{title:"Config",children:Q(k0.Suspense,{fallback:null,children:Q(PY,{context:X,onClose:q,setTabsHidden:k,onIsSearchModeChange:K,contentHeight:A})})},"config"),J[8]=A,J[9]=X,J[10]=q,J[11]=j;else j=J[11];let F0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))F0=[Q(l0,{title:"Usage",children:Q(pJ,{view:"global"})},"usage"),Q(l0,{title:"Session",children:Q(pJ,{view:"session"})},"session")],J[12]=F0;else F0=J[12];let i;if(J[13]!==A)i=[],J[13]=A,J[14]=i;else i=J[14];let Y0;if(J[15]!==t||J[16]!==j||J[17]!==i)Y0=[t,j,...F0,...i],J[15]=t,J[16]=j,J[17]=i,J[18]=Y0;else Y0=J[18];let r=Y0,q0=W!=="Config"&&W!=="Gates",$0=L||H?void 0:A,I0;if(J[19]!==O||J[20]!==$0||J[21]!==q0||J[22]!==r||J[23]!==L)I0=Q(Iq,{color:"permission",children:Q(Eq,{color:"permission",selectedTab:O,onTabChange:F,hidden:L,initialHeaderFocused:q0,contentHeight:$0,children:r})}),J[19]=O,J[20]=$0,J[21]=q0,J[22]=r,J[23]=L,J[24]=I0;else I0=J[24];return I0}function DX(){return FZ().catch(OX)}function OX(){return[]}var fq,k0;var zX=p(()=>{w0();KX();v0();zJ();HX();DY();RZ();kY();Aq();g();fq=$(U0(),1),k0=$(s(),1)});
3
- export{GW as Cf,zX as Df};
@@ -1,2 +0,0 @@
1
- import{IZ as K,KZ as Z}from"./cli-0.5.12-5d3qcvf5.mjs";import{LZ as J,NZ as Y}from"./cli-0.5.12-f141d2qa.mjs";import{F3 as D,K3 as F,L3 as G,M0 as B,R0 as W,d4 as X}from"./cli-0.5.12-pycnjaeg.mjs";import{bfa as y,cfa as Q}from"./cli-0.5.12-k1crwtdc.mjs";import{Dna as V,lna as z}from"./cli-0.5.12-495d826j.mjs";import{aoa as N}from"./cli-0.5.12-xzeb7mtb.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
- export{P as qh,_ as rh};
@@ -1,15 +0,0 @@
1
- import{RY as o,UY as OJ}from"./cli-0.5.12-ysy6e9rz.mjs";import{Bca as q,Jaa as v,Jca as E,M$ as i,R6 as K,S6 as I,W$ as HJ,eba as D,v9 as G,x9 as BJ}from"./cli-0.5.12-g4wb8mj2.mjs";import{dfa as A,ffa as XJ}from"./cli-0.5.12-2jxq8gnm.mjs";import{Kfa as k,Lfa as j,Pfa as C,Tfa as y,Xfa as F,fga as W,iga as zJ}from"./cli-0.5.12-p5ps8gf0.mjs";import{Aga as O,Bga as w,Ega as p,Gga as R,pga as l}from"./cli-0.5.12-tfdwzg37.mjs";import{Jga as H,Wga as b}from"./cli-0.5.12-60w1a0bs.mjs";import{aoa as M}from"./cli-0.5.12-xzeb7mtb.mjs";import{access as P,chmod as JJ,writeFile as QJ}from"fs/promises";import{homedir as f}from"os";import{join as B}from"path";function S(){return B(H(),"local")}function YJ(J=f()){return B(J,".claude","local")}function m(J){let Q=J?.homeDir??f(),Y=J?.configHomeDir??H();return Array.from(new Set([B(Y,"local"),YJ(Q)]))}function d(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function ZJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function T(){return B(S(),"claudin")}function DJ(){return ZJ(process.argv[1]||"")}async function L(J,Q,Y){try{return await QJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(O(Z)==="EEXIST")return!1;throw Z}}async function $J(){try{let J=S();await y().mkdir(J),await L(B(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=T();if(await L(Q,`#!/bin/sh
2
- exec "${J}/node_modules/.bin/claudin" "$@"`,493))await JJ(Q,493);return!0}catch(J){return q(J),!1}}async function EJ(J,Q){try{if(!await $J())return"install_failed";let Z=await K("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:S(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return v(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function PJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),!0}catch{}return!1}async function fJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),J}catch{}return null}function mJ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var u=M(()=>{D();b();R();I();F();E();C()});import{open as qJ,readFile as WJ,stat as KJ}from"fs/promises";import{homedir as h}from"os";import{join as U}from"path";function V(J){let Q=J?.homedir??h(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:U(Z,".zshrc"),bash:U(Q,".bashrc"),fish:U(Q,".config/fish/config.fish")}}function g(J){let Q=!1;return{filtered:J.filter((Z)=>{if(c.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===T())return Q=!0,!1}}return!0}),hadAlias:Q}}async function x(J){try{return(await WJ(J,{encoding:"utf8"})).split(`
3
- `)}catch(Q){if(p(Q))return null;throw Q}}async function n(J,Q){let Y=await qJ(J,"w");try{await Y.writeFile(Q.join(`
4
- `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function NJ(J){let Q=V(J);for(let Y of Object.values(Q)){let Z=await x(Y);if(!Z)continue;for(let $ of Z)if(c.test($)){let N=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(N&&N[1])return N[1]}}return null}async function nJ(J){let Q=await NJ(J);if(!Q)return null;let Y=J?.homedir??h(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await KJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var c;var s=M(()=>{R();u();c=/^\s*alias\s+claude\s*=/});import{constants as yJ}from"fs";import{access as GJ,writeFile as a}from"fs/promises";import{homedir as X}from"os";import{join as _J}from"path";function r(){let J=process.argv[1]||"";if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}async function vJ(){let J=await K("bun",["pm","ls","-g"],{cwd:X()});if(J.code!==0)return!1;return J.stdout.includes("@claudiolabs/claudin")}async function zQ(){}async function BQ(){return}async function HQ(){return}function OQ(J){let Y=i()?.minimumVersion;if(!Y)return!1;let Z=!o(J,Y);if(Z)W(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function e(){return _J(H(),".update.lock")}async function wJ(){let J=y(),Q=e();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<t)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<t)return!1;await J.unlink(Q)}catch($){if(!w($))return q($),!1}}catch(Y){if(!w(Y))return q(Y),!1}try{return await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=O(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(H()),await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(O($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function MJ(){let J=y(),Q=e();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(w(Y))return;q(Y)}}async function RJ(){let J=G.isRunningWithBun()||r(),Q=null;if(J)Q=await K("bun",["pm","bin","-g"],{cwd:X()});else Q=await K("npm",["-g","config","get","prefix"],{cwd:X()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function SJ(){try{let J=await RJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await GJ(J,yJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new _("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function yQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await K("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:X()});if($.code!==0){if(W(`npm view failed with code ${$.code}`),$.stderr)W(`npm stderr: ${$.stderr.trim()}`);else W("npm stderr: (empty)");if($.stdout)W(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function GQ(){let J=await K("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:X()});if(J.code!==0)return W(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=j(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return W(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function _Q(J){return null}async function vQ(){return{latest:null,stable:null}}async function wQ(J){let Y=await K("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:X()});if(Y.code!==0){if(W(`npm view versions failed with code ${Y.code}`),Y.stderr)W(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return j(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return W(`Failed to parse version history: ${Z}`),[]}}async function MQ(J){if(!await wJ())return q(new _("Another process is currently installing an update")),A("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{if(await TJ(),!G.isRunningWithBun()&&G.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),A("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
5
- Error: Windows NPM detected in WSL
6
-
7
- You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
8
- This configuration is not supported for updates.
9
-
10
- To fix this issue:
11
- 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
- 2. Make sure Linux NPM is in your PATH before the Windows version
13
- 3. Try updating again with 'claude update'
14
- `),"install_failed";let{hasPermissions:Q}=await SJ();if(!Q)return"no_permissions";let Y=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",Z=G.isRunningWithBun()||r()?"bun":"npm",N=await K(Z,Z==="npm"?["install","-g","--force",Y]:["install","-g",Y],{cwd:X()});if(N.code!==0){let z=new _(`Failed to install new version of claude: ${N.stdout} ${N.stderr}`);return q(z),"install_failed"}if(Z==="npm"&&await vJ()){let z=await K("bun",["install","-g",Y],{cwd:X()});if(z.code!==0)q(new _(`Failed to update bun global install: ${z.stdout} ${z.stderr}`))}return v((z)=>({...z,installMethod:"global"})),"success"}finally{await MJ()}}async function TJ(){let J=V();for(let[,Q]of Object.entries(J))try{let Y=await x(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=g(Y);if($)await n(Q,Z),W(`Removed claude alias from ${Q}`)}catch(Y){W(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var _,t=300000;var UJ=M(()=>{XJ();D();zJ();BJ();b();R();I();F();E();OJ();HJ();s();C();_=class _ extends l{}});
15
- export{DJ as NQ,EJ as OQ,PJ as PQ,fJ as QQ,mJ as RQ,u as SQ,V as TQ,g as UQ,x as VQ,n as WQ,NJ as XQ,nJ as YQ,s as ZQ,zQ as _Q,BQ as $Q,HQ as aR,OQ as bR,e as cR,SJ as dR,yQ as eR,GQ as fR,_Q as gR,vQ as hR,wQ as iR,MQ as jR,UJ as kR};
@@ -1,17 +0,0 @@
1
- import{S2 as x,Y2 as K}from"./cli-0.5.12-pycnjaeg.mjs";import{M$ as w,W$ as J}from"./cli-0.5.12-g4wb8mj2.mjs";import{aea as v,mea as I}from"./cli-0.5.12-hvtcdcev.mjs";import{Mga as q,Wga as G}from"./cli-0.5.12-60w1a0bs.mjs";import{aoa as z}from"./cli-0.5.12-xzeb7mtb.mjs";function W(b){return b.type==="advisor_tool_result"||b.type==="server_tool_use"&&b.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDE_CODE_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let b=j();return k()&&!N()&&b.baseModel&&b.advisorModel?{baseModel:b.baseModel,advisorModel:b.advisorModel}:void 0}function Z(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-4-6")}function $(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(b){let h=b.iterations;if(!h)return[];return h.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
2
-
3
- You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
4
-
5
- Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
6
-
7
- Also call advisor:
8
- - When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
9
- - When stuck -- errors recurring, approach not converging, results that don't fit.
10
- - When considering a change of approach.
11
-
12
- On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
13
-
14
- Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
15
-
16
- If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
17
- export{W as QR,k as RR,N as SR,X as TR,Z as UR,$ as VR,B as WR,D as XR,F as YR,O as ZR};
@@ -1,2 +0,0 @@
1
- import{$e as VP,Ye as N0,Ze as U0}from"./cli-0.5.12-9q9g02p5.mjs";import{AD as mP,DK as pP,FJ as u0,JD as L0,LD as i0,Qt as J0,Rt as QP,Tt as j0,aK as ZP,bK as m0,cm as h,dK as qP,dm as c0,em as p,fm as w0,gJ as WP,gm as r,hm as W0,iK as CP,km as O0,lm as EP,pJ as cP,qJ as fP,sJ as M0,tJ as h0,uF as G0,uJ as T0,vF as YP,vJ as d0,yJ as R0,zD as XP,zK as C0}from"./cli-0.5.12-zc0qwdy2.mjs";import{uU as D0,vU as LP}from"./cli-0.5.12-qew4mzgp.mjs";import{gV as JP,hV as hP,uV as z0,wV as TP}from"./cli-0.5.12-f5pfjvdk.mjs";import{NX as GP,UV as PP,YX as q0,ZV as AP,_V as I0,hW as k0,pX as C,rX as X,tX as L,xX as F0}from"./cli-0.5.12-fqp5s15p.mjs";import{AZ as n,BZ as J,CZ as Q,DZ as a}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as $0}from"./cli-0.5.12-w3hy6c60.mjs";import{N3 as e0,d4 as gP}from"./cli-0.5.12-pycnjaeg.mjs";import{C4 as A0,D4 as dP}from"./cli-0.5.12-cbevkwg4.mjs";import{A6 as r0,Gca as s0,Jca as SP,L_ as y0,M_ as B0,N_ as KP,b$ as H0,c$ as zP,k$ as p0,z6 as _}from"./cli-0.5.12-g4wb8mj2.mjs";import{bfa as g0,cfa as _P}from"./cli-0.5.12-k1crwtdc.mjs";import{dfa as m,ffa as IP}from"./cli-0.5.12-2jxq8gnm.mjs";import{Gga as t0,zga as f0}from"./cli-0.5.12-tfdwzg37.mjs";import{Yna as e,aoa as P0}from"./cli-0.5.12-xzeb7mtb.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 Pe,$P as Qe,uG as Re,jP as Se,tG as Te,uP as Ue,VJ as Ve,aP as We};
@@ -1,2 +0,0 @@
1
- import{aoa as l}from"./cli-0.5.12-xzeb7mtb.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
- export{u as AZ,E as BZ,a as CZ,c as DZ};
@@ -1,2 +0,0 @@
1
- import{Ama as S,Bma as kQ,Cma as L,Dma as a,Ema as n5,Fma as t8,Gma as R5,Hma as C8,Ima as E,Jma as h8,Kma as P,Lma as x1,Mma as d,Nma as xQ,Oma as o,Pma as UQ,Qma as l5,Rma as xY,sma as _Q,tma as JJ,uma as v,vma as I1,wma as Y5,xma as N8,yma as q,zma as y}from"./cli-0.5.12-0qasc0ef.mjs";import{$na as aQ,aoa as X}from"./cli-0.5.12-xzeb7mtb.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{I1();QQ=h$});function j$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=j$});function n$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=n$});function b$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=b$});function u$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<i$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new o(Z)}return Y.set(Q,J),this.size=Y.size,this}var i$=200,KQ;var BQ=X(()=>{I1();xQ();UQ();KQ=u$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var C1=X(()=>{I1();$Q();YQ();XQ();WQ();BQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function l$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",GQ;var NQ=X(()=>{GQ=l$});function c$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=c$});function r(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new o;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();r.prototype.add=r.prototype.push=GQ;r.prototype.has=wQ;FQ=r});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var qQ;var DQ=X(()=>{qQ=o$});function r$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=r$});function t$(Q,J,Y,Z,H,W){var x=Y&s$,U=Q.length,G=J.length;if(U!=G&&!(x&&G>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&a$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var s$=1,a$=2,s;var _1=X(()=>{RQ();DQ();VQ();s=t$});var e$,k1;var MQ=X(()=>{y();e$=q.Uint8Array,k1=e$});function QJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=$J});function FJ(Q,J,Y,Z,H,W,x){switch(Y){case zJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case wJ:if(Q.byteLength!=J.byteLength||!W(new k1(Q),new k1(J)))return!1;return!0;case XJ:case HJ:case UJ:return _Q(+Q,+J);case WJ:return Q.name==J.name&&Q.message==J.message;case KJ:case GJ:return Q==J+"";case xJ:var U=LQ;case BJ:var G=Z&YJ;if(U||(U=PQ),Q.size!=J.size&&!G)return!1;var K=x.get(Q);if(K)return K==J;Z|=ZJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case NJ:if(E1)return E1.call(Q)==E1.call(J)}return!1}var YJ=1,ZJ=2,XJ="[object Boolean]",HJ="[object Date]",WJ="[object Error]",xJ="[object Map]",UJ="[object Number]",KJ="[object RegExp]",BJ="[object Set]",GJ="[object String]",NJ="[object Symbol]",wJ="[object ArrayBuffer]",zJ="[object DataView]",CQ,E1,EQ;var vQ=X(()=>{kQ();MQ();JJ();_1();fQ();IQ();CQ=S?S.prototype:void 0,E1=CQ?CQ.valueOf:void 0;EQ=FJ});function RJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=RJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function DJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=DJ});function OJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var SQ;var mQ=X(()=>{SQ=OJ});function VJ(){return[]}var AQ;var hQ=X(()=>{AQ=VJ});var MJ,LJ,jQ,fJ,nQ;var bQ=X(()=>{mQ();hQ();MJ=Object.prototype,LJ=MJ.propertyIsEnumerable,jQ=Object.getOwnPropertySymbols,fJ=!jQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(jQ(Q),function(J){return LJ.call(Q,J)})},nQ=fJ});function PJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=PJ});function IJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=IJ});function _J(Q){return O(Q)&&L(Q)==CJ}var CJ="[object Arguments]",v1;var TQ=X(()=>{a();m();v1=_J});var lQ,kJ,EJ,vJ,t;var d1=X(()=>{TQ();m();lQ=Object.prototype,kJ=lQ.hasOwnProperty,EJ=lQ.propertyIsEnumerable,vJ=v1(function(){return arguments}())?v1:function(Q){return O(Q)&&kJ.call(Q,"callee")&&!EJ.call(Q,"callee")},t=vJ});function dJ(){return!1}var cQ;var oQ=X(()=>{cQ=dJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,rQ,gJ,sQ,pJ,yJ,A;var g1=X(()=>{y();oQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,rQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,gJ=rQ&&rQ.exports===tQ,sQ=gJ?q.Buffer:void 0,pJ=sQ?sQ.isBuffer:void 0,yJ=pJ||cQ,A=yJ});function AJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&mJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,mJ,$1;var p1=X(()=>{mJ=/^(?:0|[1-9]\d*)$/;$1=AJ});function jJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,h;var J1=X(()=>{h=jJ});function B8(Q){return O(Q)&&h(Q.length)&&!!B[L(Q)]}var nJ="[object Arguments]",bJ="[object Array]",iJ="[object Boolean]",uJ="[object Date]",TJ="[object Error]",lJ="[object Function]",cJ="[object Map]",oJ="[object Number]",rJ="[object Object]",sJ="[object RegExp]",aJ="[object Set]",tJ="[object String]",eJ="[object WeakMap]",Q8="[object ArrayBuffer]",$8="[object DataView]",J8="[object Float32Array]",Y8="[object Float64Array]",Z8="[object Int8Array]",X8="[object Int16Array]",H8="[object Int32Array]",W8="[object Uint8Array]",x8="[object Uint8ClampedArray]",U8="[object Uint16Array]",K8="[object Uint32Array]",B,eQ;var Q5=X(()=>{a();J1();m();B={};B[J8]=B[Y8]=B[Z8]=B[X8]=B[H8]=B[W8]=B[x8]=B[U8]=B[K8]=!0;B[nJ]=B[bJ]=B[Q8]=B[iJ]=B[$8]=B[uJ]=B[TJ]=B[lJ]=B[cJ]=B[oJ]=B[rJ]=B[sJ]=B[aJ]=B[tJ]=B[eJ]=!1;eQ=B8});function G8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=G8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,w8,y1,z8,X1;var X5=X(()=>{N8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,w8=i&&i.exports===Z5,y1=w8&&Y5.process,z8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return y1&&y1.binding&&y1.binding("util")}catch(J){}}(),X1=z8});var H5,F8,H1;var S1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,F8=H5?$5(H5):eQ,H1=F8});function D8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],G=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,G))))U.push(K);return U}var R8,q8,W5;var x5=X(()=>{uQ();d1();M();g1();p1();S1();R8=Object.prototype,q8=R8.hasOwnProperty;W5=D8});function V8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||O8;return Q===Y}var O8,U5;var K5=X(()=>{O8=Object.prototype;U5=V8});function M8(Q,J){return function(Y){return Q(J(Y))}}var B5;var G5=X(()=>{B5=M8});var L8,N5;var w5=X(()=>{G5();L8=B5(Object.keys,Object),N5=L8});function I8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(P8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var f8,P8,z5;var F5=X(()=>{K5();w5();f8=Object.prototype,P8=f8.hasOwnProperty;z5=I8});function _8(Q){return Q!=null&&h(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{C8();J1();q5=_8});function k8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var m1=X(()=>{x5();F5();D5();W1=k8});function E8(Q){return pQ(Q,W1,nQ)}var A1;var O5=X(()=>{yQ();bQ();m1();A1=E8});function p8(Q,J,Y,Z,H,W){var x=Y&v8,U=A1(Q),G=U.length,K=A1(J),F=K.length;if(G!=F&&!x)return!1;var z=G;while(z--){var N=U[z];if(!(x?N in J:g8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<G){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var l=Q.constructor,c=J.constructor;if(l!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof l=="function"&&l instanceof l&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var v8=1,d8,g8,V5;var M5=X(()=>{O5();d8=Object.prototype,g8=d8.hasOwnProperty;V5=p8});var y8,U1;var L5=X(()=>{x1();y();y8=P(q,"DataView"),U1=y8});var S8,K1;var f5=X(()=>{x1();y();S8=P(q,"Promise"),K1=S8});var m8,B1;var P5=X(()=>{x1();y();m8=P(q,"Set"),B1=m8});var A8,G1;var I5=X(()=>{x1();y();A8=P(q,"WeakMap"),G1=A8});var C5="[object Map]",j8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",n8,b8,i8,u8,T8,k,h1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();n8=E(U1),b8=E(d),i8=E(K1),u8=E(B1),T8=E(G1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||B1&&k(new B1)!=k5||G1&&k(new G1)!=E5)k=function(Q){var J=L(Q),Y=J==j8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case n8:return v5;case b8:return C5;case i8:return _5;case u8:return k5;case T8:return E5}return J};h1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),G=x?p5:h1(Q),K=U?p5:h1(J);G=G==g5?N1:G,K=K==g5?N1:K;var F=G==N1,z=K==N1,N=G==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,G,Y,Z,H,W);if(!(Y&l8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var l8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",c8,y5,S5;var m5=X(()=>{C1();_1();vQ();M5();d5();M();g1();S1();c8=Object.prototype,y5=c8.hasOwnProperty;S5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function a8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var G=U[0],K=Q[G],F=U[1];if(x&&U[2]){if(K===void 0&&!(G in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,G,Q,J,z);if(!(N===void 0?w1(F,K,r8|s8,Z,z):N))return!1}}return!0}var r8=1,s8=2,h5;var j5=X(()=>{C1();j1();h5=a8});function e8(Q){return Q===Q&&!n5(Q)}var z1;var n1=X(()=>{t8();z1=e8});function QY(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{n1();m1();b5=QY});function $Y(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var b1=X(()=>{F1=$Y});function JY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||h5(Y,Q,J)}}var u5;var T5=X(()=>{j5();i5();b1();u5=JY});function ZY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==YY}var YY="[object Symbol]",j;var R1=X(()=>{a();m();j=ZY});function WY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||j(Q))return!0;return HY.test(Q)||!XY.test(Q)||J!=null&&Q in Object(J)}var XY,HY,n;var q1=X(()=>{M();R1();XY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HY=/^\w*$/;n=WY});function KY(Q){var J=l5(Q,function(Z){if(Y.size===UY)Y.clear();return Z}),Y=J.cache;return J}var UY=500,c5;var o5=X(()=>{xY();c5=KY});var BY,GY,NY,r5;var s5=X(()=>{o5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GY=/\\(\\)?/g,NY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(GY,"$1"):Z||Y)}),J}),r5=NY});function wY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=wY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(j(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-zY?"-0":J}var zY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function FY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=FY});function RY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:r5(Z$(Q))}var D1;var i1=X(()=>{M();q1();s5();X$();D1=RY});function DY(Q){if(typeof Q=="string"||j(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=DY});function OY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var u1=X(()=>{i1();u();O1=OY});function VY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{u1();H$=VY});function MY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=MY});function LY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&h(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var B$=X(()=>{i1();d1();M();p1();J1();u();K$=LY});function fY(Q,J){return Q!=null&&K$(Q,J,x$)}var G$;var N$=X(()=>{U$();B$();G$=fY});function CY(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?G$(Y,Q):w1(J,Z,PY|IY)}}var PY=1,IY=2,w$;var z$=X(()=>{j1();W$();N$();q1();n1();b1();u();w$=CY});function _Y(Q){return Q}var F$;var R$=X(()=>{F$=_Y});function kY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=kY});function EY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{u1();O$=EY});function vY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=vY});function dY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{T5();z$();R$();M();L$();f$=dY});function gY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=gY});function pY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=pY});import{randomUUID as T1}from"crypto";var k$=()=>{};function hX(){return l1}function jX(Q){l1=Q}function nX(Q){return V1.has(Q)?V1.get(Q):void 0}function bX(Q,J){V1.set(Q,J)}function iX(Q){return c1.get(Q)}function uX(Q,J){c1.set(Q,J)}function E$(){l1=null,V1.clear(),c1.clear()}function TX(){return o1}function lX(Q){o1=Q}function cX(){o1=void 0}var l1=null,V1,c1,o1;var v$=X(()=>{V1=new Map;c1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as yY}from"process";function J9(Q){return r1.add(Q),()=>r1.delete(Q)}function Y9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=yY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:T1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function Z9(){return $.sessionId}function X9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=T1(),$.sessionProjectDir=null,f1.emit($.sessionId),$.sessionId}function H9(){return $.parentSessionId}function W9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,f1.emit(Q)}function U9(){return $.sessionProjectDir}function K9(){return $.originalCwd}function B9(){return $.projectRoot}function G9(Q){$.originalCwd=Q.normalize("NFC")}function N9(Q){$.projectRoot=Q.normalize("NFC")}function w9(){return $.cwd}function z9(Q){$.cwd=Q.normalize("NFC")}function F9(){return $.directConnectServerUrl}function R9(Q){$.directConnectServerUrl=Q}function q9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function D9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function O9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function V9(){return $.totalCostUSD}function M9(){return $.totalAPIDuration}function L9(){return Date.now()-$.startTime}function f9(){return $.totalAPIDurationWithoutRetries}function P9(){return $.totalToolDuration}function I9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function C9(){return $.turnHookDurationMs}function _9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function k9(){$.turnHookDurationMs=0,$.turnHookCount=0}function E9(){return $.turnHookCount}function v9(){return $.turnToolDurationMs}function d9(){$.turnToolDurationMs=0,$.turnToolCount=0}function g9(){return $.turnToolCount}function p9(){return $.turnClassifierDurationMs}function y9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function S9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function m9(){return $.turnClassifierCount}function A9(){return $.statsStore}function h9(Q){$.statsStore=Q}function j9(Q){if(Q)S$();else s1=!0}function n9(){if(s1)S$()}function S$(){$.lastInteractionTime=Date.now(),s1=!1}function b9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function i9(){return $.totalLinesAdded}function u9(){return $.totalLinesRemoved}function T9(){return b(Object.values($.modelUsage),"inputTokens")}function m$(){return b(Object.values($.modelUsage),"outputTokens")}function l9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function c9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function o9(){return b(Object.values($.modelUsage),"webSearchRequests")}function r9(){return m$()-a1}function s9(){return t1}function a9(Q){a1=m$(),t1=Q,P1=0}function t9(){return P1}function e9(){P1++}function QH(){$.hasUnknownModelCost=!0}function $H(){return $.hasUnknownModelCost}function JH(){return $.lastMainRequestId}function YH(Q){$.lastMainRequestId=Q}function ZH(){return $.lastApiCompletionTimestamp}function XH(Q){$.lastApiCompletionTimestamp=Q}function HH(){$.pendingPostCompaction=!0}function WH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function xH(){return $.lastInteractionTime}function UH(){if(M1=!0,T)clearTimeout(T);T=setTimeout(()=>{M1=!1,T=void 0},A$),T.unref?.()}function KH(){return M1}async function BH(){while(M1)await new Promise((Q)=>setTimeout(Q,A$).unref?.())}function GH(){return $.modelUsage}function NH(Q){return $.modelUsage[Q]}function wH(){return $.mainLoopModelOverride}function zH(){return $.initialMainLoopModel}function FH(Q){$.mainLoopModelOverride=Q}function RH(Q){$.initialMainLoopModel=Q}function qH(){return $.sdkBetas}function DH(Q){$.sdkBetas=Q}function OH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function VH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function MH(){throw Error("resetStateForTests can only be called in tests")}function LH(){return $.modelStrings}function fH(Q){$.modelStrings=Q}function PH(){$.modelStrings=null}function IH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function CH(){return $.meter}function _H(){return $.sessionCounter}function kH(){return $.locCounter}function EH(){return $.prCounter}function vH(){return $.commitCounter}function dH(){return $.costCounter}function gH(){return $.tokenCounter}function pH(){return $.codeEditToolDecisionCounter}function yH(){return $.activeTimeCounter}function SH(){return $.loggerProvider}function mH(Q){$.loggerProvider=Q}function AH(){return $.eventLogger}function hH(Q){$.eventLogger=Q}function jH(){return $.meterProvider}function nH(Q){$.meterProvider=Q}function bH(){return $.tracerProvider}function iH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function uH(){return $.isInteractive}function TH(Q){$.isInteractive=Q}function lH(){return $.clientType}function cH(Q){$.clientType=Q}function oH(){return $.sdkAgentProgressSummariesEnabled}function rH(Q){$.sdkAgentProgressSummariesEnabled=Q}function sH(){return $.kairosActive}function aH(Q){$.kairosActive=Q,L1()}function tH(){return $.strictToolResultPairing}function eH(Q){$.strictToolResultPairing=Q}function Q4(){return $.userMsgOptIn}function $4(Q){$.userMsgOptIn=Q,L1()}function J4(){return $.sessionSource}function Y4(Q){$.sessionSource=Q}function Z4(){return $.questionPreviewFormat}function X4(Q){$.questionPreviewFormat=Q}function H4(){return $.agentColorMap}function W4(){return $.flagSettingsPath}function x4(Q){$.flagSettingsPath=Q}function U4(){return $.flagSettingsInline}function K4(Q){$.flagSettingsInline=Q}function B4(){return $.sessionIngressToken}function G4(Q){$.sessionIngressToken=Q}function N4(){return $.oauthTokenFromFd}function w4(Q){$.oauthTokenFromFd=Q}function z4(){return $.apiKeyFromFd}function F4(Q){$.apiKeyFromFd=Q}function R4(Q){$.lastAPIRequest=Q}function q4(){return $.lastAPIRequest}function D4(Q){$.lastAPIRequestMessages=Q}function O4(){return $.lastAPIRequestMessages}function V4(Q){$.lastClassifierRequests=Q}function M4(){return $.lastClassifierRequests}function L4(Q){$.cachedClaudeMdContent=Q}function f4(){return $.cachedClaudeMdContent}function P4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function I4(){return $.allowedSettingSources}function C4(Q){$.allowedSettingSources=Q}function _4(){return SY()&&$.clientType!=="claude-vscode"}function k4(Q){$.inlinePlugins=Q}function E4(){return $.inlinePlugins}function v4(Q){$.useCoworkPlugins=Q,E$()}function d4(){return $.useCoworkPlugins}function g4(Q){$.sessionBypassPermissionsMode=Q}function p4(){return $.sessionBypassPermissionsMode}function y4(Q){$.scheduledTasksEnabled=Q}function S4(){return $.scheduledTasksEnabled}function m4(){return $.sessionCronTasks}function A4(Q){$.sessionCronTasks.push(Q)}function h4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function j4(Q){$.sessionTrustAccepted=Q}function n4(){return $.sessionTrustAccepted}function b4(Q){$.sessionPersistenceDisabled=Q}function i4(){return $.sessionPersistenceDisabled}function u4(){return $.hasExitedPlanMode}function T4(Q){$.hasExitedPlanMode=Q}function l4(){return $.needsPlanModeExitAttachment}function c4(Q){$.needsPlanModeExitAttachment=Q}function o4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function r4(){return $.needsAutoModeExitAttachment}function s4(Q){$.needsAutoModeExitAttachment=Q}function a4(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function t4(){return $.lspRecommendationShownThisSession}function e4(Q){$.lspRecommendationShownThisSession=Q}function Q3(Q){$.initJsonSchema=Q}function $3(){return $.initJsonSchema}function J3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function Y3(){return $.registeredHooks}function Z3(){$.registeredHooks=null}function X3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function H3(){$.initJsonSchema=null,$.registeredHooks=null}function W3(){return $.planSlugCache}function x3(){return $.sessionCreatedTeams}function U3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function K3(){return $.teleportedSessionInfo}function B3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function G3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function N3(){return $.invokedSkills}function w3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function z3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function F3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function R3(Q,J){}function q3(){return mY}function D3(){return $.mainThreadAgentType}function O3(Q){$.mainThreadAgentType=Q}function V3(){return $.isRemoteMode}function M3(Q){$.isRemoteMode=Q}function L3(){return $.systemPromptSectionCache}function f3(Q,J){$.systemPromptSectionCache.set(Q,J)}function P3(){$.systemPromptSectionCache.clear()}function I3(){return $.lastEmittedDate}function C3(Q){$.lastEmittedDate=Q}function _3(){return $.additionalDirectoriesForClaudeMd}function k3(Q){$.additionalDirectoriesForClaudeMd=Q}function E3(){return $.allowedChannels}function v3(Q){$.allowedChannels=Q,L1()}function d3(){return $.hasDevChannels}function g3(Q){$.hasDevChannels=Q}function p3(){return $.largeSystemPromptDetected}function y3(Q){$.largeSystemPromptDetected=Q}function S3(){return $.afkModeHeaderLatched}function m3(Q){$.afkModeHeaderLatched=Q}function A3(){return $.fastModeHeaderLatched}function h3(Q){$.fastModeHeaderLatched=Q}function j3(){return $.thinkingClearLatched}function n3(Q){$.thinkingClearLatched=Q}function b3(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null}function i3(){return $.promptId}function u3(Q){$.promptId=Q}function T3(){return!1}function l3(){return null}var r1,$,f1,x9,s1=!1,a1=0,t1=null,P1=0,M1=!1,T,A$=150,mY;var AY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();f1=d$(),x9=f1.subscribe;mY=[]});
2
- export{p as Xga,C1 as Yga,FQ as Zga,RQ as _ga,OQ as $ga,VQ as aha,k1 as bha,MQ as cha,PQ as dha,IQ as eha,dQ as fha,gQ as gha,w as hha,M as iha,pQ as jha,yQ as kha,SQ as lha,mQ as mha,AQ as nha,hQ as oha,nQ as pha,bQ as qha,O as rha,m as sha,t as tha,d1 as uha,A as vha,g1 as wha,$1 as xha,p1 as yha,$5 as zha,J5 as Aha,X1 as Bha,X5 as Cha,H1 as Dha,S1 as Eha,W5 as Fha,x5 as Gha,U5 as Hha,K5 as Iha,B5 as Jha,G5 as Kha,q5 as Lha,D5 as Mha,W1 as Nha,m1 as Oha,A1 as Pha,O5 as Qha,B1 as Rha,P5 as Sha,h1 as Tha,d5 as Uha,w1 as Vha,j1 as Wha,j as Xha,R1 as Yha,a5 as Zha,t5 as _ha,Z$ as $ha,X$ as aia,D1 as bia,i1 as cia,I as dia,u as eia,O1 as fia,u1 as gia,F$ as hia,R$ as iia,f$ as jia,P$ as kia,hX as lia,jX as mia,nX as nia,bX as oia,iX as pia,uX as qia,E$ as ria,TX as sia,lX as tia,cX as uia,v$ as via,d$ as wia,g$ as xia,J9 as yia,Y9 as zia,Z9 as Aia,X9 as Bia,H9 as Cia,W9 as Dia,x9 as Eia,U9 as Fia,K9 as Gia,B9 as Hia,G9 as Iia,N9 as Jia,w9 as Kia,z9 as Lia,F9 as Mia,R9 as Nia,q9 as Oia,D9 as Pia,O9 as Qia,V9 as Ria,M9 as Sia,L9 as Tia,f9 as Uia,P9 as Via,I9 as Wia,C9 as Xia,_9 as Yia,k9 as Zia,E9 as _ia,v9 as $ia,d9 as aja,g9 as bja,p9 as cja,y9 as dja,S9 as eja,m9 as fja,A9 as gja,h9 as hja,j9 as ija,n9 as jja,b9 as kja,i9 as lja,u9 as mja,T9 as nja,m$ as oja,l9 as pja,c9 as qja,o9 as rja,r9 as sja,s9 as tja,a9 as uja,t9 as vja,e9 as wja,QH as xja,$H as yja,JH as zja,YH as Aja,ZH as Bja,XH as Cja,HH as Dja,WH as Eja,xH as Fja,UH as Gja,KH as Hja,BH as Ija,GH as Jja,NH as Kja,wH as Lja,zH as Mja,FH as Nja,RH as Oja,qH as Pja,DH as Qja,OH as Rja,VH as Sja,MH as Tja,LH as Uja,fH as Vja,PH as Wja,IH as Xja,CH as Yja,_H as Zja,kH as _ja,EH as $ja,vH as aka,dH as bka,gH as cka,pH as dka,yH as eka,SH as fka,mH as gka,AH as hka,hH as ika,jH as jka,nH as kka,bH as lka,iH as mka,SY as nka,uH as oka,TH as pka,lH as qka,cH as rka,oH as ska,rH as tka,sH as uka,aH as vka,tH as wka,eH as xka,Q4 as yka,$4 as zka,J4 as Aka,Y4 as Bka,Z4 as Cka,X4 as Dka,H4 as Eka,W4 as Fka,x4 as Gka,U4 as Hka,K4 as Ika,B4 as Jka,G4 as Kka,N4 as Lka,w4 as Mka,z4 as Nka,F4 as Oka,R4 as Pka,q4 as Qka,D4 as Rka,O4 as Ska,V4 as Tka,M4 as Uka,L4 as Vka,f4 as Wka,P4 as Xka,I4 as Yka,C4 as Zka,_4 as _ka,k4 as $ka,E4 as ala,v4 as bla,d4 as cla,g4 as dla,p4 as ela,y4 as fla,S4 as gla,m4 as hla,A4 as ila,h4 as jla,j4 as kla,n4 as lla,b4 as mla,i4 as nla,u4 as ola,T4 as pla,l4 as qla,c4 as rla,o4 as sla,r4 as tla,s4 as ula,a4 as vla,t4 as wla,e4 as xla,Q3 as yla,$3 as zla,J3 as Ala,Y3 as Bla,Z3 as Cla,X3 as Dla,H3 as Ela,W3 as Fla,x3 as Gla,U3 as Hla,K3 as Ila,B3 as Jla,G3 as Kla,N3 as Lla,w3 as Mla,z3 as Nla,F3 as Ola,R3 as Pla,q3 as Qla,D3 as Rla,O3 as Sla,V3 as Tla,M3 as Ula,L3 as Vla,f3 as Wla,P3 as Xla,I3 as Yla,C3 as Zla,_3 as _la,k3 as $la,E3 as ama,v3 as bma,d3 as cma,g3 as dma,p3 as ema,y3 as fma,S3 as gma,m3 as hma,A3 as ima,h3 as jma,j3 as kma,n3 as lma,b3 as mma,i3 as nma,u3 as oma,T3 as pma,l3 as qma,AY as rma};
@@ -1,2 +0,0 @@
1
- import{Qt as g,Rt as Zf,Tt as _f,km as Xf,lm as Uf}from"./cli-0.5.12-zc0qwdy2.mjs";import{vV as Wf,wV as Tf}from"./cli-0.5.12-f5pfjvdk.mjs";import{YX as a,_V as n,eW as s,fW as If,pX as F,qX as cf,rX as r,tX as q,xX as Vf}from"./cli-0.5.12-fqp5s15p.mjs";import{AZ as Qf,BZ as H,CZ as X,DZ as T}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as Rf}from"./cli-0.5.12-w3hy6c60.mjs";import{G1 as Jf,H1 as hf,L1 as M,O1 as p,P1 as Ef,n1 as Nf,p1 as b,q1 as _,r1 as Hf,t1 as j,w1 as qf,y1 as zf}from"./cli-0.5.12-pycnjaeg.mjs";import{A4 as yf,z4 as i}from"./cli-0.5.12-ctqkj6ve.mjs";import{D9 as w,J$ as Gf,Maa as l,S9 as Bf,W$ as Cf,eba as Pf}from"./cli-0.5.12-g4wb8mj2.mjs";import{Yca as mf,eda as Of}from"./cli-0.5.12-vp5smcs1.mjs";import{dfa as D,ffa as Lf}from"./cli-0.5.12-2jxq8gnm.mjs";import{Yna as x,aoa as o}from"./cli-0.5.12-xzeb7mtb.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=H(q,{color:"promptBorder",dimColor:!0,children:w}),f[0]=z;else z=f[0];return z}let N;if(f[1]===Symbol.for("react.memo_cache_sentinel"))N=H(q,{color:"fastMode",children:w}),f[1]=N;else N=f[1];return N}function U(m=!0,f=!1){if(!m)return w;let G=s(l().theme);if(f)return i.dim(F("promptBorder",G)(w));return F("fastMode",G)(w)}var t;var ff=o(()=>{yf();Bf();a();Pf();If();cf();T();t=x(n(),1)});function S(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let N=!j(G.mainLoopModel);return{...G,...N?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function Df(m){let f=kf.c(30),{onDone:G,unavailableReason:N}=m,z=g(vf),V=g(Af),W=Zf(),[J,wf]=Kf.useState(V??!1),y;if(f[0]===Symbol.for("react.memo_cache_sentinel"))y=qf(),f[0]=y;else y=f[0];let B=y,$=B.status==="cooldown",Q=N!==null,P;if(f[1]===Symbol.for("react.memo_cache_sentinel"))P=p(M(!0)),f[1]=P;else P=f[1];let d=P,I;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==W)I=function(){if(Q)return;if(S(J,W),D("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let v=U(J),rf=!j(z)?` · model set to ${_}`:"";G(`${v} Fast mode ON${rf} · ${d}`)}else W(uf),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=W,f[7]=I;else I=f[7];let u=I,c;if(f[8]!==V||f[9]!==Q||f[10]!==G||f[11]!==W)c=function(){if(Q){if(V)S(!1,W);G("Fast mode OFF",{display:"system"});return}let v=V?`${U()} Kept Fast mode ON`:"Kept Fast mode OFF";G(v,{display:"system"})},f[8]=V,f[9]=Q,f[10]=G,f[11]=W,f[12]=c;else c=f[12];let A=c,L;if(f[13]!==Q)L=function(){if(Q)return;wf(jf)},f[13]=Q,f[14]=L;else L=f[14];let Z=L,O;if(f[15]!==u||f[16]!==Z)O={"confirm:yes":u,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=u,f[16]=Z,f[17]=O;else O=f[17];let C;if(f[18]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},f[18]=C;else C=f[18];Wf(O,C);let h;if(f[19]===Symbol.for("react.memo_cache_sentinel"))h=X(q,{children:[H(e,{cooldown:$})," Fast mode (research preview)"]}),f[19]=h;else h=f[19];let Yf=h,k;if(f[20]!==Q)k=(Y)=>Y.pending?X(q,{children:["Press ",Y.keyName," again to exit"]}):Q?H(q,{children:"Esc to cancel"}):H(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),f[20]=Q,f[21]=k;else k=f[21];let K;if(f[22]!==J||f[23]!==N)K=N?H(r,{marginLeft:2,children:H(q,{color:"error",children:N})}):X(Qf,{children:[H(r,{flexDirection:"column",gap:0,marginLeft:2,children:X(r,{flexDirection:"row",gap:2,children:[H(q,{bold:!0,children:"Fast mode"}),H(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"}),H(q,{dimColor:!0,children:d})]})}),$&&B.status==="cooldown"&&H(r,{marginLeft:2,children:X(q,{color:"warning",children:[B.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(B.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),f[22]=J,f[23]=N,f[24]=K;else K=f[24];let E;if(f[25]===Symbol.for("react.memo_cache_sentinel"))E=X(q,{dimColor:!0,children:["Learn more:"," ",H(Vf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),f[25]=E;else E=f[25];let R;if(f[26]!==A||f[27]!==K||f[28]!==k)R=X(Xf,{title:Yf,subtitle:`High-speed mode for ${_}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:A,color:"fastMode",inputGuide:k,children:[K,E]}),f[26]=A,f[27]=K,f[28]=k,f[29]=R;else R=f[29];return R}function jf(m){return!m}function uf(m){return{...m,fastMode:!1}}function Af(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let N=b();if(N)return`Fast mode unavailable: ${N}`;let{mainLoopModel:z}=f();if(S(m,G),D("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let V=U(!0),W=!j(z)?` · model set to ${_}`:"",J=p(M(!0));return`${V} Fast mode ON${W} · ${J}`}else return"Fast mode OFF"}async function H0(m,f,G){if(!Nf())return null;await Jf();let N=G?.trim().toLowerCase();if(N==="on"||N==="off"){let V=await Ff(N==="on",f.getAppState,f.setAppState);return m(V),null}let z=b();return D("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),H(Df,{onDone:m,unavailableReason:z})}var kf,Kf;var xf=o(()=>{Uf();ff();a();Tf();Lf();_f();hf();Of();Ef();Cf();T();kf=x(n(),1),Kf=x(Rf(),1)});
2
- export{U as Jc,ff as Kc,Df as Lc,H0 as Mc,xf as Nc};
@@ -1,3 +0,0 @@
1
- import{Maa as P,Q6 as Q,S6 as M,eba as R}from"./cli-0.5.12-g4wb8mj2.mjs";import{fga as G,iga as C}from"./cli-0.5.12-p5ps8gf0.mjs";import{aoa as j}from"./cli-0.5.12-xzeb7mtb.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function U(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function k(q){let z=q.split(`
2
- `),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of U()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function N(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return k(J)}async function B(){for(let q of v)if(await _(q))return q;return null}async function m(){if(Z!==void 0)return Z;try{let q=await N();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await B();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await m();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var f=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
3
- export{g as B4,w as C4,f as D4};
@@ -1,2 +0,0 @@
1
- import{C4 as B,D4 as _}from"./cli-0.5.12-cbevkwg4.mjs";import{Bba as b,Eba as Y,Fba as G,jba as M,mca as D,pca as v,rba as H}from"./cli-0.5.12-g4wb8mj2.mjs";import{Oga as K,Wga as E}from"./cli-0.5.12-60w1a0bs.mjs";import{aoa as x}from"./cli-0.5.12-xzeb7mtb.mjs";function w(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||f}function R(Q){return new Promise((N)=>setTimeout(N,Q))}async function n(Q){let N=Q?.clientId??w();if(!N)throw new j("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let V=Q?.fetchImpl??fetch,$=Q?.scope?.trim()||L,X=$===L?[$]:[$,L],y="Device code request failed.";for(let W of X){let Z=await V(k,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:N,scope:W})});if(!Z.ok){let O=await Z.text().catch(()=>"");y=`Device code request failed: ${Z.status} ${O}`;let F=/invalid_scope/i.test(O);if(W!==L&&F)continue;throw new j(y)}let J=await Z.json(),z=J.device_code,q=J.user_code,C=J.verification_uri;if(typeof z!=="string"||typeof q!=="string"||typeof C!=="string")throw new j("Malformed device code response from GitHub");return{device_code:z,user_code:q,verification_uri:C,expires_in:typeof J.expires_in==="number"?J.expires_in:900,interval:typeof J.interval==="number"?J.interval:5}}throw new j(y)}async function a(Q,N){let V=N?.clientId??w();if(!V)throw new j("client_id required for polling");let $=Math.max(1,N?.initialInterval??5),X=N?.timeoutSeconds??900,y=N?.fetchImpl??fetch,W=Date.now();while((Date.now()-W)/1000<X){let Z=await y(g,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:V,device_code:Q,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!Z.ok){let q=await Z.text().catch(()=>"");throw new j(`Token request failed: ${Z.status} ${q}`)}let J=await Z.json(),z=J.error;if(z==null){let q=J.access_token;if(typeof q==="string"&&q)return q;throw new j("No access_token in response")}if(z==="authorization_pending"){await R($*1000);continue}if(z==="slow_down"){$=typeof J.interval==="number"?J.interval:$+5,await R($*1000);continue}if(z==="expired_token")throw new j("Device code expired. Start the login flow again.");if(z==="access_denied")throw new j("Authorization was denied or cancelled.");throw new j(`GitHub OAuth error: ${z}`)}throw new j("Timed out waiting for authorization.")}async function s(Q){await B(Q)}async function I(Q,N){let $=await(N??fetch)(S,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Q}`,...T}});if(!$.ok){let z=await $.text().catch(()=>"");throw new j(`Copilot token exchange failed: ${$.status} ${z}`)}let X=await $.json(),y=X.token,W=X.expires_at,Z=X.refresh_in,J=X.endpoints;if(typeof y!=="string"||typeof W!=="number"||typeof Z!=="number"||!J||typeof J!=="object"||typeof J.api!=="string")throw new j("Malformed Copilot token response");return{token:y,expires_at:W,refresh_in:Z,endpoints:J}}var f="Iv1.b507a08c87ecfe98",k="https://github.com/login/device/code",g="https://github.com/login/oauth/access_token",S="https://api.github.com/copilot_internal/v2/token",L="read:user",T,j;var P=x(()=>{_();T={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};j=class j extends Error{constructor(Q){super(Q);this.name="GitHubDeviceFlowError"}}});function m(){return D()?.transport==="github_copilot"}function h(Q){let N=Q.match(/exp=(\d+)/);if(N){let X=Number(N[1]);if(!Number.isNaN(X))return Date.now()>=X*1000?"expired":"valid"}let V=Q.split(".");if(V.length===3&&V.every((X)=>/^[A-Za-z0-9_-]+$/.test(X)))try{let X=V[1].replace(/-/g,"+").replace(/_/g,"/"),y=X+"=".repeat((4-X.length%4)%4),W=Buffer.from(y,"base64").toString("utf8"),Z=JSON.parse(W);if(Z&&typeof Z==="object"&&Z.exp)return Date.now()>=Z.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function u(){if(K())return;try{return Y().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function XJ(){if(K())return;try{return(await Y().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function ZJ(){if(!m())return;if(K())return;if(u())return}async function $J(){if(!m())return!1;if(K())return!1;if(U)return U;return U=(async()=>{try{let V=Y().read()?.githubModels,$=V?.accessToken?.trim()||"",X=V?.oauthAccessToken?.trim()||"";if(!$&&!X)return!1;if(($?h($):"expired")==="valid")return!1;if(!X)return!1;let W=await I(X);if(!p(W.token,X).success)return!1;let J=M().find((z)=>z.provider==="openai"&&z.extras?.githubToken!==void 0);if(J)H(J.id,{provider:"openai",name:J.name,baseUrl:J.baseUrl,model:J.model,apiKey:W.token,extras:{...J.extras,githubToken:W.token}});return!0}catch{return!1}finally{U=null}})(),U}function p(Q,N){if(K())return{success:!1,warning:"Bare mode: secure storage is disabled."};let V=Q.trim();if(!V)return{success:!1,warning:"Token is empty."};let $=Y(),X=$.read()||{},y=X[A],W=N?.trim(),Z={accessToken:V};if(W)Z.oauthAccessToken=W;else if(y?.oauthAccessToken?.trim())Z.oauthAccessToken=y.oauthAccessToken.trim();let J={...X,[A]:Z};return $.update(J)}function NJ(){if(K())return{success:!0};let Q=Y(),V={...Q.read()||{}};return delete V[A],Q.update(V)}var A="githubModels",QJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",U=null;var l=x(()=>{v();E();G();P();b()});
2
- export{n as VY,a as WY,s as XY,I as YY,P as ZY,A as _Y,QJ as $Y,u as aZ,XJ as bZ,ZJ as cZ,$J as dZ,p as eZ,NJ as fZ,l as gZ};
@@ -1,6 +0,0 @@
1
- import{aoa as j}from"./cli-0.5.12-xzeb7mtb.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
2
- `:`
3
- `)+z,H=D+1,D=q.indexOf(`
4
- `,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
5
- `);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
6
- export{o as y4,O1 as z4,e as A4};
@@ -1,24 +0,0 @@
1
- import{gU as T,rU as c}from"./cli-0.5.12-yq8ds97a.mjs";import{RU as w,UU as n}from"./cli-0.5.12-36swspqa.mjs";import{N7 as y,O7 as g,P6 as M,R6 as X,S6 as f}from"./cli-0.5.12-g4wb8mj2.mjs";import{Kfa as K,Lfa as v,Pfa as m,fga as Z,ifa as R,iga as h,kfa as F}from"./cli-0.5.12-p5ps8gf0.mjs";import{Ega as W,Gga as D,zga as Y}from"./cli-0.5.12-tfdwzg37.mjs";import{Jga as E,Wga as S}from"./cli-0.5.12-60w1a0bs.mjs";import{Aia as k,Eia as A,Gia as N,rma as j}from"./cli-0.5.12-c8f4daey.mjs";import{aoa as H}from"./cli-0.5.12-xzeb7mtb.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
2
- $pid = ${String(q)}
3
- $ancestors = @()
4
- for ($i = 0; $i -lt ${J}; $i++) {
5
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
- if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
- $pid = $proc.ParentProcessId
8
- $ancestors += $pid
9
- }
10
- $ancestors -join ','
11
- `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
- `).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
13
- $currentPid = ${String(q)}
14
- $commands = @()
15
- for ($i = 0; $i -lt ${J}; $i++) {
16
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
- if (-not $proc) { break }
18
- if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
- if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
- $currentPid = $proc.ParentProcessId
21
- }
22
- $commands -join [char]0
23
- `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
24
- export{O as NT,i as OT,e as PT,qq as QT,_ as RT,Uq as ST,Bq as TT,C as UT,Mq as VT,I as WT,Aq as XT,d as YT,r as ZT,t as _T};
@@ -1,2 +0,0 @@
1
- function B(z,q=process.argv){for(let k=0;k<q.length;k++){let A=q[k];if(A?.startsWith(`${z}=`))return A.slice(z.length+1);if(A===z&&k+1<q.length)return q[k+1]}return}
2
- export{B as ob};
@@ -1,2 +0,0 @@
1
- import{ZZ as m}from"./cli-0.5.12-khvy67r3.mjs";import{N3 as K,d4 as $}from"./cli-0.5.12-pycnjaeg.mjs";import{Jaa as Q,Jca as Z,Maa as J,eba as Y,haa as X}from"./cli-0.5.12-g4wb8mj2.mjs";import{cfa as W}from"./cli-0.5.12-k1crwtdc.mjs";import{aoa as V}from"./cli-0.5.12-xzeb7mtb.mjs";function y(){let z=K()?.organizationUuid;if(!z)return null;let B=J().overageCreditGrantCache?.[z];if(!B)return null;if(Date.now()-B.timestamp>q)return null;return B.info}function G(){let z=K()?.organizationUuid;if(!z)return;let B=J().overageCreditGrantCache;if(!B||!(z in B))return;Q((N)=>{let P={...N.overageCreditGrantCache};return delete P[z],{...N,overageCreditGrantCache:P}})}function U(z){if(z.amount_minor_units==null||!z.currency)return null;if(z.currency.toUpperCase()==="USD"){let B=z.amount_minor_units/100;return Number.isInteger(B)?`$${B}`:`$${B.toFixed(2)}`}return null}var q=3600000;var w=V(()=>{W();$();Y();Z();X();m()});
2
- export{y as mh,G as nh,U as oh,w as ph};
@@ -1,2 +0,0 @@
1
- import{AE as M,Jt as J,Kt as Z,NC as L,OC as h,zE as z}from"./cli-0.5.12-zc0qwdy2.mjs";import{_V as X}from"./cli-0.5.12-fqp5s15p.mjs";import{EZ as W}from"./cli-0.5.12-w3hy6c60.mjs";import{Tla as H,rma as V}from"./cli-0.5.12-c8f4daey.mjs";import{Yna as D,aoa as U}from"./cli-0.5.12-xzeb7mtb.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
2
- export{v as rg,A as sg};
@@ -1,2 +0,0 @@
1
- import{Cq as X,zq as I}from"./cli-0.5.12-zc0qwdy2.mjs";import{Mga as H,Wga as W}from"./cli-0.5.12-60w1a0bs.mjs";import{aoa as V}from"./cli-0.5.12-xzeb7mtb.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
2
- export{q as jd,F as kd,K as ld,Q as md,R as nd,_ as od,j as pd,Y as qd};
@@ -1,2 +0,0 @@
1
- import{Fg as W,Kg as i}from"./cli-0.5.12-30h4rkq5.mjs";import{Lg as j,Ng as l}from"./cli-0.5.12-qt5dmgd4.mjs";import{AQ as f,BQ as F,Bh as Y,Bz as d,CQ as u,Ch as A,DQ as t,Fs as _,Fz as E,Gs as D,Gz as C,Ox as V,Qx as S,RK as M,TK as n,Uw as U,Vw as m,Yu as $,dM as x,jw as B,lQ as G,nM as s,ni as Z,oi as P,ow as p,qL as b,qw as N,rL as o,rw as g,wA as L,xA as h,yQ as r,zQ as R}from"./cli-0.5.12-zc0qwdy2.mjs";import{k6 as Q,q6 as k}from"./cli-0.5.12-ecgx5n54.mjs";import{V6 as O,a7 as I,t8 as X,u8 as v}from"./cli-0.5.12-g4wb8mj2.mjs";import{Nla as J,Zla as K,rma as T}from"./cli-0.5.12-c8f4daey.mjs";import{aoa as y,boa as w}from"./cli-0.5.12-xzeb7mtb.mjs";function Mq(H=new Set){let z=H.size>0;if(u.cache.clear?.(),F.cache.clear?.(),f.cache.clear?.(),Y.cache.clear?.(),W(),x(),!z)N();if(R(null),K(null),b(),$(),G("session_start"),V(),X.clear(),Z(),!z)B();if(Q(),M(),!z)U();J(H),O(),L(),_(),j(),E(),import("./utils-0.5.12-6hw9zr7a.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-0.5.12-9ggdsbtq.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-0.5.12-q3cab4jf.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-0.5.12-hc11zacw.mjs").then(({clearPromptCache:q})=>q())}var c=y(()=>{T();s();A();t();i();p();m();g();P();o();D();l();h();d();n();r();k();I();v();S();C()});
2
- export{Mq as Cg,c as Dg};
@@ -1,2 +0,0 @@
1
- import{L7 as _,v7 as Q}from"./cli-0.5.12-g4wb8mj2.mjs";import{pea as I,qea as X}from"./cli-0.5.12-asbn3d19.mjs";import{fga as B,iga as V}from"./cli-0.5.12-p5ps8gf0.mjs";import{aoa as T}from"./cli-0.5.12-xzeb7mtb.mjs";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{X();V();_();A=new Map});
2
- export{j as k6,P as l6,Y as m6,S as n6,O as o6,D as p6,Z as q6};
@@ -1,2 +0,0 @@
1
- import{aoa as s}from"./cli-0.5.12-xzeb7mtb.mjs";function c(){return"claude-code/99.0.0"}function i(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudin/0.5.12 (${e}${n}${t})`}var r=()=>{};
2
- export{c as LZ,i as MZ,r as NZ};