@claudiolabs/claudin 0.6.5 → 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 (884) 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-7n7fwzth.mjs +2 -0
  100. package/dist/chunks/cli-0.6.6-7pfzbq40.mjs +2 -0
  101. package/dist/chunks/cli-0.6.6-7r4esgkf.mjs +2 -0
  102. package/dist/chunks/cli-0.6.6-7r817n5d.mjs +2 -0
  103. package/dist/chunks/cli-0.6.6-7s8bhv18.mjs +2 -0
  104. package/dist/chunks/cli-0.6.6-7tnsnb0c.mjs +2 -0
  105. package/dist/chunks/cli-0.6.6-816nja7p.mjs +2 -0
  106. package/dist/chunks/cli-0.6.6-85mqgh7w.mjs +133 -0
  107. package/dist/chunks/cli-0.6.6-8bvd4smw.mjs +3 -0
  108. package/dist/chunks/cli-0.6.6-8e7c224v.mjs +2 -0
  109. package/dist/chunks/cli-0.6.6-8gcxhg7t.mjs +3 -0
  110. package/dist/chunks/cli-0.6.6-8gmesggf.mjs +2 -0
  111. package/dist/chunks/cli-0.6.6-8hzhy95p.mjs +2 -0
  112. package/dist/chunks/cli-0.6.6-8s6h2xee.mjs +3 -0
  113. package/dist/chunks/cli-0.6.6-8vnkmjet.mjs +2 -0
  114. package/dist/chunks/cli-0.6.6-8wwb7c4z.mjs +10 -0
  115. package/dist/chunks/cli-0.6.6-8yvh28tb.mjs +16 -0
  116. package/dist/chunks/cli-0.6.6-92dvpnqv.mjs +3 -0
  117. package/dist/chunks/cli-0.6.6-962my51a.mjs +2 -0
  118. package/dist/chunks/cli-0.6.6-99e532z3.mjs +2 -0
  119. package/dist/chunks/cli-0.6.6-9r04g0xa.mjs +2 -0
  120. package/dist/chunks/cli-0.6.6-9rjdy05g.mjs +2 -0
  121. package/dist/chunks/cli-0.6.6-9tjtzwyt.mjs +2 -0
  122. package/dist/chunks/cli-0.6.6-a2e4eek5.mjs +2 -0
  123. package/dist/chunks/cli-0.6.6-a837m6n5.mjs +2 -0
  124. package/dist/chunks/cli-0.6.6-aep3cnz5.mjs +2 -0
  125. package/dist/chunks/cli-0.6.6-akjyt0hr.mjs +2 -0
  126. package/dist/chunks/cli-0.6.6-akqfmyeb.mjs +2 -0
  127. package/dist/chunks/cli-0.6.6-am3sz82d.mjs +58 -0
  128. package/dist/chunks/cli-0.6.6-ap1eg2xa.mjs +2 -0
  129. package/dist/chunks/cli-0.6.6-apq4h0nf.mjs +2 -0
  130. package/dist/chunks/cli-0.6.6-aq30fm8p.mjs +1 -0
  131. package/dist/chunks/cli-0.6.6-ar43nqjq.mjs +3 -0
  132. package/dist/chunks/cli-0.6.6-arvcw19g.mjs +2 -0
  133. package/dist/chunks/cli-0.6.6-as18fmg3.mjs +2 -0
  134. package/dist/chunks/cli-0.6.6-at7yytqj.mjs +2 -0
  135. package/dist/chunks/cli-0.6.6-axvjexmr.mjs +15 -0
  136. package/dist/chunks/cli-0.6.6-b1wqaqv9.mjs +4 -0
  137. package/dist/chunks/cli-0.6.6-bbv794xs.mjs +4 -0
  138. package/dist/chunks/cli-0.6.6-bn18ty4n.mjs +18 -0
  139. package/dist/chunks/cli-0.6.6-by1ngr5q.mjs +5 -0
  140. package/dist/chunks/cli-0.6.6-c267ckfv.mjs +2 -0
  141. package/dist/chunks/cli-0.6.6-c2xmgnfp.mjs +7 -0
  142. package/dist/chunks/cli-0.6.6-ct7zap14.mjs +2 -0
  143. package/dist/chunks/cli-0.6.6-czhez59x.mjs +2 -0
  144. package/dist/chunks/cli-0.6.6-d0qrt51j.mjs +2 -0
  145. package/dist/chunks/cli-0.6.6-d5dexg4d.mjs +2 -0
  146. package/dist/chunks/cli-0.6.6-dmd73xa3.mjs +2 -0
  147. package/dist/chunks/cli-0.6.6-dmtpt4r7.mjs +17 -0
  148. package/dist/chunks/cli-0.6.6-dnx45tc3.mjs +2 -0
  149. package/dist/chunks/cli-0.6.6-drg8zfkg.mjs +2 -0
  150. package/dist/chunks/cli-0.6.6-e4pcw0z3.mjs +3 -0
  151. package/dist/chunks/cli-0.6.6-eeaxd1dd.mjs +2 -0
  152. package/dist/chunks/cli-0.6.6-efkct3rx.mjs +2 -0
  153. package/dist/chunks/cli-0.6.6-ek8y79wd.mjs +2 -0
  154. package/dist/chunks/cli-0.6.6-en2sexw5.mjs +59 -0
  155. package/dist/chunks/cli-0.6.6-enc586ry.mjs +4 -0
  156. package/dist/chunks/cli-0.6.6-esnwdj9p.mjs +2 -0
  157. package/dist/chunks/cli-0.6.6-ezhp9zxv.mjs +2 -0
  158. package/dist/chunks/cli-0.6.6-f6wc5yc6.mjs +17 -0
  159. package/dist/chunks/cli-0.6.6-fep3xed7.mjs +2 -0
  160. package/dist/chunks/cli-0.6.6-fj9rpekf.mjs +2 -0
  161. package/dist/chunks/cli-0.6.6-g6ja9jcs.mjs +4 -0
  162. package/dist/chunks/cli-0.6.6-g9mdc3pd.mjs +2 -0
  163. package/dist/chunks/cli-0.6.6-gk8s7mch.mjs +67 -0
  164. package/dist/chunks/cli-0.6.6-gte1km05.mjs +2 -0
  165. package/dist/chunks/cli-0.6.6-h02v66zq.mjs +2 -0
  166. package/dist/chunks/cli-0.6.6-h12zw82h.mjs +3 -0
  167. package/dist/chunks/cli-0.6.6-h2aqs05m.mjs +2 -0
  168. package/dist/chunks/cli-0.6.6-h8d7s4qz.mjs +21 -0
  169. package/dist/chunks/cli-0.6.6-h8ew0rcw.mjs +24 -0
  170. package/dist/chunks/cli-0.6.6-hcajyfhg.mjs +6 -0
  171. package/dist/chunks/cli-0.6.6-hejk0ae6.mjs +5 -0
  172. package/dist/chunks/cli-0.6.6-hetrxwwb.mjs +2 -0
  173. package/dist/chunks/cli-0.6.6-heymhe69.mjs +24 -0
  174. package/dist/chunks/cli-0.6.6-hp08wrzx.mjs +15 -0
  175. package/dist/chunks/cli-0.6.6-hsgfy54f.mjs +2 -0
  176. package/dist/chunks/cli-0.6.6-hyqpcaay.mjs +2 -0
  177. package/dist/chunks/cli-0.6.6-j4j7a9y4.mjs +2 -0
  178. package/dist/chunks/cli-0.6.6-je6w2y3h.mjs +2 -0
  179. package/dist/chunks/cli-0.6.6-jh33fwqe.mjs +18 -0
  180. package/dist/chunks/cli-0.6.6-jjj2qt22.mjs +2 -0
  181. package/dist/chunks/cli-0.6.6-jqxfz350.mjs +2 -0
  182. package/dist/chunks/cli-0.6.6-jrpy2bkk.mjs +2 -0
  183. package/dist/chunks/cli-0.6.6-kca8bnv6.mjs +2 -0
  184. package/dist/chunks/cli-0.6.6-khr65dty.mjs +2 -0
  185. package/dist/chunks/cli-0.6.6-ktwh4wvp.mjs +6 -0
  186. package/dist/chunks/cli-0.6.6-mb1z3n48.mjs +2 -0
  187. package/dist/chunks/cli-0.6.6-mc9x1jry.mjs +28 -0
  188. package/dist/chunks/cli-0.6.6-mk746t95.mjs +2 -0
  189. package/dist/chunks/cli-0.6.6-mmgfr8v9.mjs +2 -0
  190. package/dist/chunks/cli-0.6.6-mrkkgjdh.mjs +2 -0
  191. package/dist/chunks/cli-0.6.6-mzjbzje2.mjs +2 -0
  192. package/dist/chunks/cli-0.6.6-nbrpn6xq.mjs +2 -0
  193. package/dist/chunks/cli-0.6.6-ncqg4xxp.mjs +2 -0
  194. package/dist/chunks/cli-0.6.6-ntyx46a7.mjs +2 -0
  195. package/dist/chunks/cli-0.6.6-nw0nh4e0.mjs +2 -0
  196. package/dist/chunks/cli-0.6.6-nymfz9tw.mjs +2 -0
  197. package/dist/chunks/cli-0.6.6-p3xdjh86.mjs +12 -0
  198. package/dist/chunks/cli-0.6.6-phfaae6k.mjs +2 -0
  199. package/dist/chunks/cli-0.6.6-py5db2ds.mjs +2 -0
  200. package/dist/chunks/cli-0.6.6-q1j20ysc.mjs +193 -0
  201. package/dist/chunks/cli-0.6.6-q6pybpxh.mjs +2 -0
  202. package/dist/chunks/cli-0.6.6-qvmtyvz3.mjs +3 -0
  203. package/dist/chunks/cli-0.6.6-r5fnevcm.mjs +2 -0
  204. package/dist/chunks/cli-0.6.6-r6ph5dqe.mjs +2 -0
  205. package/dist/chunks/cli-0.6.6-rhcte81y.mjs +15 -0
  206. package/dist/chunks/cli-0.6.6-rqfeyzcp.mjs +2 -0
  207. package/dist/chunks/cli-0.6.6-rxhq7h6p.mjs +2 -0
  208. package/dist/chunks/cli-0.6.6-s3y8t7we.mjs +2 -0
  209. package/dist/chunks/cli-0.6.6-sc6nf44p.mjs +2 -0
  210. package/dist/chunks/cli-0.6.6-sh4pyhkw.mjs +2 -0
  211. package/dist/chunks/cli-0.6.6-sqvm4f1y.mjs +2 -0
  212. package/dist/chunks/cli-0.6.6-ssjjspdc.mjs +2 -0
  213. package/dist/chunks/cli-0.6.6-sxde5jj7.mjs +2 -0
  214. package/dist/chunks/cli-0.6.6-t3vvf5fy.mjs +2 -0
  215. package/dist/chunks/cli-0.6.6-t7p08nsw.mjs +2 -0
  216. package/dist/chunks/cli-0.6.6-tam4amwx.mjs +2 -0
  217. package/dist/chunks/cli-0.6.6-tg1e3sdx.mjs +2 -0
  218. package/dist/chunks/cli-0.6.6-tk00k0e1.mjs +34 -0
  219. package/dist/chunks/cli-0.6.6-v17a8yzy.mjs +2 -0
  220. package/dist/chunks/cli-0.6.6-vesqvt0y.mjs +2 -0
  221. package/dist/chunks/cli-0.6.6-vjj3g5dm.mjs +2 -0
  222. package/dist/chunks/cli-0.6.6-vt1181th.mjs +39 -0
  223. package/dist/chunks/cli-0.6.6-vvz9vw7f.mjs +5 -0
  224. package/dist/chunks/cli-0.6.6-vy3wa7f9.mjs +2 -0
  225. package/dist/chunks/cli-0.6.6-w687eya6.mjs +2 -0
  226. package/dist/chunks/cli-0.6.6-w6tqtrzg.mjs +4 -0
  227. package/dist/chunks/cli-0.6.6-wctj7gmc.mjs +6 -0
  228. package/dist/chunks/cli-0.6.6-ww6zy0p0.mjs +2 -0
  229. package/dist/chunks/cli-0.6.6-wxst92je.mjs +4 -0
  230. package/dist/chunks/cli-0.6.6-x1zrpt5g.mjs +45 -0
  231. package/dist/chunks/cli-0.6.6-x3tz7qvq.mjs +2 -0
  232. package/dist/chunks/cli-0.6.6-x88t5n54.mjs +133 -0
  233. package/dist/chunks/cli-0.6.6-xe6egv3r.mjs +25 -0
  234. package/dist/chunks/cli-0.6.6-xmd2zss3.mjs +2 -0
  235. package/dist/chunks/cli-0.6.6-xna6taqd.mjs +9 -0
  236. package/dist/chunks/cli-0.6.6-xq4cysdk.mjs +2 -0
  237. package/dist/chunks/cli-0.6.6-xt0p4ems.mjs +4 -0
  238. package/dist/chunks/cli-0.6.6-xtj65dsh.mjs +2 -0
  239. package/dist/chunks/cli-0.6.6-y305shhz.mjs +2 -0
  240. package/dist/chunks/cli-0.6.6-yakt9hjc.mjs +3 -0
  241. package/dist/chunks/cli-0.6.6-ymge82rt.mjs +2 -0
  242. package/dist/chunks/cli-0.6.6-ythetarc.mjs +3 -0
  243. package/dist/chunks/cli-0.6.6-ytskhcd3.mjs +42 -0
  244. package/dist/chunks/cli-0.6.6-ytws2j1w.mjs +2 -0
  245. package/dist/chunks/cli-0.6.6-yxd04fex.mjs +2 -0
  246. package/dist/chunks/cli-0.6.6-zb8ddz0k.mjs +2 -0
  247. package/dist/chunks/cli-0.6.6-ze6rx70y.mjs +2 -0
  248. package/dist/chunks/cli-0.6.6-zhky93y3.mjs +2 -0
  249. package/dist/chunks/cli-0.6.6-zwk7a82m.mjs +2 -0
  250. package/dist/chunks/cli-0.6.6-zx0cgvxq.mjs +2 -0
  251. package/dist/chunks/client-0.6.6-epndq4qc.mjs +1 -0
  252. package/dist/chunks/color-0.6.6-8rzmvtwk.mjs +1 -0
  253. package/dist/chunks/compact-0.6.6-hx8hw1kn.mjs +3 -0
  254. package/dist/chunks/config-0.6.6-0j07cdc5.mjs +1 -0
  255. package/dist/chunks/config-0.6.6-2fm368ym.mjs +1 -0
  256. package/dist/chunks/constants-0.6.6-0yxw2f7y.mjs +1 -0
  257. package/dist/chunks/context-0.6.6-1ask7yck.mjs +1 -0
  258. package/dist/chunks/context-noninteractive-0.6.6-kk5a8p4w.mjs +1 -0
  259. package/dist/chunks/conversation-0.6.6-fetjq503.mjs +1 -0
  260. package/dist/chunks/copilotHeaders-0.6.6-fwqs850f.mjs +1 -0
  261. package/dist/chunks/copy-0.6.6-8j7h9rrr.mjs +9 -0
  262. package/dist/chunks/cost-0.6.6-1b4svxh2.mjs +1 -0
  263. package/dist/chunks/createSSHSession-0.6.6-nj5vfp9k.mjs +1 -0
  264. package/dist/chunks/createSession-0.6.6-mphh6gbj.mjs +1 -0
  265. package/dist/chunks/debug-0.6.6-ghaq68w2.mjs +1 -0
  266. package/dist/chunks/defaultActionDeps-0.6.6-t8g2hnht.mjs +1367 -0
  267. package/dist/chunks/desktop-0.6.6-a4mc0bda.mjs +1 -0
  268. package/dist/chunks/detectRepository-0.6.6-ncw5b2aj.mjs +1 -0
  269. package/dist/chunks/detection-0.6.6-214xzj0w.mjs +1 -0
  270. package/dist/chunks/diff-0.6.6-7nwejtje.mjs +1 -0
  271. package/dist/chunks/doctor-0.6.6-2wetaw67.mjs +1 -0
  272. package/dist/chunks/doctorDiagnostic-0.6.6-wvp7h2xr.mjs +1 -0
  273. package/dist/chunks/earlyInput-0.6.6-9jbsyrke.mjs +1 -0
  274. package/dist/chunks/effort-0.6.6-ncb29f3c.mjs +10 -0
  275. package/dist/chunks/envLessBridgeConfig-0.6.6-6pv90cvs.mjs +1 -0
  276. package/dist/chunks/envUtils-0.6.6-mwnbc88a.mjs +1 -0
  277. package/dist/chunks/environmentSelection-0.6.6-gac9h0m9.mjs +1 -0
  278. package/dist/chunks/environments-0.6.6-dyqm7563.mjs +1 -0
  279. package/dist/chunks/errors-0.6.6-q707mqqm.mjs +1 -0
  280. package/dist/chunks/exampleCommands-0.6.6-wd6w9zh5.mjs +1 -0
  281. package/dist/chunks/exit-0.6.6-8vj2yn2g.mjs +1 -0
  282. package/dist/chunks/export-0.6.6-ze9h049t.mjs +2 -0
  283. package/dist/chunks/extra-usage-0.6.6-mp9th9v6.mjs +1 -0
  284. package/dist/chunks/extra-usage-noninteractive-0.6.6-rmjhm3ng.mjs +1 -0
  285. package/dist/chunks/fast-0.6.6-764x92hh.mjs +1 -0
  286. package/dist/chunks/feedback-0.6.6-5x42sy6a.mjs +14 -0
  287. package/dist/chunks/firstPartyEventLogger-0.6.6-x2gcw7ns.mjs +1 -0
  288. package/dist/chunks/git-0.6.6-rw5vzxwm.mjs +1 -0
  289. package/dist/chunks/githubModelsCredentials-0.6.6-f2n56xmf.mjs +1 -0
  290. package/dist/chunks/goal-0.6.6-9rtva22g.mjs +4 -0
  291. package/dist/chunks/grove-0.6.6-97994twv.mjs +1 -0
  292. package/dist/chunks/growthbook-0.6.6-8reejkag.mjs +1 -0
  293. package/dist/chunks/headless-0.6.6-qgkvkz56.mjs +2 -0
  294. package/dist/chunks/heapdump-0.6.6-s68hkj7v.mjs +6 -0
  295. package/dist/chunks/help-0.6.6-a74x2714.mjs +1 -0
  296. package/dist/chunks/hookChains-0.6.6-wrp608b1.mjs +3 -0
  297. package/dist/chunks/hooks-0.6.6-skad5kp2.mjs +79 -0
  298. package/dist/chunks/hooks-0.6.6-zy3p5ymd.mjs +1 -0
  299. package/dist/chunks/ide-0.6.6-xpbxyf5x.mjs +3 -0
  300. package/dist/chunks/image-processor-napi-0.6.6-8ggh2rjn.mjs +1 -0
  301. package/dist/chunks/inboundAttachments-0.6.6-xfbtg9vz.mjs +1 -0
  302. package/dist/chunks/index-0.6.6-0g09kzhh.mjs +1 -0
  303. package/dist/chunks/index-0.6.6-1p1fy7cz.mjs +5 -0
  304. package/dist/chunks/index-0.6.6-27ems47g.mjs +9 -0
  305. package/dist/chunks/index-0.6.6-4v2spjs5.mjs +1 -0
  306. package/dist/chunks/index-0.6.6-5me3rm4s.mjs +9 -0
  307. package/dist/chunks/index-0.6.6-70tj26f9.mjs +1 -0
  308. package/dist/chunks/index-0.6.6-8zcthv4z.mjs +1 -0
  309. package/dist/chunks/index-0.6.6-aef14n9j.mjs +2 -0
  310. package/dist/chunks/index-0.6.6-apxc13te.mjs +1 -0
  311. package/dist/chunks/index-0.6.6-dq42pv3d.mjs +1 -0
  312. package/dist/chunks/index-0.6.6-ebp0mayr.mjs +1 -0
  313. package/dist/chunks/index-0.6.6-ejmkdrzm.mjs +1 -0
  314. package/dist/chunks/index-0.6.6-kqbyedrd.mjs +1 -0
  315. package/dist/chunks/index-0.6.6-m0dywyy2.mjs +30 -0
  316. package/dist/chunks/index-0.6.6-pjnpey6d.mjs +1 -0
  317. package/dist/chunks/index-0.6.6-pykm48ja.mjs +1 -0
  318. package/dist/chunks/index-0.6.6-pzvhyk3s.mjs +1 -0
  319. package/dist/chunks/index-0.6.6-rxae4gv4.mjs +1 -0
  320. package/dist/chunks/index-0.6.6-s4wsdcz8.mjs +2 -0
  321. package/dist/chunks/index-0.6.6-spnbnmsj.mjs +1 -0
  322. package/dist/chunks/index-0.6.6-sqygenvb.mjs +1 -0
  323. package/dist/chunks/index-0.6.6-t43srges.mjs +1 -0
  324. package/dist/chunks/index-0.6.6-zgh9z1rm.mjs +1 -0
  325. package/dist/chunks/init-0.6.6-6yxjq5pc.mjs +1 -0
  326. package/dist/chunks/initReplBridge-0.6.6-eeynkqk3.mjs +1 -0
  327. package/dist/chunks/ink-0.6.6-keyn52qn.mjs +1 -0
  328. package/dist/chunks/insights-0.6.6-2wjtvjnd.mjs +870 -0
  329. package/dist/chunks/install-0.6.6-vdpf15fp.mjs +1 -0
  330. package/dist/chunks/install-github-app-0.6.6-8zk1xfpw.mjs +149 -0
  331. package/dist/chunks/install-slack-app-0.6.6-j2a9c586.mjs +1 -0
  332. package/dist/chunks/instrumentation-0.6.6-35f0r0ts.mjs +1 -0
  333. package/dist/chunks/interactiveHelpers-0.6.6-18x9yezm.mjs +1 -0
  334. package/dist/chunks/keybindings-0.6.6-9r4m4jvq.mjs +2 -0
  335. package/dist/chunks/knowledge-0.6.6-1rjjrsqn.mjs +2 -0
  336. package/dist/chunks/latestVersionCache-0.6.6-32rrz0z9.mjs +1 -0
  337. package/dist/chunks/loadAgentsDir-0.6.6-tjygbn96.mjs +1 -0
  338. package/dist/chunks/loadPluginHooks-0.6.6-8xsdzy59.mjs +1 -0
  339. package/dist/chunks/loadPluginHooks-0.6.6-fr4gdkcy.mjs +1 -0
  340. package/dist/chunks/log-0.6.6-6nzgdpd0.mjs +1 -0
  341. package/dist/chunks/main-0.6.6-aq9jq72v.mjs +1 -0
  342. package/dist/chunks/managedEnv-0.6.6-6bth8e56.mjs +1 -0
  343. package/dist/chunks/mcp-0.6.6-4xb16x7y.mjs +1 -0
  344. package/dist/chunks/mcp-0.6.6-chps3y13.mjs +4 -0
  345. package/dist/chunks/mcp-0.6.6-fxy3qcdv.mjs +17 -0
  346. package/dist/chunks/mcpb-0.6.6-bhpebgzm.mjs +1 -0
  347. package/dist/chunks/memory-0.6.6-89t2e497.mjs +3 -0
  348. package/dist/chunks/model-0.6.6-8bpwy4gg.mjs +1 -0
  349. package/dist/chunks/model-0.6.6-m3x9crqt.mjs +2 -0
  350. package/dist/chunks/node-0.6.6-rm65t01m.mjs +12 -0
  351. package/dist/chunks/oauth-0.6.6-akp7n7mb.mjs +1 -0
  352. package/dist/chunks/openaiShim-0.6.6-ft40jfrp.mjs +14 -0
  353. package/dist/chunks/output-style-0.6.6-bvhtp4tc.mjs +1 -0
  354. package/dist/chunks/package-FMOR3ELU-0.6.6-0ykwzcyt.mjs +1 -0
  355. package/dist/chunks/parseConnectUrl-0.6.6-jve0dvpn.mjs +1 -0
  356. package/dist/chunks/parser-0.6.6-xa5qsjfh.mjs +1 -0
  357. package/dist/chunks/passes-0.6.6-tdv74eqj.mjs +1 -0
  358. package/dist/chunks/permissions-0.6.6-46df10nj.mjs +3 -0
  359. package/dist/chunks/permissions-0.6.6-8wcv4q7d.mjs +1 -0
  360. package/dist/chunks/plan-0.6.6-qw8t4gpk.mjs +1 -0
  361. package/dist/chunks/plist-0.6.6-5m3etrhq.mjs +1 -0
  362. package/dist/chunks/plugin-0.6.6-narwef70.mjs +29 -0
  363. package/dist/chunks/pluginStartupCheck-0.6.6-v7kxdq6w.mjs +1 -0
  364. package/dist/chunks/plugins-0.6.6-10y990d0.mjs +9 -0
  365. package/dist/chunks/preActionHook-0.6.6-0vkxazxv.mjs +2 -0
  366. package/dist/chunks/print-0.6.6-ym6tndvq.mjs +57 -0
  367. package/dist/chunks/privacy-settings-0.6.6-05da2gne.mjs +1 -0
  368. package/dist/chunks/process-0.6.6-da3h3zfe.mjs +1 -0
  369. package/dist/chunks/processBashCommand-0.6.6-m76r9et2.mjs +1 -0
  370. package/dist/chunks/processSlashCommand-0.6.6-xxwnh0cf.mjs +9 -0
  371. package/dist/chunks/prompt-0.6.6-60sg3pmt.mjs +1 -0
  372. package/dist/chunks/prompt-0.6.6-vfh4fr6f.mjs +1 -0
  373. package/dist/chunks/prompts-0.6.6-vbfva1a5.mjs +1 -0
  374. package/dist/chunks/protocolHandler-0.6.6-73vezfvr.mjs +13 -0
  375. package/dist/chunks/provider-0.6.6-ch5qq6n3.mjs +2 -0
  376. package/dist/chunks/providerProfiles-0.6.6-jtysbyrm.mjs +1 -0
  377. package/dist/chunks/providerValidation-0.6.6-5509e4cb.mjs +6 -0
  378. package/dist/chunks/rate-limit-options-0.6.6-cfm37mqk.mjs +1 -0
  379. package/dist/chunks/registerSubcommands-0.6.6-7p5mr9t1.mjs +34 -0
  380. package/dist/chunks/registry-0.6.6-z5cnbznq.mjs +1 -0
  381. package/dist/chunks/release-notes-0.6.6-90zjvqjx.mjs +5 -0
  382. package/dist/chunks/reload-plugins-0.6.6-jyxrw2jq.mjs +2 -0
  383. package/dist/chunks/remote-env-0.6.6-wyekcz2k.mjs +1 -0
  384. package/dist/chunks/remoteBridgeCore-0.6.6-favpnrd5.mjs +1 -0
  385. package/dist/chunks/remoteSession-0.6.6-snjkbaw2.mjs +1 -0
  386. package/dist/chunks/rename-0.6.6-3wang66e.mjs +1 -0
  387. package/dist/chunks/replBridgeHandle-0.6.6-dmxdjqjy.mjs +1 -0
  388. package/dist/chunks/replLauncher-0.6.6-bvhzfdx8.mjs +1 -0
  389. package/dist/chunks/resume-0.6.6-zqn712k4.mjs +2 -0
  390. package/dist/chunks/rewind-0.6.6-h8kc53mc.mjs +1 -0
  391. package/dist/chunks/rootOptions-0.6.6-wcam7tjd.mjs +1 -0
  392. package/dist/chunks/sandbox-adapter-0.6.6-qbm1rqdf.mjs +1 -0
  393. package/dist/chunks/sandbox-toggle-0.6.6-m882ckxv.mjs +1 -0
  394. package/dist/chunks/session-0.6.6-ezqqmxrd.mjs +2 -0
  395. package/dist/chunks/sessionDiscovery-0.6.6-0q34cmbe.mjs +1 -0
  396. package/dist/chunks/sessionFileAccessHooks-0.6.6-3tek8yje.mjs +1 -0
  397. package/dist/chunks/sessionStorage-0.6.6-pgfjqhdj.mjs +1 -0
  398. package/dist/chunks/settings-0.6.6-ms6t0ray.mjs +1 -0
  399. package/dist/chunks/setup-0.6.6-n2vjxxmx.mjs +5 -0
  400. package/dist/chunks/sinks-0.6.6-mq00wrfa.mjs +1 -0
  401. package/dist/chunks/skills-0.6.6-vgr1dpf7.mjs +1 -0
  402. package/dist/chunks/startupProfiler-0.6.6-5nbjv2gp.mjs +1 -0
  403. package/dist/chunks/startupUpdateCheck-0.6.6-z6adga96.mjs +1 -0
  404. package/dist/chunks/state-0.6.6-w2grqwqw.mjs +1 -0
  405. package/dist/chunks/stats-0.6.6-z11zcde6.mjs +6 -0
  406. package/dist/chunks/status-0.6.6-vbcqezgp.mjs +1 -0
  407. package/dist/chunks/stickers-0.6.6-c1pczjgd.mjs +1 -0
  408. package/dist/chunks/subprocessEnv-0.6.6-95tf6phx.mjs +1 -0
  409. package/dist/chunks/tasks-0.6.6-pm1cbtt0.mjs +1 -0
  410. package/dist/chunks/teamHelpers-0.6.6-ec57k1fn.mjs +1 -0
  411. package/dist/chunks/teammateModeSnapshot-0.6.6-964bq8fq.mjs +1 -0
  412. package/dist/chunks/teleport-0.6.6-ksymynm4.mjs +1 -0
  413. package/dist/chunks/terminalSetup-0.6.6-r5q2y7w0.mjs +1 -0
  414. package/dist/chunks/theme-0.6.6-y46frztn.mjs +1 -0
  415. package/dist/chunks/thinkback-0.6.6-3j0w6yjk.mjs +1 -0
  416. package/dist/chunks/thinkback-play-0.6.6-rrcqmyxk.mjs +1 -0
  417. package/dist/chunks/toolPool-0.6.6-2jmzd43n.mjs +1 -0
  418. package/dist/chunks/toolSearch-0.6.6-2rrd60cx.mjs +1 -0
  419. package/dist/chunks/tools-0.6.6-13yxm82t.mjs +1 -0
  420. package/dist/chunks/trustedDevice-0.6.6-yk1yrpb0.mjs +1 -0
  421. package/dist/chunks/turndown.cjs-0.6.6-nhq9m5br.mjs +69 -0
  422. package/dist/chunks/types-0.6.6-stnrzm1j.mjs +1 -0
  423. package/dist/chunks/ultrareviewCommand-0.6.6-7ytrj9jv.mjs +4 -0
  424. package/dist/chunks/update-0.6.6-5hf3mst5.mjs +86 -0
  425. package/dist/chunks/upgrade-0.6.6-y2gdvy9z.mjs +1 -0
  426. package/dist/chunks/upload-0.6.6-mwd7k6ym.mjs +7 -0
  427. package/dist/chunks/upstreamproxy-0.6.6-2fc9x5pq.mjs +14 -0
  428. package/dist/chunks/url-handler-napi-0.6.6-gbs8n3ne.mjs +1 -0
  429. package/dist/chunks/usage-0.6.6-8n0sxpw2.mjs +1 -0
  430. package/dist/chunks/util-0.6.6-hpjf8dnn.mjs +1 -0
  431. package/dist/chunks/utils-0.6.6-w937v7sr.mjs +1 -0
  432. package/dist/chunks/vim-0.6.6-b8g833z7.mjs +1 -0
  433. package/dist/chunks/watcher-0.6.6-bsqe9pa4.mjs +1 -0
  434. package/dist/chunks/wiki-0.6.6-2fstcx28.mjs +132 -0
  435. package/dist/chunks/worktree-0.6.6-yctkpbmx.mjs +1 -0
  436. package/dist/chunks/worktreeModeEnabled-0.6.6-yv2bvj70.mjs +1 -0
  437. package/dist/chunks/wrapper-0.6.6-02cwy0nm.mjs +7 -0
  438. package/dist/claudin-vscode.vsix +0 -0
  439. package/dist/cli.mjs +2 -2
  440. package/package.json +14 -14
  441. package/dist/chunks/AgentTool-0.6.5-9pre88qb.mjs +0 -1
  442. package/dist/chunks/App-0.6.5-syfacmqb.mjs +0 -1
  443. package/dist/chunks/ApproveApiKey-0.6.5-2rrtj277.mjs +0 -1
  444. package/dist/chunks/AssistantSessionChooser-0.6.5-8deawh7z.mjs +0 -1
  445. package/dist/chunks/AutoModeOptInDialog-0.6.5-8e3v3cgx.mjs +0 -1
  446. package/dist/chunks/BypassPermissionsModeDialog-0.6.5-3pjygvs2.mjs +0 -1
  447. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.5-s2js1wag.mjs +0 -1
  448. package/dist/chunks/ConsoleOAuthFlow-0.6.5-36z08571.mjs +0 -1
  449. package/dist/chunks/DiffDialog-0.6.5-g256mdz0.mjs +0 -3
  450. package/dist/chunks/Doctor-0.6.5-vty8ec8n.mjs +0 -1
  451. package/dist/chunks/Grove-0.6.5-p00f24rh.mjs +0 -1
  452. package/dist/chunks/ITermBackend-0.6.5-53j2wh9w.mjs +0 -1
  453. package/dist/chunks/InvalidConfigDialog-0.6.5-gtpj7hn7.mjs +0 -1
  454. package/dist/chunks/InvalidSettingsDialog-0.6.5-3d3v9kn1.mjs +0 -1
  455. package/dist/chunks/MigrationDialog-0.6.5-mnbsk1bz.mjs +0 -1
  456. package/dist/chunks/Onboarding-0.6.5-9r9rkgj0.mjs +0 -1
  457. package/dist/chunks/ProviderManager-0.6.5-yb8w75gs.mjs +0 -1
  458. package/dist/chunks/REPL-0.6.5-wqyg8nfv.mjs +0 -1
  459. package/dist/chunks/ResumeConversation-0.6.5-0d1tkqfd.mjs +0 -1
  460. package/dist/chunks/SnapshotUpdateDialog-0.6.5-n5pa0d9r.mjs +0 -1
  461. package/dist/chunks/TeleportProgress-0.6.5-t863eyfb.mjs +0 -1
  462. package/dist/chunks/TeleportRepoMismatchDialog-0.6.5-11ykz8de.mjs +0 -1
  463. package/dist/chunks/TeleportResumeWrapper-0.6.5-dn6dvzvv.mjs +0 -1
  464. package/dist/chunks/TmuxBackend-0.6.5-yd46t6dv.mjs +0 -9
  465. package/dist/chunks/ToolSearchTool-0.6.5-6kssfnkp.mjs +0 -1
  466. package/dist/chunks/TrustDialog-0.6.5-mdbqw8dc.mjs +0 -1
  467. package/dist/chunks/activeProvider-0.6.5-wpe1bnhr.mjs +0 -1
  468. package/dist/chunks/add-dir-0.6.5-zphaxr62.mjs +0 -1
  469. package/dist/chunks/agents-0.6.5-9rhdp3vp.mjs +0 -110
  470. package/dist/chunks/agents-0.6.5-krnahvn4.mjs +0 -3
  471. package/dist/chunks/api-0.6.5-vfnxfssn.mjs +0 -1
  472. package/dist/chunks/asciicast-0.6.5-hr205c81.mjs +0 -1
  473. package/dist/chunks/assistant-0.6.5-nfbsgssx.mjs +0 -1
  474. package/dist/chunks/auth-0.6.5-9baxvtxg.mjs +0 -1
  475. package/dist/chunks/auth-0.6.5-cq4yrhn2.mjs +0 -1
  476. package/dist/chunks/autoMode-0.6.5-kzhwpmfg.mjs +0 -48
  477. package/dist/chunks/autoUpdater-0.6.5-bkzpv0pd.mjs +0 -1
  478. package/dist/chunks/backgroundHousekeeping-0.6.5-2mkev4qh.mjs +0 -1
  479. package/dist/chunks/branch-0.6.5-8vtt7esr.mjs +0 -4
  480. package/dist/chunks/bridge-0.6.5-9c1v2e52.mjs +0 -2
  481. package/dist/chunks/bridgeConfig-0.6.5-w77y3p5n.mjs +0 -1
  482. package/dist/chunks/bridgeEnabled-0.6.5-k6hvamvf.mjs +0 -1
  483. package/dist/chunks/bridgeMain-0.6.5-pea2hztr.mjs +0 -88
  484. package/dist/chunks/bridgePointer-0.6.5-87t92nmh.mjs +0 -1
  485. package/dist/chunks/btw-0.6.5-xhyyarh0.mjs +0 -1
  486. package/dist/chunks/buddy-0.6.5-g9csmkdw.mjs +0 -3
  487. package/dist/chunks/cacache-0.6.5-kzjmbjve.mjs +0 -1
  488. package/dist/chunks/cache-probe-0.6.5-c2br8x9m.mjs +0 -21
  489. package/dist/chunks/cacheStats-0.6.5-kbdcab9q.mjs +0 -4
  490. package/dist/chunks/caches-0.6.5-nwzvsny2.mjs +0 -1
  491. package/dist/chunks/claudeDesktop-0.6.5-51tkmdr1.mjs +0 -1
  492. package/dist/chunks/claudemd-0.6.5-212twher.mjs +0 -1
  493. package/dist/chunks/clear-0.6.5-yg0wcbw4.mjs +0 -1
  494. package/dist/chunks/clearTerminal-0.6.5-0c24f1yy.mjs +0 -1
  495. package/dist/chunks/cli-0.6.5-00kbsd9f.mjs +0 -2
  496. package/dist/chunks/cli-0.6.5-0356tc6y.mjs +0 -2
  497. package/dist/chunks/cli-0.6.5-06d8zge2.mjs +0 -2
  498. package/dist/chunks/cli-0.6.5-0j7fzwkx.mjs +0 -2
  499. package/dist/chunks/cli-0.6.5-0pt0eq6a.mjs +0 -3
  500. package/dist/chunks/cli-0.6.5-13g3042y.mjs +0 -12
  501. package/dist/chunks/cli-0.6.5-192npvx3.mjs +0 -2
  502. package/dist/chunks/cli-0.6.5-19mg5dfx.mjs +0 -6
  503. package/dist/chunks/cli-0.6.5-1bz46ywp.mjs +0 -2
  504. package/dist/chunks/cli-0.6.5-1fqhk4mv.mjs +0 -9
  505. package/dist/chunks/cli-0.6.5-1m46f13z.mjs +0 -2
  506. package/dist/chunks/cli-0.6.5-1r4j3nda.mjs +0 -58
  507. package/dist/chunks/cli-0.6.5-2dq7pa8p.mjs +0 -34
  508. package/dist/chunks/cli-0.6.5-2s673b9m.mjs +0 -2
  509. package/dist/chunks/cli-0.6.5-38gqwg2m.mjs +0 -2
  510. package/dist/chunks/cli-0.6.5-3hemanw8.mjs +0 -15
  511. package/dist/chunks/cli-0.6.5-3p5vg2yx.mjs +0 -2
  512. package/dist/chunks/cli-0.6.5-3ybp7ww7.mjs +0 -6
  513. package/dist/chunks/cli-0.6.5-406dcpxw.mjs +0 -2
  514. package/dist/chunks/cli-0.6.5-41tc50h9.mjs +0 -2
  515. package/dist/chunks/cli-0.6.5-477kp2fg.mjs +0 -2
  516. package/dist/chunks/cli-0.6.5-47s6s6ew.mjs +0 -2
  517. package/dist/chunks/cli-0.6.5-4k3kk3pr.mjs +0 -17
  518. package/dist/chunks/cli-0.6.5-4whh4m3h.mjs +0 -2
  519. package/dist/chunks/cli-0.6.5-54w728vm.mjs +0 -2
  520. package/dist/chunks/cli-0.6.5-57jmtd2z.mjs +0 -2
  521. package/dist/chunks/cli-0.6.5-58ck75qn.mjs +0 -2
  522. package/dist/chunks/cli-0.6.5-5py2stcw.mjs +0 -2
  523. package/dist/chunks/cli-0.6.5-5rpfanmw.mjs +0 -3
  524. package/dist/chunks/cli-0.6.5-5t6d3asz.mjs +0 -5347
  525. package/dist/chunks/cli-0.6.5-5wr197ms.mjs +0 -25
  526. package/dist/chunks/cli-0.6.5-5ymbb1v4.mjs +0 -2
  527. package/dist/chunks/cli-0.6.5-60hfev34.mjs +0 -2
  528. package/dist/chunks/cli-0.6.5-61tnv5c7.mjs +0 -2
  529. package/dist/chunks/cli-0.6.5-6829jyhh.mjs +0 -9
  530. package/dist/chunks/cli-0.6.5-69f24h9w.mjs +0 -8
  531. package/dist/chunks/cli-0.6.5-6ab8b50h.mjs +0 -2
  532. package/dist/chunks/cli-0.6.5-6e6pv00e.mjs +0 -2
  533. package/dist/chunks/cli-0.6.5-6ev1k0qv.mjs +0 -133
  534. package/dist/chunks/cli-0.6.5-6q2d7p49.mjs +0 -2
  535. package/dist/chunks/cli-0.6.5-6qvtcs5y.mjs +0 -2
  536. package/dist/chunks/cli-0.6.5-6wpz6mks.mjs +0 -2
  537. package/dist/chunks/cli-0.6.5-6x91apzw.mjs +0 -2
  538. package/dist/chunks/cli-0.6.5-72v6gjqf.mjs +0 -2
  539. package/dist/chunks/cli-0.6.5-7am1hb1v.mjs +0 -2
  540. package/dist/chunks/cli-0.6.5-7tzhpeyn.mjs +0 -2
  541. package/dist/chunks/cli-0.6.5-7vnp5x55.mjs +0 -15
  542. package/dist/chunks/cli-0.6.5-81fzcvec.mjs +0 -4
  543. package/dist/chunks/cli-0.6.5-87qz97g2.mjs +0 -2
  544. package/dist/chunks/cli-0.6.5-8hsxq1p3.mjs +0 -2
  545. package/dist/chunks/cli-0.6.5-8zsy7h21.mjs +0 -2
  546. package/dist/chunks/cli-0.6.5-95a4872h.mjs +0 -2
  547. package/dist/chunks/cli-0.6.5-983fq4aj.mjs +0 -7
  548. package/dist/chunks/cli-0.6.5-987r1x1q.mjs +0 -2
  549. package/dist/chunks/cli-0.6.5-9cs6r2j7.mjs +0 -2
  550. package/dist/chunks/cli-0.6.5-9d9gmzev.mjs +0 -2
  551. package/dist/chunks/cli-0.6.5-9g1pn7jy.mjs +0 -2
  552. package/dist/chunks/cli-0.6.5-9g7p6wdj.mjs +0 -5
  553. package/dist/chunks/cli-0.6.5-9hp0d08c.mjs +0 -2
  554. package/dist/chunks/cli-0.6.5-a0ke5n08.mjs +0 -2
  555. package/dist/chunks/cli-0.6.5-a1csk51d.mjs +0 -3
  556. package/dist/chunks/cli-0.6.5-a23zsgke.mjs +0 -3
  557. package/dist/chunks/cli-0.6.5-a8za8sjg.mjs +0 -2
  558. package/dist/chunks/cli-0.6.5-akw85jbw.mjs +0 -2
  559. package/dist/chunks/cli-0.6.5-amtt1tbm.mjs +0 -39
  560. package/dist/chunks/cli-0.6.5-awhfeefv.mjs +0 -5
  561. package/dist/chunks/cli-0.6.5-azwzatpd.mjs +0 -20
  562. package/dist/chunks/cli-0.6.5-b7x38zg8.mjs +0 -2
  563. package/dist/chunks/cli-0.6.5-bm7v9qp0.mjs +0 -2
  564. package/dist/chunks/cli-0.6.5-brk2sfdw.mjs +0 -2
  565. package/dist/chunks/cli-0.6.5-bzz83kdv.mjs +0 -2
  566. package/dist/chunks/cli-0.6.5-c0nyamvd.mjs +0 -17
  567. package/dist/chunks/cli-0.6.5-c4v4vgw4.mjs +0 -2
  568. package/dist/chunks/cli-0.6.5-c7yx03g7.mjs +0 -16
  569. package/dist/chunks/cli-0.6.5-ce51qb6k.mjs +0 -4
  570. package/dist/chunks/cli-0.6.5-ckc9hr8m.mjs +0 -2
  571. package/dist/chunks/cli-0.6.5-cwaewkgb.mjs +0 -2
  572. package/dist/chunks/cli-0.6.5-czc9nvxh.mjs +0 -133
  573. package/dist/chunks/cli-0.6.5-d7nvtk63.mjs +0 -2
  574. package/dist/chunks/cli-0.6.5-dcr7rpqe.mjs +0 -2
  575. package/dist/chunks/cli-0.6.5-dm2rwpsb.mjs +0 -2
  576. package/dist/chunks/cli-0.6.5-e47bwdgy.mjs +0 -2
  577. package/dist/chunks/cli-0.6.5-e5pzxdbx.mjs +0 -2
  578. package/dist/chunks/cli-0.6.5-e7k35s7j.mjs +0 -2
  579. package/dist/chunks/cli-0.6.5-e9t7harq.mjs +0 -2
  580. package/dist/chunks/cli-0.6.5-ef17hb7w.mjs +0 -2
  581. package/dist/chunks/cli-0.6.5-ef6b5qvc.mjs +0 -193
  582. package/dist/chunks/cli-0.6.5-efh1xzne.mjs +0 -24
  583. package/dist/chunks/cli-0.6.5-efsxkpxr.mjs +0 -2
  584. package/dist/chunks/cli-0.6.5-ej3jf59h.mjs +0 -2
  585. package/dist/chunks/cli-0.6.5-env00jtm.mjs +0 -1
  586. package/dist/chunks/cli-0.6.5-eq4cscgw.mjs +0 -2
  587. package/dist/chunks/cli-0.6.5-eqk6q7pf.mjs +0 -2
  588. package/dist/chunks/cli-0.6.5-ev41fmky.mjs +0 -2
  589. package/dist/chunks/cli-0.6.5-f34ttkbg.mjs +0 -2
  590. package/dist/chunks/cli-0.6.5-f4x1fb90.mjs +0 -4
  591. package/dist/chunks/cli-0.6.5-f71ncwzk.mjs +0 -59
  592. package/dist/chunks/cli-0.6.5-fg2a16s4.mjs +0 -2
  593. package/dist/chunks/cli-0.6.5-g43wnabd.mjs +0 -2
  594. package/dist/chunks/cli-0.6.5-g7d8vsb2.mjs +0 -2
  595. package/dist/chunks/cli-0.6.5-g8qt9gm7.mjs +0 -2
  596. package/dist/chunks/cli-0.6.5-gjzdpmdx.mjs +0 -2
  597. package/dist/chunks/cli-0.6.5-gk89f6jk.mjs +0 -4
  598. package/dist/chunks/cli-0.6.5-gw6ygdnq.mjs +0 -3
  599. package/dist/chunks/cli-0.6.5-h08jc3cj.mjs +0 -18
  600. package/dist/chunks/cli-0.6.5-h0xnjwg1.mjs +0 -2
  601. package/dist/chunks/cli-0.6.5-h3cch37f.mjs +0 -2
  602. package/dist/chunks/cli-0.6.5-h5x9r5ap.mjs +0 -50
  603. package/dist/chunks/cli-0.6.5-j45setk1.mjs +0 -2
  604. package/dist/chunks/cli-0.6.5-j5v5jpq8.mjs +0 -2
  605. package/dist/chunks/cli-0.6.5-je97ssab.mjs +0 -2
  606. package/dist/chunks/cli-0.6.5-jqbkgjhs.mjs +0 -2
  607. package/dist/chunks/cli-0.6.5-jrnx4znh.mjs +0 -2
  608. package/dist/chunks/cli-0.6.5-jygg6ynx.mjs +0 -2
  609. package/dist/chunks/cli-0.6.5-k15yzap9.mjs +0 -2
  610. package/dist/chunks/cli-0.6.5-k74repdw.mjs +0 -2
  611. package/dist/chunks/cli-0.6.5-k8vb0qqx.mjs +0 -2
  612. package/dist/chunks/cli-0.6.5-k8vgyecf.mjs +0 -2
  613. package/dist/chunks/cli-0.6.5-kac7d6qe.mjs +0 -2
  614. package/dist/chunks/cli-0.6.5-kd1sw5qm.mjs +0 -2
  615. package/dist/chunks/cli-0.6.5-ke48d24y.mjs +0 -2
  616. package/dist/chunks/cli-0.6.5-khsn0wkk.mjs +0 -21
  617. package/dist/chunks/cli-0.6.5-kjntnfas.mjs +0 -2
  618. package/dist/chunks/cli-0.6.5-kqhpzqdw.mjs +0 -67
  619. package/dist/chunks/cli-0.6.5-kr0q8v74.mjs +0 -2
  620. package/dist/chunks/cli-0.6.5-kxwg80ye.mjs +0 -42
  621. package/dist/chunks/cli-0.6.5-kyp268ew.mjs +0 -2
  622. package/dist/chunks/cli-0.6.5-kzr5p1mv.mjs +0 -2
  623. package/dist/chunks/cli-0.6.5-kztnt6aq.mjs +0 -2
  624. package/dist/chunks/cli-0.6.5-m2619f84.mjs +0 -2
  625. package/dist/chunks/cli-0.6.5-mgv2cvps.mjs +0 -45
  626. package/dist/chunks/cli-0.6.5-mpdvzrnw.mjs +0 -2
  627. package/dist/chunks/cli-0.6.5-n4hnag3x.mjs +0 -2
  628. package/dist/chunks/cli-0.6.5-n64fe6ey.mjs +0 -2
  629. package/dist/chunks/cli-0.6.5-nd6kqcck.mjs +0 -2
  630. package/dist/chunks/cli-0.6.5-nngqh0bh.mjs +0 -2
  631. package/dist/chunks/cli-0.6.5-p6n42hmh.mjs +0 -4
  632. package/dist/chunks/cli-0.6.5-pa3ap7rs.mjs +0 -2
  633. package/dist/chunks/cli-0.6.5-pbahk0n4.mjs +0 -12
  634. package/dist/chunks/cli-0.6.5-pbyhms5s.mjs +0 -2
  635. package/dist/chunks/cli-0.6.5-pgs0eeqg.mjs +0 -2
  636. package/dist/chunks/cli-0.6.5-pky7r4pf.mjs +0 -2
  637. package/dist/chunks/cli-0.6.5-pv1b8wyy.mjs +0 -2
  638. package/dist/chunks/cli-0.6.5-pw1077hd.mjs +0 -2
  639. package/dist/chunks/cli-0.6.5-pz5add8h.mjs +0 -4
  640. package/dist/chunks/cli-0.6.5-q027r0rf.mjs +0 -2
  641. package/dist/chunks/cli-0.6.5-q1qpax7b.mjs +0 -2
  642. package/dist/chunks/cli-0.6.5-q2z0n0me.mjs +0 -2
  643. package/dist/chunks/cli-0.6.5-q4gh8d4w.mjs +0 -6
  644. package/dist/chunks/cli-0.6.5-q67zwknt.mjs +0 -4
  645. package/dist/chunks/cli-0.6.5-qhq9tmd4.mjs +0 -24
  646. package/dist/chunks/cli-0.6.5-qx67z0cv.mjs +0 -2
  647. package/dist/chunks/cli-0.6.5-r06ahe39.mjs +0 -3
  648. package/dist/chunks/cli-0.6.5-r2khv6re.mjs +0 -2
  649. package/dist/chunks/cli-0.6.5-ras9cma3.mjs +0 -2
  650. package/dist/chunks/cli-0.6.5-rkjw25m5.mjs +0 -2
  651. package/dist/chunks/cli-0.6.5-rrteyxna.mjs +0 -5
  652. package/dist/chunks/cli-0.6.5-rsve86mh.mjs +0 -12
  653. package/dist/chunks/cli-0.6.5-rvnz8f4b.mjs +0 -3
  654. package/dist/chunks/cli-0.6.5-ry2zfh45.mjs +0 -2
  655. package/dist/chunks/cli-0.6.5-s1ahtmc1.mjs +0 -2
  656. package/dist/chunks/cli-0.6.5-s42kf4d5.mjs +0 -2
  657. package/dist/chunks/cli-0.6.5-s580r0vs.mjs +0 -2
  658. package/dist/chunks/cli-0.6.5-sph3w6xt.mjs +0 -2
  659. package/dist/chunks/cli-0.6.5-svr5tx29.mjs +0 -2
  660. package/dist/chunks/cli-0.6.5-sz8mbg6v.mjs +0 -2
  661. package/dist/chunks/cli-0.6.5-t4tz7xht.mjs +0 -18
  662. package/dist/chunks/cli-0.6.5-th48yhz2.mjs +0 -2
  663. package/dist/chunks/cli-0.6.5-thfwpyjp.mjs +0 -2
  664. package/dist/chunks/cli-0.6.5-tj3hcx9x.mjs +0 -2
  665. package/dist/chunks/cli-0.6.5-tqwbfn5c.mjs +0 -2
  666. package/dist/chunks/cli-0.6.5-ts0kvt5k.mjs +0 -2
  667. package/dist/chunks/cli-0.6.5-vbw9z7ya.mjs +0 -2
  668. package/dist/chunks/cli-0.6.5-vj647gqr.mjs +0 -2
  669. package/dist/chunks/cli-0.6.5-vjydf7v2.mjs +0 -2
  670. package/dist/chunks/cli-0.6.5-vn8pa80z.mjs +0 -3
  671. package/dist/chunks/cli-0.6.5-vpebat6v.mjs +0 -4
  672. package/dist/chunks/cli-0.6.5-vqb4jtcr.mjs +0 -2
  673. package/dist/chunks/cli-0.6.5-vsmwyh7p.mjs +0 -2
  674. package/dist/chunks/cli-0.6.5-vywqm5j0.mjs +0 -2
  675. package/dist/chunks/cli-0.6.5-w2qf3sbz.mjs +0 -2
  676. package/dist/chunks/cli-0.6.5-wa6b2ksg.mjs +0 -2
  677. package/dist/chunks/cli-0.6.5-wgdp3ytt.mjs +0 -15
  678. package/dist/chunks/cli-0.6.5-xbz59an6.mjs +0 -2
  679. package/dist/chunks/cli-0.6.5-xngsek99.mjs +0 -3
  680. package/dist/chunks/cli-0.6.5-xwvfjaga.mjs +0 -2
  681. package/dist/chunks/cli-0.6.5-xxnhfq1f.mjs +0 -3
  682. package/dist/chunks/cli-0.6.5-xxtrec34.mjs +0 -2
  683. package/dist/chunks/cli-0.6.5-y4kbaj8m.mjs +0 -3
  684. package/dist/chunks/cli-0.6.5-ybxktrwn.mjs +0 -4
  685. package/dist/chunks/cli-0.6.5-ynxewk0a.mjs +0 -18
  686. package/dist/chunks/cli-0.6.5-ywh9eaz9.mjs +0 -3
  687. package/dist/chunks/cli-0.6.5-yy3mtt7p.mjs +0 -4
  688. package/dist/chunks/cli-0.6.5-z5qqy4bb.mjs +0 -10
  689. package/dist/chunks/cli-0.6.5-z64827fd.mjs +0 -2
  690. package/dist/chunks/cli-0.6.5-zxppzj42.mjs +0 -3
  691. package/dist/chunks/client-0.6.5-kcsx56gb.mjs +0 -1
  692. package/dist/chunks/color-0.6.5-m4adc5zy.mjs +0 -1
  693. package/dist/chunks/compact-0.6.5-pp3jftxy.mjs +0 -3
  694. package/dist/chunks/config-0.6.5-4t1bbgpf.mjs +0 -1
  695. package/dist/chunks/config-0.6.5-8j3ajra5.mjs +0 -1
  696. package/dist/chunks/constants-0.6.5-z1rfnbw0.mjs +0 -1
  697. package/dist/chunks/context-0.6.5-k4dkxskt.mjs +0 -1
  698. package/dist/chunks/context-noninteractive-0.6.5-t2s33qfv.mjs +0 -1
  699. package/dist/chunks/conversation-0.6.5-wtjv42fh.mjs +0 -1
  700. package/dist/chunks/copilotHeaders-0.6.5-t5d64yyd.mjs +0 -1
  701. package/dist/chunks/copy-0.6.5-r2cah677.mjs +0 -9
  702. package/dist/chunks/cost-0.6.5-8bs4d6y0.mjs +0 -1
  703. package/dist/chunks/createSSHSession-0.6.5-7p69k83d.mjs +0 -1
  704. package/dist/chunks/createSession-0.6.5-fwtmdngf.mjs +0 -1
  705. package/dist/chunks/debug-0.6.5-xmxftwgk.mjs +0 -1
  706. package/dist/chunks/defaultActionDeps-0.6.5-z6w9jmje.mjs +0 -1367
  707. package/dist/chunks/desktop-0.6.5-fargeve3.mjs +0 -1
  708. package/dist/chunks/detectRepository-0.6.5-ymk4cd49.mjs +0 -1
  709. package/dist/chunks/detection-0.6.5-9v4p8jdz.mjs +0 -1
  710. package/dist/chunks/diff-0.6.5-8ja76cbj.mjs +0 -1
  711. package/dist/chunks/doctor-0.6.5-j9ztya6c.mjs +0 -1
  712. package/dist/chunks/doctorDiagnostic-0.6.5-4rk9v7gn.mjs +0 -1
  713. package/dist/chunks/earlyInput-0.6.5-jnt6pqdj.mjs +0 -1
  714. package/dist/chunks/effort-0.6.5-wn6gayah.mjs +0 -10
  715. package/dist/chunks/envLessBridgeConfig-0.6.5-eptez4tg.mjs +0 -1
  716. package/dist/chunks/envUtils-0.6.5-62qkktte.mjs +0 -1
  717. package/dist/chunks/environmentSelection-0.6.5-zdqp06ex.mjs +0 -1
  718. package/dist/chunks/environments-0.6.5-4cxm9f2v.mjs +0 -1
  719. package/dist/chunks/errors-0.6.5-zrzdygzb.mjs +0 -1
  720. package/dist/chunks/exampleCommands-0.6.5-c4p6gs14.mjs +0 -1
  721. package/dist/chunks/exit-0.6.5-491d2dm3.mjs +0 -1
  722. package/dist/chunks/export-0.6.5-ydgbaqvw.mjs +0 -2
  723. package/dist/chunks/extra-usage-0.6.5-qc1chr9f.mjs +0 -1
  724. package/dist/chunks/extra-usage-noninteractive-0.6.5-g2ratb24.mjs +0 -1
  725. package/dist/chunks/fast-0.6.5-19egbvsn.mjs +0 -1
  726. package/dist/chunks/feedback-0.6.5-r15hzy5x.mjs +0 -14
  727. package/dist/chunks/firstPartyEventLogger-0.6.5-h0wam92d.mjs +0 -1
  728. package/dist/chunks/git-0.6.5-kd4a5hgs.mjs +0 -1
  729. package/dist/chunks/githubModelsCredentials-0.6.5-ahxqf63c.mjs +0 -1
  730. package/dist/chunks/goal-0.6.5-kyahd6wn.mjs +0 -4
  731. package/dist/chunks/grove-0.6.5-qjgh7ss3.mjs +0 -1
  732. package/dist/chunks/growthbook-0.6.5-ax1nfvk4.mjs +0 -1
  733. package/dist/chunks/headless-0.6.5-4pg9fsvq.mjs +0 -2
  734. package/dist/chunks/heapdump-0.6.5-9k0vppqs.mjs +0 -6
  735. package/dist/chunks/help-0.6.5-tfhm2beq.mjs +0 -1
  736. package/dist/chunks/hookChains-0.6.5-6szjehhz.mjs +0 -3
  737. package/dist/chunks/hooks-0.6.5-dgpkkjn0.mjs +0 -79
  738. package/dist/chunks/hooks-0.6.5-w5dctm3q.mjs +0 -1
  739. package/dist/chunks/ide-0.6.5-13et7be7.mjs +0 -3
  740. package/dist/chunks/image-processor-napi-0.6.5-hnw96fqh.mjs +0 -1
  741. package/dist/chunks/inboundAttachments-0.6.5-qc951hng.mjs +0 -1
  742. package/dist/chunks/index-0.6.5-01x1ejhn.mjs +0 -1
  743. package/dist/chunks/index-0.6.5-0abf9jmk.mjs +0 -1
  744. package/dist/chunks/index-0.6.5-1mp331dd.mjs +0 -1
  745. package/dist/chunks/index-0.6.5-1sg6s6z6.mjs +0 -1
  746. package/dist/chunks/index-0.6.5-4q6jjbs7.mjs +0 -1
  747. package/dist/chunks/index-0.6.5-6sk15ws5.mjs +0 -2
  748. package/dist/chunks/index-0.6.5-6t864t2c.mjs +0 -1
  749. package/dist/chunks/index-0.6.5-6xqpvv54.mjs +0 -30
  750. package/dist/chunks/index-0.6.5-7zhnqzn2.mjs +0 -1
  751. package/dist/chunks/index-0.6.5-89hxhv95.mjs +0 -1
  752. package/dist/chunks/index-0.6.5-aty810n8.mjs +0 -1
  753. package/dist/chunks/index-0.6.5-c2hwywv3.mjs +0 -1
  754. package/dist/chunks/index-0.6.5-e2wq7gh6.mjs +0 -2
  755. package/dist/chunks/index-0.6.5-g0kwgaqr.mjs +0 -17
  756. package/dist/chunks/index-0.6.5-gtcspa71.mjs +0 -1
  757. package/dist/chunks/index-0.6.5-h3efeppv.mjs +0 -1
  758. package/dist/chunks/index-0.6.5-m5ejvtqa.mjs +0 -1
  759. package/dist/chunks/index-0.6.5-mh7r1b3g.mjs +0 -1
  760. package/dist/chunks/index-0.6.5-pvve2ng4.mjs +0 -5
  761. package/dist/chunks/index-0.6.5-snpzxxv3.mjs +0 -9
  762. package/dist/chunks/index-0.6.5-tfw7v414.mjs +0 -9
  763. package/dist/chunks/index-0.6.5-wjkwk8e7.mjs +0 -1
  764. package/dist/chunks/index-0.6.5-z62wqvcx.mjs +0 -1
  765. package/dist/chunks/init-0.6.5-zhc6fyd5.mjs +0 -1
  766. package/dist/chunks/initReplBridge-0.6.5-7r1y5662.mjs +0 -1
  767. package/dist/chunks/ink-0.6.5-tndp68zg.mjs +0 -1
  768. package/dist/chunks/insights-0.6.5-vqzkktqr.mjs +0 -870
  769. package/dist/chunks/install-0.6.5-5gr23h3m.mjs +0 -1
  770. package/dist/chunks/install-github-app-0.6.5-tng076rr.mjs +0 -149
  771. package/dist/chunks/install-slack-app-0.6.5-gsz9yrym.mjs +0 -1
  772. package/dist/chunks/instrumentation-0.6.5-nqsng4g6.mjs +0 -1
  773. package/dist/chunks/interactiveHelpers-0.6.5-k1pvqxme.mjs +0 -1
  774. package/dist/chunks/keybindings-0.6.5-xerpw7ac.mjs +0 -2
  775. package/dist/chunks/knowledge-0.6.5-3cqswtp3.mjs +0 -2
  776. package/dist/chunks/latestVersionCache-0.6.5-mvrgq9dd.mjs +0 -1
  777. package/dist/chunks/loadAgentsDir-0.6.5-h16ggtfs.mjs +0 -1
  778. package/dist/chunks/loadPluginHooks-0.6.5-35e6kcw6.mjs +0 -1
  779. package/dist/chunks/loadPluginHooks-0.6.5-qm874zd2.mjs +0 -1
  780. package/dist/chunks/log-0.6.5-xge4vs13.mjs +0 -1
  781. package/dist/chunks/main-0.6.5-4pf8xcyc.mjs +0 -1
  782. package/dist/chunks/managedEnv-0.6.5-qbgyznrt.mjs +0 -1
  783. package/dist/chunks/mcp-0.6.5-293k7n7h.mjs +0 -4
  784. package/dist/chunks/mcp-0.6.5-45d2qxwd.mjs +0 -17
  785. package/dist/chunks/mcp-0.6.5-b5jvd286.mjs +0 -1
  786. package/dist/chunks/mcpb-0.6.5-e68tqw35.mjs +0 -1
  787. package/dist/chunks/memory-0.6.5-9htftc81.mjs +0 -3
  788. package/dist/chunks/model-0.6.5-rpyjsh6m.mjs +0 -1
  789. package/dist/chunks/model-0.6.5-zsk9vwg7.mjs +0 -2
  790. package/dist/chunks/node-0.6.5-j42ec4dm.mjs +0 -12
  791. package/dist/chunks/oauth-0.6.5-d8r75abq.mjs +0 -1
  792. package/dist/chunks/openaiShim-0.6.5-deev7qr4.mjs +0 -14
  793. package/dist/chunks/output-style-0.6.5-t4my27zb.mjs +0 -1
  794. package/dist/chunks/package-D6422PQU-0.6.5-a34phgmb.mjs +0 -1
  795. package/dist/chunks/parseConnectUrl-0.6.5-3rw1krw2.mjs +0 -1
  796. package/dist/chunks/parser-0.6.5-hnbj9e8f.mjs +0 -1
  797. package/dist/chunks/passes-0.6.5-9x43pms7.mjs +0 -1
  798. package/dist/chunks/permissions-0.6.5-aymv501j.mjs +0 -1
  799. package/dist/chunks/permissions-0.6.5-y4jnw514.mjs +0 -3
  800. package/dist/chunks/plan-0.6.5-kct7xqkt.mjs +0 -1
  801. package/dist/chunks/plist-0.6.5-gp660say.mjs +0 -1
  802. package/dist/chunks/plugin-0.6.5-5vnph48t.mjs +0 -29
  803. package/dist/chunks/pluginStartupCheck-0.6.5-y74n8rfx.mjs +0 -1
  804. package/dist/chunks/plugins-0.6.5-y0xna858.mjs +0 -9
  805. package/dist/chunks/preActionHook-0.6.5-gd8pge33.mjs +0 -2
  806. package/dist/chunks/print-0.6.5-zr884wv0.mjs +0 -57
  807. package/dist/chunks/privacy-settings-0.6.5-gm8tkeqk.mjs +0 -1
  808. package/dist/chunks/process-0.6.5-ha5587zb.mjs +0 -1
  809. package/dist/chunks/processBashCommand-0.6.5-qpanbrjt.mjs +0 -1
  810. package/dist/chunks/processSlashCommand-0.6.5-0zzej132.mjs +0 -9
  811. package/dist/chunks/prompt-0.6.5-n2e16857.mjs +0 -1
  812. package/dist/chunks/prompt-0.6.5-yd9wwvye.mjs +0 -1
  813. package/dist/chunks/prompts-0.6.5-4h181zjj.mjs +0 -1
  814. package/dist/chunks/protocolHandler-0.6.5-btkqsev6.mjs +0 -13
  815. package/dist/chunks/provider-0.6.5-pk6rtf1a.mjs +0 -2
  816. package/dist/chunks/providerProfiles-0.6.5-spn4hk2w.mjs +0 -1
  817. package/dist/chunks/providerValidation-0.6.5-j9fqm33r.mjs +0 -6
  818. package/dist/chunks/rate-limit-options-0.6.5-n0s4jxw7.mjs +0 -1
  819. package/dist/chunks/registerSubcommands-0.6.5-s6pemg0a.mjs +0 -34
  820. package/dist/chunks/registry-0.6.5-q9cda2p7.mjs +0 -1
  821. package/dist/chunks/release-notes-0.6.5-5s8sv8ea.mjs +0 -5
  822. package/dist/chunks/reload-plugins-0.6.5-bqh5fz13.mjs +0 -2
  823. package/dist/chunks/remote-env-0.6.5-29f08tqs.mjs +0 -1
  824. package/dist/chunks/remoteBridgeCore-0.6.5-gk9afz22.mjs +0 -1
  825. package/dist/chunks/remoteSession-0.6.5-w7r3dh6h.mjs +0 -1
  826. package/dist/chunks/rename-0.6.5-es4wyt7z.mjs +0 -1
  827. package/dist/chunks/replBridgeHandle-0.6.5-66va2rkv.mjs +0 -1
  828. package/dist/chunks/replLauncher-0.6.5-xzbbew8q.mjs +0 -1
  829. package/dist/chunks/resume-0.6.5-q2e001ra.mjs +0 -2
  830. package/dist/chunks/rewind-0.6.5-hhxvb1pk.mjs +0 -1
  831. package/dist/chunks/rootOptions-0.6.5-smyb5d6s.mjs +0 -1
  832. package/dist/chunks/sandbox-adapter-0.6.5-6zvjjrgg.mjs +0 -1
  833. package/dist/chunks/sandbox-toggle-0.6.5-ch59ryyz.mjs +0 -1
  834. package/dist/chunks/session-0.6.5-22r80wyd.mjs +0 -2
  835. package/dist/chunks/sessionDiscovery-0.6.5-aae5t467.mjs +0 -1
  836. package/dist/chunks/sessionFileAccessHooks-0.6.5-a6xg367a.mjs +0 -1
  837. package/dist/chunks/sessionStorage-0.6.5-dqg82tdb.mjs +0 -1
  838. package/dist/chunks/settings-0.6.5-egjxpxrx.mjs +0 -1
  839. package/dist/chunks/setup-0.6.5-ks0cjhc0.mjs +0 -5
  840. package/dist/chunks/sinks-0.6.5-vnqdp1xs.mjs +0 -1
  841. package/dist/chunks/skills-0.6.5-fhq4v7kx.mjs +0 -1
  842. package/dist/chunks/startupProfiler-0.6.5-qg0j96r8.mjs +0 -1
  843. package/dist/chunks/startupUpdateCheck-0.6.5-kgegmr3s.mjs +0 -1
  844. package/dist/chunks/state-0.6.5-s7hqk377.mjs +0 -1
  845. package/dist/chunks/stats-0.6.5-1c35kfn8.mjs +0 -6
  846. package/dist/chunks/status-0.6.5-wxfn3y7k.mjs +0 -1
  847. package/dist/chunks/stickers-0.6.5-vr2yr1fh.mjs +0 -1
  848. package/dist/chunks/subprocessEnv-0.6.5-p4nz5egm.mjs +0 -1
  849. package/dist/chunks/tasks-0.6.5-jq5x8fny.mjs +0 -1
  850. package/dist/chunks/teamHelpers-0.6.5-s5tew7t1.mjs +0 -1
  851. package/dist/chunks/teammateModeSnapshot-0.6.5-0yh7b47q.mjs +0 -1
  852. package/dist/chunks/teleport-0.6.5-hmv7mh01.mjs +0 -1
  853. package/dist/chunks/terminalSetup-0.6.5-k9d4e82r.mjs +0 -1
  854. package/dist/chunks/theme-0.6.5-24hr0s0e.mjs +0 -1
  855. package/dist/chunks/thinkback-0.6.5-6997cmgj.mjs +0 -1
  856. package/dist/chunks/thinkback-play-0.6.5-5bm6dv3e.mjs +0 -1
  857. package/dist/chunks/toolPool-0.6.5-599y15ba.mjs +0 -1
  858. package/dist/chunks/toolSearch-0.6.5-acm72rsk.mjs +0 -1
  859. package/dist/chunks/tools-0.6.5-kydccz7r.mjs +0 -1
  860. package/dist/chunks/trustedDevice-0.6.5-44vjv9at.mjs +0 -1
  861. package/dist/chunks/turndown.cjs-0.6.5-s2n7faa4.mjs +0 -69
  862. package/dist/chunks/types-0.6.5-h60ghfcx.mjs +0 -1
  863. package/dist/chunks/ultrareviewCommand-0.6.5-vhpd8cxc.mjs +0 -4
  864. package/dist/chunks/update-0.6.5-j61jnpbt.mjs +0 -86
  865. package/dist/chunks/upgrade-0.6.5-yg323wxz.mjs +0 -1
  866. package/dist/chunks/upload-0.6.5-5tsm3bt7.mjs +0 -7
  867. package/dist/chunks/upstreamproxy-0.6.5-0ayrwt4t.mjs +0 -14
  868. package/dist/chunks/url-handler-napi-0.6.5-6sb73p95.mjs +0 -1
  869. package/dist/chunks/usage-0.6.5-0tjr5c54.mjs +0 -1
  870. package/dist/chunks/util-0.6.5-xcfvn255.mjs +0 -1
  871. package/dist/chunks/utils-0.6.5-gjqewwe3.mjs +0 -1
  872. package/dist/chunks/vim-0.6.5-hmp35ayy.mjs +0 -1
  873. package/dist/chunks/watcher-0.6.5-jra6eh4m.mjs +0 -1
  874. package/dist/chunks/wiki-0.6.5-0k1cftcn.mjs +0 -132
  875. package/dist/chunks/worktree-0.6.5-a5vvycs0.mjs +0 -1
  876. package/dist/chunks/worktreeModeEnabled-0.6.5-rva8222w.mjs +0 -1
  877. package/dist/chunks/wrapper-0.6.5-0bxnwc77.mjs +0 -7
  878. /package/dist/chunks/{cli-0.6.5-pev4540w.mjs → cli-0.6.6-7bzhgmhp.mjs} +0 -0
  879. /package/dist/chunks/{cli-0.6.5-yv4805v6.mjs → cli-0.6.6-mezb9tga.mjs} +0 -0
  880. /package/dist/chunks/{cli-0.6.5-pynms6t8.mjs → cli-0.6.6-mfee7shn.mjs} +0 -0
  881. /package/dist/chunks/{cli-0.6.5-mtx91sgr.mjs → cli-0.6.6-xnazk7t9.mjs} +0 -0
  882. /package/dist/chunks/{cli-0.6.5-t0x65qv4.mjs → cli-0.6.6-yj2tafrk.mjs} +0 -0
  883. /package/dist/chunks/{cli-0.6.5-1k5wyv3x.mjs → cli-0.6.6-yve3e654.mjs} +0 -0
  884. /package/dist/chunks/{cli-0.6.5-dy5v4gms.mjs → cli-0.6.6-zk5p5pm9.mjs} +0 -0
