@claudiolabs/claudin 0.6.4 → 0.6.6

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 (875) hide show
  1. package/dist/chunks/AgentTool-0.6.6-bdcafcej.mjs +1 -0
  2. package/dist/chunks/App-0.6.6-k5gj5n4h.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.6-7fdtwksv.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.6-2j0e7ev9.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.6-6yx84pzc.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.6-vjc7apke.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.6-td62cgn4.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.6-5aqhvkcg.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.6-d2jxy48y.mjs +11 -0
  10. package/dist/chunks/Doctor-0.6.6-me4wn4j5.mjs +1 -0
  11. package/dist/chunks/Grove-0.6.6-xfwy6rbw.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.6.6-qthf2vr3.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.6.6-mp5b6a5j.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.6.6-awc54gyk.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.6.6-4qg3bf91.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.6.6-fewq1c0b.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.6.6-cx15mb4s.mjs +1 -0
  18. package/dist/chunks/REPL-0.6.6-ev64pese.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.6.6-gkxw58n4.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.6.6-45f8nb47.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.6.6-5314g8tw.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.6.6-w4svp0jn.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.6.6-5vjtrnya.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.6.6-rphhdvq8.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.6.6-s2f271df.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.6.6-s74swp6v.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.6.6-r3wwyv1a.mjs +1 -0
  28. package/dist/chunks/add-dir-0.6.6-nm6s9jm3.mjs +1 -0
  29. package/dist/chunks/agents-0.6.6-yfx529qm.mjs +3 -0
  30. package/dist/chunks/agents-0.6.6-z45zpb7a.mjs +110 -0
  31. package/dist/chunks/api-0.6.6-rrs0y38h.mjs +1 -0
  32. package/dist/chunks/asciicast-0.6.6-qrz006k9.mjs +1 -0
  33. package/dist/chunks/assistant-0.6.6-tfmwrg23.mjs +1 -0
  34. package/dist/chunks/auth-0.6.6-61djjn63.mjs +1 -0
  35. package/dist/chunks/auth-0.6.6-8pgs8nej.mjs +1 -0
  36. package/dist/chunks/autoMode-0.6.6-d0vbqpdq.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.6.6-xacp5fck.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.6.6-dnhts5fj.mjs +1 -0
  39. package/dist/chunks/branch-0.6.6-84wkac2e.mjs +4 -0
  40. package/dist/chunks/bridge-0.6.6-p3dy64f9.mjs +2 -0
  41. package/dist/chunks/bridgeConfig-0.6.6-fvzjs1pa.mjs +1 -0
  42. package/dist/chunks/bridgeEnabled-0.6.6-ge15dg1p.mjs +1 -0
  43. package/dist/chunks/bridgeMain-0.6.6-w0xmef6b.mjs +88 -0
  44. package/dist/chunks/bridgePointer-0.6.6-cba0ahq2.mjs +1 -0
  45. package/dist/chunks/btw-0.6.6-46grbbjr.mjs +1 -0
  46. package/dist/chunks/buddy-0.6.6-90qdgfw4.mjs +3 -0
  47. package/dist/chunks/cacache-0.6.6-v19w3dxf.mjs +1 -0
  48. package/dist/chunks/cache-probe-0.6.6-k4ev06pn.mjs +21 -0
  49. package/dist/chunks/cacheStats-0.6.6-dehpnmz9.mjs +4 -0
  50. package/dist/chunks/caches-0.6.6-4a0mnm1h.mjs +1 -0
  51. package/dist/chunks/claudeDesktop-0.6.6-fhspw8yv.mjs +1 -0
  52. package/dist/chunks/claudemd-0.6.6-s2nktt1h.mjs +1 -0
  53. package/dist/chunks/clear-0.6.6-e06ssw4n.mjs +1 -0
  54. package/dist/chunks/clearTerminal-0.6.6-062bve0j.mjs +1 -0
  55. package/dist/chunks/cli-0.6.6-0ak8r49x.mjs +2 -0
  56. package/dist/chunks/cli-0.6.6-0j61q3w5.mjs +2 -0
  57. package/dist/chunks/cli-0.6.6-0pptmkkg.mjs +4 -0
  58. package/dist/chunks/cli-0.6.6-0w254y38.mjs +2 -0
  59. package/dist/chunks/cli-0.6.6-10re6ept.mjs +2 -0
  60. package/dist/chunks/cli-0.6.6-141tbvn2.mjs +2 -0
  61. package/dist/chunks/cli-0.6.6-1a0fnhh0.mjs +2 -0
  62. package/dist/chunks/cli-0.6.6-1dy4fd01.mjs +2 -0
  63. package/dist/chunks/cli-0.6.6-1jt6s6c8.mjs +2 -0
  64. package/dist/chunks/cli-0.6.6-23snct9d.mjs +5348 -0
  65. package/dist/chunks/cli-0.6.6-27tkk39p.mjs +2 -0
  66. package/dist/chunks/cli-0.6.6-2dtp6rc2.mjs +2 -0
  67. package/dist/chunks/cli-0.6.6-2fasp96a.mjs +2 -0
  68. package/dist/chunks/cli-0.6.6-2gjay42h.mjs +2 -0
  69. package/dist/chunks/cli-0.6.6-2mf6j1pf.mjs +4 -0
  70. package/dist/chunks/cli-0.6.6-36kc5vh1.mjs +3 -0
  71. package/dist/chunks/cli-0.6.6-37wcg59v.mjs +2 -0
  72. package/dist/chunks/cli-0.6.6-3agn70fr.mjs +50 -0
  73. package/dist/chunks/cli-0.6.6-3qbz76xq.mjs +2 -0
  74. package/dist/chunks/cli-0.6.6-3s3k6nsb.mjs +2 -0
  75. package/dist/chunks/cli-0.6.6-3t45jvj0.mjs +2 -0
  76. package/dist/chunks/cli-0.6.6-3t9gkjhn.mjs +8 -0
  77. package/dist/chunks/cli-0.6.6-3ykkcpjf.mjs +2 -0
  78. package/dist/chunks/cli-0.6.6-40n0q9g3.mjs +2 -0
  79. package/dist/chunks/cli-0.6.6-44bk8ev1.mjs +2 -0
  80. package/dist/chunks/cli-0.6.6-4d55s633.mjs +3 -0
  81. package/dist/chunks/cli-0.6.6-4jrf033h.mjs +12 -0
  82. package/dist/chunks/cli-0.6.6-4m7r4esm.mjs +4 -0
  83. package/dist/chunks/cli-0.6.6-4nxq7s1k.mjs +2 -0
  84. package/dist/chunks/cli-0.6.6-4qj9brbk.mjs +2 -0
  85. package/dist/chunks/cli-0.6.6-4qrnzmjb.mjs +2 -0
  86. package/dist/chunks/cli-0.6.6-4r50eqxg.mjs +2 -0
  87. package/dist/chunks/cli-0.6.6-4tp2yb2x.mjs +2 -0
  88. package/dist/chunks/cli-0.6.6-4tzkbyes.mjs +2 -0
  89. package/dist/chunks/cli-0.6.6-504vvx3q.mjs +2 -0
  90. package/dist/chunks/cli-0.6.6-5eww20j0.mjs +2 -0
  91. package/dist/chunks/cli-0.6.6-5p4qy3we.mjs +2 -0
  92. package/dist/chunks/cli-0.6.6-61wnn1as.mjs +3 -0
  93. package/dist/chunks/cli-0.6.6-6gzy2tvk.mjs +12 -0
  94. package/dist/chunks/cli-0.6.6-6p78renb.mjs +2 -0
  95. package/dist/chunks/cli-0.6.6-6zs5dyhh.mjs +20 -0
  96. package/dist/chunks/cli-0.6.6-731hhd3s.mjs +2 -0
  97. package/dist/chunks/cli-0.6.6-73eg8qn0.mjs +2 -0
  98. package/dist/chunks/cli-0.6.6-76rkjh7v.mjs +2 -0
  99. package/dist/chunks/cli-0.6.6-7bzhgmhp.mjs +2 -0
  100. package/dist/chunks/cli-0.6.6-7n7fwzth.mjs +2 -0
  101. package/dist/chunks/cli-0.6.6-7pfzbq40.mjs +2 -0
  102. package/dist/chunks/cli-0.6.6-7r4esgkf.mjs +2 -0
  103. package/dist/chunks/cli-0.6.6-7r817n5d.mjs +2 -0
  104. package/dist/chunks/cli-0.6.6-7s8bhv18.mjs +2 -0
  105. package/dist/chunks/cli-0.6.6-7tnsnb0c.mjs +2 -0
  106. package/dist/chunks/cli-0.6.6-816nja7p.mjs +2 -0
  107. package/dist/chunks/cli-0.6.6-85mqgh7w.mjs +133 -0
  108. package/dist/chunks/cli-0.6.6-8bvd4smw.mjs +3 -0
  109. package/dist/chunks/cli-0.6.6-8e7c224v.mjs +2 -0
  110. package/dist/chunks/cli-0.6.6-8gcxhg7t.mjs +3 -0
  111. package/dist/chunks/cli-0.6.6-8gmesggf.mjs +2 -0
  112. package/dist/chunks/cli-0.6.6-8hzhy95p.mjs +2 -0
  113. package/dist/chunks/cli-0.6.6-8s6h2xee.mjs +3 -0
  114. package/dist/chunks/cli-0.6.6-8vnkmjet.mjs +2 -0
  115. package/dist/chunks/cli-0.6.6-8wwb7c4z.mjs +10 -0
  116. package/dist/chunks/cli-0.6.6-8yvh28tb.mjs +16 -0
  117. package/dist/chunks/cli-0.6.6-92dvpnqv.mjs +3 -0
  118. package/dist/chunks/cli-0.6.6-962my51a.mjs +2 -0
  119. package/dist/chunks/cli-0.6.6-99e532z3.mjs +2 -0
  120. package/dist/chunks/cli-0.6.6-9r04g0xa.mjs +2 -0
  121. package/dist/chunks/cli-0.6.6-9rjdy05g.mjs +2 -0
  122. package/dist/chunks/cli-0.6.6-9tjtzwyt.mjs +2 -0
  123. package/dist/chunks/cli-0.6.6-a2e4eek5.mjs +2 -0
  124. package/dist/chunks/cli-0.6.6-a837m6n5.mjs +2 -0
  125. package/dist/chunks/cli-0.6.6-aep3cnz5.mjs +2 -0
  126. package/dist/chunks/cli-0.6.6-akjyt0hr.mjs +2 -0
  127. package/dist/chunks/cli-0.6.6-akqfmyeb.mjs +2 -0
  128. package/dist/chunks/cli-0.6.6-am3sz82d.mjs +58 -0
  129. package/dist/chunks/cli-0.6.6-ap1eg2xa.mjs +2 -0
  130. package/dist/chunks/cli-0.6.6-apq4h0nf.mjs +2 -0
  131. package/dist/chunks/cli-0.6.6-aq30fm8p.mjs +1 -0
  132. package/dist/chunks/cli-0.6.6-ar43nqjq.mjs +3 -0
  133. package/dist/chunks/cli-0.6.6-arvcw19g.mjs +2 -0
  134. package/dist/chunks/cli-0.6.6-as18fmg3.mjs +2 -0
  135. package/dist/chunks/cli-0.6.6-at7yytqj.mjs +2 -0
  136. package/dist/chunks/cli-0.6.6-axvjexmr.mjs +15 -0
  137. package/dist/chunks/cli-0.6.6-b1wqaqv9.mjs +4 -0
  138. package/dist/chunks/cli-0.6.6-bbv794xs.mjs +4 -0
  139. package/dist/chunks/cli-0.6.6-bn18ty4n.mjs +18 -0
  140. package/dist/chunks/cli-0.6.6-by1ngr5q.mjs +5 -0
  141. package/dist/chunks/cli-0.6.6-c267ckfv.mjs +2 -0
  142. package/dist/chunks/cli-0.6.6-c2xmgnfp.mjs +7 -0
  143. package/dist/chunks/cli-0.6.6-ct7zap14.mjs +2 -0
  144. package/dist/chunks/cli-0.6.6-czhez59x.mjs +2 -0
  145. package/dist/chunks/cli-0.6.6-d0qrt51j.mjs +2 -0
  146. package/dist/chunks/cli-0.6.6-d5dexg4d.mjs +2 -0
  147. package/dist/chunks/cli-0.6.6-dmd73xa3.mjs +2 -0
  148. package/dist/chunks/cli-0.6.6-dmtpt4r7.mjs +17 -0
  149. package/dist/chunks/cli-0.6.6-dnx45tc3.mjs +2 -0
  150. package/dist/chunks/cli-0.6.6-drg8zfkg.mjs +2 -0
  151. package/dist/chunks/cli-0.6.6-e4pcw0z3.mjs +3 -0
  152. package/dist/chunks/cli-0.6.6-eeaxd1dd.mjs +2 -0
  153. package/dist/chunks/cli-0.6.6-efkct3rx.mjs +2 -0
  154. package/dist/chunks/cli-0.6.6-ek8y79wd.mjs +2 -0
  155. package/dist/chunks/cli-0.6.6-en2sexw5.mjs +59 -0
  156. package/dist/chunks/cli-0.6.6-enc586ry.mjs +4 -0
  157. package/dist/chunks/cli-0.6.6-esnwdj9p.mjs +2 -0
  158. package/dist/chunks/cli-0.6.6-ezhp9zxv.mjs +2 -0
  159. package/dist/chunks/cli-0.6.6-f6wc5yc6.mjs +17 -0
  160. package/dist/chunks/cli-0.6.6-fep3xed7.mjs +2 -0
  161. package/dist/chunks/cli-0.6.6-fj9rpekf.mjs +2 -0
  162. package/dist/chunks/cli-0.6.6-g6ja9jcs.mjs +4 -0
  163. package/dist/chunks/cli-0.6.6-g9mdc3pd.mjs +2 -0
  164. package/dist/chunks/cli-0.6.6-gk8s7mch.mjs +67 -0
  165. package/dist/chunks/cli-0.6.6-gte1km05.mjs +2 -0
  166. package/dist/chunks/cli-0.6.6-h02v66zq.mjs +2 -0
  167. package/dist/chunks/cli-0.6.6-h12zw82h.mjs +3 -0
  168. package/dist/chunks/cli-0.6.6-h2aqs05m.mjs +2 -0
  169. package/dist/chunks/cli-0.6.6-h8d7s4qz.mjs +21 -0
  170. package/dist/chunks/cli-0.6.6-h8ew0rcw.mjs +24 -0
  171. package/dist/chunks/cli-0.6.6-hcajyfhg.mjs +6 -0
  172. package/dist/chunks/cli-0.6.6-hejk0ae6.mjs +5 -0
  173. package/dist/chunks/cli-0.6.6-hetrxwwb.mjs +2 -0
  174. package/dist/chunks/cli-0.6.6-heymhe69.mjs +24 -0
  175. package/dist/chunks/cli-0.6.6-hp08wrzx.mjs +15 -0
  176. package/dist/chunks/cli-0.6.6-hsgfy54f.mjs +2 -0
  177. package/dist/chunks/cli-0.6.6-hyqpcaay.mjs +2 -0
  178. package/dist/chunks/cli-0.6.6-j4j7a9y4.mjs +2 -0
  179. package/dist/chunks/cli-0.6.6-je6w2y3h.mjs +2 -0
  180. package/dist/chunks/cli-0.6.6-jh33fwqe.mjs +18 -0
  181. package/dist/chunks/cli-0.6.6-jjj2qt22.mjs +2 -0
  182. package/dist/chunks/cli-0.6.6-jqxfz350.mjs +2 -0
  183. package/dist/chunks/cli-0.6.6-jrpy2bkk.mjs +2 -0
  184. package/dist/chunks/cli-0.6.6-kca8bnv6.mjs +2 -0
  185. package/dist/chunks/cli-0.6.6-khr65dty.mjs +2 -0
  186. package/dist/chunks/cli-0.6.6-ktwh4wvp.mjs +6 -0
  187. package/dist/chunks/cli-0.6.6-mb1z3n48.mjs +2 -0
  188. package/dist/chunks/cli-0.6.6-mc9x1jry.mjs +28 -0
  189. package/dist/chunks/cli-0.6.6-mezb9tga.mjs +2 -0
  190. package/dist/chunks/cli-0.6.6-mfee7shn.mjs +2 -0
  191. package/dist/chunks/cli-0.6.6-mk746t95.mjs +2 -0
  192. package/dist/chunks/cli-0.6.6-mmgfr8v9.mjs +2 -0
  193. package/dist/chunks/cli-0.6.6-mrkkgjdh.mjs +2 -0
  194. package/dist/chunks/cli-0.6.6-mzjbzje2.mjs +2 -0
  195. package/dist/chunks/cli-0.6.6-nbrpn6xq.mjs +2 -0
  196. package/dist/chunks/cli-0.6.6-ncqg4xxp.mjs +2 -0
  197. package/dist/chunks/cli-0.6.6-ntyx46a7.mjs +2 -0
  198. package/dist/chunks/cli-0.6.6-nw0nh4e0.mjs +2 -0
  199. package/dist/chunks/cli-0.6.6-nymfz9tw.mjs +2 -0
  200. package/dist/chunks/cli-0.6.6-p3xdjh86.mjs +12 -0
  201. package/dist/chunks/cli-0.6.6-phfaae6k.mjs +2 -0
  202. package/dist/chunks/cli-0.6.6-q1j20ysc.mjs +193 -0
  203. package/dist/chunks/cli-0.6.6-q6pybpxh.mjs +2 -0
  204. package/dist/chunks/cli-0.6.6-qvmtyvz3.mjs +3 -0
  205. package/dist/chunks/cli-0.6.6-r5fnevcm.mjs +2 -0
  206. package/dist/chunks/cli-0.6.6-r6ph5dqe.mjs +2 -0
  207. package/dist/chunks/cli-0.6.6-rhcte81y.mjs +15 -0
  208. package/dist/chunks/cli-0.6.6-rqfeyzcp.mjs +2 -0
  209. package/dist/chunks/cli-0.6.6-rxhq7h6p.mjs +2 -0
  210. package/dist/chunks/cli-0.6.6-s3y8t7we.mjs +2 -0
  211. package/dist/chunks/cli-0.6.6-sc6nf44p.mjs +2 -0
  212. package/dist/chunks/cli-0.6.6-sh4pyhkw.mjs +2 -0
  213. package/dist/chunks/cli-0.6.6-sqvm4f1y.mjs +2 -0
  214. package/dist/chunks/cli-0.6.6-ssjjspdc.mjs +2 -0
  215. package/dist/chunks/cli-0.6.6-sxde5jj7.mjs +2 -0
  216. package/dist/chunks/cli-0.6.6-t3vvf5fy.mjs +2 -0
  217. package/dist/chunks/cli-0.6.6-t7p08nsw.mjs +2 -0
  218. package/dist/chunks/cli-0.6.6-tam4amwx.mjs +2 -0
  219. package/dist/chunks/cli-0.6.6-tg1e3sdx.mjs +2 -0
  220. package/dist/chunks/cli-0.6.6-tk00k0e1.mjs +34 -0
  221. package/dist/chunks/cli-0.6.6-v17a8yzy.mjs +2 -0
  222. package/dist/chunks/cli-0.6.6-vesqvt0y.mjs +2 -0
  223. package/dist/chunks/cli-0.6.6-vjj3g5dm.mjs +2 -0
  224. package/dist/chunks/cli-0.6.6-vt1181th.mjs +39 -0
  225. package/dist/chunks/cli-0.6.6-vvz9vw7f.mjs +5 -0
  226. package/dist/chunks/cli-0.6.6-vy3wa7f9.mjs +2 -0
  227. package/dist/chunks/cli-0.6.6-w687eya6.mjs +2 -0
  228. package/dist/chunks/cli-0.6.6-w6tqtrzg.mjs +4 -0
  229. package/dist/chunks/cli-0.6.6-wctj7gmc.mjs +6 -0
  230. package/dist/chunks/cli-0.6.6-ww6zy0p0.mjs +2 -0
  231. package/dist/chunks/cli-0.6.6-wxst92je.mjs +4 -0
  232. package/dist/chunks/cli-0.6.6-x1zrpt5g.mjs +45 -0
  233. package/dist/chunks/cli-0.6.6-x3tz7qvq.mjs +2 -0
  234. package/dist/chunks/cli-0.6.6-x88t5n54.mjs +133 -0
  235. package/dist/chunks/cli-0.6.6-xe6egv3r.mjs +25 -0
  236. package/dist/chunks/cli-0.6.6-xmd2zss3.mjs +2 -0
  237. package/dist/chunks/cli-0.6.6-xna6taqd.mjs +9 -0
  238. package/dist/chunks/cli-0.6.6-xnazk7t9.mjs +2 -0
  239. package/dist/chunks/cli-0.6.6-xq4cysdk.mjs +2 -0
  240. package/dist/chunks/cli-0.6.6-xt0p4ems.mjs +4 -0
  241. package/dist/chunks/cli-0.6.6-xtj65dsh.mjs +2 -0
  242. package/dist/chunks/cli-0.6.6-y305shhz.mjs +2 -0
  243. package/dist/chunks/cli-0.6.6-yakt9hjc.mjs +3 -0
  244. package/dist/chunks/cli-0.6.6-yj2tafrk.mjs +26 -0
  245. package/dist/chunks/cli-0.6.6-ymge82rt.mjs +2 -0
  246. package/dist/chunks/cli-0.6.6-ythetarc.mjs +3 -0
  247. package/dist/chunks/cli-0.6.6-ytskhcd3.mjs +42 -0
  248. package/dist/chunks/cli-0.6.6-ytws2j1w.mjs +2 -0
  249. package/dist/chunks/cli-0.6.6-yve3e654.mjs +2 -0
  250. package/dist/chunks/cli-0.6.6-yxd04fex.mjs +2 -0
  251. package/dist/chunks/cli-0.6.6-zb8ddz0k.mjs +2 -0
  252. package/dist/chunks/cli-0.6.6-ze6rx70y.mjs +2 -0
  253. package/dist/chunks/cli-0.6.6-zhky93y3.mjs +2 -0
  254. package/dist/chunks/cli-0.6.6-zk5p5pm9.mjs +3 -0
  255. package/dist/chunks/cli-0.6.6-zwk7a82m.mjs +2 -0
  256. package/dist/chunks/cli-0.6.6-zx0cgvxq.mjs +2 -0
  257. package/dist/chunks/client-0.6.6-epndq4qc.mjs +1 -0
  258. package/dist/chunks/color-0.6.6-8rzmvtwk.mjs +1 -0
  259. package/dist/chunks/compact-0.6.6-hx8hw1kn.mjs +3 -0
  260. package/dist/chunks/config-0.6.6-0j07cdc5.mjs +1 -0
  261. package/dist/chunks/config-0.6.6-2fm368ym.mjs +1 -0
  262. package/dist/chunks/constants-0.6.6-0yxw2f7y.mjs +1 -0
  263. package/dist/chunks/context-0.6.6-1ask7yck.mjs +1 -0
  264. package/dist/chunks/context-noninteractive-0.6.6-kk5a8p4w.mjs +1 -0
  265. package/dist/chunks/conversation-0.6.6-fetjq503.mjs +1 -0
  266. package/dist/chunks/copilotHeaders-0.6.6-fwqs850f.mjs +1 -0
  267. package/dist/chunks/copy-0.6.6-8j7h9rrr.mjs +9 -0
  268. package/dist/chunks/cost-0.6.6-1b4svxh2.mjs +1 -0
  269. package/dist/chunks/createSSHSession-0.6.6-nj5vfp9k.mjs +1 -0
  270. package/dist/chunks/createSession-0.6.6-mphh6gbj.mjs +1 -0
  271. package/dist/chunks/debug-0.6.6-ghaq68w2.mjs +1 -0
  272. package/dist/chunks/defaultActionDeps-0.6.6-t8g2hnht.mjs +1367 -0
  273. package/dist/chunks/desktop-0.6.6-a4mc0bda.mjs +1 -0
  274. package/dist/chunks/detectRepository-0.6.6-ncw5b2aj.mjs +1 -0
  275. package/dist/chunks/detection-0.6.6-214xzj0w.mjs +1 -0
  276. package/dist/chunks/diff-0.6.6-7nwejtje.mjs +1 -0
  277. package/dist/chunks/doctor-0.6.6-2wetaw67.mjs +1 -0
  278. package/dist/chunks/doctorDiagnostic-0.6.6-wvp7h2xr.mjs +1 -0
  279. package/dist/chunks/earlyInput-0.6.6-9jbsyrke.mjs +1 -0
  280. package/dist/chunks/effort-0.6.6-ncb29f3c.mjs +10 -0
  281. package/dist/chunks/envLessBridgeConfig-0.6.6-6pv90cvs.mjs +1 -0
  282. package/dist/chunks/envUtils-0.6.6-mwnbc88a.mjs +1 -0
  283. package/dist/chunks/environmentSelection-0.6.6-gac9h0m9.mjs +1 -0
  284. package/dist/chunks/environments-0.6.6-dyqm7563.mjs +1 -0
  285. package/dist/chunks/errors-0.6.6-q707mqqm.mjs +1 -0
  286. package/dist/chunks/exampleCommands-0.6.6-wd6w9zh5.mjs +1 -0
  287. package/dist/chunks/exit-0.6.6-8vj2yn2g.mjs +1 -0
  288. package/dist/chunks/export-0.6.6-ze9h049t.mjs +2 -0
  289. package/dist/chunks/extra-usage-0.6.6-mp9th9v6.mjs +1 -0
  290. package/dist/chunks/extra-usage-noninteractive-0.6.6-rmjhm3ng.mjs +1 -0
  291. package/dist/chunks/fast-0.6.6-764x92hh.mjs +1 -0
  292. package/dist/chunks/feedback-0.6.6-5x42sy6a.mjs +14 -0
  293. package/dist/chunks/firstPartyEventLogger-0.6.6-x2gcw7ns.mjs +1 -0
  294. package/dist/chunks/git-0.6.6-rw5vzxwm.mjs +1 -0
  295. package/dist/chunks/githubModelsCredentials-0.6.6-f2n56xmf.mjs +1 -0
  296. package/dist/chunks/goal-0.6.6-9rtva22g.mjs +4 -0
  297. package/dist/chunks/grove-0.6.6-97994twv.mjs +1 -0
  298. package/dist/chunks/growthbook-0.6.6-8reejkag.mjs +1 -0
  299. package/dist/chunks/headless-0.6.6-qgkvkz56.mjs +2 -0
  300. package/dist/chunks/heapdump-0.6.6-s68hkj7v.mjs +6 -0
  301. package/dist/chunks/help-0.6.6-a74x2714.mjs +1 -0
  302. package/dist/chunks/hookChains-0.6.6-wrp608b1.mjs +3 -0
  303. package/dist/chunks/hooks-0.6.6-skad5kp2.mjs +79 -0
  304. package/dist/chunks/hooks-0.6.6-zy3p5ymd.mjs +1 -0
  305. package/dist/chunks/ide-0.6.6-xpbxyf5x.mjs +3 -0
  306. package/dist/chunks/image-processor-napi-0.6.6-8ggh2rjn.mjs +1 -0
  307. package/dist/chunks/inboundAttachments-0.6.6-xfbtg9vz.mjs +1 -0
  308. package/dist/chunks/index-0.6.6-0g09kzhh.mjs +1 -0
  309. package/dist/chunks/index-0.6.6-1p1fy7cz.mjs +5 -0
  310. package/dist/chunks/index-0.6.6-27ems47g.mjs +9 -0
  311. package/dist/chunks/index-0.6.6-4v2spjs5.mjs +1 -0
  312. package/dist/chunks/index-0.6.6-5me3rm4s.mjs +9 -0
  313. package/dist/chunks/index-0.6.6-70tj26f9.mjs +1 -0
  314. package/dist/chunks/index-0.6.6-8zcthv4z.mjs +1 -0
  315. package/dist/chunks/index-0.6.6-aef14n9j.mjs +2 -0
  316. package/dist/chunks/index-0.6.6-apxc13te.mjs +1 -0
  317. package/dist/chunks/index-0.6.6-dq42pv3d.mjs +1 -0
  318. package/dist/chunks/index-0.6.6-ebp0mayr.mjs +1 -0
  319. package/dist/chunks/index-0.6.6-ejmkdrzm.mjs +1 -0
  320. package/dist/chunks/index-0.6.6-kqbyedrd.mjs +1 -0
  321. package/dist/chunks/index-0.6.6-m0dywyy2.mjs +30 -0
  322. package/dist/chunks/index-0.6.6-pjnpey6d.mjs +1 -0
  323. package/dist/chunks/index-0.6.6-pykm48ja.mjs +1 -0
  324. package/dist/chunks/index-0.6.6-pzvhyk3s.mjs +1 -0
  325. package/dist/chunks/index-0.6.6-rxae4gv4.mjs +1 -0
  326. package/dist/chunks/index-0.6.6-s4wsdcz8.mjs +2 -0
  327. package/dist/chunks/index-0.6.6-spnbnmsj.mjs +1 -0
  328. package/dist/chunks/index-0.6.6-sqygenvb.mjs +1 -0
  329. package/dist/chunks/index-0.6.6-t43srges.mjs +1 -0
  330. package/dist/chunks/index-0.6.6-zgh9z1rm.mjs +1 -0
  331. package/dist/chunks/init-0.6.6-6yxjq5pc.mjs +1 -0
  332. package/dist/chunks/initReplBridge-0.6.6-eeynkqk3.mjs +1 -0
  333. package/dist/chunks/ink-0.6.6-keyn52qn.mjs +1 -0
  334. package/dist/chunks/insights-0.6.6-2wjtvjnd.mjs +870 -0
  335. package/dist/chunks/install-0.6.6-vdpf15fp.mjs +1 -0
  336. package/dist/chunks/install-github-app-0.6.6-8zk1xfpw.mjs +149 -0
  337. package/dist/chunks/install-slack-app-0.6.6-j2a9c586.mjs +1 -0
  338. package/dist/chunks/instrumentation-0.6.6-35f0r0ts.mjs +1 -0
  339. package/dist/chunks/interactiveHelpers-0.6.6-18x9yezm.mjs +1 -0
  340. package/dist/chunks/keybindings-0.6.6-9r4m4jvq.mjs +2 -0
  341. package/dist/chunks/knowledge-0.6.6-1rjjrsqn.mjs +2 -0
  342. package/dist/chunks/latestVersionCache-0.6.6-32rrz0z9.mjs +1 -0
  343. package/dist/chunks/loadAgentsDir-0.6.6-tjygbn96.mjs +1 -0
  344. package/dist/chunks/loadPluginHooks-0.6.6-8xsdzy59.mjs +1 -0
  345. package/dist/chunks/loadPluginHooks-0.6.6-fr4gdkcy.mjs +1 -0
  346. package/dist/chunks/log-0.6.6-6nzgdpd0.mjs +1 -0
  347. package/dist/chunks/main-0.6.6-aq9jq72v.mjs +1 -0
  348. package/dist/chunks/managedEnv-0.6.6-6bth8e56.mjs +1 -0
  349. package/dist/chunks/mcp-0.6.6-4xb16x7y.mjs +1 -0
  350. package/dist/chunks/mcp-0.6.6-chps3y13.mjs +4 -0
  351. package/dist/chunks/mcp-0.6.6-fxy3qcdv.mjs +17 -0
  352. package/dist/chunks/mcpb-0.6.6-bhpebgzm.mjs +1 -0
  353. package/dist/chunks/memory-0.6.6-89t2e497.mjs +3 -0
  354. package/dist/chunks/model-0.6.6-8bpwy4gg.mjs +1 -0
  355. package/dist/chunks/model-0.6.6-m3x9crqt.mjs +2 -0
  356. package/dist/chunks/node-0.6.6-rm65t01m.mjs +12 -0
  357. package/dist/chunks/oauth-0.6.6-akp7n7mb.mjs +1 -0
  358. package/dist/chunks/openaiShim-0.6.6-ft40jfrp.mjs +14 -0
  359. package/dist/chunks/output-style-0.6.6-bvhtp4tc.mjs +1 -0
  360. package/dist/chunks/package-FMOR3ELU-0.6.6-0ykwzcyt.mjs +1 -0
  361. package/dist/chunks/parseConnectUrl-0.6.6-jve0dvpn.mjs +1 -0
  362. package/dist/chunks/parser-0.6.6-xa5qsjfh.mjs +1 -0
  363. package/dist/chunks/passes-0.6.6-tdv74eqj.mjs +1 -0
  364. package/dist/chunks/permissions-0.6.6-46df10nj.mjs +3 -0
  365. package/dist/chunks/permissions-0.6.6-8wcv4q7d.mjs +1 -0
  366. package/dist/chunks/plan-0.6.6-qw8t4gpk.mjs +1 -0
  367. package/dist/chunks/plist-0.6.6-5m3etrhq.mjs +1 -0
  368. package/dist/chunks/plugin-0.6.6-narwef70.mjs +29 -0
  369. package/dist/chunks/pluginStartupCheck-0.6.6-v7kxdq6w.mjs +1 -0
  370. package/dist/chunks/plugins-0.6.6-10y990d0.mjs +9 -0
  371. package/dist/chunks/preActionHook-0.6.6-0vkxazxv.mjs +2 -0
  372. package/dist/chunks/print-0.6.6-ym6tndvq.mjs +57 -0
  373. package/dist/chunks/privacy-settings-0.6.6-05da2gne.mjs +1 -0
  374. package/dist/chunks/process-0.6.6-da3h3zfe.mjs +1 -0
  375. package/dist/chunks/processBashCommand-0.6.6-m76r9et2.mjs +1 -0
  376. package/dist/chunks/processSlashCommand-0.6.6-xxwnh0cf.mjs +9 -0
  377. package/dist/chunks/prompt-0.6.6-60sg3pmt.mjs +1 -0
  378. package/dist/chunks/prompt-0.6.6-vfh4fr6f.mjs +1 -0
  379. package/dist/chunks/prompts-0.6.6-vbfva1a5.mjs +1 -0
  380. package/dist/chunks/protocolHandler-0.6.6-73vezfvr.mjs +13 -0
  381. package/dist/chunks/provider-0.6.6-ch5qq6n3.mjs +2 -0
  382. package/dist/chunks/providerProfiles-0.6.6-jtysbyrm.mjs +1 -0
  383. package/dist/chunks/providerValidation-0.6.6-5509e4cb.mjs +6 -0
  384. package/dist/chunks/rate-limit-options-0.6.6-cfm37mqk.mjs +1 -0
  385. package/dist/chunks/registerSubcommands-0.6.6-7p5mr9t1.mjs +34 -0
  386. package/dist/chunks/registry-0.6.6-z5cnbznq.mjs +1 -0
  387. package/dist/chunks/release-notes-0.6.6-90zjvqjx.mjs +5 -0
  388. package/dist/chunks/reload-plugins-0.6.6-jyxrw2jq.mjs +2 -0
  389. package/dist/chunks/remote-env-0.6.6-wyekcz2k.mjs +1 -0
  390. package/dist/chunks/remoteBridgeCore-0.6.6-favpnrd5.mjs +1 -0
  391. package/dist/chunks/remoteSession-0.6.6-snjkbaw2.mjs +1 -0
  392. package/dist/chunks/rename-0.6.6-3wang66e.mjs +1 -0
  393. package/dist/chunks/replBridgeHandle-0.6.6-dmxdjqjy.mjs +1 -0
  394. package/dist/chunks/replLauncher-0.6.6-bvhzfdx8.mjs +1 -0
  395. package/dist/chunks/resume-0.6.6-zqn712k4.mjs +2 -0
  396. package/dist/chunks/rewind-0.6.6-h8kc53mc.mjs +1 -0
  397. package/dist/chunks/rootOptions-0.6.6-wcam7tjd.mjs +1 -0
  398. package/dist/chunks/sandbox-adapter-0.6.6-qbm1rqdf.mjs +1 -0
  399. package/dist/chunks/sandbox-toggle-0.6.6-m882ckxv.mjs +1 -0
  400. package/dist/chunks/session-0.6.6-ezqqmxrd.mjs +2 -0
  401. package/dist/chunks/sessionDiscovery-0.6.6-0q34cmbe.mjs +1 -0
  402. package/dist/chunks/sessionFileAccessHooks-0.6.6-3tek8yje.mjs +1 -0
  403. package/dist/chunks/sessionStorage-0.6.6-pgfjqhdj.mjs +1 -0
  404. package/dist/chunks/settings-0.6.6-ms6t0ray.mjs +1 -0
  405. package/dist/chunks/setup-0.6.6-n2vjxxmx.mjs +5 -0
  406. package/dist/chunks/sinks-0.6.6-mq00wrfa.mjs +1 -0
  407. package/dist/chunks/skills-0.6.6-vgr1dpf7.mjs +1 -0
  408. package/dist/chunks/startupProfiler-0.6.6-5nbjv2gp.mjs +1 -0
  409. package/dist/chunks/startupUpdateCheck-0.6.6-z6adga96.mjs +1 -0
  410. package/dist/chunks/state-0.6.6-w2grqwqw.mjs +1 -0
  411. package/dist/chunks/stats-0.6.6-z11zcde6.mjs +6 -0
  412. package/dist/chunks/status-0.6.6-vbcqezgp.mjs +1 -0
  413. package/dist/chunks/stickers-0.6.6-c1pczjgd.mjs +1 -0
  414. package/dist/chunks/subprocessEnv-0.6.6-95tf6phx.mjs +1 -0
  415. package/dist/chunks/tasks-0.6.6-pm1cbtt0.mjs +1 -0
  416. package/dist/chunks/teamHelpers-0.6.6-ec57k1fn.mjs +1 -0
  417. package/dist/chunks/teammateModeSnapshot-0.6.6-964bq8fq.mjs +1 -0
  418. package/dist/chunks/teleport-0.6.6-ksymynm4.mjs +1 -0
  419. package/dist/chunks/terminalSetup-0.6.6-r5q2y7w0.mjs +1 -0
  420. package/dist/chunks/theme-0.6.6-y46frztn.mjs +1 -0
  421. package/dist/chunks/thinkback-0.6.6-3j0w6yjk.mjs +1 -0
  422. package/dist/chunks/thinkback-play-0.6.6-rrcqmyxk.mjs +1 -0
  423. package/dist/chunks/toolPool-0.6.6-2jmzd43n.mjs +1 -0
  424. package/dist/chunks/toolSearch-0.6.6-2rrd60cx.mjs +1 -0
  425. package/dist/chunks/tools-0.6.6-13yxm82t.mjs +1 -0
  426. package/dist/chunks/trustedDevice-0.6.6-yk1yrpb0.mjs +1 -0
  427. package/dist/chunks/turndown.cjs-0.6.6-nhq9m5br.mjs +69 -0
  428. package/dist/chunks/types-0.6.6-stnrzm1j.mjs +1 -0
  429. package/dist/chunks/ultrareviewCommand-0.6.6-7ytrj9jv.mjs +4 -0
  430. package/dist/chunks/update-0.6.6-5hf3mst5.mjs +86 -0
  431. package/dist/chunks/upgrade-0.6.6-y2gdvy9z.mjs +1 -0
  432. package/dist/chunks/upload-0.6.6-mwd7k6ym.mjs +7 -0
  433. package/dist/chunks/upstreamproxy-0.6.6-2fc9x5pq.mjs +14 -0
  434. package/dist/chunks/url-handler-napi-0.6.6-gbs8n3ne.mjs +1 -0
  435. package/dist/chunks/usage-0.6.6-8n0sxpw2.mjs +1 -0
  436. package/dist/chunks/util-0.6.6-hpjf8dnn.mjs +1 -0
  437. package/dist/chunks/utils-0.6.6-w937v7sr.mjs +1 -0
  438. package/dist/chunks/vim-0.6.6-b8g833z7.mjs +1 -0
  439. package/dist/chunks/watcher-0.6.6-bsqe9pa4.mjs +1 -0
  440. package/dist/chunks/wiki-0.6.6-2fstcx28.mjs +132 -0
  441. package/dist/chunks/worktree-0.6.6-yctkpbmx.mjs +1 -0
  442. package/dist/chunks/worktreeModeEnabled-0.6.6-yv2bvj70.mjs +1 -0
  443. package/dist/chunks/wrapper-0.6.6-02cwy0nm.mjs +7 -0
  444. package/dist/claudin-vscode.vsix +0 -0
  445. package/dist/cli.mjs +2 -2
  446. package/package.json +14 -14
  447. package/dist/chunks/AgentTool-0.6.4-rbaf1y65.mjs +0 -1
  448. package/dist/chunks/App-0.6.4-rq289jnp.mjs +0 -1
  449. package/dist/chunks/ApproveApiKey-0.6.4-7d5f28j9.mjs +0 -1
  450. package/dist/chunks/AssistantSessionChooser-0.6.4-phb69d3e.mjs +0 -1
  451. package/dist/chunks/AutoModeOptInDialog-0.6.4-9bf4j0dx.mjs +0 -1
  452. package/dist/chunks/BypassPermissionsModeDialog-0.6.4-62rbe590.mjs +0 -1
  453. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.4-5xv95y7k.mjs +0 -1
  454. package/dist/chunks/ConsoleOAuthFlow-0.6.4-7ng7n8ac.mjs +0 -1
  455. package/dist/chunks/DiffDialog-0.6.4-ydwpx8jz.mjs +0 -3
  456. package/dist/chunks/Doctor-0.6.4-r3nh0zs5.mjs +0 -1
  457. package/dist/chunks/Grove-0.6.4-8mwvr7ha.mjs +0 -1
  458. package/dist/chunks/ITermBackend-0.6.4-w345qte9.mjs +0 -1
  459. package/dist/chunks/InvalidConfigDialog-0.6.4-e1xk1r00.mjs +0 -1
  460. package/dist/chunks/InvalidSettingsDialog-0.6.4-7pz7en7r.mjs +0 -1
  461. package/dist/chunks/MigrationDialog-0.6.4-xgqr16p1.mjs +0 -1
  462. package/dist/chunks/Onboarding-0.6.4-2735sbgf.mjs +0 -1
  463. package/dist/chunks/ProviderManager-0.6.4-q840wtmd.mjs +0 -1
  464. package/dist/chunks/REPL-0.6.4-k1gbkvvz.mjs +0 -1
  465. package/dist/chunks/ResumeConversation-0.6.4-mpzvada2.mjs +0 -1
  466. package/dist/chunks/SnapshotUpdateDialog-0.6.4-jctmc6zk.mjs +0 -1
  467. package/dist/chunks/TeleportProgress-0.6.4-gq0hnh6t.mjs +0 -1
  468. package/dist/chunks/TeleportRepoMismatchDialog-0.6.4-21sqsahr.mjs +0 -1
  469. package/dist/chunks/TeleportResumeWrapper-0.6.4-fjbh45wb.mjs +0 -1
  470. package/dist/chunks/TmuxBackend-0.6.4-5w2x0jdm.mjs +0 -9
  471. package/dist/chunks/ToolSearchTool-0.6.4-5qd1qqs9.mjs +0 -1
  472. package/dist/chunks/TrustDialog-0.6.4-rj702s6d.mjs +0 -1
  473. package/dist/chunks/activeProvider-0.6.4-wdg63cg4.mjs +0 -1
  474. package/dist/chunks/add-dir-0.6.4-kchsbt43.mjs +0 -1
  475. package/dist/chunks/agents-0.6.4-99qwf49d.mjs +0 -110
  476. package/dist/chunks/agents-0.6.4-rdvzbjcr.mjs +0 -3
  477. package/dist/chunks/api-0.6.4-9emwrek2.mjs +0 -1
  478. package/dist/chunks/asciicast-0.6.4-v9b43g5d.mjs +0 -1
  479. package/dist/chunks/assistant-0.6.4-f4m6fp3b.mjs +0 -1
  480. package/dist/chunks/auth-0.6.4-767mww9n.mjs +0 -1
  481. package/dist/chunks/auth-0.6.4-sgz2927j.mjs +0 -1
  482. package/dist/chunks/autoMode-0.6.4-n865xxhg.mjs +0 -48
  483. package/dist/chunks/autoUpdater-0.6.4-bvb6j5ck.mjs +0 -1
  484. package/dist/chunks/backgroundHousekeeping-0.6.4-fercqr2y.mjs +0 -1
  485. package/dist/chunks/branch-0.6.4-0hvhjqr5.mjs +0 -4
  486. package/dist/chunks/bridgePointer-0.6.4-dgames2b.mjs +0 -1
  487. package/dist/chunks/btw-0.6.4-fprrp4ch.mjs +0 -1
  488. package/dist/chunks/buddy-0.6.4-0d1rrwbv.mjs +0 -3
  489. package/dist/chunks/cacache-0.6.4-6yj2mrct.mjs +0 -1
  490. package/dist/chunks/cache-probe-0.6.4-x5tn2a2e.mjs +0 -21
  491. package/dist/chunks/cacheStats-0.6.4-ar55ww2f.mjs +0 -4
  492. package/dist/chunks/caches-0.6.4-54fb2qc2.mjs +0 -1
  493. package/dist/chunks/claudeDesktop-0.6.4-h06j868n.mjs +0 -1
  494. package/dist/chunks/claudemd-0.6.4-35r4255p.mjs +0 -1
  495. package/dist/chunks/clear-0.6.4-6chw4mjb.mjs +0 -1
  496. package/dist/chunks/clearTerminal-0.6.4-81zcpvka.mjs +0 -1
  497. package/dist/chunks/cli-0.6.4-00191v0e.mjs +0 -10
  498. package/dist/chunks/cli-0.6.4-02v7f4p3.mjs +0 -2
  499. package/dist/chunks/cli-0.6.4-0dsecg4e.mjs +0 -2
  500. package/dist/chunks/cli-0.6.4-0gnhakty.mjs +0 -42
  501. package/dist/chunks/cli-0.6.4-0m6t3msa.mjs +0 -2
  502. package/dist/chunks/cli-0.6.4-0ngrseg8.mjs +0 -15
  503. package/dist/chunks/cli-0.6.4-167h8t8x.mjs +0 -2
  504. package/dist/chunks/cli-0.6.4-1ery4vpn.mjs +0 -50
  505. package/dist/chunks/cli-0.6.4-1k1e5y32.mjs +0 -2
  506. package/dist/chunks/cli-0.6.4-1mgm8ymv.mjs +0 -3
  507. package/dist/chunks/cli-0.6.4-1nzpzrfm.mjs +0 -2
  508. package/dist/chunks/cli-0.6.4-1qryxm4s.mjs +0 -21
  509. package/dist/chunks/cli-0.6.4-1s60014f.mjs +0 -2
  510. package/dist/chunks/cli-0.6.4-28pnb4ka.mjs +0 -18
  511. package/dist/chunks/cli-0.6.4-29860mke.mjs +0 -2
  512. package/dist/chunks/cli-0.6.4-2d65trmc.mjs +0 -2
  513. package/dist/chunks/cli-0.6.4-2dm4scsb.mjs +0 -2
  514. package/dist/chunks/cli-0.6.4-2dwdm1v9.mjs +0 -2
  515. package/dist/chunks/cli-0.6.4-2fqxn556.mjs +0 -2
  516. package/dist/chunks/cli-0.6.4-2mytx51g.mjs +0 -16
  517. package/dist/chunks/cli-0.6.4-2q70rra3.mjs +0 -2
  518. package/dist/chunks/cli-0.6.4-2qaa0gp3.mjs +0 -2
  519. package/dist/chunks/cli-0.6.4-2sh53v7p.mjs +0 -7
  520. package/dist/chunks/cli-0.6.4-2y7ay1jf.mjs +0 -2
  521. package/dist/chunks/cli-0.6.4-3d8syj43.mjs +0 -15
  522. package/dist/chunks/cli-0.6.4-3rqg480e.mjs +0 -2
  523. package/dist/chunks/cli-0.6.4-43y102gt.mjs +0 -2
  524. package/dist/chunks/cli-0.6.4-48fcth51.mjs +0 -2
  525. package/dist/chunks/cli-0.6.4-4b3h6h1j.mjs +0 -2
  526. package/dist/chunks/cli-0.6.4-4dtvmfyr.mjs +0 -24
  527. package/dist/chunks/cli-0.6.4-4g9qybcx.mjs +0 -5324
  528. package/dist/chunks/cli-0.6.4-4jc68p21.mjs +0 -2
  529. package/dist/chunks/cli-0.6.4-4mfc5kte.mjs +0 -2
  530. package/dist/chunks/cli-0.6.4-4qg60938.mjs +0 -5
  531. package/dist/chunks/cli-0.6.4-4qyz0e3r.mjs +0 -2
  532. package/dist/chunks/cli-0.6.4-55a83gct.mjs +0 -2
  533. package/dist/chunks/cli-0.6.4-5eshcq2g.mjs +0 -2
  534. package/dist/chunks/cli-0.6.4-5j8b83wg.mjs +0 -2
  535. package/dist/chunks/cli-0.6.4-6czv84g6.mjs +0 -2
  536. package/dist/chunks/cli-0.6.4-771h1906.mjs +0 -2
  537. package/dist/chunks/cli-0.6.4-78evvtpq.mjs +0 -2
  538. package/dist/chunks/cli-0.6.4-7djzrbzn.mjs +0 -4
  539. package/dist/chunks/cli-0.6.4-7htjg50k.mjs +0 -2
  540. package/dist/chunks/cli-0.6.4-7jvtehkv.mjs +0 -2
  541. package/dist/chunks/cli-0.6.4-7keg9eew.mjs +0 -45
  542. package/dist/chunks/cli-0.6.4-7xp2yhpq.mjs +0 -2
  543. package/dist/chunks/cli-0.6.4-89pes3g1.mjs +0 -2
  544. package/dist/chunks/cli-0.6.4-8jwbt311.mjs +0 -4
  545. package/dist/chunks/cli-0.6.4-95vk17cy.mjs +0 -2
  546. package/dist/chunks/cli-0.6.4-96m5w0az.mjs +0 -2
  547. package/dist/chunks/cli-0.6.4-9ab34q29.mjs +0 -2
  548. package/dist/chunks/cli-0.6.4-9j2480tb.mjs +0 -3
  549. package/dist/chunks/cli-0.6.4-9k5r0pfb.mjs +0 -1
  550. package/dist/chunks/cli-0.6.4-9wdpd5tf.mjs +0 -2
  551. package/dist/chunks/cli-0.6.4-9ydhssth.mjs +0 -2
  552. package/dist/chunks/cli-0.6.4-9z6f4aka.mjs +0 -2
  553. package/dist/chunks/cli-0.6.4-a1der2pe.mjs +0 -2
  554. package/dist/chunks/cli-0.6.4-a4wjm2rf.mjs +0 -58
  555. package/dist/chunks/cli-0.6.4-a772rm3j.mjs +0 -3
  556. package/dist/chunks/cli-0.6.4-a7tb1zsc.mjs +0 -3
  557. package/dist/chunks/cli-0.6.4-aprgpdp6.mjs +0 -2
  558. package/dist/chunks/cli-0.6.4-bbsbw8kz.mjs +0 -2
  559. package/dist/chunks/cli-0.6.4-bgwzkgj9.mjs +0 -2
  560. package/dist/chunks/cli-0.6.4-btcax77x.mjs +0 -2
  561. package/dist/chunks/cli-0.6.4-bvrcy0gs.mjs +0 -2
  562. package/dist/chunks/cli-0.6.4-cgktpczq.mjs +0 -2
  563. package/dist/chunks/cli-0.6.4-cp53mw1m.mjs +0 -2
  564. package/dist/chunks/cli-0.6.4-cttwajrp.mjs +0 -2
  565. package/dist/chunks/cli-0.6.4-cxhs267r.mjs +0 -2
  566. package/dist/chunks/cli-0.6.4-cy7jqdcj.mjs +0 -2
  567. package/dist/chunks/cli-0.6.4-da88vvgh.mjs +0 -2
  568. package/dist/chunks/cli-0.6.4-dhyghbjg.mjs +0 -2
  569. package/dist/chunks/cli-0.6.4-dny0rntq.mjs +0 -2
  570. package/dist/chunks/cli-0.6.4-dtrjgbbz.mjs +0 -2
  571. package/dist/chunks/cli-0.6.4-dvh5yb9z.mjs +0 -2
  572. package/dist/chunks/cli-0.6.4-dz01y28k.mjs +0 -133
  573. package/dist/chunks/cli-0.6.4-dzer59m8.mjs +0 -2
  574. package/dist/chunks/cli-0.6.4-e0pqs0qg.mjs +0 -4
  575. package/dist/chunks/cli-0.6.4-e4nxzjbd.mjs +0 -3
  576. package/dist/chunks/cli-0.6.4-ehexec8h.mjs +0 -2
  577. package/dist/chunks/cli-0.6.4-ejrq8g7w.mjs +0 -2
  578. package/dist/chunks/cli-0.6.4-ekg42ba5.mjs +0 -2
  579. package/dist/chunks/cli-0.6.4-em2mfvpg.mjs +0 -193
  580. package/dist/chunks/cli-0.6.4-ex2d76ze.mjs +0 -4
  581. package/dist/chunks/cli-0.6.4-eykta4ak.mjs +0 -2
  582. package/dist/chunks/cli-0.6.4-f1ya630v.mjs +0 -39
  583. package/dist/chunks/cli-0.6.4-f51bqfv1.mjs +0 -4
  584. package/dist/chunks/cli-0.6.4-fg71wev8.mjs +0 -2
  585. package/dist/chunks/cli-0.6.4-fh1fzqd2.mjs +0 -133
  586. package/dist/chunks/cli-0.6.4-fhcsv0k7.mjs +0 -2
  587. package/dist/chunks/cli-0.6.4-fppw8yjy.mjs +0 -2
  588. package/dist/chunks/cli-0.6.4-g1kweb8j.mjs +0 -17
  589. package/dist/chunks/cli-0.6.4-g1qw18ad.mjs +0 -2
  590. package/dist/chunks/cli-0.6.4-g2a0w8wh.mjs +0 -3
  591. package/dist/chunks/cli-0.6.4-g37ywszt.mjs +0 -2
  592. package/dist/chunks/cli-0.6.4-gbc9szsq.mjs +0 -20
  593. package/dist/chunks/cli-0.6.4-gdvys9qy.mjs +0 -2
  594. package/dist/chunks/cli-0.6.4-ge6qg76s.mjs +0 -18
  595. package/dist/chunks/cli-0.6.4-ggxbtbd1.mjs +0 -2
  596. package/dist/chunks/cli-0.6.4-ghagvvva.mjs +0 -2
  597. package/dist/chunks/cli-0.6.4-gyb3cp0m.mjs +0 -15
  598. package/dist/chunks/cli-0.6.4-h2c5gxa3.mjs +0 -2
  599. package/dist/chunks/cli-0.6.4-h598qtx2.mjs +0 -2
  600. package/dist/chunks/cli-0.6.4-h9ncym59.mjs +0 -2
  601. package/dist/chunks/cli-0.6.4-hb3rny4x.mjs +0 -3
  602. package/dist/chunks/cli-0.6.4-hhaw00mw.mjs +0 -2
  603. package/dist/chunks/cli-0.6.4-hk0wy6ay.mjs +0 -2
  604. package/dist/chunks/cli-0.6.4-hrs590q0.mjs +0 -2
  605. package/dist/chunks/cli-0.6.4-hx250zvn.mjs +0 -2
  606. package/dist/chunks/cli-0.6.4-j61ta5y1.mjs +0 -2
  607. package/dist/chunks/cli-0.6.4-j7hr5rd4.mjs +0 -2
  608. package/dist/chunks/cli-0.6.4-jc2r75s6.mjs +0 -2
  609. package/dist/chunks/cli-0.6.4-jg4xm27s.mjs +0 -2
  610. package/dist/chunks/cli-0.6.4-jh0d8t91.mjs +0 -9
  611. package/dist/chunks/cli-0.6.4-jk0aqvhn.mjs +0 -2
  612. package/dist/chunks/cli-0.6.4-jmvxa7qj.mjs +0 -2
  613. package/dist/chunks/cli-0.6.4-jn11nc5a.mjs +0 -2
  614. package/dist/chunks/cli-0.6.4-jra8pavs.mjs +0 -2
  615. package/dist/chunks/cli-0.6.4-jrweqe5y.mjs +0 -2
  616. package/dist/chunks/cli-0.6.4-jvfz5yaf.mjs +0 -2
  617. package/dist/chunks/cli-0.6.4-k2azfhje.mjs +0 -12
  618. package/dist/chunks/cli-0.6.4-k498jsqp.mjs +0 -9
  619. package/dist/chunks/cli-0.6.4-k6a4gc0p.mjs +0 -3
  620. package/dist/chunks/cli-0.6.4-k76c1cdx.mjs +0 -2
  621. package/dist/chunks/cli-0.6.4-kkwh828j.mjs +0 -2
  622. package/dist/chunks/cli-0.6.4-ksf3bj49.mjs +0 -2
  623. package/dist/chunks/cli-0.6.4-kygb95p8.mjs +0 -2
  624. package/dist/chunks/cli-0.6.4-m0b0hm20.mjs +0 -2
  625. package/dist/chunks/cli-0.6.4-ms7sef7r.mjs +0 -2
  626. package/dist/chunks/cli-0.6.4-n3wmzz8w.mjs +0 -2
  627. package/dist/chunks/cli-0.6.4-n9mgjg26.mjs +0 -2
  628. package/dist/chunks/cli-0.6.4-nscxc6w9.mjs +0 -2
  629. package/dist/chunks/cli-0.6.4-p1yyrrqa.mjs +0 -2
  630. package/dist/chunks/cli-0.6.4-p56yx5pd.mjs +0 -3
  631. package/dist/chunks/cli-0.6.4-p7mvm2y6.mjs +0 -5
  632. package/dist/chunks/cli-0.6.4-p7q1dk2n.mjs +0 -2
  633. package/dist/chunks/cli-0.6.4-pd75v1wy.mjs +0 -6
  634. package/dist/chunks/cli-0.6.4-pdn08sja.mjs +0 -2
  635. package/dist/chunks/cli-0.6.4-pg577m2t.mjs +0 -18
  636. package/dist/chunks/cli-0.6.4-pjk8hxs1.mjs +0 -4
  637. package/dist/chunks/cli-0.6.4-pp4r33sa.mjs +0 -4
  638. package/dist/chunks/cli-0.6.4-pqdfmet2.mjs +0 -4
  639. package/dist/chunks/cli-0.6.4-prdj94yp.mjs +0 -4
  640. package/dist/chunks/cli-0.6.4-prv34fmj.mjs +0 -2
  641. package/dist/chunks/cli-0.6.4-q45r4rnd.mjs +0 -2
  642. package/dist/chunks/cli-0.6.4-qcpjz3yn.mjs +0 -2
  643. package/dist/chunks/cli-0.6.4-qxhfaxsk.mjs +0 -2
  644. package/dist/chunks/cli-0.6.4-rdtbn65d.mjs +0 -2
  645. package/dist/chunks/cli-0.6.4-rf4gtxa6.mjs +0 -2
  646. package/dist/chunks/cli-0.6.4-rqmfmwew.mjs +0 -4
  647. package/dist/chunks/cli-0.6.4-rw4dqk3e.mjs +0 -2
  648. package/dist/chunks/cli-0.6.4-s062axqp.mjs +0 -67
  649. package/dist/chunks/cli-0.6.4-sd36e6nd.mjs +0 -26
  650. package/dist/chunks/cli-0.6.4-sebyspe3.mjs +0 -2
  651. package/dist/chunks/cli-0.6.4-sg59x1y7.mjs +0 -2
  652. package/dist/chunks/cli-0.6.4-sk4r23n0.mjs +0 -2
  653. package/dist/chunks/cli-0.6.4-spysehd5.mjs +0 -2
  654. package/dist/chunks/cli-0.6.4-sz5jkrwv.mjs +0 -8
  655. package/dist/chunks/cli-0.6.4-t13eh9gb.mjs +0 -2
  656. package/dist/chunks/cli-0.6.4-t87tgqs2.mjs +0 -2
  657. package/dist/chunks/cli-0.6.4-tda6fzwk.mjs +0 -2
  658. package/dist/chunks/cli-0.6.4-tgtxrvzn.mjs +0 -3
  659. package/dist/chunks/cli-0.6.4-ttyv846t.mjs +0 -2
  660. package/dist/chunks/cli-0.6.4-v050kzdd.mjs +0 -2
  661. package/dist/chunks/cli-0.6.4-v2fsc12w.mjs +0 -2
  662. package/dist/chunks/cli-0.6.4-v3ym5bjk.mjs +0 -2
  663. package/dist/chunks/cli-0.6.4-vawbj80d.mjs +0 -5
  664. package/dist/chunks/cli-0.6.4-vekd5qeh.mjs +0 -3
  665. package/dist/chunks/cli-0.6.4-vg82smm8.mjs +0 -24
  666. package/dist/chunks/cli-0.6.4-vs7kwtc6.mjs +0 -2
  667. package/dist/chunks/cli-0.6.4-vyqg6c95.mjs +0 -3
  668. package/dist/chunks/cli-0.6.4-vyyncn9y.mjs +0 -34
  669. package/dist/chunks/cli-0.6.4-wpzc8xj5.mjs +0 -3
  670. package/dist/chunks/cli-0.6.4-x0pe866a.mjs +0 -2
  671. package/dist/chunks/cli-0.6.4-x3pc9zn1.mjs +0 -6
  672. package/dist/chunks/cli-0.6.4-x6d6qxpg.mjs +0 -2
  673. package/dist/chunks/cli-0.6.4-x6npewbm.mjs +0 -6
  674. package/dist/chunks/cli-0.6.4-x7ss8dse.mjs +0 -2
  675. package/dist/chunks/cli-0.6.4-x84dfqja.mjs +0 -2
  676. package/dist/chunks/cli-0.6.4-xf6vdp7p.mjs +0 -2
  677. package/dist/chunks/cli-0.6.4-xgmmcr56.mjs +0 -25
  678. package/dist/chunks/cli-0.6.4-xh0mhy0q.mjs +0 -2
  679. package/dist/chunks/cli-0.6.4-xj949nnt.mjs +0 -2
  680. package/dist/chunks/cli-0.6.4-xm44y40c.mjs +0 -2
  681. package/dist/chunks/cli-0.6.4-y9nrcnx6.mjs +0 -2
  682. package/dist/chunks/cli-0.6.4-yak49q2f.mjs +0 -12
  683. package/dist/chunks/cli-0.6.4-ymgdd6a7.mjs +0 -2
  684. package/dist/chunks/cli-0.6.4-ysvx8vre.mjs +0 -12
  685. package/dist/chunks/cli-0.6.4-yxqfeka0.mjs +0 -2
  686. package/dist/chunks/cli-0.6.4-z0j0rsqe.mjs +0 -2
  687. package/dist/chunks/cli-0.6.4-z3hp0qzv.mjs +0 -59
  688. package/dist/chunks/cli-0.6.4-z63xq66c.mjs +0 -2
  689. package/dist/chunks/cli-0.6.4-zgzya3hb.mjs +0 -17
  690. package/dist/chunks/cli-0.6.4-zkfpt86n.mjs +0 -2
  691. package/dist/chunks/cli-0.6.4-zss3bwjp.mjs +0 -2
  692. package/dist/chunks/cli-0.6.4-ztqssjbf.mjs +0 -2
  693. package/dist/chunks/client-0.6.4-ba2mtgjd.mjs +0 -1
  694. package/dist/chunks/color-0.6.4-2g7drx0s.mjs +0 -1
  695. package/dist/chunks/compact-0.6.4-tnqd9mmn.mjs +0 -3
  696. package/dist/chunks/config-0.6.4-3bhr23pq.mjs +0 -1
  697. package/dist/chunks/config-0.6.4-x56wgtde.mjs +0 -1
  698. package/dist/chunks/constants-0.6.4-cy9scgrh.mjs +0 -1
  699. package/dist/chunks/context-0.6.4-sjcg7yxa.mjs +0 -1
  700. package/dist/chunks/context-noninteractive-0.6.4-630bqrtn.mjs +0 -1
  701. package/dist/chunks/conversation-0.6.4-4wkb13gm.mjs +0 -1
  702. package/dist/chunks/copilotHeaders-0.6.4-6ygmq0rm.mjs +0 -1
  703. package/dist/chunks/copy-0.6.4-bgxrhckq.mjs +0 -9
  704. package/dist/chunks/cost-0.6.4-w83wc8ng.mjs +0 -1
  705. package/dist/chunks/createSSHSession-0.6.4-xcjsx731.mjs +0 -1
  706. package/dist/chunks/createSession-0.6.4-wsz3r56j.mjs +0 -1
  707. package/dist/chunks/debug-0.6.4-98yk6kds.mjs +0 -1
  708. package/dist/chunks/defaultActionDeps-0.6.4-gnr6f4bm.mjs +0 -1365
  709. package/dist/chunks/desktop-0.6.4-hpbrkj08.mjs +0 -1
  710. package/dist/chunks/detectRepository-0.6.4-jtg1wvsa.mjs +0 -1
  711. package/dist/chunks/detection-0.6.4-dqwz1bq1.mjs +0 -1
  712. package/dist/chunks/diff-0.6.4-6mtph9me.mjs +0 -1
  713. package/dist/chunks/doctor-0.6.4-rhc37adv.mjs +0 -1
  714. package/dist/chunks/doctorDiagnostic-0.6.4-dwt35xp9.mjs +0 -1
  715. package/dist/chunks/earlyInput-0.6.4-gwc98r30.mjs +0 -1
  716. package/dist/chunks/effort-0.6.4-gat4neps.mjs +0 -10
  717. package/dist/chunks/envUtils-0.6.4-y2b3abdc.mjs +0 -1
  718. package/dist/chunks/environmentSelection-0.6.4-xxrzk7m6.mjs +0 -1
  719. package/dist/chunks/environments-0.6.4-h1v61wzy.mjs +0 -1
  720. package/dist/chunks/errors-0.6.4-ca74wb6q.mjs +0 -1
  721. package/dist/chunks/exampleCommands-0.6.4-g36htc09.mjs +0 -1
  722. package/dist/chunks/exit-0.6.4-z7yj01cx.mjs +0 -1
  723. package/dist/chunks/export-0.6.4-ffzrse4n.mjs +0 -2
  724. package/dist/chunks/extra-usage-0.6.4-d23skk9c.mjs +0 -1
  725. package/dist/chunks/extra-usage-noninteractive-0.6.4-0akfkh19.mjs +0 -1
  726. package/dist/chunks/fast-0.6.4-dy9ew4g1.mjs +0 -1
  727. package/dist/chunks/feedback-0.6.4-5pw5kr6j.mjs +0 -14
  728. package/dist/chunks/firstPartyEventLogger-0.6.4-58n8gvjr.mjs +0 -1
  729. package/dist/chunks/git-0.6.4-5p9es5sh.mjs +0 -1
  730. package/dist/chunks/githubModelsCredentials-0.6.4-c75tjtm6.mjs +0 -1
  731. package/dist/chunks/goal-0.6.4-05yfbtf5.mjs +0 -4
  732. package/dist/chunks/grove-0.6.4-3mxw3jbp.mjs +0 -1
  733. package/dist/chunks/growthbook-0.6.4-w1a2ja8q.mjs +0 -1
  734. package/dist/chunks/headless-0.6.4-1b8pxyk6.mjs +0 -2
  735. package/dist/chunks/heapdump-0.6.4-ckft18df.mjs +0 -6
  736. package/dist/chunks/help-0.6.4-1qswzq2t.mjs +0 -1
  737. package/dist/chunks/hookChains-0.6.4-mc6w2yn4.mjs +0 -3
  738. package/dist/chunks/hooks-0.6.4-zqycdaww.mjs +0 -1
  739. package/dist/chunks/hooks-0.6.4-zw8ak2ae.mjs +0 -79
  740. package/dist/chunks/ide-0.6.4-kjaythhf.mjs +0 -3
  741. package/dist/chunks/image-processor-napi-0.6.4-9n32xq4y.mjs +0 -1
  742. package/dist/chunks/index-0.6.4-1eqjmyfc.mjs +0 -1
  743. package/dist/chunks/index-0.6.4-5x2zgy8s.mjs +0 -1
  744. package/dist/chunks/index-0.6.4-6er8ykqb.mjs +0 -1
  745. package/dist/chunks/index-0.6.4-6z8pdxeg.mjs +0 -1
  746. package/dist/chunks/index-0.6.4-8gxkz67a.mjs +0 -1
  747. package/dist/chunks/index-0.6.4-ay6td6v7.mjs +0 -1
  748. package/dist/chunks/index-0.6.4-bf4fb2rv.mjs +0 -1
  749. package/dist/chunks/index-0.6.4-cs4qnyse.mjs +0 -9
  750. package/dist/chunks/index-0.6.4-d8a7z3cd.mjs +0 -1
  751. package/dist/chunks/index-0.6.4-e1xb3q84.mjs +0 -1
  752. package/dist/chunks/index-0.6.4-fapqkd13.mjs +0 -30
  753. package/dist/chunks/index-0.6.4-fsypm1g5.mjs +0 -1
  754. package/dist/chunks/index-0.6.4-j1dpgmwz.mjs +0 -5
  755. package/dist/chunks/index-0.6.4-k5z3btpk.mjs +0 -1
  756. package/dist/chunks/index-0.6.4-kv8v270h.mjs +0 -1
  757. package/dist/chunks/index-0.6.4-nn5ynnfb.mjs +0 -2
  758. package/dist/chunks/index-0.6.4-np003dn4.mjs +0 -2
  759. package/dist/chunks/index-0.6.4-qtcndy07.mjs +0 -1
  760. package/dist/chunks/index-0.6.4-s0gg7sga.mjs +0 -1
  761. package/dist/chunks/index-0.6.4-scbwf11t.mjs +0 -9
  762. package/dist/chunks/index-0.6.4-sqrhv68x.mjs +0 -17
  763. package/dist/chunks/index-0.6.4-w93mdh3w.mjs +0 -1
  764. package/dist/chunks/init-0.6.4-ccs2p8cg.mjs +0 -1
  765. package/dist/chunks/initReplBridge-0.6.4-7cnffgw6.mjs +0 -1
  766. package/dist/chunks/ink-0.6.4-kv9v236j.mjs +0 -1
  767. package/dist/chunks/insights-0.6.4-v475bskf.mjs +0 -870
  768. package/dist/chunks/install-0.6.4-9x6x6d7w.mjs +0 -1
  769. package/dist/chunks/install-github-app-0.6.4-e0hnh1ac.mjs +0 -149
  770. package/dist/chunks/install-slack-app-0.6.4-5m1bq4zr.mjs +0 -1
  771. package/dist/chunks/instrumentation-0.6.4-j0dm5kvt.mjs +0 -1
  772. package/dist/chunks/interactiveHelpers-0.6.4-trjfh09v.mjs +0 -1
  773. package/dist/chunks/keybindings-0.6.4-52xyg2q7.mjs +0 -2
  774. package/dist/chunks/knowledge-0.6.4-3pd8yspr.mjs +0 -2
  775. package/dist/chunks/latestVersionCache-0.6.4-6nv1r43c.mjs +0 -1
  776. package/dist/chunks/loadAgentsDir-0.6.4-2f1egc65.mjs +0 -1
  777. package/dist/chunks/loadPluginHooks-0.6.4-6bdefjx0.mjs +0 -1
  778. package/dist/chunks/loadPluginHooks-0.6.4-jg6hn8q1.mjs +0 -1
  779. package/dist/chunks/log-0.6.4-byx1v0aw.mjs +0 -1
  780. package/dist/chunks/main-0.6.4-7kgs4wzg.mjs +0 -1
  781. package/dist/chunks/managedEnv-0.6.4-seg7a473.mjs +0 -1
  782. package/dist/chunks/mcp-0.6.4-fme3jax5.mjs +0 -17
  783. package/dist/chunks/mcp-0.6.4-gw2k9j0s.mjs +0 -4
  784. package/dist/chunks/mcp-0.6.4-hz4ymzf8.mjs +0 -1
  785. package/dist/chunks/mcpb-0.6.4-rm87xg1m.mjs +0 -1
  786. package/dist/chunks/memory-0.6.4-hdem4rfy.mjs +0 -3
  787. package/dist/chunks/mobile-0.6.4-xga427dx.mjs +0 -2
  788. package/dist/chunks/model-0.6.4-e7swq7hs.mjs +0 -1
  789. package/dist/chunks/model-0.6.4-raaz0pn8.mjs +0 -2
  790. package/dist/chunks/node-0.6.4-2mhf46p7.mjs +0 -12
  791. package/dist/chunks/oauth-0.6.4-de05kmr6.mjs +0 -1
  792. package/dist/chunks/openaiShim-0.6.4-shaa1wsv.mjs +0 -14
  793. package/dist/chunks/output-style-0.6.4-gfd6r8hz.mjs +0 -1
  794. package/dist/chunks/package-D6422PQU-0.6.4-syh17p64.mjs +0 -1
  795. package/dist/chunks/parseConnectUrl-0.6.4-k2eex22j.mjs +0 -1
  796. package/dist/chunks/parser-0.6.4-43t4x7r9.mjs +0 -1
  797. package/dist/chunks/passes-0.6.4-tbj019p0.mjs +0 -1
  798. package/dist/chunks/permissions-0.6.4-d0fw76d7.mjs +0 -3
  799. package/dist/chunks/plan-0.6.4-084fq0kq.mjs +0 -1
  800. package/dist/chunks/plist-0.6.4-439zn1sw.mjs +0 -1
  801. package/dist/chunks/plugin-0.6.4-mnsbmvwr.mjs +0 -29
  802. package/dist/chunks/pluginStartupCheck-0.6.4-t2kn51a4.mjs +0 -1
  803. package/dist/chunks/plugins-0.6.4-630t2jf7.mjs +0 -9
  804. package/dist/chunks/preActionHook-0.6.4-gfadf2sk.mjs +0 -2
  805. package/dist/chunks/print-0.6.4-pw4vrnzd.mjs +0 -57
  806. package/dist/chunks/privacy-settings-0.6.4-b97bep23.mjs +0 -1
  807. package/dist/chunks/process-0.6.4-yewqx1g2.mjs +0 -1
  808. package/dist/chunks/processBashCommand-0.6.4-64reh5jq.mjs +0 -1
  809. package/dist/chunks/processSlashCommand-0.6.4-46w7k3kw.mjs +0 -9
  810. package/dist/chunks/prompt-0.6.4-1dfbspxp.mjs +0 -1
  811. package/dist/chunks/prompt-0.6.4-ax8j0qse.mjs +0 -1
  812. package/dist/chunks/prompts-0.6.4-avjtc7j4.mjs +0 -1
  813. package/dist/chunks/protocolHandler-0.6.4-z0382sns.mjs +0 -13
  814. package/dist/chunks/provider-0.6.4-dww4c5j2.mjs +0 -2
  815. package/dist/chunks/providerProfiles-0.6.4-phwwz4cg.mjs +0 -1
  816. package/dist/chunks/providerValidation-0.6.4-zctdw7r7.mjs +0 -6
  817. package/dist/chunks/rate-limit-options-0.6.4-sydaxbv7.mjs +0 -1
  818. package/dist/chunks/registerSubcommands-0.6.4-ejhhvkd5.mjs +0 -34
  819. package/dist/chunks/registry-0.6.4-kb0x4rx3.mjs +0 -1
  820. package/dist/chunks/release-notes-0.6.4-es6sgycw.mjs +0 -5
  821. package/dist/chunks/reload-plugins-0.6.4-z5560vpf.mjs +0 -2
  822. package/dist/chunks/remote-env-0.6.4-6ypd7mgt.mjs +0 -1
  823. package/dist/chunks/remoteBridgeCore-0.6.4-r2nre1by.mjs +0 -1
  824. package/dist/chunks/remoteSession-0.6.4-jhazvxam.mjs +0 -1
  825. package/dist/chunks/rename-0.6.4-wnm225zc.mjs +0 -1
  826. package/dist/chunks/replBridgeHandle-0.6.4-90waxyt2.mjs +0 -1
  827. package/dist/chunks/replLauncher-0.6.4-fqvqymes.mjs +0 -1
  828. package/dist/chunks/resume-0.6.4-2edgjvxb.mjs +0 -2
  829. package/dist/chunks/rewind-0.6.4-43tzjabn.mjs +0 -1
  830. package/dist/chunks/rootOptions-0.6.4-efwh7nb7.mjs +0 -1
  831. package/dist/chunks/sandbox-adapter-0.6.4-7ccq9g0r.mjs +0 -1
  832. package/dist/chunks/sandbox-toggle-0.6.4-ca6p1txa.mjs +0 -1
  833. package/dist/chunks/session-0.6.4-xqz0b6bv.mjs +0 -2
  834. package/dist/chunks/sessionDiscovery-0.6.4-zhn2re2r.mjs +0 -1
  835. package/dist/chunks/sessionFileAccessHooks-0.6.4-0s8vv82b.mjs +0 -1
  836. package/dist/chunks/sessionStorage-0.6.4-k27431kx.mjs +0 -1
  837. package/dist/chunks/settings-0.6.4-xg6qae4k.mjs +0 -1
  838. package/dist/chunks/setup-0.6.4-zc0wstra.mjs +0 -5
  839. package/dist/chunks/sinks-0.6.4-3rycgm4d.mjs +0 -1
  840. package/dist/chunks/skills-0.6.4-jwf0fht6.mjs +0 -1
  841. package/dist/chunks/startupProfiler-0.6.4-6c1wp85a.mjs +0 -1
  842. package/dist/chunks/startupUpdateCheck-0.6.4-xqbvq5b5.mjs +0 -1
  843. package/dist/chunks/state-0.6.4-p0ddysh2.mjs +0 -1
  844. package/dist/chunks/stats-0.6.4-hys6q4f4.mjs +0 -6
  845. package/dist/chunks/status-0.6.4-5f8q60ey.mjs +0 -1
  846. package/dist/chunks/stickers-0.6.4-tftjq5eh.mjs +0 -1
  847. package/dist/chunks/subprocessEnv-0.6.4-gz5jdaaq.mjs +0 -1
  848. package/dist/chunks/tasks-0.6.4-s9qwaetv.mjs +0 -1
  849. package/dist/chunks/teamHelpers-0.6.4-h72qp38f.mjs +0 -1
  850. package/dist/chunks/teammateModeSnapshot-0.6.4-ezcvghhw.mjs +0 -1
  851. package/dist/chunks/teleport-0.6.4-e668czw7.mjs +0 -1
  852. package/dist/chunks/terminalSetup-0.6.4-53azbkac.mjs +0 -1
  853. package/dist/chunks/theme-0.6.4-zhw8bpdv.mjs +0 -1
  854. package/dist/chunks/thinkback-0.6.4-cpckywc7.mjs +0 -1
  855. package/dist/chunks/thinkback-play-0.6.4-ke47vrva.mjs +0 -1
  856. package/dist/chunks/toolPool-0.6.4-whn705s5.mjs +0 -1
  857. package/dist/chunks/toolSearch-0.6.4-80h4rrgj.mjs +0 -1
  858. package/dist/chunks/tools-0.6.4-4kf64373.mjs +0 -1
  859. package/dist/chunks/trustedDevice-0.6.4-zbvda07m.mjs +0 -1
  860. package/dist/chunks/turndown.cjs-0.6.4-ghgzppms.mjs +0 -69
  861. package/dist/chunks/ultrareviewCommand-0.6.4-r028gcax.mjs +0 -4
  862. package/dist/chunks/update-0.6.4-a233wpzj.mjs +0 -86
  863. package/dist/chunks/upgrade-0.6.4-mx4jnstf.mjs +0 -1
  864. package/dist/chunks/upstreamproxy-0.6.4-4cmr0qtj.mjs +0 -14
  865. package/dist/chunks/url-handler-napi-0.6.4-vt0a3wdc.mjs +0 -1
  866. package/dist/chunks/usage-0.6.4-8kncs1zq.mjs +0 -1
  867. package/dist/chunks/util-0.6.4-afjsm52j.mjs +0 -1
  868. package/dist/chunks/utils-0.6.4-r5qbctxg.mjs +0 -1
  869. package/dist/chunks/vim-0.6.4-qb1hpv1s.mjs +0 -1
  870. package/dist/chunks/watcher-0.6.4-w81paz2g.mjs +0 -1
  871. package/dist/chunks/wiki-0.6.4-3wc3s65f.mjs +0 -132
  872. package/dist/chunks/worktree-0.6.4-hy75224j.mjs +0 -1
  873. package/dist/chunks/worktreeModeEnabled-0.6.4-7wyg7p08.mjs +0 -1
  874. package/dist/chunks/wrapper-0.6.4-vqj09efm.mjs +0 -7
  875. /package/dist/chunks/{cli-0.6.4-yrfkm9my.mjs → cli-0.6.6-py5db2ds.mjs} +0 -0
@@ -0,0 +1,3 @@
1
+ import{qg as RY,rg as BQ}from"./cli-0.6.6-d0qrt51j.mjs";import{sg as kq,ug as Mq,vg as WX}from"./cli-0.6.6-ezhp9zxv.mjs";import{Ig as IJ,Jg as AQ,Kg as NY,Lg as UQ}from"./cli-0.6.6-mrkkgjdh.mjs";import{Mg as FY,Ng as MQ}from"./cli-0.6.6-44bk8ev1.mjs";import{Og as LY,Pg as IQ,Qg as PY,Rg as EQ}from"./cli-0.6.6-drg8zfkg.mjs";import{Sg as Cq,Tg as l0,Vg as HY,Wg as DY}from"./cli-0.6.6-ap1eg2xa.mjs";import{ni as Lq,oi as GX}from"./cli-0.6.6-7n7fwzth.mjs";import{$u as qZ,Ay as VX,BR as JQ,Ds as Rq,Es as n0,Gn as FQ,Gs as XX,IR as UY,OE as TZ,OI as BJ,PE as QQ,PI as PQ,QF as QZ,QQ as LZ,RF as XZ,SF as GZ,SR as BY,So as XY,TF as VZ,TI as YJ,TR as IY,To as NQ,UF as WZ,UI as BZ,VF as KZ,VI as IZ,WF as OZ,WI as EZ,XF as HZ,XR as SQ,YE as T0,YF as DZ,Yu as K0,ZE as ZQ,ZF as zZ,Zu as GY,_E as PZ,_F as dq,_u as VY,cn as Z0,dn as zQ,eL as R0,en as C,fL as TJ,fn as f0,gn as p,hn as XJ,kn as S0,ln as FJ,rn as UJ,sH as OY,tH as LQ,vn as QY,zy as Pq}from"./cli-0.6.6-23snct9d.mjs";import{RS as WY,SS as KY,WS as RQ}from"./cli-0.6.6-xtj65dsh.mjs";import{GU as kQ,yU as zY}from"./cli-0.6.6-ar43nqjq.mjs";import{$V as v0,AW as fq,BW as DX,_V as V0,mW as l,nW as qY,oW as w0,rW as Iq,sW as HX,uW as C0,vW as Eq,xW as zJ}from"./cli-0.6.6-1a0fnhh0.mjs";import{JY as U,KX as ZY,LY as V,OX as DQ,nY as YY,oX as U0,oZ as H0,xX as e0,yX as JY}from"./cli-0.6.6-en2sexw5.mjs";import{t1 as n,u1 as Q,v1 as H,w1 as $}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as s}from"./cli-0.6.6-c267ckfv.mjs";import{F1 as lY,G1 as nQ}from"./cli-0.6.6-4tp2yb2x.mjs";import{G3 as HQ,O5 as vJ,V2 as h0,W2 as OQ,b6 as QX,e4 as Nq,i4 as tZ,m2 as Fq,m3 as m0,n3 as MJ,p3 as oZ,q3 as AJ,q4 as qJ,r2 as qX,s3 as aZ,u4 as eZ,x3 as sZ}from"./cli-0.6.6-8yvh28tb.mjs";import{x6 as D0,y6 as GQ}from"./cli-0.6.6-wctj7gmc.mjs";import{Bda as B0,Eda as lZ,J7 as O0,K7 as DJ,Qda as N0,Uaa as PJ,Waa as x,Wba as T,Yda as QJ,Zaa as kJ,Zba as S,_ba as uZ,dca as dZ,dda as SY,gda as TY,hba as KQ,hca as iZ,hda as TQ,i$ as vZ,ica as rZ,j$ as pZ,jda as wY,k$ as cZ,l$ as xZ,pda as hY,q$ as WQ,rda as bY,sca as nZ,uda as yY,yda as wQ}from"./cli-0.6.6-q1j20ysc.mjs";import{lea as mJ,mea as $0,sea as VJ,tea as SJ}from"./cli-0.6.6-b1wqaqv9.mjs";import{Nea as mZ}from"./cli-0.6.6-73eg8qn0.mjs";import{Yea as _Z,ifa as VQ}from"./cli-0.6.6-y305shhz.mjs";import{Ifa as t0,Jfa as YZ}from"./cli-0.6.6-d5dexg4d.mjs";import{wga as f,zga as XQ}from"./cli-0.6.6-a837m6n5.mjs";import{Cha as CY,cha as zq,hha as YX,zha as c0}from"./cli-0.6.6-hcajyfhg.mjs";import{eia as $Z,gia as fY,lia as LJ,oia as jZ}from"./cli-0.6.6-nw0nh4e0.mjs";import{Fka as Kq,Gka as Oq,Rna as ZZ,Ska as Hq,Sla as RJ,Tla as gZ,Uja as JZ,bla as Dq,jka as Gq,kka as Vq,lka as Wq}from"./cli-0.6.6-ncqg4xxp.mjs";import{spa as j,wpa as c}from"./cli-0.6.6-py5db2ds.mjs";function iq(){let Z=JZ(),q=LZ(Z)??Q(V,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"0.6.6"},{label:"Session name",value:q},{label:"Session ID",value:Z},{label:"cwd",value:t0()},...HZ(),...DZ()]}function rq({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 OZ(),...await VZ()]}function nq(Z){let J=JJ.c(8),{value:q}=Z;if(Array.isArray(q)){let X;if(J[0]!==q){let D;if(J[2]!==q.length)D=(N,P)=>H(V,{children:[N,P<q.length-1?",":""]},P),J[2]=q.length,J[3]=D;else D=J[3];X=q.map(D),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(sq),D=K0(aq),[N]=e0(),P;if(J[0]===Symbol.for("react.memo_cache_sentinel"))P=iq(),J[0]=P;else P=J[0];let M;if(J[1]!==q||J[2]!==W||J[3]!==D||J[4]!==N)M=rq({mainLoopModel:W,mcp:D,theme:N,context:q}),J[1]=q,J[2]=W,J[3]=D,J[4]=N,J[5]=M;else M=J[5];let k;if(J[6]!==M)k=[P,M],J[6]=M,J[7]=k;else k=J[7];let K=k,F=C0()?1:void 0,z;if(J[8]!==K)z=K.map(lq),J[8]=K,J[9]=z;else z=J[9];let O;if(J[10]!==X)O=Q(ZJ.Suspense,{fallback:null,children:Q(tq,{promise:X})}),J[10]=X,J[11]=O;else O=J[11];let R;if(J[12]!==F||J[13]!==z||J[14]!==O)R=H(U,{flexDirection:"column",gap:1,flexGrow:F,children:[z,O]}),J[12]=F,J[13]=z,J[14]=O,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]!==F||J[18]!==R)B=H(U,{flexDirection:"column",flexGrow:F,children:[R,A]}),J[17]=F,J[18]=R,J[19]=B;else B=J[19];return B}function lq(Z,J){return Z.length>0&&Q(U,{flexDirection:"column",children:Z.map(oq)},J)}function oq(Z,J){let{label:q,value:X}=Z;return H(U,{flexDirection:"row",gap:1,flexShrink:0,children:[q!==void 0&&H(V,{bold:!0,children:[q,":"]}),Q(nq,{value:X})]},J)}function aq(Z){return Z.mcp}function sq(Z){return Z.mainLoopModel}function tq(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 D;if(J[1]!==X)D=X.map(eq),J[1]=X,J[2]=D;else D=J[2];let N;if(J[3]!==D)N=H(U,{flexDirection:"column",paddingBottom:1,children:[W,D]}),J[3]=D,J[4]=N;else N=J[4];return N}function eq(Z,J){return H(U,{flexDirection:"row",gap:1,paddingX:1,children:[Q(V,{color:"error",children:O0.warning}),typeof Z==="string"?Q(V,{wrap:"wrap",children:Z}):Z]},J)}var JJ,ZJ;var RZ=c(()=>{DJ();ZZ();zJ();H0();qZ();YZ();JQ();dq();f0();$();JJ=j(U0(),1),ZJ=j(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 D=W,N;if(J[2]!==X)N=function(){X("cancel")},J[2]=X,J[3]=N;else N=J[3];let P=N,M;if(J[4]!==q)M=H(V,{children:["The stable channel may have an older version than what you're currently running (",q,")."]}),J[4]=q,J[5]=M;else M=J[5];let k;if(J[6]===Symbol.for("react.memo_cache_sentinel"))k=Q(V,{dimColor:!0,children:"How would you like to handle this?"}),J[6]=k;else k=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 F=`Stay on current version (${q}) until stable catches up`,z;if(J[8]!==F)z=[K,{label:F,value:"stay"}],J[8]=F,J[9]=z;else z=J[9];let O;if(J[10]!==D||J[11]!==z)O=Q(T0,{options:z,onChange:D}),J[10]=D,J[11]=z,J[12]=O;else O=J[12];let R;if(J[13]!==P||J[14]!==M||J[15]!==O)R=H(S0,{title:"Switch to Stable Channel",onCancel:P,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[M,k,O]}),J[13]=P,J[14]=M,J[15]=O,J[16]=R;else R=J[16];return R}var kZ;var AZ=c(()=>{H0();PZ();FJ();$();kZ=j(U0(),1)});function UZ(Z){return Object.entries(Z).map(([J,q])=>({label:q?.name??YQ,value:J,description:q?.description??qQ}))}function CZ(Z){let J=fZ.c(16),{initialStyle:q,onComplete:X,onCancel:W,isStandaloneCommand:D}=Z,N;if(J[0]===Symbol.for("react.memo_cache_sentinel"))N=[],J[0]=N;else N=J[0];let[P,M]=_0.useState(N),[k,K]=_0.useState(!0),F,z;if(J[1]===Symbol.for("react.memo_cache_sentinel"))F=()=>{IZ(t0()).then((d)=>{let t=UZ(d);M(t),K(!1)}).catch(()=>{let d=UZ(BZ);M(d),K(!1)})},z=[],J[1]=F,J[2]=z;else F=J[1],z=J[2];_0.useEffect(F,z);let O;if(J[3]!==X)O=(d)=>{X(d)},J[3]=X,J[4]=O;else O=J[4];let R=O,A=!D,B=!D,E;if(J[5]===Symbol.for("react.memo_cache_sentinel"))E=Q(U,{marginTop:1,children:Q(V,{dimColor:!0,children:"This changes how Claude Code communicates with you"})}),J[5]=E;else E=J[5];let h;if(J[6]!==R||J[7]!==q||J[8]!==k||J[9]!==P)h=H(U,{flexDirection:"column",gap:1,children:[E,k?Q(V,{dimColor:!0,children:"Loading output styles…"}):Q(T0,{options:P,onChange:R,visibleOptionCount:10,defaultValue:q})]}),J[6]=R,J[7]=q,J[8]=k,J[9]=P,J[10]=h;else h=J[10];let w;if(J[11]!==W||J[12]!==A||J[13]!==B||J[14]!==h)w=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]=w;else w=J[15];return w}var fZ,_0,YQ="Default",qQ="Claude completes coding tasks efficiently and provides concise responses";var SZ=c(()=>{EZ();H0();YZ();ZQ();FJ();$();fZ=j(U0(),1),_0=j(s(),1)});function hZ(Z){let J=wZ.c(13),{initialLanguage:q,onComplete:X,onCancel:W}=Z,[D,N]=NJ.useState(q),[P,M]=NJ.useState((q??"").length),k;if(J[0]===Symbol.for("react.memo_cache_sentinel"))k={context:"Settings"},J[0]=k;else k=J[0];l("confirm:no",W,k);let K;if(J[1]!==D||J[2]!==X)K=function(){let w=D?.trim();X(w||void 0)},J[1]=D,J[2]=X,J[3]=K;else K=J[3];let F=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 O;if(J[5]===Symbol.for("react.memo_cache_sentinel"))O=Q(V,{children:O0.pointer}),J[5]=O;else O=J[5];let R=D??"",A;if(J[6]!==P||J[7]!==F||J[8]!==R)A=H(U,{flexDirection:"row",gap:1,children:[O,Q(TZ,{value:R,onChange:N,onSubmit:F,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${O0.ellipsis}`,columns:60,cursorOffset:P,onChangeCursorOffset:M})]}),J[6]=P,J[7]=F,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 E;if(J[11]!==A)E=H(U,{flexDirection:"column",gap:1,children:[z,A,B]}),J[11]=A,J[12]=E;else E=J[12];return E}var wZ,NJ;var bZ=c(()=>{DJ();H0();w0();QQ();$();wZ=j(U0(),1),NJ=j(s(),1)});function MY({onClose:Z,context:J,setTabsHidden:q,onIsSearchModeChange:X,contentHeight:W}){let{headerFocused:D,focusHeader:N}=HY(),P=C0(),[,M]=e0(),k=JY(),[K,F]=g.useState(S()),z=v.useRef(S()),[O,R]=g.useState(kJ()),A=v.useRef(kJ()),[B,E]=g.useState(O?.outputStyle||YJ),h=v.useRef(B),[w,d]=g.useState(O?.language),t=v.useRef(w),[_,F0]=g.useState(0),[i,q0]=g.useState(0),[r,Q0]=g.useState(!0),j0=YY(),{rows:I0}=V0(),Tq=W??Math.min(Math.floor(I0*0.8),30),X0=Math.max(5,Tq-10),E0=K0((Y)=>Y.mainLoopModel),wq=K0((Y)=>Y.verbose),xJ=K0((Y)=>Y.thinkingEnabled),uJ=K0((Y)=>m0()?Y.fastMode:!1),hq=K0((Y)=>Y.promptSuggestionEnabled),RX=!1,e=GY(),[dJ,M0]=g.useState({}),bq=v.useRef(xJ),[iJ]=g.useState(()=>PJ("localSettings")),[rJ]=g.useState(()=>PJ("userSettings")),nJ=v.useRef(k),yq=VY(),[lJ]=g.useState(()=>{let Y=yq.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]=g.useState(()=>RJ()),J0=v.useRef(!1),[gq,o0]=g.useState(!1),[m,y]=g.useState(null),{query:A0,setQuery:a0,cursorOffset:$q}=PY({isActive:r&&m===null&&!D,onExit:()=>Q0(!1),onExitUp:N,passthroughCtrlKeys:["c","d"]}),oJ=r&&!D;v.useEffect(()=>{X?.(oJ)},[oJ,X]);let jq=QY(J.options.mcpClients),_q=!$Z(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),aJ=v.use(UY(!0)),mq=IY(aJ),W0=rZ();function sJ(Y){f("tengu_config_model_changed",{from_model:E0,to_model:Y}),e((L)=>({...L,mainLoopModel:Y,mainLoopModelForSession:null})),M0((L)=>{let I=qJ(Y)+(NY(Y,!1,tZ())?" · Billed as extra usage":"");if("model"in L){let{model:b,...o}=L;return{...o,model:I}}return{...L,model:I}})}function vq(Y){T((G)=>({...G,verbose:Y})),F({...S(),verbose:Y}),e((G)=>({...G,verbose:Y})),M0((G)=>{if("verbose"in G){let{verbose:L,...I}=G;return I}return{...G,verbose:Y}})}let OJ=[{id:"autoCompactEnabled",label:"Auto-compact",value:K.autoCompactEnabled,type:"boolean",onChange(Y){T((G)=>({...G,autoCompactEnabled:Y})),F({...S(),autoCompactEnabled:Y}),f("tengu_auto_compact_setting_changed",{enabled:Y})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:K.thinkingHistoryRedactionEnabled,type:"boolean",onChange(Y){T((G)=>({...G,thinkingHistoryRedactionEnabled:Y})),F({...S(),thinkingHistoryRedactionEnabled:Y}),f("claudin_thinking_history_redaction_setting_changed",{enabled:Y})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:K.narrationHistoryRedactionEnabled,type:"boolean",onChange(Y){T((G)=>({...G,narrationHistoryRedactionEnabled:Y})),F({...S(),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";T((L)=>({...L,showCacheStats:G})),F({...S(),showCacheStats:G}),f("tengu_show_cache_stats_setting_changed",{mode:G})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:K.toolResultSummarizerEnabled,type:"boolean",onChange(Y){T((G)=>({...G,toolResultSummarizerEnabled:Y})),F({...S(),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){T((G)=>({...G,bashOutputFilterEnabled:Y})),F({...S(),bashOutputFilterEnabled:Y}),f("claudin_bash_output_filter_setting_changed",{enabled:Y})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:K.autoBackgroundAgentsEnabled!==!1,type:"boolean",onChange(Y){T((G)=>({...G,autoBackgroundAgentsEnabled:Y})),F({...S(),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";T((L)=>({...L,inlineImagesMode:G})),F({...S(),inlineImagesMode:G}),f("claudin_inline_images_setting_changed",{mode:G})}},{id:"spinnerTipsEnabled",label:"Show tips",value:O?.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:O?.prefersReducedMotion??!1,type:"boolean",onChange(Y){x("localSettings",{prefersReducedMotion:Y}),R((G)=>({...G,prefersReducedMotion:Y})),e((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){e((G)=>({...G,thinkingEnabled:Y})),x("userSettings",{alwaysThinkingEnabled:Y?void 0:!1}),f("tengu_thinking_toggled",{enabled:Y})}},...m0()&&MJ()?[{id:"fastMode",label:`Fast mode (${oZ} only)`,value:!!uJ,type:"boolean",onChange(Y){if(sZ(),x("userSettings",{fastMode:Y?!0:void 0}),Y)e((G)=>({...G,mainLoopModel:AJ(),mainLoopModelForSession:null,fastMode:!0})),M0((G)=>({...G,model:AJ(),"Fast mode":"ON"}));else e((G)=>({...G,fastMode:!1})),M0((G)=>({...G,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:hq,type:"boolean",onChange(Y){e((G)=>({...G,promptSuggestionEnabled:Y})),x("userSettings",{promptSuggestionEnabled:Y?void 0:!1})}},..._q?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:K.fileCheckpointingEnabled,type:"boolean",onChange(Y){T((G)=>({...G,fileCheckpointingEnabled:Y})),F({...S(),fileCheckpointingEnabled:Y}),f("tengu_file_history_snapshots_setting_changed",{enabled:Y})}}]:[],{id:"verbose",label:"Verbose output",value:wq,type:"boolean",onChange:vq},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:K.terminalProgressBarEnabled,type:"boolean",onChange(Y){T((G)=>({...G,terminalProgressBarEnabled:Y})),F({...S(),terminalProgressBarEnabled:Y}),f("tengu_terminal_progress_bar_setting_changed",{enabled:Y})}},..._Z("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:K.showStatusInTerminalTab??!1,type:"boolean",onChange(Y){T((G)=>({...G,showStatusInTerminalTab:Y})),F({...S(),showStatusInTerminalTab:Y}),f("tengu_terminal_tab_status_setting_changed",{enabled:Y})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:K.showTurnDuration,type:"boolean",onChange(Y){T((G)=>({...G,showTurnDuration:Y})),F({...S(),showTurnDuration:Y}),f("tengu_show_turn_duration_setting_changed",{enabled:Y})}},{id:"defaultPermissionMode",label:"Default permission mode",value:O?.permissions?.defaultMode||"default",options:(()=>{let Y=["default","plan"],G=mZ,L=["bypassPermissions"];return[...Y,...G.filter((I)=>!Y.includes(I)&&!L.includes(I))]})(),type:"enum",onChange(Y){let G=cZ(Y),L=vZ(G)?pZ(G):G,I=x("userSettings",{permissions:{...O?.permissions,defaultMode:L}});if(I.error){N0(I.error);return}R((b)=>({...b,permissions:{...b?.permissions,defaultMode:L}})),M0((b)=>({...b,defaultPermissionMode:Y})),f("tengu_config_changed",{setting:"defaultPermissionMode",value:Y})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:O?.useAutoModeDuringPlan??!0,type:"boolean",onChange(Y){x("userSettings",{useAutoModeDuringPlan:Y}),R((G)=>({...G,useAutoModeDuringPlan:Y})),e((G)=>{let L=BJ(G.toolPermissionContext);if(L===G.toolPermissionContext)return G;return{...G,toolPermissionContext:L}}),M0((G)=>({...G,"Use auto mode during plan":Y}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:K.respectGitignore,type:"boolean",onChange(Y){T((G)=>({...G,respectGitignore:Y})),F({...S(),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){T((G)=>({...G,copyFullResponse:Y})),F({...S(),copyFullResponse:Y}),f("tengu_config_changed",{setting:"copyFullResponse",value:String(Y)})}},...ZY()?[{id:"copyOnSelect",label:"Copy on select",value:K.copyOnSelect??!0,type:"boolean",onChange(Y){T((G)=>({...G,copyOnSelect:Y})),F({...S(),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){T((G)=>({...G,flickerFreeMode:Y})),F({...S(),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:O?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:k,type:"managedEnum",onChange:M},{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){T((G)=>({...G,preferredNotifChannel:Y})),F({...S(),preferredNotifChannel:Y})}},{id:"outputStyle",label:"Output style",value:B,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"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){T((G)=>({...G,editorMode:Y})),F({...S(),editorMode:Y}),f("tengu_editor_mode_changed",{mode:Y,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:K.prStatusFooterEnabled??!0,type:"boolean",onChange(Y){T((G)=>{if(G.prStatusFooterEnabled===Y)return G;return{...G,prStatusFooterEnabled:Y}}),F({...S(),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},...jq?[{id:"diffTool",label:"Diff tool",value:K.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(Y){T((G)=>({...G,diffTool:Y})),F({...S(),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){T((G)=>({...G,autoConnectIde:Y})),F({...S(),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){T((G)=>({...G,autoInstallIdeExtension:Y})),F({...S(),autoInstallIdeExtension:Y}),f("tengu_auto_install_ide_extension_changed",{enabled:Y,source:"config_panel"})}}]:[],...XY()?(()=>{let Y=WY();return[{id:"teammateMode",label:Y?`Teammate mode [overridden: ${Y}]`:"Teammate mode",value:K.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(L){if(L!=="auto"&&L!=="tmux"&&L!=="in-process")return;KY(L),T((I)=>({...I,teammateMode:L})),F({...S(),teammateMode:L}),f("tengu_teammate_mode_changed",{mode:L})}},{id:"teammateDefaultModel",label:"Default teammate model",value:yZ(K.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...zY()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:K.remoteControlAtStartup===void 0?"default":String(K.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(Y){if(Y==="default")T((L)=>{if(L.remoteControlAtStartup===void 0)return L;let I={...L};return delete I.remoteControlAtStartup,I}),F({...S(),remoteControlAtStartup:void 0});else{let L=Y==="true";T((I)=>{if(I.remoteControlAtStartup===L)return I;return{...I,remoteControlAtStartup:L}}),F({...S(),remoteControlAtStartup:L})}let G=uZ();e((L)=>{if(L.replBridgeEnabled===G&&!L.replBridgeOutboundOnly)return L;return{...L,replBridgeEnabled:G,replBridgeOutboundOnly:!1}})}}]:[],...mq?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(dZ().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:H(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(L){T((I)=>{let b={...I};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(L)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}),F(S())}}]})()],G0=v.useMemo(()=>{if(!A0)return OJ;let Y=A0.toLowerCase();return OJ.filter((G)=>{if(G.id.toLowerCase().includes(Y))return!0;return("searchText"in G?G.searchText:G.label).toLowerCase().includes(Y)})},[OJ,A0]);v.useEffect(()=>{if(_>=G0.length){let Y=Math.max(0,G0.length-1);F0(Y),q0(Math.max(0,Y-X0+1));return}q0((Y)=>{if(_<Y)return _;if(_>=Y+X0)return _-X0+1;return Y})},[G0.length,_,X0]);let pq=g.useCallback((Y)=>{q0((G)=>{if(Y<G)return Y;if(Y>=G+X0)return Y-X0+1;return G})},[X0]),cq=g.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 ${D0.bold(eJ)}`}),G=B0(),L=G?.transport==="anthropic"?G.apiKey?.trim():void 0,I=LJ()?void 0:L,b=Boolean(I&&z.current.customApiKeyResponses?.approved?.includes(h0(I))),o=Boolean(I&&K.customApiKeyResponses?.approved?.includes(h0(I)));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 ${D0.bold(K.theme)}`);if(K.preferredNotifChannel!==z.current.preferredNotifChannel)Y.push(`Set notifications to ${D0.bold(K.preferredNotifChannel)}`);if(B!==h.current)Y.push(`Set output style to ${D0.bold(B)}`);if(w!==t.current)Y.push(`Set response language to ${D0.bold(w??"Default (English)")}`);if(K.editorMode!==z.current.editorMode)Y.push(`Set editor mode to ${D0.bold(K.editorMode||"emacs")}`);if(K.diffTool!==z.current.diffTool)Y.push(`Set diff tool to ${D0.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(O?.autoUpdatesChannel!==A.current?.autoUpdatesChannel)Y.push(`Set auto-update channel to ${D0.bold(O?.autoUpdatesChannel??"latest")}`);if(Y.length>0)Z(Y.join(`
2
+ `));else Z("Config dialog dismissed",{display:"system"})},[m,dJ,K,E0,B,w,O?.autoUpdatesChannel,m0()?O?.fastMode:void 0,Z]),tJ=g.useCallback(()=>{if(k!==nJ.current)M(nJ.current);T(()=>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 L=lJ;if(e((I)=>({...I,mainLoopModel:L.mainLoopModel,mainLoopModelForSession:L.mainLoopModelForSession,verbose:L.verbose,thinkingEnabled:L.thinkingEnabled,fastMode:L.fastMode,promptSuggestionEnabled:L.promptSuggestionEnabled,isBriefOnly:L.isBriefOnly,replBridgeEnabled:L.replBridgeEnabled,replBridgeOutboundOnly:L.replBridgeOutboundOnly,settings:L.settings,toolPermissionContext:BJ(I.toolPermissionContext)})),RJ()!==KJ)gZ(KJ)},[k,M,iJ,rJ,lJ,KJ,e]),xq=g.useCallback(()=>{if(m!==null)return;if(J0.current)tJ();Z("Config dialog dismissed",{display:"system"})},[m,tJ,Z]);l("confirm:no",xq,{context:"Settings",isActive:m===null&&!r&&!D}),l("settings:close",cq,{context:"Settings",isActive:m===null&&!r&&!D});let HJ=g.useCallback(()=>{let Y=G0[_];if(!Y||!Y.onChange)return;if(Y.type==="boolean"){if(J0.current=!0,Y.onChange(!Y.value),Y.id==="thinkingEnabled"){if(!Y.value===bq.current)o0(!1);else if(J.messages.some((I)=>I.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((O?.autoUpdatesChannel??"latest")==="latest")y("ChannelDowngrade"),q(!0);else J0.current=!0,x("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((L)=>({...L,autoUpdatesChannel:"latest",minimumVersion:void 0})),f("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(Y.type==="enum"){J0.current=!0;let L=(Y.options.indexOf(Y.value)+1)%Y.options.length;Y.onChange(Y.options[L]);return}},[W0,G0,_,O?.autoUpdatesChannel,q]),s0=(Y)=>{o0(!1);let G=Math.max(0,Math.min(G0.length-1,_+Y));F0(G),pq(G)};qY({"select:previous":()=>{if(_===0)o0(!1),Q0(!0),q0(0);else s0(-1)},"select:next":()=>s0(1),"scroll:lineUp":()=>s0(-1),"scroll:lineDown":()=>s0(1),"select:accept":HJ,"settings:search":()=>{Q0(!0),a0("")}},{context:"Settings",isActive:m===null&&!r&&!D});let uq=g.useCallback((Y)=>{if(m!==null)return;if(D)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),q0(0);return}if(Y.key==="left"||Y.key==="right"||Y.key==="tab"){Y.preventDefault(),HJ();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,D,r,A0,a0,HJ]);return Q(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:uq,children:m==="Theme"?H(n,{children:[Q(FY,{onThemeSelect:(Y)=>{J0.current=!0,M(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),Q(U,{children:Q(V,{dimColor:!0,italic:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"select"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):m==="Model"?H(n,{children:[Q(IJ,{initial:E0,onSelect:(Y,G)=>{J0.current=!0,sJ(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},showFastModeNotice:m0()?uJ&&aZ(E0)&&MJ():!1}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="TeammateModel"?H(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;J0.current=!0,T((L)=>L.teammateDefaultModel===Y?L:{...L,teammateDefaultModel:Y}),F({...S(),teammateDefaultModel:Y}),M0((L)=>({...L,teammateDefaultModel:yZ(Y)})),f("tengu_teammate_default_model_changed",{model:Y})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="ExternalIncludes"?H(n,{children:[Q(RY,{onDone:()=>{y(null),q(!1)},externalIncludes:BY(aJ)}),Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):m==="OutputStyle"?H(n,{children:[Q(CZ,{initialStyle:B,onComplete:(Y)=>{J0.current=!0,E(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:H(p,{children:[Q(Z0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="Language"?H(n,{children:[Q(hZ,{initialLanguage:w,onComplete:(Y)=>{J0.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:H(p,{children:[Q(Z0,{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"?H(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"&&H(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)=>{J0.current=!0,y(null),q(!1),T((G)=>({...G,autoUpdates:!0})),F({...S(),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;J0.current=!0;let G={autoUpdatesChannel:"stable"};if(Y==="stay")G.minimumVersion="99.0.0";x("userSettings",G),R((L)=>({...L,...G})),f("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:Y==="stay"})}}):H(U,{flexDirection:"column",gap:1,marginY:P?void 0:1,children:[Q(LY,{query:A0,isFocused:r&&!D,isTerminalFocused:j0,cursorOffset:$q,placeholder:"Search settings…"}),Q(U,{flexDirection:"column",children:G0.length===0?H(V,{dimColor:!0,italic:!0,children:['No settings match "',A0,'"']}):H(n,{children:[i>0&&H(V,{dimColor:!0,children:[O0.arrowUp," ",i," more above"]}),G0.slice(i,i+X0).map((Y,G)=>{let I=i+G===_&&!D&&!r;return Q(v.Fragment,{children:H(U,{children:[Q(U,{width:44,children:H(V,{color:I?"suggestion":void 0,children:[I?O0.pointer:" "," ",Y.label]})}),Q(U,{children:Y.type==="boolean"?H(n,{children:[Q(V,{color:I?"suggestion":void 0,children:Y.value.toString()}),gq&&Y.id==="thinkingEnabled"&&H(V,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):Y.id==="theme"?Q(V,{color:I?"suggestion":void 0,children:fQ[Y.value.toString()]??Y.value.toString()}):Y.id==="notifChannel"?Q(V,{color:I?"suggestion":void 0,children:Q(CQ,{value:Y.value.toString()})}):Y.id==="defaultPermissionMode"?Q(V,{color:I?"suggestion":void 0,children:xZ(Y.value)}):Y.id==="autoUpdatesChannel"&&W0?H(U,{flexDirection:"column",children:[Q(V,{color:I?"suggestion":void 0,children:"disabled"}),H(V,{dimColor:!0,children:["(",iZ(W0),")"]})]}):Q(V,{color:I?"suggestion":void 0,children:Y.value.toString()})},I?"selected":"unselected")]})},Y.id)}),i+X0<G0.length&&H(V,{dimColor:!0,children:[O0.arrowDown," ",G0.length-i-X0," ","more below"]})]})}),D?Q(V,{dimColor:!0,children:H(p,{children:[Q(Z0,{shortcut:"←/→ tab",action:"switch"}),Q(Z0,{shortcut:"↓",action:"return"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):r?Q(V,{dimColor:!0,children:H(p,{children:[Q(V,{children:"Type to filter"}),Q(Z0,{shortcut:"Enter/↓",action:"select"}),Q(Z0,{shortcut:"↑",action:"tabs"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):Q(V,{dimColor:!0,children:H(p,{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(OY());if(Z===null)return"Default (leader's model)";return qJ(Z)}function CQ(Z){let J=kY.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=H(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=H(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=H(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=H(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 kY,v,g,fQ;var AY=c(()=>{H0();w0();DJ();nZ();OQ();lZ();nZ();GQ();WQ();PQ();QJ();XQ();kQ();MQ();qZ();AQ();eZ();UQ();BQ();AZ();FJ();PZ();SZ();bZ();SQ();zQ();f0();XJ();DY();zJ();IQ();FQ();KQ();ZZ();EZ();jZ();VQ();NQ();RQ();LQ();EQ();v0();HQ();DQ();$();kY=j(U0(),1),v=j(s(),1),g=j(s(),1);fQ={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)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function x0(Z){return typeof Z==="object"&&Z!==null}function Y0(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 gY(Z){if(!x0(Z))return;let J=EJ(Z.has_credits)??EJ(Z.hasCredits)??!1,q=EJ(Z.unlimited)??!1,X=Y0(Z.balance);if(!J&&!q&&!X)return;return{hasCredits:J,unlimited:q,balance:X}}function p0(Z,J){if(!x0(Z))return;let q=Y0(Z.limit_name)??Y0(Z.limitName)??Y0(Z.limit_id)??Y0(Z.limitId)??J,X=GJ(Z.primary)??GJ(Z.primary_window),W=GJ(Z.secondary)??GJ(Z.secondary_window),D=gY(Z.credits);if(!X&&!W&&!D)return;return{limitName:q,primary:X,secondary:W,credits:D}}function CJ(Z,J="codex"){if(Array.isArray(Z))return Z.map((q,X)=>p0(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!x0(Z))return[];return Object.entries(Z).map(([q,X])=>p0(X,q)).filter((q)=>q!==void 0)}function hQ(Z){let J=Y0(Z.plan_type)??Y0(Z.planType),q=[],X=gY(Z.credits),W=p0(Z.rate_limit,"codex");if(W)W.credits??=X,q.push(W);else if(X)q.push({limitName:"codex",credits:X});let D=p0(Z.code_review_rate_limit,"code review");if(D)q.push(D);return q.push(...CJ(Z.additional_rate_limits??Z.additionalRateLimits,"additional")),{planType:J,snapshots:q}}function bQ(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 hQ(Z);let J=Z.rate_limits??Z.rateLimits??Z.rate_limits_by_limit_id??Z.rateLimitsByLimitId;if(J!==void 0)return{planType:Y0(Z.plan_type)??Y0(Z.planType),snapshots:CJ(J)};let q=p0(Z,"codex");return{planType:Y0(Z.plan_type)??Y0(Z.planType),snapshots:q?[q]:[]}}function y0(Z){if(!Z)return Z;return Z[0].toUpperCase()+Z.slice(1)}function EY(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 yQ(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 gQ(Z){if(!Z?.hasCredits)return;if(Z.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let J=yQ(Z.balance);if(!J)return;return{kind:"text",label:"Credits",value:`${J} credits`}}function $Y(Z){let J=[];for(let q of Z){let X=q.limitName.trim()||"codex",W=gQ(q.credits);if(!(q.primary!==void 0||q.secondary!==void 0||W!==void 0))continue;let N=X.toLowerCase()!=="codex",P=Number(q.primary!==void 0)+Number(q.secondary!==void 0),M=N&&P===1;if(N&&!M)J.push({kind:"text",label:`${y0(X)} limit`,value:""});if(q.primary){let k=y0(EY(q.primary.windowMinutes,"5h"));J.push({kind:"window",label:M?`${y0(X)} ${k} limit`:`${k} limit`,usedPercent:q.primary.usedPercent,resetsAt:q.primary.resetsAt})}if(q.secondary){let k=y0(EY(q.secondary.windowMinutes,"weekly"));J.push({kind:"window",label:M?`${y0(X)} ${k} limit`:`${k} limit`,usedPercent:q.secondary.usedPercent,resetsAt:q.secondary.resetsAt})}if(W)J.push(W)}return J}function jY(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>y0(J.toLowerCase())).join(" ")}function $Q(Z=wY){return new URL("/backend-api/wham/usage",Z).toString()}async function _Y(){let Z=await TY().catch(async(W)=>{return c0(`[codex] access token refresh failed before usage fetch: ${W instanceof Error?W.message:String(W)}`,{level:"warn"}),{refreshed:!1,credentials:await SY()}}),J=bY();if(!hY(J.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let q=yY({storedCredentials:Z.credentials});if(!q.apiKey){let W=fY()?"":", choose Codex OAuth in /provider",D=q.authPath?`${W} or place a Codex auth.json at ${q.authPath}`:W;throw Error(`Codex auth is required. Set CODEX_API_KEY${D}.`)}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($Q(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 bQ(await X.json())}var mY=c(()=>{TQ();CY();jZ();wQ()});function jQ({label:Z,usedPercent:J,resetsAt:q,maxWidth:X}){let W=Math.max(0,Math.min(100,J)),D=`${Math.floor(W)}% used`,N=q?`Resets ${VJ(q,!0,!0)}`:void 0;if(X>=62)return H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:Z}),H(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:W/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:D})]}),N?Q(V,{dimColor:!0,children:N}):null]});return H(U,{flexDirection:"column",children:[H(V,{children:[Q(V,{bold:!0,children:Z}),N?H(n,{children:[Q(V,{children:" "}),H(V,{dimColor:!0,children:["· ",N]})]}):null]}),Q(R0,{ratio:W/100,width:X,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:D})]})}function _Q({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return H(V,{children:[Q(V,{bold:!0,children:Z}),H(V,{dimColor:!0,children:[" · ",J]})]})}function pY(){let[Z,J]=g0.useState(null),[q,X]=g0.useState(null),[W,D]=g0.useState(!0),{columns:N}=V0(),P=N-2,M=Math.min(P,80),k=vY.useCallback(async()=>{D(!0),X(null);try{J(await _Y())}catch(z){N0(z),X(z instanceof Error?z.message:"Failed to load Codex usage")}finally{D(!1)}},[]);if(g0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!q&&!W}),q)return H(U,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:H(p,{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 H(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=$Y(Z.snapshots),F=jY(Z.planType);return H(U,{flexDirection:"column",gap:1,width:"100%",children:[F?H(V,{dimColor:!0,children:["Plan: ",F]}):null,K.length===0?Q(V,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,K.map((z,O)=>z.kind==="window"?Q(jQ,{label:z.label,usedPercent:z.usedPercent,resetsAt:z.resetsAt,maxWidth:M},`${z.label}-${O}`):Q(_Q,{label:z.label,value:z.value},`${z.label}-${O}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var vY,g0;var cY=c(()=>{v0();H0();w0();mY();SJ();QJ();f0();XJ();TJ();$();vY=j(s(),1),g0=j(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 mQ(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 vQ(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 mQ(Z)}function i0(Z,J){for(let q of J){let X=bJ(Z[q]);if(X!==void 0)return X}return}function pQ(Z,J){for(let q of J)if(Z[q]!==void 0)return vQ(Z[q],q);return}function r0(Z,J){return J.some((q)=>Z[q]!==void 0)}function dY(Z){return Z?Z[0].toUpperCase()+Z.slice(1):Z}function cQ(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)=>dY(q.toLowerCase())).join(" ")}function xQ(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>dY(J.toLowerCase())).join(" ")}function iY(Z,J){let q=i0(Z,J.percentKeys),X=i0(Z,J.remainingPercentKeys),W=i0(Z,J.totalKeys),D=i0(Z,J.remainingKeys),N=i0(Z,J.usedKeys),P=W!==void 0&&N!==void 0?W-N:D,M;if(W!==void 0&&W>0&&N!==void 0)M=WJ(N/W*100);else if(W!==void 0&&W>0&&D!==void 0)M=WJ((W-D)/W*100);else if(q!==void 0)M=WJ(q);else if(X!==void 0)M=WJ(100-X);if(M===void 0)return;return{label:J.label,usedPercent:M,remaining:P,total:W,resetsAt:pQ(Z,J.resetKeys)}}function uQ(Z){let J=u(Z.label)??u(Z.name)??u(Z.window_name)??u(Z.windowName)??"Limit";return iY(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 iQ(Z){if(r0(Z,dQ))return!0;return rY.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=rY.map((W)=>iY(Z,W)).filter((W)=>W!==void 0);if(q.length===0){let W=uQ(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 xY(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(iQ(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 uY(Z=d0,J){return{availability:"unknown",planType:J,snapshots:[],message:Z}}function yJ(Z){if(!L0(Z))return uY();let J=xQ(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((D)=>xY(D)).filter((D,N,P)=>{let M=`${D.limitName}:${D.windows.map((k)=>k.label).join("|")}`;return P.findIndex((k)=>`${k.limitName}:${k.windows.map((K)=>K.label).join("|")}`===M)===N});if(X.length>0)return{availability:"available",planType:J,snapshots:X};let W=xY(Z);if(W.length>0)return{availability:"available",planType:J,snapshots:W};return uY(void 0,J)}function rQ(Z){if(Z.remaining===void 0||Z.total===void 0||Z.total<=0)return;return`${Z.remaining}/${Z.total} remaining`}function gJ(Z){let J=[];for(let q of Z){let X=cQ(q.limitName),W=X.toLowerCase()!=="minimax",D=W&&q.windows.length===1;if(W&&!D)J.push({kind:"text",label:`${X} quota`,value:""});for(let N of q.windows)J.push({kind:"window",label:D?`${X} ${N.label}`:N.label,usedPercent:N.usedPercent,resetsAt:N.resetsAt,extraSubtext:rQ(N)})}return J}var rY,dQ;var $J=c(()=>{wJ();rY=[{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"]}],dQ=["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 lQ(Z){return Z.replace(/\/+$/,"")}function oY(Z=B0()?.baseUrl??u0){let J=Z.trim();return J?lQ(J):u0}function oQ(Z){let J=Z??B0()?.baseUrl;if(!J?.trim())return{baseUrl:u0,usedDefault:!0};return{baseUrl:oY(J),usedDefault:!1}}function nY(Z){return{availability:"unknown",snapshots:[],message:Z}}function aY(Z){let{baseUrl:J,usedDefault:q}=oQ(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 jJ(){let Z=B0()?.apiKey;if(!Z)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let J=aY(),q=[],X=null;for(let W of J){let D;try{D=await fetch(W,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Z}`,"Content-Type":"application/json","User-Agent":lY()},signal:AbortSignal.timeout(5000)})}catch(P){c0(`[minimax] usage request failed for ${W}: ${P instanceof Error?P.message:String(P)}`,{level:"warn"}),X=P instanceof Error?P:Error(String(P));continue}if(!D.ok){let P=await D.text().catch(()=>"");if([400,401,403,404].includes(D.status)){q.push({status:D.status,body:P});continue}X=Error(`MiniMax usage error ${D.status}: ${P||"unknown error"}`);continue}let N=yJ(await D.json());if(N.availability==="available")return N}if(q.length>0){let W=q[q.length-1];return c0(`[minimax] usage endpoint returned non-fatal status ${W.status}: ${W.body}`,{level:"warn"}),nY(d0)}if(X)throw X;return nY(d0)}var sY=c(()=>{lZ();CY();nQ();wJ();$J()});var tY=c(()=>{$J();sY()});function tQ(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 eQ(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 ${tQ(X)}`}function JX({label:Z,usedPercent:J,resetsAt:q,extraSubtext:X,maxWidth:W,nowMs:D}){let N=Math.max(0,Math.min(100,J)),P=`${Math.floor(N)}% used`,M=eQ(q,D),k=[P,X].filter((K)=>Boolean(K));return H(U,{flexDirection:"column",children:[H(V,{children:[Q(V,{bold:!0,children:Z}),M?H(V,{dimColor:!0,children:[" · ",M]}):null]}),H(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:N/100,width:Math.min(sQ,Math.max(1,W)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),k.length>0?Q(V,{dimColor:!0,children:k.join(" · ")}):null]})]})}function ZX({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return H(V,{children:[Q(V,{bold:!0,children:Z}),H(V,{dimColor:!0,children:[" · ",J]})]})}function Jq(){let[Z,J]=P0.useState(null),[q,X]=P0.useState(null),[W,D]=P0.useState(!0),[N,P]=P0.useState(()=>Date.now()),{columns:M}=V0(),k=M-2,K=Math.min(k,80),F=eY.useCallback(async()=>{D(!0),X(null);try{J(await jJ())}catch(O){N0(O),X(O instanceof Error?O.message:"Failed to load MiniMax usage")}finally{D(!1)}},[]);if(P0.useEffect(()=>{F()},[F]),P0.useEffect(()=>{let O=setInterval(()=>{P(Date.now())},aQ);return()=>clearInterval(O)},[]),l("settings:retry",()=>{F()},{context:"Settings",isActive:!!q&&!W}),q)return H(U,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:H(p,{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 H(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"?gJ(Z.snapshots):[];return H(U,{flexDirection:"column",gap:1,width:"100%",children:[Z.planType?H(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((O,R)=>O.kind==="window"?Q(JX,{label:O.label,usedPercent:O.usedPercent,resetsAt:O.resetsAt,extraSubtext:O.extraSubtext,maxWidth:K,nowMs:N},`${O.label}-${R}`):Q(ZX,{label:O.label,value:O.value},`${O.label}-${R}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var eY,P0,aQ=30000,sQ=18;var Zq=c(()=>{v0();H0();w0();tY();QJ();f0();XJ();TJ();$();eY=j(s(),1),P0=j(s(),1)});function Yq({providerLabel:Z}){return H(U,{flexDirection:"column",gap:1,children:[H(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 qq=c(()=>{H0();f0();$()});function Uq(Z){let J=pJ.c(34),{title:q,limit:X,maxWidth:W,showTimeInReset:D,extraSubtext:N}=Z,P=D===void 0?!0:D,{utilization:M,resets_at:k}=X;if(M===null)return null;let K=`${Math.floor(M)}% used`,F;if(k){let z;if(J[0]!==k||J[1]!==P)z=VJ(k,!0,P),J[0]=k,J[1]=P,J[2]=z;else z=J[2];F=`Resets ${z}`}if(N)if(F)F=`${N} · ${F}`;else F=N;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 O=M/100,R;if(J[5]!==O)R=Q(R0,{ratio:O,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[5]=O,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=H(U,{flexDirection:"row",gap:1,children:[R,A]}),J[9]=R,J[10]=A,J[11]=B;else B=J[11];let E;if(J[12]!==F)E=F&&Q(V,{dimColor:!0,children:F}),J[12]=F,J[13]=E;else E=J[13];let h;if(J[14]!==z||J[15]!==B||J[16]!==E)h=H(U,{flexDirection:"column",children:[z,B,E]}),J[14]=z,J[15]=B,J[16]=E,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 O;if(J[20]!==F)O=F&&H(n,{children:[Q(V,{children:" "}),H(V,{dimColor:!0,children:["· ",F]})]}),J[20]=F,J[21]=O;else O=J[21];let R;if(J[22]!==z||J[23]!==O)R=H(V,{children:[z,O]}),J[22]=z,J[23]=O,J[24]=R;else R=J[24];let A=M/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 E;if(J[28]!==K)E=Q(V,{children:K}),J[28]=K,J[29]=E;else E=J[29];let h;if(J[30]!==R||J[31]!==B||J[32]!==E)h=H(U,{flexDirection:"column",children:[R,B,E]}),J[30]=R,J[31]=B,J[32]=E,J[33]=h;else h=J[33];return h}}function KX(){let[Z,J]=z0.useState(null),[q,X]=z0.useState(null),[W,D]=z0.useState(!0),{columns:N}=V0(),P=N-2,M=Math.min(P,80),k=Aq.useCallback(async()=>{D(!0),X(null);try{let O=await Lq();J(O)}catch(O){N0(O);let R=O,A=R.response?.data,B=R.response?.status,E;if(A?.error?.type==="rate_limit_error")E=A.error.message||"Rate limited. Please try again later.";else if(A?.error?.message)E=A.error.message;else if(B)E=`HTTP ${B} — ${zq(R.response?.data??{})}`;else E=O?.message||"Failed to load usage data";X(E)}finally{D(!1)}},[]);if(z0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!q&&!W}),q)return H(U,{flexDirection:"column",gap:1,children:[H(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:H(p,{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 H(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(),F=K==="max"||K==="team"||K===null,z=[{title:"Current session",limit:Z.five_hour},{title:"Current week (all models)",limit:Z.seven_day},...F?[{title:"Current week (Sonnet only)",limit:Z.seven_day_sonnet}]:[]];return H(U,{flexDirection:"column",gap:1,width:"100%",children:[z.some(({limit:O})=>O)||Q(V,{dimColor:!0,children:"/usage is only available for subscription plans."}),z.map(({title:O,limit:R})=>R&&Q(Uq,{title:O,limit:R,maxWidth:M},O)),Z.extra_usage&&Q(OX,{extraUsage:Z.extra_usage,maxWidth:M}),kq()&&Q(Mq,{maxWidth:M}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}function Qq(Z){let{title:J,totalCost:q,apiDuration:X,wallDuration:W,linesAdded:D,linesRemoved:N,modelUsage:P,unknownCost:M}=Z,k=Object.entries(P);if(q===0&&k.length===0&&D===0&&N===0)return null;let K={};for(let[z,O]of k){let R=Nq(z);if(!K[R])K[R]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let A=K[R];A.inputTokens+=O.inputTokens,A.outputTokens+=O.outputTokens,A.cacheReadInputTokens+=O.cacheReadInputTokens,A.cacheCreationInputTokens+=O.cacheCreationInputTokens,A.webSearchRequests+=O.webSearchRequests,A.costUSD+=O.costUSD}let F=Object.entries(K);return H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:J}),H(V,{children:[Q(V,{children:"Total cost: "}),Q(V,{children:n0(q)}),M&&Q(V,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),H(V,{children:["Total duration (API): ",mJ(X)]}),H(V,{children:["Total duration (wall): ",mJ(W)]}),H(V,{children:["Total code changes: ",D," ",D===1?"line":"lines"," added, ",N," ",N===1?"line":"lines"," removed"]}),F.length>0&&Q(V,{children:"Usage by model:"}),F.map(([z,O])=>{let R=`${$0(O.inputTokens)} input, ${$0(O.outputTokens)} output`;if(O.cacheReadInputTokens>0)R+=`, ${$0(O.cacheReadInputTokens)} cache read`;if(O.cacheCreationInputTokens>0)R+=`, ${$0(O.cacheCreationInputTokens)} cache write`;if(O.webSearchRequests>0)R+=`, ${$0(O.webSearchRequests)} web search`;return R+=` (${n0(O.costUSD)})`,H(V,{children:[`${z}:`.padStart(21)," ",R]},z)})]})}function Xq(Z={}){let J=Z.view??"global",[,q]=z0.useReducer((N)=>N+1,0);z0.useEffect(()=>{let N=setInterval(()=>q(),1000);return()=>clearInterval(N)},[]);let X=Hq();if(J==="session"){let N=Gq(),P=Dq(),M=Kq(),k=Oq();return Q(Qq,{title:"Current session",totalCost:N,apiDuration:Vq(),wallDuration:Wq(),linesAdded:M,linesRemoved:k,modelUsage:P,unknownCost:X})}let W=Rq();if(!(W.totalCost!==0||Object.keys(W.modelUsage).length>0||W.totalLinesAdded!==0||W.totalLinesRemoved!==0))return null;return H(U,{flexDirection:"column",gap:1,children:[Q(Qq,{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 cJ(Z={}){if((Z.view??"global")==="session")return Q(U,{flexDirection:"column",gap:1,width:"100%",children:Q(Xq,{view:"session"})});let q=Fq(),X;if(q==="codex")X=Q(pY,{});else if(q==="minimax")X=Q(Jq,{});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(Yq,{providerLabel:W})}else X=Q(KX,{});return H(U,{flexDirection:"column",gap:1,width:"100%",children:[Q(Xq,{view:"global"}),X]})}function OX(Z){let J=pJ.c(20),{extraUsage:q,maxWidth:X}=Z,W=vJ();if(!(W==="pro"||W==="max"))return!1;if(!q.is_enabled){if(Pq.isEnabled()){let w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:_J}),Q(V,{dimColor:!0,children:"Extra usage not enabled · /extra-usage to enable"})]}),J[0]=w;else w=J[0];return w}return null}if(q.monthly_limit===null){let w;if(J[1]===Symbol.for("react.memo_cache_sentinel"))w=H(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:_J}),Q(V,{dimColor:!0,children:"Unlimited"})]}),J[1]=w;else w=J[1];return w}if(typeof q.used_credits!=="number"||typeof q.utilization!=="number")return null;let N=q.used_credits/100,P;if(J[2]!==N)P=n0(N,2),J[2]=N,J[3]=P;else P=J[3];let M=P,k=q.monthly_limit/100,K;if(J[4]!==k)K=n0(k,2),J[4]=k,J[5]=K;else K=J[5];let F=K,z,O,R,A;if(J[6]!==q.utilization){let w=new Date,d=new Date(w.getFullYear(),w.getMonth()+1,1);z=Uq,A=_J,O=q.utilization,R=d.toISOString(),J[6]=q.utilization,J[7]=z,J[8]=O,J[9]=R,J[10]=A}else z=J[7],O=J[8],R=J[9],A=J[10];let B;if(J[11]!==O||J[12]!==R)B={utilization:O,resets_at:R},J[11]=O,J[12]=R,J[13]=B;else B=J[13];let E=`${M} / ${F} spent`,h;if(J[14]!==z||J[15]!==X||J[16]!==A||J[17]!==B||J[18]!==E)h=Q(z,{title:A,limit:B,showTimeInReset:!1,extraSubtext:E,maxWidth:X}),J[14]=z,J[15]=X,J[16]=A,J[17]=B,J[18]=E,J[19]=h;else h=J[19];return h}var pJ,Aq,z0,_J="Extra usage";var Bq=c(()=>{VX();XX();eZ();SJ();QX();v0();H0();w0();GX();SJ();QJ();qX();YX();f0();XJ();TJ();WX();cY();Zq();qq();$();pJ=j(U0(),1),Aq=j(s(),1),z0=j(s(),1)});function GW(Z){let J=Sq.c(25),{onClose:q,context:X,defaultTab:W}=Z,[D,N]=k0.useState(W),[P,M]=k0.useState(!1),[k,K]=k0.useState(!1),[F,z]=k0.useState(!1),O=C0(),{rows:R}=Eq(V0()),A=O?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[B]=k0.useState(zX);Iq();let E;if(J[0]!==q||J[1]!==P)E=()=>{if(P)return;q("Status dialog dismissed",{display:"system"})},J[0]=q,J[1]=P,J[2]=E;else E=J[2];let h=E,w=!P&&!(D==="Config"&&k)&&!(D==="Gates"&&F),d;if(J[3]!==w)d={context:"Settings",isActive:w},J[3]=w,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 _;if(J[8]!==A||J[9]!==X||J[10]!==q)_=Q(l0,{title:"Config",children:Q(k0.Suspense,{fallback:null,children:Q(MY,{context:X,onClose:q,setTabsHidden:M,onIsSearchModeChange:K,contentHeight:A})})},"config"),J[8]=A,J[9]=X,J[10]=q,J[11]=_;else _=J[11];let F0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))F0=[Q(l0,{title:"Usage",children:Q(cJ,{view:"global"})},"usage"),Q(l0,{title:"Session",children:Q(cJ,{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 q0;if(J[15]!==t||J[16]!==_||J[17]!==i)q0=[t,_,...F0,...i],J[15]=t,J[16]=_,J[17]=i,J[18]=q0;else q0=J[18];let r=q0,Q0=W!=="Config"&&W!=="Gates",j0=P||O?void 0:A,I0;if(J[19]!==D||J[20]!==j0||J[21]!==Q0||J[22]!==r||J[23]!==P)I0=Q(fq,{color:"permission",children:Q(Cq,{color:"permission",selectedTab:D,onTabChange:N,hidden:P,initialHeaderFocused:Q0,contentHeight:j0,children:r})}),J[19]=D,J[20]=j0,J[21]=Q0,J[22]=r,J[23]=P,J[24]=I0;else I0=J[24];return I0}function zX(){return FZ().catch(FX)}function FX(){return[]}var Sq,k0;var NX=c(()=>{w0();HX();v0();zJ();DX();DY();RZ();AY();Bq();$();Sq=j(U0(),1),k0=j(s(),1)});
3
+ export{GW as og,NX as pg};
@@ -0,0 +1,12 @@
1
+ import{z6 as D}from"./cli-0.6.6-x88t5n54.mjs";import{Cha as a,lha as L,pha as JG,zha as W}from"./cli-0.6.6-hcajyfhg.mjs";import{dia as c,eia as jG,oia as GG}from"./cli-0.6.6-nw0nh4e0.mjs";import{ooa as U,poa as g}from"./cli-0.6.6-sqvm4f1y.mjs";import{Loa as wG,Moa as H,cpa as RG}from"./cli-0.6.6-mc9x1jry.mjs";import{spa as WG,wpa as j,xpa as e}from"./cli-0.6.6-py5db2ds.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
+ `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
+ \r
4
+ `);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
+ `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
+ `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
7
+ `;let $=n(K);K.write(`${w}\r
8
+ `);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
9
+ `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
10
+ `;let V=n(Y);Y.write(`${$}\r
11
+ `);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-0.6.6-rxae4gv4.mjs"),import("./index-0.6.6-27ems47g.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
+ export{hG as c6,p as d6,F as e6,gG as f6,aG as g6,pG as h6,KG as i6,MJ as j6,HJ as k6,OG as l6,I as m6,h as n6,qJ as o6,jJ as p6,UJ as q6,_J as r6,FJ as s6,NJ as t6,TJ as u6,vG as v6};
@@ -0,0 +1,4 @@
1
+ import{kg as g,lg as Sy}from"./cli-0.6.6-61wnn1as.mjs";import{tg as wy,vg as kG}from"./cli-0.6.6-ezhp9zxv.mjs";import{ji as Zy,li as Ky,mi as ny}from"./cli-0.6.6-x3tz7qvq.mjs";import{An as Jy,Aq as Qy,Au as ay,BR as zG,Ck as e,EJ as Oy,Gk as sy,Gn as xy,Lq as Wy,OJ as yG,RQ as Hy,Tq as ly,VJ as by,Wr as v,YE as d,ZE as Ly,ZJ as GG,bF as i,cF as My,cs as _y,gR as Vy,pn as yy,rn as Gy,sw as Xy,tn as ky,vJ as j,vw as oy,wJ as ey,wn as qy,xn as zy,yn as Iy,zu as U}from"./cli-0.6.6-23snct9d.mjs";import{aV as Ny,bV as ty}from"./cli-0.6.6-heymhe69.mjs";import{DW as Py,EW as Uy,FW as jy,JW as qG}from"./cli-0.6.6-1a0fnhh0.mjs";import{PW as Ry,VW as cy}from"./cli-0.6.6-tk00k0e1.mjs";import{HY as Q,IY as $y,JY as L,LY as E,oX as hy,oZ as ry}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as N,v1 as u,w1 as C}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as Yy}from"./cli-0.6.6-c267ckfv.mjs";import{K5 as h,W3 as c,X3 as t,b6 as gy,u4 as iy}from"./cli-0.6.6-8yvh28tb.mjs";import{x6 as _,y6 as fy}from"./cli-0.6.6-wctj7gmc.mjs";import{$8 as uy,B8 as a,I_ as J,K_ as Ey,R8 as o,Uaa as n,Wba as w,Y8 as Ay,Zaa as r,Zba as q,_8 as P,_aa as T,hba as dy,sca as M}from"./cli-0.6.6-q1j20ysc.mjs";import{Yea as Z,hfa as f,ifa as A}from"./cli-0.6.6-y305shhz.mjs";import{wga as D,zga as Fy}from"./cli-0.6.6-a837m6n5.mjs";import{Cha as Dy,zha as l}from"./cli-0.6.6-hcajyfhg.mjs";import{spa as p}from"./cli-0.6.6-py5db2ds.mjs";ry();A();Fy();M();Ly();Sy();My();C();var s=p(hy(),1),F=p(Yy(),1),Ty={enable_shortcut_tip:!1,enable_startup_dialog:!1};function S(){return f("tengu_desktop_upsell",Ty)}function vy(){return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}function wG(){if(!vy())return!1;if(!S().enable_startup_dialog)return!1;let y=q();if(y.desktopUpsellDismissed)return!1;if((y.desktopUpsellSeenCount??0)>=3)return!1;return!0}function PG(y){let G=s.c(14),{onDone:k}=y,[z,X]=F.useState(!1),W;if(G[0]===Symbol.for("react.memo_cache_sentinel"))W=[],G[0]=W;else W=G[0];if(F.useEffect(py,W),z){let b;if(G[1]!==k)b=N(g,{onDone:()=>k()}),G[1]=k,G[2]=b;else b=G[2];return b}let O;if(G[3]!==k)O=function(By){switch(By){case"try":{X(!0);return}case"never":{w(Cy),k();return}case"not-now":{k();return}}},G[3]=k,G[4]=O;else O=G[4];let I=O,K;if(G[5]===Symbol.for("react.memo_cache_sentinel"))K={label:"Open in Claude Code Desktop",value:"try"},G[5]=K;else K=G[5];let H;if(G[6]===Symbol.for("react.memo_cache_sentinel"))H={label:"Not now",value:"not-now"},G[6]=H;else H=G[6];let V;if(G[7]===Symbol.for("react.memo_cache_sentinel"))V=[K,H,{label:"Don't ask again",value:"never"}],G[7]=V;else V=G[7];let my=V,m;if(G[8]===Symbol.for("react.memo_cache_sentinel"))m=N(L,{marginBottom:1,children:N(E,{children:"Same Claude Code with visual diffs, live app preview, parallel sessions, and more."})}),G[8]=m;else m=G[8];let R;if(G[9]!==I)R=()=>I("not-now"),G[9]=I,G[10]=R;else R=G[10];let B;if(G[11]!==I||G[12]!==R)B=N(i,{title:"Try Claude Code Desktop",children:u(L,{flexDirection:"column",paddingX:2,paddingY:1,children:[m,N(d,{options:my,onChange:I,onCancel:R})]})}),G[11]=I,G[12]=R,G[13]=B;else B=G[13];return B}function Cy(y){if(y.desktopUpsellDismissed)return y;return{...y,desktopUpsellDismissed:!0}}function py(){let y=(q().desktopUpsellSeenCount??0)+1;w((G)=>{if((G.desktopUpsellSeenCount??0)>=y)return G;return{...G,desktopUpsellSeenCount:y}}),D("tengu_desktop_upsell_shown",{seen_count:y})}M();function VG(y){let G=q().numStartups;w((k)=>{let z=k.tipsHistory??{};if(z[y]===G)return k;return{...k,tipsHistory:{...z,[y]:G}}})}function $(y){let G=q(),k=G.tipsHistory?.[y];if(!k)return 1/0;return G.numStartups-k}fy();Dy();_y();dy();cy();$y();kG();ay();sy();gy();ty();M();ly();Ey();oy();Ay();xy();iy();uy();GG();yG();ey();zG();A();ny();qG();var Y;async function IG(){if(Y!==void 0)return Y;let y=await Oy();return Y=j in y,Y}async function x(y,G,k){if(!await IG())return!1;if(by(`${y}@${j}`))return!1;let{bashTools:z}=G??{};if(k.cli&&z?.size){if(k.cli.some((X)=>z.has(X)))return!0}if(k.filePath&&G?.readFileState){if(Xy(G.readFileState).some((W)=>k.filePath.test(W)))return!0}return!1}var JG=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claude to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return q().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${U("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=q();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=q(),G=T(),k=Boolean(y.lastPlanModeUse),z=Boolean(G?.permissions?.defaultMode);return k&&!z}catch(y){return l(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claude sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=q();return await o()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>"Review local changes, stashes and the git log side by side — run /diff, or press gg on an empty prompt.",cooldownSessions:10,isRelevant:async()=>{try{return await a()}catch(y){return!1}}},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=q();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claude sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(Hy())return!1;return await Ny()>=2}},{id:"terminal-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=q();if(J.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>J.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=q();return Boolean((J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!Ry())return!1;let y=q();return!(J.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claude memory",cooldownSessions:15,async isRelevant(){return q().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&_.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>P()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>T().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claude is working.",cooldownSessions:5,async isRelevant(){return q().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claude while it works to steer Claude in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claude to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${J.terminal==="vscode"?"code":J.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!yy())return!1;if(P()!=="macos")return!1;switch(J.terminal){case"vscode":return!await Iy();case"cursor":return!await qy();case"windsurf":return!await zy();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claude to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(Gy())return!1;if((await ky()).length!==0)return!1;return(await Jy()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!q().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!q().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return q().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!J.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claude Code using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>P()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!v()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>v()},{id:"continue",content:async()=>"Run claude --continue or claude --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>Vy()&&q().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return q().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${U("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${U("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return q().numStartups>5}},{id:"desktop-app",content:async()=>"Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop",cooldownSessions:15,isRelevant:async()=>P()!=="linux"},{id:"desktop-shortcut",content:async(y)=>{return`Continue your session in Claude Code Desktop with ${Q("suggestion",y.theme)("/desktop")}`},cooldownSessions:15,isRelevant:async()=>{if(!S().enable_shortcut_tip)return!1;return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}},{id:"web-app",content:async()=>"Run tasks in the cloud while you keep coding locally · clau.de/web",cooldownSessions:15,isRelevant:async()=>!0},{id:"mobile-app",content:async()=>"/mobile to use Claude Code from the Claude app on your phone",cooldownSessions:15,isRelevant:async()=>!0},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${U("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=q(),k=c()==="opusplan",z=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return k&&z>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
+ ${Q("suggestion",y.theme)(`/plugin install frontend-design@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>x("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
3
+ ${Q("suggestion",y.theme)(`/plugin install vercel@${j}`)}`},cooldownSessions:3,isRelevant:async(y)=>x("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let k=Q("suggestion",y.theme)("/effort high");return Z("tengu_tide_elm","off")==="copy_b"?`Use ${k} for better one-shot answers. Claude thinks it through first.`:`Working on something tricky? ${k} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!Qy(t()))return!1;if(n("policySettings")?.effortLevel!==void 0)return!1;if(Wy()!==void 0)return!1;let y=r().effortLevel;if(y==="high"||y==="max")return!1;return Z("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return Z("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claude to ${G("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${G('"fan out subagents"')} and Claude sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;return Z("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let G=Q("suggestion",y.theme);return Z("tengu_timber_lark","off")==="copy_b"?`Use ${G("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${G("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!h())return!1;if(!e())return!1;return Z("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let G=Q("claude",y.theme),k=jy();return k?`Share Claude Code and earn ${G(Uy(k))} of extra usage · ${G("/passes")}`:`You have free guest passes to share · ${G("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(q().hasVisitedPasses)return!1;let{eligible:G}=Py();return G}},{id:"overage-credit",content:async(y)=>{let G=Q("claude",y.theme),k=Zy(),z=k?Ky(k):null;if(!z)return"";return`${G(`${z} in extra usage, on us`)} · third-party apps · ${G("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>wy()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return q().numStartups>5}}],QG=[];function WG(){let G=r().spinnerTipsOverride;if(!G?.tips?.length)return[];return G.tips.map((k,z)=>({id:`custom-tip-${z}`,content:async()=>k,cooldownSessions:0,isRelevant:async()=>!0}))}async function cG(y){let k=r().spinnerTipsOverride,z=WG();if(k?.excludeDefault&&z.length>0)return z;let X=[...JG,...QG],W=await Promise.all(X.map((I)=>I.isRelevant(y)));return[...X.filter((I,K)=>W[K]).filter((I)=>$(I.id)>=I.cooldownSessions),...z]}
4
+ export{wG as La,PG as Ma,VG as Na,$ as Oa,cG as Pa};
@@ -0,0 +1,2 @@
1
+ import{upa as O,wpa as UJ}from"./cli-0.6.6-py5db2ds.mjs";var N=O((IJ,Oq)=>{var K1=Number.MAX_SAFE_INTEGER||9007199254740991,z1=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:K1,RELEASE_TYPES:z1,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var S=O((OJ,Hq)=>{var j1=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Hq.exports=j1});var C=O((L,wq)=>{var{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:Y1,MAX_LENGTH:U1}=N(),F1=S();L=wq.exports={};var I1=L.re=[],O1=L.safeRe=[],z=L.src=[],H1=L.safeSrc=[],j=L.t={},w1=0,r="[a-zA-Z0-9-]",y1=[["\\s",1],["\\d",U1],[r,Y1]],B1=(q)=>{for(let[$,J]of y1)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=B1($),W=w1++;F1(q,W,$),j[q]=W,z[W]=$,H1[W]=Q,I1[W]=new RegExp($,J?"g":void 0),O1[W]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${r}*`);w("MAINVERSION",`(${z[j.NUMERICIDENTIFIER]})\\.(${z[j.NUMERICIDENTIFIER]})\\.(${z[j.NUMERICIDENTIFIER]})`);w("MAINVERSIONLOOSE",`(${z[j.NUMERICIDENTIFIERLOOSE]})\\.(${z[j.NUMERICIDENTIFIERLOOSE]})\\.(${z[j.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASEIDENTIFIER",`(?:${z[j.NONNUMERICIDENTIFIER]}|${z[j.NUMERICIDENTIFIER]})`);w("PRERELEASEIDENTIFIERLOOSE",`(?:${z[j.NONNUMERICIDENTIFIER]}|${z[j.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASE",`(?:-(${z[j.PRERELEASEIDENTIFIER]}(?:\\.${z[j.PRERELEASEIDENTIFIER]})*))`);w("PRERELEASELOOSE",`(?:-?(${z[j.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${z[j.PRERELEASEIDENTIFIERLOOSE]})*))`);w("BUILDIDENTIFIER",`${r}+`);w("BUILD",`(?:\\+(${z[j.BUILDIDENTIFIER]}(?:\\.${z[j.BUILDIDENTIFIER]})*))`);w("FULLPLAIN",`v?${z[j.MAINVERSION]}${z[j.PRERELEASE]}?${z[j.BUILD]}?`);w("FULL",`^${z[j.FULLPLAIN]}$`);w("LOOSEPLAIN",`[v=\\s]*${z[j.MAINVERSIONLOOSE]}${z[j.PRERELEASELOOSE]}?${z[j.BUILD]}?`);w("LOOSE",`^${z[j.LOOSEPLAIN]}$`);w("GTLT","((?:<|>)?=?)");w("XRANGEIDENTIFIERLOOSE",`${z[j.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);w("XRANGEIDENTIFIER",`${z[j.NUMERICIDENTIFIER]}|x|X|\\*`);w("XRANGEPLAIN",`[v=\\s]*(${z[j.XRANGEIDENTIFIER]})(?:\\.(${z[j.XRANGEIDENTIFIER]})(?:\\.(${z[j.XRANGEIDENTIFIER]})(?:${z[j.PRERELEASE]})?${z[j.BUILD]}?)?)?`);w("XRANGEPLAINLOOSE",`[v=\\s]*(${z[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[j.XRANGEIDENTIFIERLOOSE]})(?:${z[j.PRERELEASELOOSE]})?${z[j.BUILD]}?)?)?`);w("XRANGE",`^${z[j.GTLT]}\\s*${z[j.XRANGEPLAIN]}$`);w("XRANGELOOSE",`^${z[j.GTLT]}\\s*${z[j.XRANGEPLAINLOOSE]}$`);w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`);w("COERCE",`${z[j.COERCEPLAIN]}(?:$|[^\\d])`);w("COERCEFULL",z[j.COERCEPLAIN]+`(?:${z[j.PRERELEASE]})?(?:${z[j.BUILD]})?(?:$|[^\\d])`);w("COERCERTL",z[j.COERCE],!0);w("COERCERTLFULL",z[j.COERCEFULL],!0);w("LONETILDE","(?:~>?)");w("TILDETRIM",`(\\s*)${z[j.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";w("TILDE",`^${z[j.LONETILDE]}${z[j.XRANGEPLAIN]}$`);w("TILDELOOSE",`^${z[j.LONETILDE]}${z[j.XRANGEPLAINLOOSE]}$`);w("LONECARET","(?:\\^)");w("CARETTRIM",`(\\s*)${z[j.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";w("CARET",`^${z[j.LONECARET]}${z[j.XRANGEPLAIN]}$`);w("CARETLOOSE",`^${z[j.LONECARET]}${z[j.XRANGEPLAINLOOSE]}$`);w("COMPARATORLOOSE",`^${z[j.GTLT]}\\s*(${z[j.LOOSEPLAIN]})$|^$`);w("COMPARATOR",`^${z[j.GTLT]}\\s*(${z[j.FULLPLAIN]})$|^$`);w("COMPARATORTRIM",`(\\s*)${z[j.GTLT]}\\s*(${z[j.LOOSEPLAIN]}|${z[j.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";w("HYPHENRANGE",`^\\s*(${z[j.XRANGEPLAIN]})\\s+-\\s+(${z[j.XRANGEPLAIN]})\\s*$`);w("HYPHENRANGELOOSE",`^\\s*(${z[j.XRANGEPLAINLOOSE]})\\s+-\\s+(${z[j.XRANGEPLAINLOOSE]})\\s*$`);w("STAR","(<|>)?=?\\s*\\*");w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var b=O((HJ,yq)=>{var x1=Object.freeze({loose:!0}),D1=Object.freeze({}),G1=(q)=>{if(!q)return D1;if(typeof q!=="object")return x1;return q};yq.exports=G1});var o=O((wJ,Dq)=>{var Bq=/^[0-9]+$/,xq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=Bq.test(q),Q=Bq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},V1=(q,$)=>xq($,q);Dq.exports={compareIdentifiers:xq,rcompareIdentifiers:V1}});var G=O((yJ,Vq)=>{var h=S(),{MAX_LENGTH:Gq,MAX_SAFE_INTEGER:f}=N(),{safeRe:v,t:d}=C(),P1=b(),{compareIdentifiers:e}=o(),_1=(q,$)=>{let J=$.split(".");if(J.length>q.length)return!1;for(let Q=0;Q<J.length;Q++)if(e(q[Q],J[Q])!==0)return!1;return!0};class A{constructor(q,$){if($=P1($),q instanceof A)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>Gq)throw TypeError(`version is longer than ${Gq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?v[d.LOOSE]:v[d.FULL]);if(!J)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>f||this.major<0)throw TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let W=+Q;if(W>=0&&W<f)return W}return Q});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(h("SemVer.compare",this.version,this.options,q),!(q instanceof A)){if(typeof q==="string"&&q===this.version)return 0;q=new A(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof A))q=new A(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof A))q=new A(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let $=0;do{let J=this.prerelease[$],Q=q.prerelease[$];if(h("prerelease compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof A))q=new A(q,this.options);let $=0;do{let J=this.build[$],Q=q.build[$];if(h("build compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}inc(q,$,J){if(q.startsWith("pre")){if(!$&&J===!1)throw Error("invalid increment argument: identifier is empty");if($){let Q=`-${$}`.match(this.options.loose?v[d.PRERELEASELOOSE]:v[d.PRERELEASE]);if(!Q||Q[1]!==$)throw Error(`invalid identifier: ${$}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$,J),this.inc("pre",$,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",$,J);this.inc("pre",$,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let W=this.prerelease.length;while(--W>=0)if(typeof this.prerelease[W]==="number")this.prerelease[W]++,W=-2;if(W===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let W=[$,Q];if(J===!1)W=[$];if(_1(this.prerelease,$)){let Z=this.prerelease[$.split(".").length];if(isNaN(Z))this.prerelease=W}else this.prerelease=W}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Vq.exports=A});var E=O((BJ,_q)=>{var Pq=G(),X1=(q,$,J=!1)=>{if(q instanceof Pq)return q;try{return new Pq(q,$)}catch(Q){if(!J)return null;throw Q}};_q.exports=X1});var Aq=O((xJ,Xq)=>{var A1=E(),L1=(q,$)=>{let J=A1(q,$);return J?J.version:null};Xq.exports=L1});var Eq=O((DJ,Lq)=>{var E1=E(),N1=(q,$)=>{let J=E1(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Lq.exports=N1});var Sq=O((GJ,Cq)=>{var Nq=G(),C1=(q,$,J,Q,W)=>{if(typeof J==="string")W=Q,Q=J,J=void 0;try{return new Nq(q instanceof Nq?q.version:q,J).inc($,Q,W).version}catch(Z){return null}};Cq.exports=C1});var uq=O((VJ,kq)=>{var Rq=E(),S1=(q,$)=>{let J=Rq(q,null,!0),Q=Rq($,null,!0),W=J.compare(Q);if(W===0)return null;let Z=W>0,K=Z?J:Q,Y=Z?Q:J,U=!!K.prerelease.length;if(!!Y.prerelease.length&&!U){if(!Y.patch&&!Y.minor)return"major";if(Y.compareMain(K)===0){if(Y.minor&&!Y.patch)return"minor";return"patch"}}let F=U?"pre":"";if(J.major!==Q.major)return F+"major";if(J.minor!==Q.minor)return F+"minor";if(J.patch!==Q.patch)return F+"patch";return"prerelease"};kq.exports=S1});var Mq=O((PJ,Tq)=>{var R1=G(),k1=(q,$)=>new R1(q,$).major;Tq.exports=k1});var hq=O((_J,bq)=>{var u1=G(),T1=(q,$)=>new u1(q,$).minor;bq.exports=T1});var vq=O((XJ,fq)=>{var M1=G(),b1=(q,$)=>new M1(q,$).patch;fq.exports=b1});var lq=O((AJ,dq)=>{var h1=E(),f1=(q,$)=>{let J=h1(q,$);return J&&J.prerelease.length?J.prerelease:null};dq.exports=f1});var _=O((LJ,cq)=>{var gq=G(),v1=(q,$,J)=>new gq(q,J).compare(new gq($,J));cq.exports=v1});var pq=O((EJ,mq)=>{var d1=_(),l1=(q,$,J)=>d1($,q,J);mq.exports=l1});var aq=O((NJ,sq)=>{var g1=_(),c1=(q,$)=>g1(q,$,!0);sq.exports=c1});var l=O((CJ,tq)=>{var nq=G(),m1=(q,$,J)=>{let Q=new nq(q,J),W=new nq($,J);return Q.compare(W)||Q.compareBuild(W)};tq.exports=m1});var rq=O((SJ,iq)=>{var p1=l(),s1=(q,$)=>q.sort((J,Q)=>p1(J,Q,$));iq.exports=s1});var eq=O((RJ,oq)=>{var a1=l(),n1=(q,$)=>q.sort((J,Q)=>a1(Q,J,$));oq.exports=n1});var R=O((kJ,q0)=>{var t1=_(),i1=(q,$,J)=>t1(q,$,J)>0;q0.exports=i1});var g=O((uJ,$0)=>{var r1=_(),o1=(q,$,J)=>r1(q,$,J)<0;$0.exports=o1});var qq=O((TJ,J0)=>{var e1=_(),q$=(q,$,J)=>e1(q,$,J)===0;J0.exports=q$});var $q=O((MJ,Q0)=>{var $$=_(),J$=(q,$,J)=>$$(q,$,J)!==0;Q0.exports=J$});var c=O((bJ,W0)=>{var Q$=_(),W$=(q,$,J)=>Q$(q,$,J)>=0;W0.exports=W$});var m=O((hJ,Z0)=>{var Z$=_(),K$=(q,$,J)=>Z$(q,$,J)<=0;Z0.exports=K$});var Jq=O((fJ,K0)=>{var z$=qq(),j$=$q(),Y$=R(),U$=c(),F$=g(),I$=m(),O$=(q,$,J,Q)=>{switch($){case"===":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q===J;case"!==":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q!==J;case"":case"=":case"==":return z$(q,J,Q);case"!=":return j$(q,J,Q);case">":return Y$(q,J,Q);case">=":return U$(q,J,Q);case"<":return F$(q,J,Q);case"<=":return I$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};K0.exports=O$});var j0=O((vJ,z0)=>{var H$=G(),w$=E(),{safeRe:p,t:s}=C(),y$=(q,$)=>{if(q instanceof H$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?p[s.COERCEFULL]:p[s.COERCE]);else{let U=$.includePrerelease?p[s.COERCERTLFULL]:p[s.COERCERTL],H;while((H=U.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||H.index+H[0].length!==J.index+J[0].length)J=H;U.lastIndex=H.index+H[1].length+H[2].length}U.lastIndex=-1}if(J===null)return null;let Q=J[2],W=J[3]||"0",Z=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",Y=$.includePrerelease&&J[6]?`+${J[6]}`:"";return w$(`${Q}.${W}.${Z}${K}${Y}`,$)};z0.exports=y$});var U0=O((dJ,Y0)=>{var B$=E(),x$=N(),D$=G(),G$=(q,$,J)=>{if(!x$.RELEASE_TYPES.includes($))return null;let Q=V$(q,J);return Q&&P$(Q,$)},V$=(q,$)=>{let J=q instanceof D$?q.version:q;return B$(J,$)},P$=(q,$)=>{if(_$($))return q.version;switch(q.prerelease=[],$){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},_$=(q)=>{return q.startsWith("pre")};Y0.exports=G$});var O0=O((lJ,I0)=>{class F0{constructor(){this.max=1000,this.map=new Map}get(q){let $=this.map.get(q);if($===void 0)return;else return this.map.delete(q),this.map.set(q,$),$}delete(q){return this.map.delete(q)}set(q,$){if(!this.delete(q)&&$!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,$)}return this}}I0.exports=F0});var X=O((gJ,B0)=>{var X$=/\s+/g;class k{constructor(q,$){if($=L$($),q instanceof k)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else return new k(q.raw,$);if(q instanceof Qq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=q.trim().replace(X$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((Q)=>!w0(Q[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&M$(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let $=this.set[q];for(let J=0;J<$.length;J++){if(J>0)this.formatted+=" ";this.formatted+=$[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(T$,"");let J=((this.options.includePrerelease&&k$)|(this.options.loose&&u$))+":"+q,Q=H0.get(J);if(Q)return Q;let W=this.options.loose,Z=W?P[V.HYPHENRANGELOOSE]:P[V.HYPHENRANGE];q=q.replace(Z,s$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(P[V.COMPARATORTRIM],C$),B("comparator trim",q),q=q.replace(P[V.TILDETRIM],S$),B("tilde trim",q),q=q.replace(P[V.CARETTRIM],R$),B("caret trim",q);let K=q.split(" ").map((F)=>b$(F,this.options)).join(" ").split(/\s+/).map((F)=>p$(F,this.options));if(W)K=K.filter((F)=>{return B("loose invalid filter",F,this.options),!!F.match(P[V.COMPARATORLOOSE])});B("range list",K);let Y=new Map,U=K.map((F)=>new Qq(F,this.options));for(let F of U){if(w0(F))return[F];Y.set(F.value,F)}if(Y.size>1&&Y.has(""))Y.delete("");let H=[...Y.values()];return H0.set(J,H),H}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return y0(J,$)&&q.set.some((Q)=>{return y0(Q,$)&&J.every((W)=>{return Q.every((Z)=>{return W.intersects(Z,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new E$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(a$(this.set[$],q,this.options))return!0;return!1}}B0.exports=k;var A$=O0(),H0=new A$,L$=b(),Qq=u(),B=S(),E$=G(),{safeRe:P,src:N$,t:V,comparatorTrimReplace:C$,tildeTrimReplace:S$,caretTrimReplace:R$}=C(),{FLAG_INCLUDE_PRERELEASE:k$,FLAG_LOOSE:u$}=N(),T$=new RegExp(N$[V.BUILD],"g"),w0=(q)=>q.value==="<0.0.0-0",M$=(q)=>q.value==="",y0=(q,$)=>{let J=!0,Q=q.slice(),W=Q.pop();while(J&&Q.length)J=Q.every((Z)=>{return W.intersects(Z,$)}),W=Q.pop();return J},b$=(q,$)=>{return q=q.replace(P[V.BUILD],""),B("comp",q,$),q=d$(q,$),B("caret",q),q=f$(q,$),B("tildes",q),q=g$(q,$),B("xrange",q),q=m$(q,$),B("stars",q),q},D=(q)=>!q||q.toLowerCase()==="x"||q==="*",h$=(q,$,J)=>D(q)&&!D($)||D($)&&J&&!D(J),f$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>v$(J,$)).join(" ")},v$=(q,$)=>{let J=$.loose?P[V.TILDELOOSE]:P[V.TILDE];return q.replace(J,(Q,W,Z,K,Y)=>{B("tilde",q,Q,W,Z,K,Y);let U;if(D(W))U="";else if(D(Z))U=`>=${W}.0.0 <${+W+1}.0.0-0`;else if(D(K))U=`>=${W}.${Z}.0 <${W}.${+Z+1}.0-0`;else if(Y)B("replaceTilde pr",Y),U=`>=${W}.${Z}.${K}-${Y} <${W}.${+Z+1}.0-0`;else U=`>=${W}.${Z}.${K} <${W}.${+Z+1}.0-0`;return B("tilde return",U),U})},d$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>l$(J,$)).join(" ")},l$=(q,$)=>{B("caret",q,$);let J=$.loose?P[V.CARETLOOSE]:P[V.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(W,Z,K,Y,U)=>{B("caret",q,W,Z,K,Y,U);let H;if(D(Z))H="";else if(D(K))H=`>=${Z}.0.0${Q} <${+Z+1}.0.0-0`;else if(D(Y))if(Z==="0")H=`>=${Z}.${K}.0${Q} <${Z}.${+K+1}.0-0`;else H=`>=${Z}.${K}.0${Q} <${+Z+1}.0.0-0`;else if(U)if(B("replaceCaret pr",U),Z==="0")if(K==="0")H=`>=${Z}.${K}.${Y}-${U} <${Z}.${K}.${+Y+1}-0`;else H=`>=${Z}.${K}.${Y}-${U} <${Z}.${+K+1}.0-0`;else H=`>=${Z}.${K}.${Y}-${U} <${+Z+1}.0.0-0`;else if(B("no pr"),Z==="0")if(K==="0")H=`>=${Z}.${K}.${Y} <${Z}.${K}.${+Y+1}-0`;else H=`>=${Z}.${K}.${Y} <${Z}.${+K+1}.0-0`;else H=`>=${Z}.${K}.${Y} <${+Z+1}.0.0-0`;return B("caret return",H),H})},g$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>c$(J,$)).join(" ")},c$=(q,$)=>{q=q.trim();let J=$.loose?P[V.XRANGELOOSE]:P[V.XRANGE];return q.replace(J,(Q,W,Z,K,Y,U)=>{if(B("xRange",q,Q,W,Z,K,Y,U),h$(Z,K,Y))return q;let H=D(Z),F=H||D(K),y=F||D(Y),x=y;if(W==="="&&x)W="";if(U=$.includePrerelease?"-0":"",H)if(W===">"||W==="<")Q="<0.0.0-0";else Q="*";else if(W&&x){if(F)K=0;if(Y=0,W===">")if(W=">=",F)Z=+Z+1,K=0,Y=0;else K=+K+1,Y=0;else if(W==="<=")if(W="<",F)Z=+Z+1;else K=+K+1;if(W==="<")U="-0";Q=`${W+Z}.${K}.${Y}${U}`}else if(F)Q=`>=${Z}.0.0${U} <${+Z+1}.0.0-0`;else if(y)Q=`>=${Z}.${K}.0${U} <${Z}.${+K+1}.0-0`;return B("xRange return",Q),Q})},m$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(P[V.STAR],"")},p$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(P[$.includePrerelease?V.GTE0PRE:V.GTE0],"")},s$=(q)=>($,J,Q,W,Z,K,Y,U,H,F,y,x)=>{if(D(Q))J="";else if(D(W))J=`>=${Q}.0.0${q?"-0":""}`;else if(D(Z))J=`>=${Q}.${W}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(D(H))U="";else if(D(F))U=`<${+H+1}.0.0-0`;else if(D(y))U=`<${H}.${+F+1}.0-0`;else if(x)U=`<=${H}.${F}.${y}-${x}`;else if(q)U=`<${H}.${F}.${+y+1}-0`;else U=`<=${U}`;return`${J} ${U}`.trim()},a$=(q,$,J)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test($))return!1;if($.prerelease.length&&!J.includePrerelease){for(let Q=0;Q<q.length;Q++){if(B(q[Q].semver),q[Q].semver===Qq.ANY)continue;if(q[Q].semver.prerelease.length>0){let W=q[Q].semver;if(W.major===$.major&&W.minor===$.minor&&W.patch===$.patch)return!0}}return!1}return!0}});var u=O((cJ,_0)=>{var T=Symbol("SemVer ANY");class a{static get ANY(){return T}constructor(q,$){if($=x0($),q instanceof a)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Zq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Zq("comp",this)}parse(q){let $=this.options.loose?D0[G0.COMPARATORLOOSE]:D0[G0.COMPARATOR],J=q.match($);if(!J)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=T;else this.semver=new V0(J[2],this.options.loose)}toString(){return this.value}test(q){if(Zq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new V0(q,this.options)}catch($){return!1}return Wq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof a))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new P0(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new P0(this.value,$).test(q.semver)}if($=x0($),$.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!$.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Wq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Wq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}_0.exports=a;var x0=b(),{safeRe:D0,t:G0}=C(),Wq=Jq(),Zq=S(),V0=G(),P0=X()});var M=O((mJ,X0)=>{var n$=X(),t$=(q,$,J)=>{try{$=new n$($,J)}catch(Q){return!1}return $.test(q)};X0.exports=t$});var L0=O((pJ,A0)=>{var i$=X(),r$=(q,$)=>new i$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));A0.exports=r$});var N0=O((sJ,E0)=>{var o$=G(),e$=X(),q9=(q,$,J)=>{let Q=null,W=null,Z=null;try{Z=new e$($,J)}catch(K){return null}return q.forEach((K)=>{if(Z.test(K)){if(!Q||W.compare(K)===-1)Q=K,W=new o$(Q,J)}}),Q};E0.exports=q9});var S0=O((aJ,C0)=>{var $9=G(),J9=X(),Q9=(q,$,J)=>{let Q=null,W=null,Z=null;try{Z=new J9($,J)}catch(K){return null}return q.forEach((K)=>{if(Z.test(K)){if(!Q||W.compare(K)===1)Q=K,W=new $9(Q,J)}}),Q};C0.exports=Q9});var u0=O((nJ,k0)=>{var Kq=G(),W9=X(),R0=R(),Z9=(q,$)=>{q=new W9(q,$);let J=new Kq("0.0.0");if(q.test(J))return J;if(J=new Kq("0.0.0-0"),q.test(J))return J;J=null;for(let Q=0;Q<q.set.length;++Q){let W=q.set[Q],Z=null;if(W.forEach((K)=>{let Y=new Kq(K.semver.version);switch(K.operator){case">":if(Y.prerelease.length===0)Y.patch++;else Y.prerelease.push(0);Y.raw=Y.format();case"":case">=":if(!Z||R0(Y,Z))Z=Y;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),Z&&(!J||R0(J,Z)))J=Z}if(J&&q.test(J))return J;return null};k0.exports=Z9});var M0=O((tJ,T0)=>{var K9=X(),z9=(q,$)=>{try{return new K9(q,$).range||"*"}catch(J){return null}};T0.exports=z9});var n=O((iJ,v0)=>{var j9=G(),f0=u(),{ANY:Y9}=f0,U9=X(),F9=M(),b0=R(),h0=g(),I9=m(),O9=c(),H9=(q,$,J,Q)=>{q=new j9(q,Q),$=new U9($,Q);let W,Z,K,Y,U;switch(J){case">":W=b0,Z=I9,K=h0,Y=">",U=">=";break;case"<":W=h0,Z=O9,K=b0,Y="<",U="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(F9(q,$,Q))return!1;for(let H=0;H<$.set.length;++H){let F=$.set[H],y=null,x=null;if(F.forEach((I)=>{if(I.semver===Y9)I=new f0(">=0.0.0");if(y=y||I,x=x||I,W(I.semver,y.semver,Q))y=I;else if(K(I.semver,x.semver,Q))x=I}),y.operator===Y||y.operator===U)return!1;if((!x.operator||x.operator===Y)&&Z(q,x.semver))return!1;else if(x.operator===U&&K(q,x.semver))return!1}return!0};v0.exports=H9});var l0=O((rJ,d0)=>{var w9=n(),y9=(q,$,J)=>w9(q,$,">",J);d0.exports=y9});var c0=O((oJ,g0)=>{var B9=n(),x9=(q,$,J)=>B9(q,$,"<",J);g0.exports=x9});var s0=O((eJ,p0)=>{var m0=X(),D9=(q,$,J)=>{return q=new m0(q,J),$=new m0($,J),q.intersects($,J)};p0.exports=D9});var n0=O((qQ,a0)=>{var G9=M(),V9=_();a0.exports=(q,$,J)=>{let Q=[],W=null,Z=null,K=q.sort((F,y)=>V9(F,y,J));for(let F of K)if(G9(F,$,J)){if(Z=F,!W)W=F}else{if(Z)Q.push([W,Z]);Z=null,W=null}if(W)Q.push([W,null]);let Y=[];for(let[F,y]of Q)if(F===y)Y.push(F);else if(!y&&F===K[0])Y.push("*");else if(!y)Y.push(`>=${F}`);else if(F===K[0])Y.push(`<=${y}`);else Y.push(`${F} - ${y}`);let U=Y.join(" || "),H=typeof $.raw==="string"?$.raw:String($);return U.length<H.length?U:$}});var q1=O(($Q,e0)=>{var t0=X(),Yq=u(),{ANY:zq}=Yq,jq=M(),Uq=_(),P9=(q,$,J={})=>{if(q===$)return!0;q=new t0(q,J),$=new t0($,J);let Q=!1;q:for(let W of q.set){for(let Z of $.set){let K=X9(W,Z,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},_9=[new Yq(">=0.0.0-0")],i0=[new Yq(">=0.0.0")],X9=(q,$,J)=>{if(q===$)return!0;if(q.length===1&&q[0].semver===zq)if($.length===1&&$[0].semver===zq)return!0;else if(J.includePrerelease)q=_9;else q=i0;if($.length===1&&$[0].semver===zq)if(J.includePrerelease)return!0;else $=i0;let Q=new Set,W,Z;for(let I of q)if(I.operator===">"||I.operator===">=")W=r0(W,I,J);else if(I.operator==="<"||I.operator==="<=")Z=o0(Z,I,J);else Q.add(I.semver);if(Q.size>1)return null;let K;if(W&&Z){if(K=Uq(W.semver,Z.semver,J),K>0)return null;else if(K===0&&(W.operator!==">="||Z.operator!=="<="))return null}for(let I of Q){if(W&&!jq(I,String(W),J))return null;if(Z&&!jq(I,String(Z),J))return null;for(let Z1 of $)if(!jq(I,String(Z1),J))return!1;return!0}let Y,U,H,F,y=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1,x=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1;if(y&&y.prerelease.length===1&&Z.operator==="<"&&y.prerelease[0]===0)y=!1;for(let I of $){if(F=F||I.operator===">"||I.operator===">=",H=H||I.operator==="<"||I.operator==="<=",W){if(x){if(I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===x.major&&I.semver.minor===x.minor&&I.semver.patch===x.patch)x=!1}if(I.operator===">"||I.operator===">="){if(Y=r0(W,I,J),Y===I&&Y!==W)return!1}else if(W.operator===">="&&!I.test(W.semver))return!1}if(Z){if(y){if(I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===y.major&&I.semver.minor===y.minor&&I.semver.patch===y.patch)y=!1}if(I.operator==="<"||I.operator==="<="){if(U=o0(Z,I,J),U===I&&U!==Z)return!1}else if(Z.operator==="<="&&!I.test(Z.semver))return!1}if(!I.operator&&(Z||W)&&K!==0)return!1}if(W&&H&&!Z&&K!==0)return!1;if(Z&&F&&!W&&K!==0)return!1;if(x||y)return!1;return!0},r0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},o0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};e0.exports=P9});var W1=O((JQ,Q1)=>{var Fq=C(),$1=N(),A9=G(),J1=o(),L9=E(),E9=Aq(),N9=Eq(),C9=Sq(),S9=uq(),R9=Mq(),k9=hq(),u9=vq(),T9=lq(),M9=_(),b9=pq(),h9=aq(),f9=l(),v9=rq(),d9=eq(),l9=R(),g9=g(),c9=qq(),m9=$q(),p9=c(),s9=m(),a9=Jq(),n9=j0(),t9=U0(),i9=u(),r9=X(),o9=M(),e9=L0(),qJ=N0(),$J=S0(),JJ=u0(),QJ=M0(),WJ=n(),ZJ=l0(),KJ=c0(),zJ=s0(),jJ=n0(),YJ=q1();Q1.exports={parse:L9,valid:E9,clean:N9,inc:C9,diff:S9,major:R9,minor:k9,patch:u9,prerelease:T9,compare:M9,rcompare:b9,compareLoose:h9,compareBuild:f9,sort:v9,rsort:d9,gt:l9,lt:g9,eq:c9,neq:m9,gte:p9,lte:s9,cmp:a9,coerce:n9,truncate:t9,Comparator:i9,Range:r9,satisfies:o9,toComparators:e9,maxSatisfying:qJ,minSatisfying:$J,minVersion:JJ,validRange:QJ,outside:WJ,gtr:ZJ,ltr:KJ,intersects:zJ,simplifyRange:jJ,subset:YJ,SemVer:A9,re:Fq.re,src:Fq.src,tokens:Fq.t,SEMVER_SPEC_VERSION:$1.SEMVER_SPEC_VERSION,RELEASE_TYPES:$1.RELEASE_TYPES,compareIdentifiers:J1.compareIdentifiers,rcompareIdentifiers:J1.rcompareIdentifiers}});function t(){if(!Iq)Iq=W1();return Iq}function QQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===1;return t().gt(q,$,{loose:!0})}function WQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)>=0;return t().gte(q,$,{loose:!0})}function ZQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===-1;return t().lt(q,$,{loose:!0})}function KQ(q,$){if(typeof Bun<"u")return Bun.semver.satisfies(q,$);return t().satisfies(q,$,{loose:!0})}var Iq;var FJ=()=>{};
2
+ export{W1 as N0,QQ as O0,WQ as P0,ZQ as Q0,KQ as R0,FJ as S0};
@@ -0,0 +1,2 @@
1
+ import{L5 as Z,O5 as T,U5 as f,b6 as WB}from"./cli-0.6.6-8yvh28tb.mjs";import{J_ as _,K_ as KB,O7 as O,P7 as BB,Zba as A,jca as v,sca as QB}from"./cli-0.6.6-q1j20ysc.mjs";import{Ifa as w,Jfa as JB}from"./cli-0.6.6-d5dexg4d.mjs";import{eia as F,oia as e}from"./cli-0.6.6-nw0nh4e0.mjs";import{Bia as S,Cia as s,Rna as a,Uja as R,fja as I,gja as c,rja as M,sja as m}from"./cli-0.6.6-ncqg4xxp.mjs";import{ooa as q,poa as t}from"./cli-0.6.6-sqvm4f1y.mjs";import{wpa as K}from"./cli-0.6.6-py5db2ds.mjs";function p(B,J){return B+b(h()*(J-B+1))}var b,h,D;var G=K(()=>{b=Math.floor,h=Math.random;D=p});function u(B){var J=B.length;return J?B[D(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=u});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function i(B){return B==null?[]:z(B,I(B))}var U;var C=K(()=>{P();c();U=i});function n(B){return Y(U(B))}var k;var E=K(()=>{H();C();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,d.cache.clear?.()}function TB(){W=null,Q=null,d.cache.clear?.(),g.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return g()}var W=null,Q=null,d,g;var ZB=K(()=>{BB();t();a();WB();QB();JB();KB();e();d=q((B)=>{let J=v(),X=A(),$,N,L;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let x=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(x))L=x}}let V=Z(),j=V?.organizationUuid,y=V?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:_(),organizationUuid:j,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:L,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});g=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:w()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
2
+ export{kB as KS,r as LS,vB as MS,TB as NS,g as OS,ZB as PS};
@@ -0,0 +1,2 @@
1
+ import{wb as Y}from"./cli-0.6.6-yve3e654.mjs";import{rU as N,sU as C}from"./cli-0.6.6-zx0cgvxq.mjs";import{Kda as A,Mda as w}from"./cli-0.6.6-q1j20ysc.mjs";import{wga as B,zga as k}from"./cli-0.6.6-a837m6n5.mjs";import{Cha as j,dha as L,hha as E,zha as W}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as G,_ha as K}from"./cli-0.6.6-g6ja9jcs.mjs";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
+ export{v as qb,q as rb,p as sb,g as tb,d as ub,R as vb};
@@ -0,0 +1,2 @@
1
+ import{Zba as P,sca as y}from"./cli-0.6.6-q1j20ysc.mjs";import{wpa as U}from"./cli-0.6.6-py5db2ds.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
2
+ export{G as CV,M as DV,N as EV,Y as FV,C as GV,_ as HV,R as IV,f as JV,E as KV,I as LV,k as MV,A as NV,b as OV,h as PV,m as QV,p as RV,u as SV,T as TV,e as UV,W as VV,a as WV,s as XV,r as YV,g as ZV};
@@ -0,0 +1,2 @@
1
+ import{wpa as s}from"./cli-0.6.6-py5db2ds.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.6.6 (${e}${n}${t})`}var r=()=>{};
2
+ export{c as E1,i as F1,r as G1};
@@ -0,0 +1,2 @@
1
+ import{YE as U,ZE as A,bF as V,cF as E}from"./cli-0.6.6-23snct9d.mjs";import{GU as G,yU as W}from"./cli-0.6.6-ar43nqjq.mjs";import{JY as F,LY as H,oZ as O}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as q,v1 as K,w1 as L}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as I}from"./cli-0.6.6-c267ckfv.mjs";import{D5 as Q,b6 as p}from"./cli-0.6.6-8yvh28tb.mjs";import{Wba as M,Zba as N,sca as $}from"./cli-0.6.6-q1j20ysc.mjs";import{spa as Z,wpa as _}from"./cli-0.6.6-py5db2ds.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
2
+ export{b as Ub,d as Vb,P as Wb};
@@ -0,0 +1,2 @@
1
+ import{LY as t,oX as s,oZ as f}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as n,v1 as c,w1 as r}from"./cli-0.6.6-arvcw19g.mjs";import{spa as m,wpa as l}from"./cli-0.6.6-py5db2ds.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
2
+ export{T as Qf,p as Rf};
@@ -0,0 +1,2 @@
1
+ import{W7 as B,Y7 as p}from"./cli-0.6.6-q1j20ysc.mjs";import{wga as C,zga as y}from"./cli-0.6.6-a837m6n5.mjs";import{Cha as M,dha as T,hha as x,zha as V}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as L,_ha as c}from"./cli-0.6.6-g6ja9jcs.mjs";y();M();p();c();x();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function h(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function E(W){let Z=h(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,j=1800000,H=3,R=60000;function I({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let O=new Map,v=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=E(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=O.get(q);if(X)clearTimeout(X);let J=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),K(q,J);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,J);O.set(q,k)}function D(q,Q){let $=O.get(q);if($)clearTimeout($);let X=U(q),J=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(J)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(K,J,q,X);O.set(q,Y)}async function K(q,Q){let $;try{$=await W()}catch(J){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(J)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let J=(v.get(q)??0)+1;if(v.set(q,J),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${J}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),J<H){let Y=setTimeout(K,R,q,Q);O.set(q,Y)}return}v.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("tengu_bridge_token_refreshed",{}),Z(q,$);let X=setTimeout(K,j,q,Q);O.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=O.get(q);if(Q)clearTimeout(Q),O.delete(q);v.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of O.values())clearTimeout(q);O.clear(),v.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
+ export{E as ob,I as pb};
@@ -0,0 +1,2 @@
1
+ import{D5 as q,b6 as D}from"./cli-0.6.6-8yvh28tb.mjs";import{uga as m,vga as z}from"./cli-0.6.6-7r4esgkf.mjs";import{wpa as x}from"./cli-0.6.6-py5db2ds.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
2
+ export{E as Qh,F as Rh,K as Sh,M as Th,G as Uh};
@@ -0,0 +1,3 @@
1
+ import{mg as d,ng as Vq}from"./cli-0.6.6-0ak8r49x.mjs";import{$Q as l,BR as Oq,VP as a,XP as yq}from"./cli-0.6.6-23snct9d.mjs";import{JY as T,LY as R,dZ as $,oX as Zq,oZ as Gq}from"./cli-0.6.6-en2sexw5.mjs";import{N0 as t,P0 as v,S0 as e}from"./cli-0.6.6-4nxq7s1k.mjs";import{u1 as P,v1 as N,w1 as S}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as Yq}from"./cli-0.6.6-c267ckfv.mjs";import{U1 as u,V1 as Aq}from"./cli-0.6.6-ythetarc.mjs";import{I9 as j,_7 as G,a8 as o,c_ as s}from"./cli-0.6.6-q1j20ysc.mjs";import{Ifa as w,Jfa as r}from"./cli-0.6.6-d5dexg4d.mjs";import{Cha as n,zha as L}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as c,_ha as Xq}from"./cli-0.6.6-g6ja9jcs.mjs";import{Rna as i,Uja as f}from"./cli-0.6.6-ncqg4xxp.mjs";import{spa as I,wpa as h}from"./cli-0.6.6-py5db2ds.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
2
+ Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
3
+ export{mq as kg,Bq as lg};
@@ -0,0 +1,12 @@
1
+ import{QD as x,RD as s,SD as C,UD as n,VD as $,XD as Zq,YE as o,_E as Mq,cn as E,dn as Uq,gn as r,hn as Xq,kn as d,ln as Yq}from"./cli-0.6.6-23snct9d.mjs";import{JY as N,LY as U,PY as V,dZ as a,oX as Jq,oZ as Qq}from"./cli-0.6.6-en2sexw5.mjs";import{t1 as u,u1 as J,v1 as X,w1 as g}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as zq}from"./cli-0.6.6-c267ckfv.mjs";import{wga as w,zga as qq}from"./cli-0.6.6-a837m6n5.mjs";import{spa as i,wpa as t}from"./cli-0.6.6-py5db2ds.mjs";function Fq(){let z=f.c(9),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=X(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",J(U,{bold:!0,children:"October 8, 2025"}),". You can accept the updated terms today."]}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y,Z;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=J(U,{children:"· "}),Z=J(U,{bold:!0,children:"You can help improve Claude "}),z[2]=Y,z[3]=Z;else Y=z[2],Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(N,{paddingLeft:1,children:X(U,{children:[Y,Z,X(U,{children:["— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",J(V,{url:"https://claude.ai/settings/data-privacy-controls"}),")."]})]})}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=X(N,{flexDirection:"column",children:[F,W,J(N,{paddingLeft:1,children:X(U,{children:[J(U,{children:"· "}),J(U,{bold:!0,children:"Updates to data retention "}),J(U,{children:"— To help us improve our AI models and safety protections, we're extending data retention to 5 years."})]})})]}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[6]=Q;else Q=z[6];let H;if(z[7]===Symbol.for("react.memo_cache_sentinel"))H=J(V,{url:"https://anthropic.com/legal/terms"}),z[7]=H;else H=z[7];let O;if(z[8]===Symbol.for("react.memo_cache_sentinel"))O=X(u,{children:[q,P,X(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",H,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[8]=O;else O=z[8];return O}function Nq(){let z=f.c(7),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=J(U,{children:"We've updated our Consumer Terms and Privacy Policy."}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Help improve Claude"}),J(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"}),J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),z[2]=Y;else Y=z[2];let Z;if(z[3]===Symbol.for("react.memo_cache_sentinel"))Z=X(N,{flexDirection:"column",gap:1,children:[F,Y,X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"How this affects data retention"}),J(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."})]})]}),z[3]=Z;else Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=J(V,{url:"https://anthropic.com/legal/terms"}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=X(u,{children:[q,Z,X(U,{children:["Learn more (",W,") or read the updated Consumer Terms (",P,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[6]=Q;else Q=z[6];return Q}function kq(z){let q=f.c(34),{showIfAlreadyViewed:F,location:Y,onDone:Z}=z,[W,P]=_.useState(null),[Q,H]=_.useState(null),O,R;if(q[0]!==Y||q[1]!==Z||q[2]!==F)O=()=>{(async function(){let[e,c]=await Promise.all([x(),n()]),j=c.success?c.data:null;H(j);let l=$(e,c,F);if(P(l),!l){Z("skip_rendering");return}s(),w("tengu_grove_policy_viewed",{location:Y,dismissable:j?.notice_is_grace_period})})()},R=[F,Y,Z],q[0]=Y,q[1]=Z,q[2]=F,q[3]=O,q[4]=R;else O=q[3],R=q[4];if(_.useEffect(O,R),W===null)return null;if(!W)return null;let K;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Z)K=async function(v){q:switch(v){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Z(v)},q[5]=Q?.notice_is_grace_period,q[6]=Z,q[7]=K;else K=q[7];let A=K,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms · Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms · Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms · Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let I=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==A)G=function(){if(Q?.notice_is_grace_period){A("defer");return}A("escape")},q[10]=Q?.notice_is_grace_period,q[11]=A,q[12]=G;else G=q[12];let M=G,k;if(q[13]!==Q?.notice_is_grace_period)k=J(N,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?J(Fq,{}):J(Nq,{})}),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let D;if(q[15]===Symbol.for("react.memo_cache_sentinel"))D=J(N,{flexShrink:0,children:J(U,{color:"professionalBlue",children:Wq})}),q[15]=D;else D=q[15];let B;if(q[16]!==k)B=X(N,{flexDirection:"row",children:[k,D]}),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Please select how you'd like to continue"}),J(U,{children:"Your choice takes effect immediately upon confirmation."})]}),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==I||q[22]!==b)m=[...I,...b],q[21]=I,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==A)p=(h)=>A(h),q[24]=A,q[25]=p;else p=q[25];let y;if(q[26]!==M||q[27]!==m||q[28]!==p)y=X(N,{flexDirection:"column",gap:1,children:[T,J(o,{options:m,onChange:p,onCancel:M})]}),q[26]=M,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==M||q[31]!==y||q[32]!==B)S=X(d,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:M,inputGuide:Oq,children:[B,y]}),q[30]=M,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Oq(z){return z.pending?X(U,{children:["Press ",z.keyName," again to exit"]}):X(r,{children:[J(E,{shortcut:"Enter",action:"confirm"}),J(E,{shortcut:"Esc",action:"cancel"})]})}function _q(z){let q=f.c(17),{settings:F,domainExcluded:Y,onDone:Z}=z,[W,P]=_.useState(F.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];_.default.useEffect(Pq,Q);let H;if(q[1]!==Y||q[2]!==W)H=async(M,k)=>{if(!Y&&(k.tab||k.return||M===" ")){let D=!W;P(D),await C(D)}},q[1]=Y,q[2]=W,q[3]=H;else H=q[3];a(H);let O;if(q[4]===Symbol.for("react.memo_cache_sentinel"))O=J(U,{color:"error",children:"false"}),q[4]=O;else O=q[4];let R=O;if(Y){let M;if(q[5]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"error",children:"false (for emails with your domain)"}),q[5]=M;else M=q[5];R=M}else if(W){let M;if(q[6]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"success",children:"true"}),q[6]=M;else M=q[6];R=M}let K;if(q[7]!==Y)K=(M)=>M.pending?X(U,{children:["Press ",M.keyName," again to exit"]}):Y?J(E,{shortcut:"Esc",action:"cancel"}):X(r,{children:[J(E,{shortcut:"Enter/Tab/Space",action:"toggle"}),J(E,{shortcut:"Esc",action:"cancel"})]}),q[7]=Y,q[8]=K;else K=q[8];let A;if(q[9]===Symbol.for("react.memo_cache_sentinel"))A=X(U,{children:["Review and manage your privacy settings at"," ",J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),q[9]=A;else A=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=J(N,{width:44,children:J(U,{bold:!0,children:"Help improve Claude"})}),q[10]=L;else L=q[10];let I;if(q[11]!==R)I=X(N,{children:[L,J(N,{children:R})]}),q[11]=R,q[12]=I;else I=q[12];let G;if(q[13]!==Z||q[14]!==K||q[15]!==I)G=X(d,{title:"Data Privacy",color:"professionalBlue",onCancel:Z,inputGuide:K,children:[A,I]}),q[13]=Z,q[14]=K,q[15]=I,q[16]=G;else G=q[16];return G}function Pq(){w("tengu_grove_privacy_settings_viewed",{})}var f,_,Wq=` _____________
2
+ | \\ \\
3
+ | NEW TERMS \\__\\
4
+ | |
5
+ | ---------- |
6
+ | ---------- |
7
+ | ---------- |
8
+ | ---------- |
9
+ | ---------- |
10
+ | |
11
+ |______________|`;var Aq=t(()=>{qq();Qq();Zq();Mq();Xq();Yq();Uq();g();f=i(Jq(),1),_=i(zq(),1)});
12
+ export{kq as de,_q as ee,Aq as fe};
@@ -0,0 +1,2 @@
1
+ import{Uc as z,Vc as K}from"./cli-0.6.6-8gmesggf.mjs";import{tI as w,vI as J}from"./cli-0.6.6-23snct9d.mjs";import{x1 as H}from"./cli-0.6.6-c267ckfv.mjs";import{spa as E,wpa as G}from"./cli-0.6.6-py5db2ds.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
2
+ export{V as Qc,N as Rc};