@@ -1,24 +0,0 @@
1
- import{fV as T,qV as c}from"./cli-0.6.5-th48yhz2.mjs";import{$Z as w,c0 as n}from"./cli-0.6.5-n4hnag3x.mjs";import{P8 as y,Q8 as g,R7 as M,T7 as X,U7 as f}from"./cli-0.6.5-ef6b5qvc.mjs";import{Tga as K,Uga as v,Yga as m,oha as Z,rga as R,rha as h,tga as F}from"./cli-0.6.5-q4gh8d4w.mjs";import{Iha as Y,Nha as W,Pha as D}from"./cli-0.6.5-ce51qb6k.mjs";import{Sha as E,dia as S}from"./cli-0.6.5-s580r0vs.mjs";import{Gna as j,Jja as k,Nja as A,Pja as N}from"./cli-0.6.5-ckc9hr8m.mjs";import{ppa as H}from"./cli-0.6.5-bm7v9qp0.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
2
- $pid = ${String(q)}
3
- $ancestors = @()
4
- for ($i = 0; $i -lt ${J}; $i++) {
5
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
- if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
- $pid = $proc.ParentProcessId
8
- $ancestors += $pid
9
- }
10
- $ancestors -join ','
11
- `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
- `).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
13
- $currentPid = ${String(q)}
14
- $commands = @()
15
- for ($i = 0; $i -lt ${J}; $i++) {
16
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
- if (-not $proc) { break }
18
- if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
- if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
- $currentPid = $proc.ParentProcessId
21
- }
22
- $commands -join [char]0
23
- `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
24
- export{O as MU,i as NU,e as OU,qq as PU,_ as QU,Uq as RU,Bq as SU,C as TU,Mq as UU,I as VU,Aq as WU,d as XU,r as YU,t as ZU};
@@ -1,2 +0,0 @@
1
- import{oga as f}from"./cli-0.6.5-6qvtcs5y.mjs";import{rha as h}from"./cli-0.6.5-q4gh8d4w.mjs";import{ppa as Z}from"./cli-0.6.5-bm7v9qp0.mjs";var $=()=>{};var F=Z(()=>{$()});var K;var G=Z(()=>{K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});var M=Z(()=>{G();$();F();_();O()});var _=Z(()=>{G();$();F();M()});var O=Z(()=>{G();$();F();_();M()});var Sz;var w=Z(()=>{$();F();O();G();Sz=Promise.resolve()});async function kz(){}async function oz(z){if(!z||z.length>D)return null;return null}async function dz(z){if(!z||z.length>D)return null;return null}function nz(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&x.has(J.text)?[J.text]:[]}let X=[],V=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!V&&J.type==="word"){V=!0,X.push(J.text);continue}if(v.has(J.type))X.push(l(J.text));else if(m.has(J.type))break}return X}function l(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var D=1e4,x,v,m,pz;var L=Z(()=>{f();h();w();x=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),v=new Set(["word","string","raw_string","number"]),m=new Set(["command_substitution","process_substitution"]);pz=Symbol("parse-aborted")});
2
- export{K as N0,w as O0,kz as P0,oz as Q0,pz as R0,dz as S0,nz as T0,L as U0};
@@ -1,3 +0,0 @@
1
- import{F0 as d,G0 as X,K0 as N}from"./cli-0.6.5-wa6b2ksg.mjs";import{Fda as B,Lba as U,Nda as y,Oba as G,hca as p,iba as O,jba as f}from"./cli-0.6.5-ef6b5qvc.mjs";import{Hha as x,Pha as b}from"./cli-0.6.5-ce51qb6k.mjs";import{Sha as H,dia as E}from"./cli-0.6.5-s580r0vs.mjs";import{Gna as P,wla as w}from"./cli-0.6.5-ckc9hr8m.mjs";import{Aoa as k,Soa as S}from"./cli-0.6.5-ynxewk0a.mjs";import{lpa as M,ppa as R}from"./cli-0.6.5-bm7v9qp0.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(O())return;let J=await k.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
- `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{S();P();p();E();b();y();f();N();T=M(d(),1)});
3
- export{zq as Ff,Jq as Gf,C as Hf,h as If,Kq as Jf,Qq as Kf,g as Lf};
@@ -1,2 +0,0 @@
1
- import{Oba as P,hca as y}from"./cli-0.6.5-ef6b5qvc.mjs";import{ppa as U}from"./cli-0.6.5-bm7v9qp0.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 uV,M as vV,N as wV,Y as xV,C as yV,_ as zV,R as AV,f as BV,E as CV,I as DV,k as EV,A as FV,b as GV,h as HV,m as IV,p as JV,u as KV,T as LV,e as MV,W as NV,a as OV,s as PV,r as QV,g as RV};
@@ -1,2 +0,0 @@
1
- import{IT as k,JT as f,ZT as u}from"./cli-0.6.5-vj647gqr.mjs";import{eV as C,qV as d}from"./cli-0.6.5-th48yhz2.mjs";import{I1 as A,K1 as F}from"./cli-0.6.5-95a4872h.mjs";import{e2 as q,j2 as i}from"./cli-0.6.5-c7yx03g7.mjs";import{Z5 as W,a6 as _,h6 as j,i6 as w,n6 as I}from"./cli-0.6.5-1fqhk4mv.mjs";import{Fda as V,Nda as U}from"./cli-0.6.5-ef6b5qvc.mjs";import{jga as M,kga as v}from"./cli-0.6.5-kzr5p1mv.mjs";import{Tga as X,Uga as R,Yga as p,oha as J,rha as x}from"./cli-0.6.5-q4gh8d4w.mjs";import{Iha as P,Pha as T}from"./cli-0.6.5-ce51qb6k.mjs";import{qpa as O}from"./cli-0.6.5-bm7v9qp0.mjs";x();U();F();v();x();T();U();_();I();p();import{randomUUID as E}from"crypto";var h=2000,y=5,S=30000,Y=3,c=new Set([4003]);function D(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class L{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,H){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=H}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${M().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let H={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:H,proxy:w(z),tls:W()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let K=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(K)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");V(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-0.6.5-0bxnwc77.mjs"),Z=new $(z,{headers:H,agent:j(z),...W()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(K)=>{this.handleMessage(K.toString())}),Z.on("error",(K)=>{V(Error(`[SessionsWebSocket] Error: ${K.message}`)),this.callbacks.onError?.(K)}),Z.on("close",(K,G)=>{J(`[SessionsWebSocket] Closed: code=${K} reason=${G.toString()}`),this.handleClose(K)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=R(B);if(D(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){V(Error(`[SessionsWebSocket] Failed to parse message: ${P(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",c.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(h*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<y)this.reconnectAttempts++,this.scheduleReconnect(h,`attempt ${this.reconnectAttempts}/${y}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},S)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:E(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function N(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class b{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{V(z),this.callbacks.onError?.(z)}};this.websocket=new L(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(N(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let H={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(H)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await A(this.config.sessionId,B,z);if(!Q)V(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){V(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let H={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(H)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,H=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:H,viewerOnly:$}}x();U();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:H}=B,$=f(z);if(!$){V(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=k(z),K=!Q;return J(`[Reconnection] Computed initial team context for ${K?"leader":`teammate ${H}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:H,isLeader:K,teammates:{}}}function Wz(B,z,Q){let H=f(z);if(!H){V(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=H.members.find((G)=>G.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,K=k(z);B((G)=>({...G,teamContext:{teamName:z,teamFilePath:K,leadAgentId:H.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=q();for(let[H,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(H)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Lz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
2
- export{b as ua,$z as va,Xz as wa,Wz as xa,Lz as ya};
@@ -1,2 +0,0 @@
1
- import{Gna as H,Pja as z,Tja as B}from"./cli-0.6.5-ckc9hr8m.mjs";import{ppa as x}from"./cli-0.6.5-bm7v9qp0.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
- export{Q as vfa,J as wfa,R as xfa,K as yfa,U as zfa,V as Afa,W as Bfa,X as Cfa,Y as Dfa,Z as Efa,$ as Ffa,j as Gfa,q as Hfa,A as Ifa,G as Jfa,L as Kfa,_ as Lfa,b as Mfa,k as Nfa,p as Ofa,v as Pfa,C as Qfa,O as Rfa,y as Sfa,S as Tfa,f as Ufa,m as Vfa,u as Wfa,h as Xfa,l as Yfa,w as Zfa,g as _fa,d as $fa,M as aga};
@@ -1,5 +0,0 @@
1
- import{fb as U}from"./cli-0.6.5-983fq4aj.mjs";import{fs as N,gs as b}from"./cli-0.6.5-5t6d3asz.mjs";import{_T as F,bU as d,cU as _,dU as M,iU as I}from"./cli-0.6.5-pw1077hd.mjs";import{Z5 as B,a6 as T,h6 as x,i6 as H,n6 as v}from"./cli-0.6.5-1fqhk4mv.mjs";import{O7 as Z,Q7 as P}from"./cli-0.6.5-ef6b5qvc.mjs";import{lga as O,oga as D}from"./cli-0.6.5-6qvtcs5y.mjs";import{Tga as z,Yga as S,oha as Y,rha as A}from"./cli-0.6.5-q4gh8d4w.mjs";import{Vha as L,dia as f}from"./cli-0.6.5-s580r0vs.mjs";import{Aoa as y,Soa as i}from"./cli-0.6.5-ynxewk0a.mjs";import{qpa as k}from"./cli-0.6.5-bm7v9qp0.mjs";i();A();P();d();D();b();A();P();f();T();v();I();S();var C=`{"type":"keep_alive"}
2
- `,u=1000,h=1000,R=30000,w=600000,p=1e4,m=300000,E=R*2,c=new Set([1002,4001,4003]);class W{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(u)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:H(this.url.href),tls:B()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.6.5-0bxnwc77.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...B()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)O("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),_(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)O("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&c.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>E)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<w){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let V=this.refreshHeaders();Object.assign(this.headers,V),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)O("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=z($)+`
3
- `;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=z(J)+`
4
- `;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>E){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},p)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),L(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(C),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},m)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var g=100,t=15000,l=3000;class n extends W{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:V}=$??{};this.postUrl=r(J),this.uploader=new U({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(j,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:j,failures:q}),V?.(j,q)},send:(j)=>this.postOnce(j)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),g);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,l)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=F();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await y.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:t})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function r(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
5
- export{W as Ua,n as Va};
@@ -1,12 +0,0 @@
1
- import{$m as Uq,ID as x,JD as s,KD as C,MD as n,ND as $,PD as Zq,QE as o,SE as Mq,_m as E,cn as r,dn as Xq,gn as d,hn as Yq}from"./cli-0.6.5-5t6d3asz.mjs";import{BY as N,DY as U,HY as V,XY as a,gX as Jq,gZ as Qq}from"./cli-0.6.5-f71ncwzk.mjs";import{l1 as u,m1 as J,n1 as X,o1 as g}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as zq}from"./cli-0.6.5-vqb4jtcr.mjs";import{lga as w,oga as qq}from"./cli-0.6.5-6qvtcs5y.mjs";import{lpa as i,ppa as t}from"./cli-0.6.5-bm7v9qp0.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};
@@ -1,3 +0,0 @@
1
- import{AY as s,BY as F,DY as V,gX as t,gZ as o,pX as p,zY as j}from"./cli-0.6.5-f71ncwzk.mjs";import{m1 as w,n1 as g,o1 as y}from"./cli-0.6.5-8hsxq1p3.mjs";import{B7 as $,C7 as a,I7 as _,J7 as n}from"./cli-0.6.5-ef6b5qvc.mjs";import{lpa as i,ppa as v}from"./cli-0.6.5-bm7v9qp0.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
- `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
- export{Hq as Of,Mq as Pf};
@@ -1,2 +0,0 @@
1
- import{ppa as j}from"./cli-0.6.5-bm7v9qp0.mjs";var q,v,z;var w=j(()=>{q=["acceptEdits","bypassPermissions","default","dontAsk","plan"],v=[...q,"auto"],z=v});
2
- export{q as Aea,v as Bea,z as Cea,w as Dea};
@@ -1,2 +0,0 @@
1
- import{ppa as P}from"./cli-0.6.5-bm7v9qp0.mjs";import{homedir as Q}from"os";import{join as F}from"path";function J(q){return{env:q?.env??process.env,home:q?.homedir??process.env.HOME??Q()}}function k(q){let{env:x,home:B}=J(q);return x.XDG_STATE_HOME??F(B,".local","state")}function w(q){let{env:x,home:B}=J(q);return x.XDG_CACHE_HOME??F(B,".cache")}function H(q){let{env:x,home:B}=J(q);return x.XDG_DATA_HOME??F(B,".local","share")}function g(q){let{home:x}=J(q);return F(x,".local","bin")}var V=()=>{};function W(q){let x=q,B="",C=0,K=10;while(x!==B&&C<K)B=x,x=x.normalize("NFKC"),x=x.replace(/[\p{Cf}\p{Co}\p{Cn}]/gu,""),x=x.replace(/[\u200B-\u200F]/g,"").replace(/[\u202A-\u202E]/g,"").replace(/[\u2066-\u2069]/g,"").replace(/[\uFEFF]/g,"").replace(/[\uE000-\uF8FF]/g,""),C++;if(C>=K)throw Error(`Unicode sanitization reached maximum iterations (${K}) for input: ${q.slice(0,100)}`);return x}function L(q){if(typeof q==="string")return W(q);if(Array.isArray(q))return q.map(L);if(q!==null&&typeof q==="object"){let x={};for(let[B,C]of Object.entries(q))x[L(B)]=L(C);return x}return q}var Y=()=>{};
2
- export{k as EU,w as FU,H as GU,g as HU,V as IU,W as JU,L as KU,Y as LU};
@@ -1,2 +0,0 @@
1
- import{w1 as N,x1 as V,y1 as D}from"./cli-0.6.5-k74repdw.mjs";import{A5 as B,V5 as x,W4 as Z,e2 as Y,j2 as _,v5 as J,x5 as $}from"./cli-0.6.5-c7yx03g7.mjs";import{ega as Q,kga as P}from"./cli-0.6.5-kzr5p1mv.mjs";import{Aoa as X,Soa as R}from"./cli-0.6.5-ynxewk0a.mjs";import{ppa as W}from"./cli-0.6.5-bm7v9qp0.mjs";function E(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",F=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${F})`}function I(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function w(){if(Y()==="firstParty")return`Claude-User (${N()}; +https://support.anthropic.com/)`;return`Claudin-User (${V()})`}function C(){if(B()){let F=J();if(!F?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${F.accessToken}`,"anthropic-beta":Q}}}let z=Z();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function O(z,F){try{return await z()}catch(G){if(!X.isAxiosError(G))throw G;let L=G.response?.status;if(!(L===401||F?.also403Revoked&&L===403&&typeof G.response?.data==="string"&&G.response.data.includes("OAuth token has been revoked")))throw G;let M=J()?.accessToken;if(!M)throw G;return await $(M),await z()}}var H=W(()=>{R();P();x();_();D()});
2
- export{E as q1,I as r1,w as s1,C as t1,O as u1,H as v1};
@@ -1,2 +0,0 @@
1
- import{doa as M,eoa as Y}from"./cli-0.6.5-6ab8b50h.mjs";import{ppa as W}from"./cli-0.6.5-bm7v9qp0.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDE_CODE_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(){return!1}function O(){return!1}function x(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
2
- export{$ as Qha,N as Rha,X as Sha,_ as Tha,j as Uha,U as Vha,I as Wha,S as Xha,T as Yha,c as Zha,L as _ha,w as $ha,z as aia,O as bia,x as cia,k as dia};
@@ -1,2 +0,0 @@
1
- import{fi as R,hi as y,ii as v}from"./cli-0.6.5-thfwpyjp.mjs";import{DY as K,gX as c,gZ as E}from"./cli-0.6.5-f71ncwzk.mjs";import{l1 as O,m1 as N,n1 as M,o1 as U}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as G}from"./cli-0.6.5-vqb4jtcr.mjs";import{Oba as L,hca as b}from"./cli-0.6.5-ef6b5qvc.mjs";import{Yda as Z,iea as W}from"./cli-0.6.5-pz5add8h.mjs";import{oga as p}from"./cli-0.6.5-6qvtcs5y.mjs";import{lpa as F,ppa as j}from"./cli-0.6.5-bm7v9qp0.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
2
- export{f as sg,r as tg,n as ug,l as vg};
@@ -1,2 +0,0 @@
1
- import{BY as Y,DY as u,gX as u2,gZ as e2,pX as Z}from"./cli-0.6.5-f71ncwzk.mjs";import{m1 as t,n1 as o,o1 as U}from"./cli-0.6.5-8hsxq1p3.mjs";import{x_ as X,z_ as j}from"./cli-0.6.5-ef6b5qvc.mjs";import{lpa as s}from"./cli-0.6.5-bm7v9qp0.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.6.5"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.6.5"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","0.6.5"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","0.6.5"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
- export{c2 as O};
@@ -1,2 +0,0 @@
1
- import{SY as W,eZ as X,gX as f,gZ as k}from"./cli-0.6.5-f71ncwzk.mjs";import{l1 as V,m1 as J,o1 as K}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as P}from"./cli-0.6.5-vqb4jtcr.mjs";import{Qda as U,Rda as O}from"./cli-0.6.5-pz5add8h.mjs";import{lpa as Q,ppa as L}from"./cli-0.6.5-bm7v9qp0.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
2
- export{g as Xd,N as Yd,j as Zd};
@@ -1,18 +0,0 @@
1
- import{LH as Q,OH as F}from"./cli-0.6.5-5t6d3asz.mjs";import{oha as b,rha as y}from"./cli-0.6.5-q4gh8d4w.mjs";import{Kha as x,Pha as f}from"./cli-0.6.5-ce51qb6k.mjs";import{Sha as w,dia as R}from"./cli-0.6.5-s580r0vs.mjs";import{Gna as K,Nja as $,Qja as j}from"./cli-0.6.5-ckc9hr8m.mjs";import{ppa as v}from"./cli-0.6.5-bm7v9qp0.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
2
-
3
- `:"",B=k===G?`
4
-
5
- ${c}`:"";return`Scheduled loop tick.
6
-
7
- ${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
8
-
9
- If .claudin/loop.md exists, read it and follow it.
10
- Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
11
- Otherwise:
12
- - continue any unfinished work from the conversation
13
- - tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
14
- - run cleanup passes such as bug hunts or simplification when nothing else is pending
15
-
16
- Do not start new initiatives outside that scope.
17
- Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
18
- export{Y as Eh,G as Fh,D as Gh,g as Hh,M as Ih,U as Jh};
@@ -1,2 +0,0 @@
1
- import{Vha as q,dia as U}from"./cli-0.6.5-s580r0vs.mjs";import{opa as L,ppa as X}from"./cli-0.6.5-bm7v9qp0.mjs";import{AsyncLocalStorage as F}from"async_hooks";function G(){return O.getStore()}function Y(z,B){return O.run(z,B)}function Z(){return O.getStore()!==void 0}function $(z){return{...z,isInProcess:!0}}var O;var Q=X(()=>{O=new F});var y={};L(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>b,runWithTeammateContext:()=>Y,isTeammate:()=>u,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Z,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>f,getTeamName:()=>h,getParentSessionId:()=>_,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>E,createTeammateContext:()=>$,clearDynamicTeamContext:()=>j});function _(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function b(z){D=z}function j(){D=null}function v(){return D}function E(){let z=G();if(z)return z.agentId;return D?.agentId}function A(){let z=G();if(z)return z.agentName;return D?.agentName}function h(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function u(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function f(){let z=G();if(z)return z.color;return D?.color}function w(){let z=G();if(z)return z.planModeRequired;if(D!==null)return D.planModeRequired;return q(process.env.CLAUDE_CODE_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=E(),H=z.leadAgentId;if(B===H)return!0;if(!B)return!0;return!1}function P(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running")return!0;return!1}function I(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running"&&!B.isIdle)return!0;return!1}function l(z,B){let H=[];for(let[M,J]of Object.entries(B.tasks))if(J.type==="in_process_teammate"&&J.status==="running"&&!J.isIdle)H.push(M);if(H.length===0)return Promise.resolve();return new Promise((M)=>{let J=H.length,R=()=>{if(J--,J===0)M()};z((V)=>{let N={...V.tasks};for(let W of H){let K=N[W];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[W]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...V,tasks:N}})})}var D=null;var g=X(()=>{Q();U();Q()});
2
- export{G as _U,Y as $U,Z as aV,$ as bV,Q as cV,_ as dV,v as eV,E as fV,A as gV,h as hV,u as iV,f as jV,w as kV,S as lV,P as mV,I as nV,l as oV,y as pV,g as qV};
@@ -1,2 +0,0 @@
1
- import{K1 as m}from"./cli-0.6.5-95a4872h.mjs";import{D5 as K,V5 as $}from"./cli-0.6.5-c7yx03g7.mjs";import{Lba as Q,Nda as Z,Oba as J,hca as Y,jba as X}from"./cli-0.6.5-ef6b5qvc.mjs";import{kga as W}from"./cli-0.6.5-kzr5p1mv.mjs";import{ppa as V}from"./cli-0.6.5-bm7v9qp0.mjs";function y(){let z=K()?.organizationUuid;if(!z)return null;let B=J().overageCreditGrantCache?.[z];if(!B)return null;if(Date.now()-B.timestamp>q)return null;return B.info}function G(){let z=K()?.organizationUuid;if(!z)return;let B=J().overageCreditGrantCache;if(!B||!(z in B))return;Q((N)=>{let P={...N.overageCreditGrantCache};return delete P[z],{...N,overageCreditGrantCache:P}})}function U(z){if(z.amount_minor_units==null||!z.currency)return null;if(z.currency.toUpperCase()==="USD"){let B=z.amount_minor_units/100;return Number.isInteger(B)?`$${B}`:`$${B.toFixed(2)}`}return null}var q=3600000;var w=V(()=>{W();$();Y();Z();X();m()});
2
- export{y as fi,G as gi,U as hi,w as ii};
@@ -1,2 +0,0 @@
1
- import{oha as Q,rha as $}from"./cli-0.6.5-q4gh8d4w.mjs";import{Kha as K,Pha as Z}from"./cli-0.6.5-ce51qb6k.mjs";import{Sha as J,dia as Y}from"./cli-0.6.5-s580r0vs.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
- export{T as Q,w as R,y as S};
@@ -1,2 +0,0 @@
1
- import{Ru as C,Uu as X}from"./cli-0.6.5-5t6d3asz.mjs";import{p1 as W}from"./cli-0.6.5-vqb4jtcr.mjs";import{V3 as I,f4 as J,m4 as V}from"./cli-0.6.5-c7yx03g7.mjs";import{Eea as H,Zea as T}from"./cli-0.6.5-kac7d6qe.mjs";import{lpa as P,ppa as Q}from"./cli-0.6.5-bm7v9qp0.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
- export{v as Yc,Y as Zc};
@@ -1,2 +0,0 @@
1
- import{hpa as n}from"./cli-0.6.5-4k3kk3pr.mjs";import{npa as r}from"./cli-0.6.5-bm7v9qp0.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
2
- export{i as l7};
@@ -1,2 +0,0 @@
1
- import{ppa as e}from"./cli-0.6.5-bm7v9qp0.mjs";function o(){return!0}var t=()=>{};
2
- export{o as VR,t as WR};
@@ -1,2 +0,0 @@
1
- import{_U as YJ,cV as DJ,gV as vJ,hV as c,iV as SJ,qV as ZJ}from"./cli-0.6.5-th48yhz2.mjs";import{c1 as CJ,j1 as TJ}from"./cli-0.6.5-q1qpax7b.mjs";import{Fda as p,N8 as NJ,Nda as wJ,T7 as OJ,U7 as FJ,fba as S,hba as yJ,p8 as xJ,u9 as jJ}from"./cli-0.6.5-ef6b5qvc.mjs";import{qfa as R,sfa as VJ,tfa as w,ufa as XJ}from"./cli-0.6.5-kqhpzqdw.mjs";import{Tga as v,Uga as y,Yga as JJ,oha as G,rha as QJ}from"./cli-0.6.5-q4gh8d4w.mjs";import{Iha as W,Jha as C,Pha as e}from"./cli-0.6.5-ce51qb6k.mjs";import{Sha as s,Tha as I,Vha as t,dia as a}from"./cli-0.6.5-s580r0vs.mjs";import{Fja as r,Gja as MJ,Gna as m,Jja as d,Qma as L,wla as i}from"./cli-0.6.5-ckc9hr8m.mjs";import{ppa as T,qpa as BJ}from"./cli-0.6.5-bm7v9qp0.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!SJ())return;let V=Q??c(),X=vJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.6.5-q9cda2p7.mjs"),import("./detection-0.6.5-9v4p8jdz.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
- export{HQ as jT,UQ as kT,BQ as lT,fJ as mT,OQ as nT,xQ as oT,CQ as pT,_J as qT,E as rT,bJ as sT,vQ as tT,O as uT,j as vT,SQ as wT,h as xT,AQ as yT,zQ as zT,MQ as AT,HJ as BT,n as CT,UJ as DT,oQ as ET,zJ as FT,nQ as GT,u as HT,F as IT,H as JT,kJ as KT,rJ as LT,kQ as MT,rQ as NT,dQ as OT,iQ as PT,mQ as QT,dJ as RT,sQ as ST,tQ as TT,aQ as UT,eQ as VT,JV as WT,QV as XT,sJ as YT,tJ as ZT};
@@ -1,2 +0,0 @@
1
- import{Vha as w,dia as F}from"./cli-0.6.5-s580r0vs.mjs";import{ppa as D}from"./cli-0.6.5-bm7v9qp0.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
2
- export{Q as gT,V as hT,L as iT};
@@ -1,3 +0,0 @@
1
- import{qg as RY,rg as BQ}from"./cli-0.6.5-nd6kqcck.mjs";import{sg as kq,ug as Mq,vg as WX}from"./cli-0.6.5-sph3w6xt.mjs";import{Ig as IJ,Jg as AQ,Kg as NY,Lg as UQ}from"./cli-0.6.5-kr0q8v74.mjs";import{Mg as FY,Ng as MQ}from"./cli-0.6.5-406dcpxw.mjs";import{Og as LY,Pg as IQ,Qg as PY,Rg as EQ}from"./cli-0.6.5-57jmtd2z.mjs";import{Sg as Cq,Tg as l0,Vg as HY,Wg as DY}from"./cli-0.6.5-60hfev34.mjs";import{ji as Lq,ki as GX}from"./cli-0.6.5-akw85jbw.mjs";import{$m as zQ,AR as UY,As as n0,Cn as FQ,Cs as XX,GE as TZ,GI as BJ,HE as QQ,HI as PQ,IF as QZ,IQ as LZ,JF as XZ,KF as GZ,KR as BY,LF as VZ,LI as YJ,LR as IY,MF as WZ,MI as BZ,NF as KZ,NI as IZ,OF as OZ,OI as EZ,Oo as XY,PF as HZ,PR as SQ,Po as NQ,QE as T0,QF as DZ,RE as ZQ,RF as zZ,Ru as K0,SE as PZ,SF as dq,Su as GY,Tu as VY,Uu as qZ,YK as R0,ZK as TJ,_m as Z0,an as C,bn as f0,cn as p,dn as XJ,gn as S0,hn as FJ,kH as OY,lH as LQ,nn as UJ,rn as QY,ry as Pq,sy as VX,tR as JQ,zs as Rq}from"./cli-0.6.5-5t6d3asz.mjs";import{JS as WY,KS as KY,OS as RQ}from"./cli-0.6.5-41tc50h9.mjs";import{qU as zY,yU as kQ}from"./cli-0.6.5-gw6ygdnq.mjs";import{SV as V0,TV as v0,eW as l,fW as qY,gW as w0,jW as Iq,kW as HX,mW as C0,nW as Eq,pW as zJ,sW as fq,tW as DX}from"./cli-0.6.5-6x91apzw.mjs";import{BY as U,CX as ZY,DY as V,GX as DQ,fY as YY,gX as U0,gZ as H0,pX as e0,qX as JY}from"./cli-0.6.5-f71ncwzk.mjs";import{l1 as n,m1 as Q,n1 as H,o1 as $}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as s}from"./cli-0.6.5-vqb4jtcr.mjs";import{x1 as lY,y1 as nQ}from"./cli-0.6.5-k74repdw.mjs";import{G5 as vJ,N2 as h0,O2 as OQ,V5 as QX,Y3 as Nq,a4 as tZ,e2 as Fq,e3 as m0,f3 as MJ,h3 as oZ,i3 as AJ,i4 as qJ,j2 as qX,k3 as aZ,m4 as eZ,p3 as sZ,y3 as HQ}from"./cli-0.6.5-c7yx03g7.mjs";import{p6 as D0,q6 as GQ}from"./cli-0.6.5-3ybp7ww7.mjs";import{$_ as cZ,B7 as O0,C7 as DJ,Fda as N0,Jaa as PJ,Laa as x,Lba as T,Nda as QJ,Oaa as kJ,Oba as S,Pba as uZ,Uba as dZ,Uca as SY,Xca as TY,Yaa as KQ,Yba as iZ,Yca as TQ,Z_ as vZ,Zba as rZ,__ as pZ,_ca as wY,a$ as xZ,eda as hY,f$ as WQ,gda as bY,hca as nZ,jda as yY,nda as wQ,qda as B0,tda as lZ}from"./cli-0.6.5-ef6b5qvc.mjs";import{aea as mJ,bea as $0,hea as VJ,iea as SJ}from"./cli-0.6.5-pz5add8h.mjs";import{Cea as mZ}from"./cli-0.6.5-ry2zfh45.mjs";import{Nea as _Z,Zea as VQ}from"./cli-0.6.5-kac7d6qe.mjs";import{xfa as t0,yfa as YZ}from"./cli-0.6.5-rkjw25m5.mjs";import{lga as f,oga as XQ}from"./cli-0.6.5-6qvtcs5y.mjs";import{Tga as zq,Yga as YX,oha as c0,rha as CY}from"./cli-0.6.5-q4gh8d4w.mjs";import{Vha as $Z,Xha as fY,aia as LJ,dia as jZ}from"./cli-0.6.5-s580r0vs.mjs";import{$ja as Vq,Gna as ZZ,Hka as Hq,Hla as RJ,Ila as gZ,Jja as JZ,Ska as Dq,_ja as Gq,aka as Wq,uka as Kq,vka as Oq}from"./cli-0.6.5-ckc9hr8m.mjs";import{lpa as j,ppa as c}from"./cli-0.6.5-bm7v9qp0.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.5"},{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};