@claudiolabs/claudin 0.5.8 → 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (844) hide show
  1. package/bin/claudin +62 -0
  2. package/dist/chunks/AgentTool-0.5.10-k5mymxpj.mjs +1 -0
  3. package/dist/chunks/App-0.5.10-yzg0d70f.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.5.10-mpm24aq5.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.5.10-jbgn5s9r.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.5.10-tk2jpgdr.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.5.10-2gqvp73t.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.10-mwwqh2cz.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.5.10-f4wd3yew.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.5.10-f28xdhns.mjs +3 -0
  11. package/dist/chunks/Doctor-0.5.10-dz3ndek3.mjs +1 -0
  12. package/dist/chunks/Grove-0.5.10-f2m596r7.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.5.10-k9sjxv27.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.5.10-d5f0ba3j.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.5.10-vyexdzf7.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.5.10-fxhfd566.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.5.10-61c4a01v.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.5.10-mhnze07c.mjs +1 -0
  19. package/dist/chunks/REPL-0.5.10-qag06ykw.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.5.10-ax66yat2.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.5.10-mkzs7881.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.5.10-762m6e6b.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.5.10-mr8ddjsn.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.5.10-rs9vs3j0.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.5.10-s7yrx34h.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.5.10-8tejm808.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.5.10-v09an4xe.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.5.10-1c68rtzb.mjs +1 -0
  29. package/dist/chunks/add-dir-0.5.10-6hyjyege.mjs +1 -0
  30. package/dist/chunks/agents-0.5.10-34zhsd0m.mjs +110 -0
  31. package/dist/chunks/agents-0.5.10-fa6mrf84.mjs +3 -0
  32. package/dist/chunks/api-0.5.10-hvafwq9b.mjs +1 -0
  33. package/dist/chunks/asciicast-0.5.10-c2nfaps4.mjs +1 -0
  34. package/dist/chunks/assistant-0.5.10-w55twa4a.mjs +1 -0
  35. package/dist/chunks/auth-0.5.10-dmv8dcy1.mjs +1 -0
  36. package/dist/chunks/auth-0.5.10-tqm37j6k.mjs +1 -0
  37. package/dist/chunks/autoMode-0.5.10-bew44c3j.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.5.10-dav9gs0x.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.5.10-rsyjn0x7.mjs +1 -0
  40. package/dist/chunks/branch-0.5.10-k81z6new.mjs +4 -0
  41. package/dist/chunks/bridgePointer-0.5.10-h727df9t.mjs +1 -0
  42. package/dist/chunks/btw-0.5.10-f1syxkz1.mjs +1 -0
  43. package/dist/chunks/buddy-0.5.10-a15r3a8e.mjs +3 -0
  44. package/dist/chunks/cacache-0.5.10-1hz9d6s8.mjs +1 -0
  45. package/dist/chunks/cache-probe-0.5.10-fcxj2wy5.mjs +21 -0
  46. package/dist/chunks/cacheStats-0.5.10-vedv1qp4.mjs +4 -0
  47. package/dist/chunks/caches-0.5.10-fmadrqb1.mjs +1 -0
  48. package/dist/chunks/claudeDesktop-0.5.10-mz1s1yqp.mjs +1 -0
  49. package/dist/chunks/claudemd-0.5.10-9mb95kbb.mjs +1 -0
  50. package/dist/chunks/clear-0.5.10-tshbmj0g.mjs +1 -0
  51. package/dist/chunks/clearTerminal-0.5.10-bjqnvfmf.mjs +1 -0
  52. package/dist/chunks/cli-0.5.10-0ar26ct8.mjs +2 -0
  53. package/dist/chunks/cli-0.5.10-0p24d24e.mjs +2 -0
  54. package/dist/chunks/cli-0.5.10-0sg20shr.mjs +2 -0
  55. package/dist/chunks/cli-0.5.10-0twjtft5.mjs +2 -0
  56. package/dist/chunks/cli-0.5.10-0vs5gmpe.mjs +4 -0
  57. package/dist/chunks/cli-0.5.10-0xb1405m.mjs +2 -0
  58. package/dist/chunks/cli-0.5.10-0yn5x3m6.mjs +2 -0
  59. package/dist/chunks/cli-0.5.10-1gafefn2.mjs +3 -0
  60. package/dist/chunks/cli-0.5.10-1sd567wn.mjs +2 -0
  61. package/dist/chunks/cli-0.5.10-207502x5.mjs +2 -0
  62. package/dist/chunks/cli-0.5.10-20w5v1ja.mjs +2 -0
  63. package/dist/chunks/cli-0.5.10-20x96vwq.mjs +2 -0
  64. package/dist/chunks/cli-0.5.10-2c19pn7b.mjs +2 -0
  65. package/dist/chunks/cli-0.5.10-2es9q9n1.mjs +2 -0
  66. package/dist/chunks/cli-0.5.10-2fqes7gy.mjs +193 -0
  67. package/dist/chunks/cli-0.5.10-2qxn5ad9.mjs +2 -0
  68. package/dist/chunks/cli-0.5.10-2yqdkew6.mjs +3 -0
  69. package/dist/chunks/cli-0.5.10-2yrgbmd1.mjs +9 -0
  70. package/dist/chunks/cli-0.5.10-347yjq4a.mjs +2 -0
  71. package/dist/chunks/cli-0.5.10-3xnh04c6.mjs +2 -0
  72. package/dist/chunks/cli-0.5.10-4ekf1v4x.mjs +2 -0
  73. package/dist/chunks/cli-0.5.10-57andxje.mjs +26 -0
  74. package/dist/chunks/cli-0.5.10-58erwwbz.mjs +3 -0
  75. package/dist/chunks/cli-0.5.10-5m76kmzk.mjs +2 -0
  76. package/dist/chunks/cli-0.5.10-5mp7dx81.mjs +2 -0
  77. package/dist/chunks/cli-0.5.10-5nzsgwh2.mjs +2 -0
  78. package/dist/chunks/cli-0.5.10-5stz3dbm.mjs +2 -0
  79. package/dist/chunks/cli-0.5.10-5w3eaafz.mjs +2 -0
  80. package/dist/chunks/cli-0.5.10-661g0gft.mjs +2 -0
  81. package/dist/chunks/cli-0.5.10-68wvhytx.mjs +10 -0
  82. package/dist/chunks/cli-0.5.10-6c055y30.mjs +2 -0
  83. package/dist/chunks/cli-0.5.10-6g0257t2.mjs +2 -0
  84. package/dist/chunks/cli-0.5.10-6jarntdq.mjs +2 -0
  85. package/dist/chunks/cli-0.5.10-6twsf5qs.mjs +2 -0
  86. package/dist/chunks/cli-0.5.10-6wzddpjt.mjs +42 -0
  87. package/dist/chunks/cli-0.5.10-6y9d3fye.mjs +45 -0
  88. package/dist/chunks/cli-0.5.10-6z4j2qja.mjs +24 -0
  89. package/dist/chunks/cli-0.5.10-6zwxmza2.mjs +4 -0
  90. package/dist/chunks/cli-0.5.10-7f5q1zvk.mjs +2 -0
  91. package/dist/chunks/cli-0.5.10-7j4590js.mjs +2 -0
  92. package/dist/chunks/cli-0.5.10-7shp24xv.mjs +3 -0
  93. package/dist/chunks/cli-0.5.10-7tpa30tv.mjs +3 -0
  94. package/dist/chunks/cli-0.5.10-84q7z5hq.mjs +2 -0
  95. package/dist/chunks/cli-0.5.10-84z0ztsf.mjs +18 -0
  96. package/dist/chunks/cli-0.5.10-87sd2pqh.mjs +3 -0
  97. package/dist/chunks/cli-0.5.10-8f53zcp3.mjs +2 -0
  98. package/dist/chunks/cli-0.5.10-8jjacn05.mjs +5262 -0
  99. package/dist/chunks/cli-0.5.10-8kpt6897.mjs +3 -0
  100. package/dist/chunks/cli-0.5.10-8wqagr68.mjs +4 -0
  101. package/dist/chunks/cli-0.5.10-8zwd1xme.mjs +25 -0
  102. package/dist/chunks/cli-0.5.10-948wwm63.mjs +2 -0
  103. package/dist/chunks/cli-0.5.10-9dazv3hg.mjs +2 -0
  104. package/dist/chunks/cli-0.5.10-9ek8f4vk.mjs +2 -0
  105. package/dist/chunks/cli-0.5.10-9h23hhgb.mjs +2 -0
  106. package/dist/chunks/cli-0.5.10-9mt7ynrh.mjs +2 -0
  107. package/dist/chunks/cli-0.5.10-9xc8zhxg.mjs +59 -0
  108. package/dist/chunks/cli-0.5.10-9ynpb3y0.mjs +21 -0
  109. package/dist/chunks/cli-0.5.10-a1hh6v31.mjs +2 -0
  110. package/dist/chunks/cli-0.5.10-a38pnxbz.mjs +2 -0
  111. package/dist/chunks/cli-0.5.10-a542fww1.mjs +2 -0
  112. package/dist/chunks/cli-0.5.10-a8ecfnq0.mjs +2 -0
  113. package/dist/chunks/cli-0.5.10-atkghjt0.mjs +2 -0
  114. package/dist/chunks/cli-0.5.10-ax0fmeqk.mjs +2 -0
  115. package/dist/chunks/cli-0.5.10-azhfv28d.mjs +2 -0
  116. package/dist/chunks/cli-0.5.10-b4j3x063.mjs +4 -0
  117. package/dist/chunks/cli-0.5.10-b761m5q2.mjs +2 -0
  118. package/dist/chunks/cli-0.5.10-b7r8mjbd.mjs +9 -0
  119. package/dist/chunks/cli-0.5.10-ba15gakh.mjs +2 -0
  120. package/dist/chunks/cli-0.5.10-bad3yv4c.mjs +2 -0
  121. package/dist/chunks/cli-0.5.10-bhb8rt9y.mjs +2 -0
  122. package/dist/chunks/cli-0.5.10-bj0bm26b.mjs +4 -0
  123. package/dist/chunks/cli-0.5.10-bmc43e4g.mjs +2 -0
  124. package/dist/chunks/cli-0.5.10-bsqvacka.mjs +2 -0
  125. package/dist/chunks/cli-0.5.10-c0xtw3q0.mjs +34 -0
  126. package/dist/chunks/cli-0.5.10-c82cgdm7.mjs +133 -0
  127. package/dist/chunks/cli-0.5.10-c9z4tdw2.mjs +2 -0
  128. package/dist/chunks/cli-0.5.10-cm0r4pkd.mjs +3 -0
  129. package/dist/chunks/cli-0.5.10-cw4ykvbj.mjs +2 -0
  130. package/dist/chunks/cli-0.5.10-cz6csv1p.mjs +2 -0
  131. package/dist/chunks/cli-0.5.10-d1y749qy.mjs +2 -0
  132. package/dist/chunks/cli-0.5.10-d2cw91xn.mjs +3 -0
  133. package/dist/chunks/cli-0.5.10-d4d9x2de.mjs +2 -0
  134. package/dist/chunks/cli-0.5.10-d609fanf.mjs +2 -0
  135. package/dist/chunks/cli-0.5.10-d64hr722.mjs +3 -0
  136. package/dist/chunks/cli-0.5.10-d9xf1jnz.mjs +12 -0
  137. package/dist/chunks/cli-0.5.10-dkt8bbmm.mjs +3 -0
  138. package/dist/chunks/cli-0.5.10-dmmckmyf.mjs +12 -0
  139. package/dist/chunks/cli-0.5.10-dvmddb7c.mjs +6 -0
  140. package/dist/chunks/cli-0.5.10-dz26120x.mjs +2 -0
  141. package/dist/chunks/cli-0.5.10-dzr8kmx4.mjs +2 -0
  142. package/dist/chunks/cli-0.5.10-e8tz9596.mjs +2 -0
  143. package/dist/chunks/cli-0.5.10-e8wz8kc0.mjs +58 -0
  144. package/dist/chunks/cli-0.5.10-eh9hq9n3.mjs +2 -0
  145. package/dist/chunks/cli-0.5.10-ewcdy4pj.mjs +2 -0
  146. package/dist/chunks/cli-0.5.10-f3fj7f3q.mjs +2 -0
  147. package/dist/chunks/cli-0.5.10-fcbrnw81.mjs +2 -0
  148. package/dist/chunks/cli-0.5.10-fjvz4bt0.mjs +8 -0
  149. package/dist/chunks/cli-0.5.10-fzx10svb.mjs +2 -0
  150. package/dist/chunks/cli-0.5.10-g4khh98h.mjs +2 -0
  151. package/dist/chunks/cli-0.5.10-gekw3xnm.mjs +2 -0
  152. package/dist/chunks/cli-0.5.10-gk9n4zev.mjs +2 -0
  153. package/dist/chunks/cli-0.5.10-gs8dx67v.mjs +2 -0
  154. package/dist/chunks/cli-0.5.10-hmp23q7z.mjs +2 -0
  155. package/dist/chunks/cli-0.5.10-hzh8tpg0.mjs +2 -0
  156. package/dist/chunks/cli-0.5.10-j1aznw8b.mjs +2 -0
  157. package/dist/chunks/cli-0.5.10-jd7ff66n.mjs +2 -0
  158. package/dist/chunks/cli-0.5.10-jhtht51h.mjs +4 -0
  159. package/dist/chunks/cli-0.5.10-jsnrvena.mjs +2 -0
  160. package/dist/chunks/cli-0.5.10-k0mnqs0g.mjs +15 -0
  161. package/dist/chunks/cli-0.5.10-k1s62rww.mjs +2 -0
  162. package/dist/chunks/cli-0.5.10-k3qbvfj5.mjs +2 -0
  163. package/dist/chunks/cli-0.5.10-kj2g5r8c.mjs +15 -0
  164. package/dist/chunks/cli-0.5.10-kyt82zt5.mjs +2 -0
  165. package/dist/chunks/cli-0.5.10-m0hghx42.mjs +2 -0
  166. package/dist/chunks/cli-0.5.10-mcw01p8b.mjs +2 -0
  167. package/dist/chunks/cli-0.5.10-mgkc1jay.mjs +15 -0
  168. package/dist/chunks/cli-0.5.10-mrgw2c00.mjs +2 -0
  169. package/dist/chunks/cli-0.5.10-mvckg6zv.mjs +17 -0
  170. package/dist/chunks/cli-0.5.10-mxzdkm6r.mjs +2 -0
  171. package/dist/chunks/cli-0.5.10-n70d8n1f.mjs +2 -0
  172. package/dist/chunks/cli-0.5.10-neaex6bh.mjs +2 -0
  173. package/dist/chunks/cli-0.5.10-npmmxjts.mjs +5 -0
  174. package/dist/chunks/cli-0.5.10-nqvng39w.mjs +2 -0
  175. package/dist/chunks/cli-0.5.10-nvmq8pez.mjs +2 -0
  176. package/dist/chunks/cli-0.5.10-nx3m5sa2.mjs +2 -0
  177. package/dist/chunks/cli-0.5.10-p3g04417.mjs +20 -0
  178. package/dist/chunks/cli-0.5.10-p4wmnjhz.mjs +6 -0
  179. package/dist/chunks/cli-0.5.10-p5j82v0t.mjs +2 -0
  180. package/dist/chunks/cli-0.5.10-p7jd1z33.mjs +2 -0
  181. package/dist/chunks/cli-0.5.10-p8hbe96w.mjs +133 -0
  182. package/dist/chunks/cli-0.5.10-pk91q3s6.mjs +4 -0
  183. package/dist/chunks/cli-0.5.10-pq8nhdeq.mjs +2 -0
  184. package/dist/chunks/cli-0.5.10-pr0nkqpw.mjs +2 -0
  185. package/dist/chunks/cli-0.5.10-pr8yqs5v.mjs +2 -0
  186. package/dist/chunks/cli-0.5.10-pxhw9mwz.mjs +2 -0
  187. package/dist/chunks/cli-0.5.10-qvp1fb5n.mjs +2 -0
  188. package/dist/chunks/cli-0.5.10-qw9y3mst.mjs +2 -0
  189. package/dist/chunks/cli-0.5.10-qx17jbqj.mjs +2 -0
  190. package/dist/chunks/cli-0.5.10-r0jt3zrj.mjs +2 -0
  191. package/dist/chunks/cli-0.5.10-ra711jkk.mjs +2 -0
  192. package/dist/chunks/cli-0.5.10-rhmrff22.mjs +2 -0
  193. package/dist/chunks/cli-0.5.10-rk7at2tn.mjs +2 -0
  194. package/dist/chunks/cli-0.5.10-rq5mv7xq.mjs +2 -0
  195. package/dist/chunks/cli-0.5.10-rwqvbtg3.mjs +18 -0
  196. package/dist/chunks/cli-0.5.10-rxnwkka5.mjs +24 -0
  197. package/dist/chunks/cli-0.5.10-rzshk2m6.mjs +6 -0
  198. package/dist/chunks/cli-0.5.10-rzz4tgvw.mjs +12 -0
  199. package/dist/chunks/cli-0.5.10-s8bv5q7m.mjs +2 -0
  200. package/dist/chunks/cli-0.5.10-srd78kpc.mjs +7 -0
  201. package/dist/chunks/cli-0.5.10-syb1bnb2.mjs +4 -0
  202. package/dist/chunks/cli-0.5.10-t11my4jb.mjs +2 -0
  203. package/dist/chunks/cli-0.5.10-t2s1mxyn.mjs +2 -0
  204. package/dist/chunks/cli-0.5.10-t9d916t1.mjs +39 -0
  205. package/dist/chunks/cli-0.5.10-tbpqmp1s.mjs +2 -0
  206. package/dist/chunks/cli-0.5.10-tkjtbv56.mjs +2 -0
  207. package/dist/chunks/cli-0.5.10-tqpg21eq.mjs +2 -0
  208. package/dist/chunks/cli-0.5.10-tqyytkxn.mjs +2 -0
  209. package/dist/chunks/cli-0.5.10-tr692cqd.mjs +2 -0
  210. package/dist/chunks/cli-0.5.10-v36c5nnr.mjs +2 -0
  211. package/dist/chunks/cli-0.5.10-v6kj3ej2.mjs +2 -0
  212. package/dist/chunks/cli-0.5.10-vhn14p7a.mjs +2 -0
  213. package/dist/chunks/cli-0.5.10-vhrqqvdz.mjs +5 -0
  214. package/dist/chunks/cli-0.5.10-vpfctkxf.mjs +2 -0
  215. package/dist/chunks/cli-0.5.10-vqkn3pgf.mjs +17 -0
  216. package/dist/chunks/cli-0.5.10-vqrqhas6.mjs +2 -0
  217. package/dist/chunks/cli-0.5.10-vsgznv7p.mjs +2 -0
  218. package/dist/chunks/cli-0.5.10-vyem3gpm.mjs +2 -0
  219. package/dist/chunks/cli-0.5.10-w29mv5e9.mjs +4 -0
  220. package/dist/chunks/cli-0.5.10-w41wxn5f.mjs +50 -0
  221. package/dist/chunks/cli-0.5.10-w698y5mp.mjs +5 -0
  222. package/dist/chunks/cli-0.5.10-w93v7bhm.mjs +2 -0
  223. package/dist/chunks/cli-0.5.10-xfqxbzc6.mjs +4 -0
  224. package/dist/chunks/cli-0.5.10-xg27xawf.mjs +2 -0
  225. package/dist/chunks/cli-0.5.10-xhy1yx61.mjs +2 -0
  226. package/dist/chunks/cli-0.5.10-xk6v4sy0.mjs +2 -0
  227. package/dist/chunks/cli-0.5.10-xnmg1qwd.mjs +2 -0
  228. package/dist/chunks/cli-0.5.10-xrwj7982.mjs +67 -0
  229. package/dist/chunks/cli-0.5.10-xy780m03.mjs +2 -0
  230. package/dist/chunks/cli-0.5.10-xyscak5q.mjs +16 -0
  231. package/dist/chunks/cli-0.5.10-y0sfzz9t.mjs +2 -0
  232. package/dist/chunks/cli-0.5.10-y0sr20nf.mjs +2 -0
  233. package/dist/chunks/cli-0.5.10-y4tn070k.mjs +1 -0
  234. package/dist/chunks/cli-0.5.10-y7j4tsb5.mjs +2 -0
  235. package/dist/chunks/cli-0.5.10-y9qd4psg.mjs +2 -0
  236. package/dist/chunks/cli-0.5.10-ytqna8q4.mjs +2 -0
  237. package/dist/chunks/cli-0.5.10-yvjnvgky.mjs +2 -0
  238. package/dist/chunks/cli-0.5.10-yxxbgd59.mjs +2 -0
  239. package/dist/chunks/cli-0.5.10-yzqkgb55.mjs +2 -0
  240. package/dist/chunks/cli-0.5.10-z4bzn8vh.mjs +2 -0
  241. package/dist/chunks/cli-0.5.10-z5ysspq8.mjs +2 -0
  242. package/dist/chunks/cli-0.5.10-zk1h67jm.mjs +2 -0
  243. package/dist/chunks/client-0.5.10-a5rmwz53.mjs +1 -0
  244. package/dist/chunks/color-0.5.10-3mtfm5rv.mjs +1 -0
  245. package/dist/chunks/compact-0.5.10-7zdm8hke.mjs +3 -0
  246. package/dist/chunks/config-0.5.10-ns9jcqxp.mjs +1 -0
  247. package/dist/chunks/config-0.5.10-vtf1kzhz.mjs +1 -0
  248. package/dist/chunks/context-0.5.10-qjjyyqx9.mjs +1 -0
  249. package/dist/chunks/context-noninteractive-0.5.10-244bgmbj.mjs +1 -0
  250. package/dist/chunks/conversation-0.5.10-zza66sgq.mjs +1 -0
  251. package/dist/chunks/copy-0.5.10-d6nstaxy.mjs +9 -0
  252. package/dist/chunks/cost-0.5.10-k89r76j7.mjs +1 -0
  253. package/dist/chunks/createSSHSession-0.5.10-xy3z3tdw.mjs +1 -0
  254. package/dist/chunks/createSession-0.5.10-ntrenxk4.mjs +1 -0
  255. package/dist/chunks/debug-0.5.10-bxkhvfc6.mjs +1 -0
  256. package/dist/chunks/defaultActionDeps-0.5.10-h673vq05.mjs +1177 -0
  257. package/dist/chunks/desktop-0.5.10-v0j5w6e8.mjs +1 -0
  258. package/dist/chunks/detectRepository-0.5.10-z29dy30r.mjs +1 -0
  259. package/dist/chunks/detection-0.5.10-jhy1kffq.mjs +1 -0
  260. package/dist/chunks/diff-0.5.10-14m8b77v.mjs +1 -0
  261. package/dist/chunks/doctor-0.5.10-pn374er7.mjs +1 -0
  262. package/dist/chunks/doctorDiagnostic-0.5.10-wkjtp4z5.mjs +1 -0
  263. package/dist/chunks/earlyInput-0.5.10-9nxfn64h.mjs +1 -0
  264. package/dist/chunks/effort-0.5.10-sjn55ka6.mjs +10 -0
  265. package/dist/chunks/envUtils-0.5.10-sdrg5j2r.mjs +1 -0
  266. package/dist/chunks/environmentSelection-0.5.10-nkxtjsa6.mjs +1 -0
  267. package/dist/chunks/environments-0.5.10-j3cwt63g.mjs +1 -0
  268. package/dist/chunks/errors-0.5.10-k3a2vs5j.mjs +1 -0
  269. package/dist/chunks/exampleCommands-0.5.10-s4q3ndpx.mjs +1 -0
  270. package/dist/chunks/exit-0.5.10-aaqjsrb3.mjs +1 -0
  271. package/dist/chunks/export-0.5.10-g3n84jha.mjs +2 -0
  272. package/dist/chunks/extra-usage-0.5.10-1k8453hn.mjs +1 -0
  273. package/dist/chunks/extra-usage-noninteractive-0.5.10-h0s4j23t.mjs +1 -0
  274. package/dist/chunks/fast-0.5.10-6jg8q83t.mjs +1 -0
  275. package/dist/chunks/feedback-0.5.10-f4cms77n.mjs +14 -0
  276. package/dist/chunks/firstPartyEventLogger-0.5.10-mtcdee5x.mjs +1 -0
  277. package/dist/chunks/git-0.5.10-5yr5z4ap.mjs +1 -0
  278. package/dist/chunks/githubModelsCredentials-0.5.10-pfeadzx7.mjs +1 -0
  279. package/dist/chunks/grove-0.5.10-4vzycmmm.mjs +1 -0
  280. package/dist/chunks/growthbook-0.5.10-nf8eqz7k.mjs +1 -0
  281. package/dist/chunks/headless-0.5.10-kqpgc4q6.mjs +2 -0
  282. package/dist/chunks/heapdump-0.5.10-zedkfpnn.mjs +6 -0
  283. package/dist/chunks/help-0.5.10-a3vhmv05.mjs +1 -0
  284. package/dist/chunks/hookChains-0.5.10-yc93jx3d.mjs +3 -0
  285. package/dist/chunks/hooks-0.5.10-negsdbpw.mjs +1 -0
  286. package/dist/chunks/hooks-0.5.10-t26wz67x.mjs +79 -0
  287. package/dist/chunks/ide-0.5.10-qsh8k0we.mjs +3 -0
  288. package/dist/chunks/image-processor-napi-0.5.10-8kz0m2nd.mjs +1 -0
  289. package/dist/chunks/index-0.5.10-0j9kz8a6.mjs +1 -0
  290. package/dist/chunks/index-0.5.10-0wzdjjzk.mjs +5 -0
  291. package/dist/chunks/index-0.5.10-5fsxcv9a.mjs +1 -0
  292. package/dist/chunks/index-0.5.10-6v1h8fb2.mjs +17 -0
  293. package/dist/chunks/index-0.5.10-7t36m4fw.mjs +30 -0
  294. package/dist/chunks/index-0.5.10-8t5phmpa.mjs +9 -0
  295. package/dist/chunks/index-0.5.10-ak9fnp4h.mjs +2 -0
  296. package/dist/chunks/index-0.5.10-asj7h5d6.mjs +9 -0
  297. package/dist/chunks/index-0.5.10-dxkhh5bg.mjs +1 -0
  298. package/dist/chunks/index-0.5.10-eh8w8ayw.mjs +2 -0
  299. package/dist/chunks/index-0.5.10-fjf8d5vq.mjs +1 -0
  300. package/dist/chunks/index-0.5.10-fyt0d84h.mjs +1 -0
  301. package/dist/chunks/index-0.5.10-m8cjzf6y.mjs +1 -0
  302. package/dist/chunks/index-0.5.10-marrtwvx.mjs +1 -0
  303. package/dist/chunks/index-0.5.10-n7zsm7mc.mjs +1 -0
  304. package/dist/chunks/index-0.5.10-p69q9n6x.mjs +1 -0
  305. package/dist/chunks/index-0.5.10-rv6kfzr0.mjs +1 -0
  306. package/dist/chunks/index-0.5.10-s5ttsdnm.mjs +1 -0
  307. package/dist/chunks/index-0.5.10-thyhdy51.mjs +1 -0
  308. package/dist/chunks/index-0.5.10-tncm271j.mjs +1 -0
  309. package/dist/chunks/index-0.5.10-wzxzkrhk.mjs +1 -0
  310. package/dist/chunks/index-0.5.10-x3apane6.mjs +1 -0
  311. package/dist/chunks/init-0.5.10-ef7yaw4p.mjs +1 -0
  312. package/dist/chunks/initReplBridge-0.5.10-we7sga8z.mjs +1 -0
  313. package/dist/chunks/ink-0.5.10-chpcjhk0.mjs +1 -0
  314. package/dist/chunks/insights-0.5.10-advkjwjk.mjs +870 -0
  315. package/dist/chunks/install-0.5.10-znt3x5wn.mjs +1 -0
  316. package/dist/chunks/install-github-app-0.5.10-jg0eqhv0.mjs +149 -0
  317. package/dist/chunks/install-slack-app-0.5.10-ryvy8j96.mjs +1 -0
  318. package/dist/chunks/instrumentation-0.5.10-36atfc3f.mjs +1 -0
  319. package/dist/chunks/interactiveHelpers-0.5.10-asvens6h.mjs +1 -0
  320. package/dist/chunks/keybindings-0.5.10-csc1yzpg.mjs +2 -0
  321. package/dist/chunks/knowledge-0.5.10-tg7cvbym.mjs +2 -0
  322. package/dist/chunks/latestVersionCache-0.5.10-wjt7dbqy.mjs +1 -0
  323. package/dist/chunks/loadAgentsDir-0.5.10-7zwxynjb.mjs +1 -0
  324. package/dist/chunks/loadPluginHooks-0.5.10-c8kk1n2h.mjs +1 -0
  325. package/dist/chunks/loadPluginHooks-0.5.10-qx8rwccw.mjs +1 -0
  326. package/dist/chunks/log-0.5.10-ews8b6yn.mjs +1 -0
  327. package/dist/chunks/main-0.5.10-dxwhwf46.mjs +1 -0
  328. package/dist/chunks/managedEnv-0.5.10-5jce9mqj.mjs +1 -0
  329. package/dist/chunks/mcp-0.5.10-1wxhgtsr.mjs +17 -0
  330. package/dist/chunks/mcp-0.5.10-5wsj8fv2.mjs +1 -0
  331. package/dist/chunks/mcp-0.5.10-ydcjrb4p.mjs +4 -0
  332. package/dist/chunks/mcpb-0.5.10-120rqrb1.mjs +1 -0
  333. package/dist/chunks/memory-0.5.10-0pqjdjed.mjs +3 -0
  334. package/dist/chunks/mobile-0.5.10-kp63nfej.mjs +2 -0
  335. package/dist/chunks/model-0.5.10-9zszn74v.mjs +2 -0
  336. package/dist/chunks/model-0.5.10-b64fg4gd.mjs +1 -0
  337. package/dist/chunks/node-0.5.10-tny076t5.mjs +12 -0
  338. package/dist/chunks/oauth-0.5.10-fccp2x7y.mjs +1 -0
  339. package/dist/chunks/openaiShim-0.5.10-gwjyjn7m.mjs +14 -0
  340. package/dist/chunks/output-style-0.5.10-526tregy.mjs +1 -0
  341. package/dist/chunks/package-D6422PQU-0.5.10-we8amhca.mjs +1 -0
  342. package/dist/chunks/parseConnectUrl-0.5.10-nhkxeakd.mjs +1 -0
  343. package/dist/chunks/parser-0.5.10-m4aj9jm7.mjs +1 -0
  344. package/dist/chunks/passes-0.5.10-vwhmhxn9.mjs +1 -0
  345. package/dist/chunks/permissions-0.5.10-b7p2zxt8.mjs +3 -0
  346. package/dist/chunks/plan-0.5.10-s8612fw1.mjs +1 -0
  347. package/dist/chunks/plist-0.5.10-e8k2gtwm.mjs +1 -0
  348. package/dist/chunks/plugin-0.5.10-pjh90f93.mjs +29 -0
  349. package/dist/chunks/pluginStartupCheck-0.5.10-mamzxaj6.mjs +1 -0
  350. package/dist/chunks/plugins-0.5.10-3zq96m7k.mjs +9 -0
  351. package/dist/chunks/preActionHook-0.5.10-6x12np60.mjs +2 -0
  352. package/dist/chunks/print-0.5.10-5a31vx9j.mjs +57 -0
  353. package/dist/chunks/privacy-settings-0.5.10-rdfd63af.mjs +1 -0
  354. package/dist/chunks/process-0.5.10-nf4cmk34.mjs +1 -0
  355. package/dist/chunks/processBashCommand-0.5.10-mw974xep.mjs +1 -0
  356. package/dist/chunks/processSlashCommand-0.5.10-e8c6n292.mjs +9 -0
  357. package/dist/chunks/prompt-0.5.10-6pbxq1g3.mjs +1 -0
  358. package/dist/chunks/prompt-0.5.10-n31de4d4.mjs +1 -0
  359. package/dist/chunks/prompts-0.5.10-0cxg5rvf.mjs +1 -0
  360. package/dist/chunks/protocolHandler-0.5.10-n15zj80n.mjs +13 -0
  361. package/dist/chunks/provider-0.5.10-0chtqqq3.mjs +2 -0
  362. package/dist/chunks/providerProfiles-0.5.10-kk39f15h.mjs +1 -0
  363. package/dist/chunks/providerValidation-0.5.10-5b2bmm6k.mjs +6 -0
  364. package/dist/chunks/rate-limit-options-0.5.10-qen28djd.mjs +1 -0
  365. package/dist/chunks/registerSubcommands-0.5.10-xmgpzx1a.mjs +34 -0
  366. package/dist/chunks/registry-0.5.10-q3yb1jt6.mjs +1 -0
  367. package/dist/chunks/release-notes-0.5.10-3m0mwzvq.mjs +5 -0
  368. package/dist/chunks/reload-plugins-0.5.10-2ngnamq3.mjs +2 -0
  369. package/dist/chunks/remote-env-0.5.10-gm9a4ms5.mjs +1 -0
  370. package/dist/chunks/remoteBridgeCore-0.5.10-s9tnpv93.mjs +1 -0
  371. package/dist/chunks/remoteSession-0.5.10-mk8be8a3.mjs +1 -0
  372. package/dist/chunks/rename-0.5.10-9ecwm2ar.mjs +1 -0
  373. package/dist/chunks/replBridgeHandle-0.5.10-9956kd4a.mjs +1 -0
  374. package/dist/chunks/replLauncher-0.5.10-94wyag0m.mjs +1 -0
  375. package/dist/chunks/resume-0.5.10-nc3z5h15.mjs +2 -0
  376. package/dist/chunks/rewind-0.5.10-wbs4stfg.mjs +1 -0
  377. package/dist/chunks/rootOptions-0.5.10-8ky1y6hv.mjs +1 -0
  378. package/dist/chunks/sandbox-adapter-0.5.10-jg0fj7ss.mjs +1 -0
  379. package/dist/chunks/sandbox-toggle-0.5.10-yy9272d9.mjs +1 -0
  380. package/dist/chunks/session-0.5.10-jqzxp3r3.mjs +2 -0
  381. package/dist/chunks/sessionDiscovery-0.5.10-7va0srxq.mjs +1 -0
  382. package/dist/chunks/sessionFileAccessHooks-0.5.10-bykpya1w.mjs +1 -0
  383. package/dist/chunks/sessionStorage-0.5.10-yy69cv78.mjs +1 -0
  384. package/dist/chunks/settings-0.5.10-kx3ep0z5.mjs +1 -0
  385. package/dist/chunks/setup-0.5.10-w0byw3fs.mjs +5 -0
  386. package/dist/chunks/sinks-0.5.10-289qngp8.mjs +1 -0
  387. package/dist/chunks/skills-0.5.10-6kvsqc69.mjs +1 -0
  388. package/dist/chunks/startupProfiler-0.5.10-e0mg4v8r.mjs +1 -0
  389. package/dist/chunks/startupUpdateCheck-0.5.10-08eextv5.mjs +1 -0
  390. package/dist/chunks/state-0.5.10-7xqjnrdw.mjs +1 -0
  391. package/dist/chunks/stats-0.5.10-fafdyc91.mjs +6 -0
  392. package/dist/chunks/status-0.5.10-y9t6rf31.mjs +1 -0
  393. package/dist/chunks/stickers-0.5.10-ta1pq624.mjs +1 -0
  394. package/dist/chunks/subprocessEnv-0.5.10-zv2wcv5q.mjs +1 -0
  395. package/dist/chunks/tasks-0.5.10-d0y0wvjj.mjs +1 -0
  396. package/dist/chunks/teamHelpers-0.5.10-qpwpfv94.mjs +1 -0
  397. package/dist/chunks/teammateModeSnapshot-0.5.10-92d1devr.mjs +1 -0
  398. package/dist/chunks/teleport-0.5.10-rkxj6c9z.mjs +1 -0
  399. package/dist/chunks/terminalSetup-0.5.10-xtrfcff1.mjs +1 -0
  400. package/dist/chunks/theme-0.5.10-5rz8k2g9.mjs +1 -0
  401. package/dist/chunks/thinkback-0.5.10-pmdfhfhz.mjs +1 -0
  402. package/dist/chunks/thinkback-play-0.5.10-051qtb4m.mjs +1 -0
  403. package/dist/chunks/toolPool-0.5.10-702w7qvh.mjs +1 -0
  404. package/dist/chunks/toolSearch-0.5.10-emqjgdkv.mjs +1 -0
  405. package/dist/chunks/tools-0.5.10-2msmk0nf.mjs +1 -0
  406. package/dist/chunks/trustedDevice-0.5.10-rc23c6gy.mjs +1 -0
  407. package/dist/chunks/turndown.cjs-0.5.10-a87sftz7.mjs +69 -0
  408. package/dist/chunks/ultrareviewCommand-0.5.10-z29nftnt.mjs +4 -0
  409. package/dist/chunks/update-0.5.10-52yyras3.mjs +86 -0
  410. package/dist/chunks/upgrade-0.5.10-xqdpemsf.mjs +1 -0
  411. package/dist/chunks/upstreamproxy-0.5.10-154q742m.mjs +14 -0
  412. package/dist/chunks/url-handler-napi-0.5.10-8af5etcc.mjs +1 -0
  413. package/dist/chunks/usage-0.5.10-hhg47trs.mjs +1 -0
  414. package/dist/chunks/util-0.5.10-0zqyyf2e.mjs +1 -0
  415. package/dist/chunks/utils-0.5.10-36gnsqbk.mjs +1 -0
  416. package/dist/chunks/vim-0.5.10-0zas1t6x.mjs +1 -0
  417. package/dist/chunks/watcher-0.5.10-9etw516s.mjs +1 -0
  418. package/dist/chunks/wiki-0.5.10-rwktf7fm.mjs +132 -0
  419. package/dist/chunks/worktree-0.5.10-afdnv059.mjs +1 -0
  420. package/dist/chunks/worktreeModeEnabled-0.5.10-n0bmqq02.mjs +1 -0
  421. package/dist/chunks/wrapper-0.5.10-0bca9c3g.mjs +7 -0
  422. package/dist/claudin-vscode.vsix +0 -0
  423. package/dist/cli.mjs +2 -2
  424. package/package.json +24 -24
  425. package/dist/chunks/AgentTool-0.5.8-161prcqd.mjs +0 -1
  426. package/dist/chunks/App-0.5.8-s4939y9q.mjs +0 -1
  427. package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +0 -1
  428. package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +0 -1
  429. package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +0 -1
  430. package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +0 -1
  431. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +0 -1
  432. package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +0 -1
  433. package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +0 -3
  434. package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +0 -1
  435. package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +0 -1
  436. package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +0 -1
  437. package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +0 -1
  438. package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +0 -1
  439. package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +0 -1
  440. package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +0 -1
  441. package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +0 -1
  442. package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +0 -1
  443. package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +0 -1
  444. package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +0 -1
  445. package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +0 -1
  446. package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +0 -1
  447. package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +0 -1
  448. package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +0 -9
  449. package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +0 -1
  450. package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +0 -1
  451. package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +0 -1
  452. package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +0 -1
  453. package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +0 -3
  454. package/dist/chunks/agents-0.5.8-qg1s69va.mjs +0 -110
  455. package/dist/chunks/api-0.5.8-pcde65dc.mjs +0 -1
  456. package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +0 -1
  457. package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +0 -1
  458. package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +0 -1
  459. package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +0 -1
  460. package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +0 -48
  461. package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +0 -1
  462. package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +0 -1
  463. package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +0 -4
  464. package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +0 -1
  465. package/dist/chunks/btw-0.5.8-0yftty6m.mjs +0 -1
  466. package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +0 -3
  467. package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +0 -1
  468. package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +0 -21
  469. package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +0 -4
  470. package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +0 -1
  471. package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +0 -1
  472. package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +0 -1
  473. package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +0 -1
  474. package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +0 -1
  475. package/dist/chunks/cli-0.5.8-01yjahnz.mjs +0 -2
  476. package/dist/chunks/cli-0.5.8-07dyymev.mjs +0 -2
  477. package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +0 -2
  478. package/dist/chunks/cli-0.5.8-0bys4xae.mjs +0 -2
  479. package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +0 -2
  480. package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +0 -2
  481. package/dist/chunks/cli-0.5.8-0hybhk72.mjs +0 -2
  482. package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +0 -2
  483. package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +0 -2
  484. package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +0 -2
  485. package/dist/chunks/cli-0.5.8-1heha1zs.mjs +0 -2
  486. package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +0 -2
  487. package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +0 -2
  488. package/dist/chunks/cli-0.5.8-221e7v67.mjs +0 -2
  489. package/dist/chunks/cli-0.5.8-23ep6z70.mjs +0 -2
  490. package/dist/chunks/cli-0.5.8-2bq72da9.mjs +0 -2
  491. package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +0 -2
  492. package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +0 -2
  493. package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +0 -2
  494. package/dist/chunks/cli-0.5.8-396k3ymm.mjs +0 -25
  495. package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +0 -58
  496. package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +0 -2
  497. package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +0 -2
  498. package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +0 -2
  499. package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +0 -2
  500. package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +0 -2
  501. package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +0 -2
  502. package/dist/chunks/cli-0.5.8-402vctdy.mjs +0 -2
  503. package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +0 -2
  504. package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +0 -5286
  505. package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +0 -9
  506. package/dist/chunks/cli-0.5.8-4mn881k7.mjs +0 -2
  507. package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +0 -2
  508. package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +0 -6
  509. package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +0 -8
  510. package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +0 -2
  511. package/dist/chunks/cli-0.5.8-510vqc09.mjs +0 -4
  512. package/dist/chunks/cli-0.5.8-57qan5v8.mjs +0 -2
  513. package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +0 -2
  514. package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +0 -2
  515. package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +0 -2
  516. package/dist/chunks/cli-0.5.8-5h92528m.mjs +0 -4
  517. package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +0 -2
  518. package/dist/chunks/cli-0.5.8-60e57smp.mjs +0 -2
  519. package/dist/chunks/cli-0.5.8-665mfjfq.mjs +0 -5
  520. package/dist/chunks/cli-0.5.8-69frkjjq.mjs +0 -2
  521. package/dist/chunks/cli-0.5.8-69swpyae.mjs +0 -2
  522. package/dist/chunks/cli-0.5.8-6epmns99.mjs +0 -2
  523. package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +0 -3
  524. package/dist/chunks/cli-0.5.8-6t480jt6.mjs +0 -2
  525. package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +0 -2
  526. package/dist/chunks/cli-0.5.8-78y711gq.mjs +0 -7
  527. package/dist/chunks/cli-0.5.8-7fm71y20.mjs +0 -2
  528. package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +0 -3
  529. package/dist/chunks/cli-0.5.8-7teqphwt.mjs +0 -2
  530. package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +0 -2
  531. package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +0 -2
  532. package/dist/chunks/cli-0.5.8-8b40nd32.mjs +0 -3
  533. package/dist/chunks/cli-0.5.8-8c0hade9.mjs +0 -2
  534. package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +0 -2
  535. package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +0 -24
  536. package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +0 -2
  537. package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +0 -4
  538. package/dist/chunks/cli-0.5.8-903jgg2t.mjs +0 -2
  539. package/dist/chunks/cli-0.5.8-959n5v33.mjs +0 -44
  540. package/dist/chunks/cli-0.5.8-96p83b7z.mjs +0 -2
  541. package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +0 -2
  542. package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +0 -2
  543. package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +0 -2
  544. package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +0 -2
  545. package/dist/chunks/cli-0.5.8-a03sqccb.mjs +0 -2
  546. package/dist/chunks/cli-0.5.8-at01jfw3.mjs +0 -2
  547. package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +0 -2
  548. package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +0 -2
  549. package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +0 -2
  550. package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +0 -67
  551. package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +0 -18
  552. package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +0 -2
  553. package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +0 -2
  554. package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +0 -2
  555. package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +0 -12
  556. package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +0 -2
  557. package/dist/chunks/cli-0.5.8-cctz1t07.mjs +0 -2
  558. package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +0 -2
  559. package/dist/chunks/cli-0.5.8-chb0m9py.mjs +0 -17
  560. package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +0 -15
  561. package/dist/chunks/cli-0.5.8-cm551a1y.mjs +0 -2
  562. package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +0 -2
  563. package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +0 -2
  564. package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +0 -2
  565. package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +0 -2
  566. package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +0 -2
  567. package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +0 -39
  568. package/dist/chunks/cli-0.5.8-edf7e65a.mjs +0 -2
  569. package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +0 -133
  570. package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +0 -3
  571. package/dist/chunks/cli-0.5.8-et8r95zv.mjs +0 -15
  572. package/dist/chunks/cli-0.5.8-etf1n11s.mjs +0 -2
  573. package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +0 -3
  574. package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +0 -34
  575. package/dist/chunks/cli-0.5.8-f1znt77k.mjs +0 -2
  576. package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +0 -4
  577. package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +0 -2
  578. package/dist/chunks/cli-0.5.8-fhebd13f.mjs +0 -12
  579. package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +0 -18
  580. package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +0 -4
  581. package/dist/chunks/cli-0.5.8-gf6svxra.mjs +0 -27
  582. package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +0 -2
  583. package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +0 -3
  584. package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +0 -2
  585. package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +0 -21
  586. package/dist/chunks/cli-0.5.8-haddssvq.mjs +0 -17
  587. package/dist/chunks/cli-0.5.8-he3sfaey.mjs +0 -2
  588. package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +0 -2
  589. package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +0 -2
  590. package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +0 -2
  591. package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +0 -2
  592. package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +0 -6
  593. package/dist/chunks/cli-0.5.8-je6yq94p.mjs +0 -2
  594. package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +0 -10
  595. package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +0 -9
  596. package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +0 -2
  597. package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +0 -2
  598. package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +0 -2
  599. package/dist/chunks/cli-0.5.8-m3186fr3.mjs +0 -5
  600. package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +0 -2
  601. package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +0 -4
  602. package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +0 -2
  603. package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +0 -3
  604. package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +0 -4
  605. package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +0 -59
  606. package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +0 -2
  607. package/dist/chunks/cli-0.5.8-p596xr80.mjs +0 -2
  608. package/dist/chunks/cli-0.5.8-p72phgsn.mjs +0 -2
  609. package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +0 -2
  610. package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +0 -2
  611. package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +0 -133
  612. package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +0 -2
  613. package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +0 -2
  614. package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +0 -2
  615. package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +0 -2
  616. package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +0 -193
  617. package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +0 -3
  618. package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +0 -2
  619. package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +0 -2
  620. package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +0 -2
  621. package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +0 -2
  622. package/dist/chunks/cli-0.5.8-r88abafr.mjs +0 -15
  623. package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +0 -16
  624. package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +0 -4
  625. package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +0 -2
  626. package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +0 -12
  627. package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +0 -3
  628. package/dist/chunks/cli-0.5.8-s7px34xg.mjs +0 -2
  629. package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +0 -2
  630. package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +0 -2
  631. package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +0 -2
  632. package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +0 -24
  633. package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +0 -4
  634. package/dist/chunks/cli-0.5.8-v274erpp.mjs +0 -2
  635. package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +0 -2
  636. package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +0 -2
  637. package/dist/chunks/cli-0.5.8-vck50j66.mjs +0 -2
  638. package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +0 -45
  639. package/dist/chunks/cli-0.5.8-w36atn94.mjs +0 -2
  640. package/dist/chunks/cli-0.5.8-w75qbypx.mjs +0 -2
  641. package/dist/chunks/cli-0.5.8-w7g735pf.mjs +0 -2
  642. package/dist/chunks/cli-0.5.8-was67jgw.mjs +0 -2
  643. package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +0 -50
  644. package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +0 -2
  645. package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +0 -3
  646. package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +0 -2
  647. package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +0 -2
  648. package/dist/chunks/cli-0.5.8-wtz636rz.mjs +0 -20
  649. package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +0 -2
  650. package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +0 -2
  651. package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +0 -6
  652. package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +0 -2
  653. package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +0 -2
  654. package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +0 -2
  655. package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +0 -2
  656. package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +0 -2
  657. package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +0 -2
  658. package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +0 -3
  659. package/dist/chunks/cli-0.5.8-z447z8t0.mjs +0 -2
  660. package/dist/chunks/cli-0.5.8-zervw1k3.mjs +0 -5
  661. package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +0 -1
  662. package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +0 -2
  663. package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +0 -2
  664. package/dist/chunks/cli-0.5.8-zy590bkh.mjs +0 -2
  665. package/dist/chunks/client-0.5.8-9axd4w58.mjs +0 -1
  666. package/dist/chunks/color-0.5.8-resv1z9m.mjs +0 -1
  667. package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +0 -3
  668. package/dist/chunks/config-0.5.8-1j4xyj57.mjs +0 -1
  669. package/dist/chunks/config-0.5.8-ettscama.mjs +0 -1
  670. package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +0 -1
  671. package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +0 -1
  672. package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +0 -1
  673. package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +0 -9
  674. package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +0 -1
  675. package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +0 -1
  676. package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +0 -1
  677. package/dist/chunks/debug-0.5.8-c84dbamw.mjs +0 -1
  678. package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +0 -1177
  679. package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +0 -1
  680. package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +0 -1
  681. package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +0 -1
  682. package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +0 -1
  683. package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +0 -1
  684. package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +0 -1
  685. package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +0 -1
  686. package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +0 -10
  687. package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +0 -1
  688. package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +0 -1
  689. package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +0 -1
  690. package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +0 -1
  691. package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +0 -1
  692. package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +0 -1
  693. package/dist/chunks/export-0.5.8-a8fg7991.mjs +0 -2
  694. package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +0 -1
  695. package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +0 -1
  696. package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +0 -1
  697. package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +0 -14
  698. package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +0 -1
  699. package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +0 -1
  700. package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +0 -1
  701. package/dist/chunks/grove-0.5.8-rewcpbks.mjs +0 -1
  702. package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +0 -1
  703. package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +0 -2
  704. package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +0 -6
  705. package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +0 -1
  706. package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +0 -3
  707. package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +0 -1
  708. package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +0 -79
  709. package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +0 -3
  710. package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +0 -1
  711. package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +0 -9
  712. package/dist/chunks/index-0.5.8-26yrjbk0.mjs +0 -1
  713. package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +0 -1
  714. package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +0 -1
  715. package/dist/chunks/index-0.5.8-b4p3af9y.mjs +0 -1
  716. package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +0 -2
  717. package/dist/chunks/index-0.5.8-bk6ejev9.mjs +0 -1
  718. package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +0 -9
  719. package/dist/chunks/index-0.5.8-egkksjaj.mjs +0 -1
  720. package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +0 -1
  721. package/dist/chunks/index-0.5.8-jf20nzsg.mjs +0 -1
  722. package/dist/chunks/index-0.5.8-m6exk6z6.mjs +0 -30
  723. package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +0 -5
  724. package/dist/chunks/index-0.5.8-nt058ay0.mjs +0 -1
  725. package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +0 -10
  726. package/dist/chunks/index-0.5.8-rdk757cq.mjs +0 -1
  727. package/dist/chunks/index-0.5.8-red1reev.mjs +0 -1
  728. package/dist/chunks/index-0.5.8-rehfpmcw.mjs +0 -1
  729. package/dist/chunks/index-0.5.8-s3k17n65.mjs +0 -1
  730. package/dist/chunks/index-0.5.8-xpaaycp7.mjs +0 -1
  731. package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +0 -2
  732. package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +0 -1
  733. package/dist/chunks/init-0.5.8-kmfn7vay.mjs +0 -1
  734. package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +0 -1
  735. package/dist/chunks/ink-0.5.8-y01565nf.mjs +0 -1
  736. package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +0 -870
  737. package/dist/chunks/install-0.5.8-se0j5qte.mjs +0 -1
  738. package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +0 -149
  739. package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +0 -1
  740. package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +0 -1
  741. package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +0 -1
  742. package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +0 -2
  743. package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +0 -2
  744. package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +0 -1
  745. package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +0 -1
  746. package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +0 -1
  747. package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +0 -1
  748. package/dist/chunks/log-0.5.8-78h0x7qg.mjs +0 -1
  749. package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +0 -1
  750. package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +0 -1
  751. package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +0 -4
  752. package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +0 -17
  753. package/dist/chunks/mcp-0.5.8-md6hzter.mjs +0 -1
  754. package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +0 -1
  755. package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +0 -3
  756. package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +0 -2
  757. package/dist/chunks/model-0.5.8-aqzt03nd.mjs +0 -1
  758. package/dist/chunks/model-0.5.8-nmcrv393.mjs +0 -2
  759. package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +0 -1
  760. package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +0 -14
  761. package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +0 -1
  762. package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +0 -1
  763. package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +0 -1
  764. package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +0 -1
  765. package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +0 -1
  766. package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +0 -3
  767. package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +0 -1
  768. package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +0 -1
  769. package/dist/chunks/plugin-0.5.8-meszp93t.mjs +0 -29
  770. package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +0 -1
  771. package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +0 -9
  772. package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +0 -2
  773. package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +0 -57
  774. package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +0 -1
  775. package/dist/chunks/process-0.5.8-1yf78q4y.mjs +0 -1
  776. package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +0 -1
  777. package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +0 -9
  778. package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +0 -1
  779. package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +0 -1
  780. package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +0 -1
  781. package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +0 -13
  782. package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +0 -2
  783. package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +0 -1
  784. package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +0 -6
  785. package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +0 -1
  786. package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +0 -34
  787. package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +0 -1
  788. package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +0 -5
  789. package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +0 -2
  790. package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +0 -1
  791. package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +0 -1
  792. package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +0 -1
  793. package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +0 -1
  794. package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +0 -1
  795. package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +0 -1
  796. package/dist/chunks/resume-0.5.8-373epwyd.mjs +0 -2
  797. package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +0 -1
  798. package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +0 -1
  799. package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +0 -1
  800. package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +0 -1
  801. package/dist/chunks/session-0.5.8-rxft524k.mjs +0 -2
  802. package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +0 -1
  803. package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +0 -1
  804. package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +0 -1
  805. package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +0 -1
  806. package/dist/chunks/setup-0.5.8-769vnffz.mjs +0 -5
  807. package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +0 -1
  808. package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +0 -1
  809. package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +0 -1
  810. package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +0 -1
  811. package/dist/chunks/state-0.5.8-cppqmrbf.mjs +0 -1
  812. package/dist/chunks/stats-0.5.8-zcfm59db.mjs +0 -6
  813. package/dist/chunks/status-0.5.8-5v4y485z.mjs +0 -1
  814. package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +0 -1
  815. package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +0 -1
  816. package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +0 -1
  817. package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +0 -1
  818. package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +0 -1
  819. package/dist/chunks/teleport-0.5.8-650m4rks.mjs +0 -1
  820. package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +0 -1
  821. package/dist/chunks/theme-0.5.8-7a06760x.mjs +0 -1
  822. package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +0 -1
  823. package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +0 -1
  824. package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +0 -1
  825. package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +0 -1
  826. package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +0 -1
  827. package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +0 -1
  828. package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +0 -69
  829. package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +0 -4
  830. package/dist/chunks/update-0.5.8-a285y5j4.mjs +0 -86
  831. package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +0 -1
  832. package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +0 -14
  833. package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +0 -1
  834. package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +0 -1
  835. package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +0 -1
  836. package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +0 -1
  837. package/dist/chunks/vim-0.5.8-pgsav8je.mjs +0 -1
  838. package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +0 -1
  839. package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +0 -132
  840. package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +0 -1
  841. package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +0 -1
  842. package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +0 -7
  843. /package/dist/chunks/{cli-0.5.8-kegk7gdp.mjs → cli-0.5.10-5kz0qdsz.mjs} +0 -0
  844. /package/dist/chunks/{cli-0.5.8-j77twbsq.mjs → cli-0.5.10-n8pz2na8.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Lna as q}from"./cli-0.5.10-1sd567wn.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
+ export{x as Dc,y as Ec,w as Fc};
@@ -0,0 +1,16 @@
1
+ import{j4 as F2,l4 as d4}from"./cli-0.5.10-2yrgbmd1.mjs";import{n4 as h,o4 as GZ}from"./cli-0.5.10-rzshk2m6.mjs";import{A6 as Y5,D6 as xZ,D9 as E8,Daa as v1,H$ as W0,O_ as S1,Oba as p1,Q$ as b4,Q6 as X5,Raa as Z0,S$ as BZ,S6 as jZ,T$ as q1,Taa as M1,U$ as Y8,Uaa as S8,Uba as C8,X_ as k8,Xba as N,Zaa as I1,_ba as q0,a9 as V1,b9 as Q8,e6 as x4,f6 as i,g6 as z2,h6 as K0,i6 as j4,j6 as I2,kba as u1,kca as D,mba as y1,o9 as k1,oaa as d,p6 as j0,pba as R2,q6 as u5,qba as RZ,s$ as _,sca as c0,u$ as Y2,uaa as C,x$ as e,xaa as L,y$ as y}from"./cli-0.5.10-2fqes7gy.mjs";import{Lda as S0,Nda as X4,Xda as X1}from"./cli-0.5.10-rk7at2tn.mjs";import{Fea as H5,Gea as O4,Hea as z0,Jea as m4,Kea as c4,Mea as U,Nea as _0}from"./cli-0.5.10-jd7ff66n.mjs";import{Oea as x,Qea as Q2}from"./cli-0.5.10-y9qd4psg.mjs";import{Cfa as v2,Gfa as r4,Qfa as z,Sfa as f0,Tfa as x0,ufa as Q5,yfa as zZ}from"./cli-0.5.10-p4wmnjhz.mjs";import{iga as p,kga as A5,pga as h5}from"./cli-0.5.10-8wqagr68.mjs";import{Cga as U4,Fga as u,sga as J5,vga as F,xga as g,zga as w2}from"./cli-0.5.10-jsnrvena.mjs";import{Dja as b0,Eja as i0,Jka as J2,Yja as f,ama as o,dka as Y1,fia as J0,gia as t5,gja as F1,uja as E1,uka as I5,vka as y5,wka as T5,xka as C5,yja as Y4}from"./cli-0.5.10-atkghjt0.mjs";import{Ama as m0,zma as M}from"./cli-0.5.10-c9z4tdw2.mjs";import{Wma as b,mna as r0}from"./cli-0.5.10-rwqvbtg3.mjs";import{Ina as t8,Kna as g1,Lna as R,Mna as r}from"./cli-0.5.10-1sd567wn.mjs";function w5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:V,context:W}=$.shift();try{let G=await Z.apply(W,Y);X(G)}catch(G){V(G)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,V)=>{$.push({args:Y,resolve:X,reject:V,context:this}),Q()})}}var F5=()=>{};function D5(Z,$){return Z.find((J)=>J.includes($))??null}async function K5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=w2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await F2(),...J&&{requestHandler:new(await import("./index-0.5.10-5fsxcv9a.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.5.10-wzxzkrhk.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function W$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=w2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await F2(),...J&&{requestHandler:new(await import("./index-0.5.10-5fsxcv9a.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.5.10-wzxzkrhk.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function n4(Z){return Z.startsWith("anthropic.")}function i4(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function l4(Z){let $=i4(Z);for(let J of t4)if($.startsWith(`${J}.anthropic.`))return J;return}function G$(Z,$){let J=l4(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(n4(Z))return`${$}.${Z}`;return Z}var L5,z$,t4;var N5=R(()=>{m0();n();u();c0();d4();L5=M(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw D(Y),Y}});z$=M(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let V=X.modelArn.lastIndexOf("/");return V>=0?X.modelArn.substring(V+1):X.modelArn}catch($){return D($),null}});t4=["us","eu","apac","global"]});var L2,D2,K2,N2,U2,O2,b2,P2,_2,d0,n0,t0,E2,V0,j$,U5;var k2=R(()=>{L2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},D2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},K2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},N2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},U2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},O2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},b2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},P2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},d0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},n0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},t0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},E2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},V0={haiku35:K2,haiku45:N2,sonnet35:D2,sonnet37:L2,sonnet40:U2,sonnet45:O2,sonnet46:E2,opus40:b2,opus41:P2,opus45:_2,opus46:d0,opus47:n0,opus48:t0},j$=Object.values(V0).map((Z)=>Z.firstParty),U5=Object.fromEntries(Object.entries(V0).map(([Z,$])=>[$.firstParty,Z]))});function q(){let Z=N();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function H$(){return q()==="firstParty"}function w$(Z){let $=N();if($?.transport!=="github_copilot")return!1;return(Z?.trim()||$.model?.trim()||"").toLowerCase().includes("claude-")}function F$(){return q()}function L$(){let Z=N();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var t=R(()=>{q0()});function l0(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of b5)J[Q]=V0[Q][$];return J}async function s4(){let Z=l0("bedrock"),$;try{$=await L5()}catch(Q){return D(Q),Z}if(!$?.length)return Z;let J={};for(let Q of b5){let Y=V0[Q].firstParty;J[Q]=D5($,Y)||Z[Q]}return J}function O5(Z){let $=e().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=U5[Q];if(X&&Y)J[X]=Y}return J}function s0(Z){let $;try{$=e().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function a4(){if(b0()!==null)return;if(q()!=="bedrock"){i0(l0(q()));return}P5()}function j(){let Z=b0();if(Z===null)return a4(),O5(l0(q()));return O5(Z)}async function E$(){if(b0()!==null)return;if(q()!=="bedrock"){i0(l0(q()));return}await P5()}var b5,P5;var a0=R(()=>{o();c0();F5();W0();N5();k2();t();b5=Object.keys(V0);P5=w5(async()=>{if(b0()!==null)return;try{let Z=await s4();i0(Z)}catch(Z){D(Z)}})});function I$(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(O())return!1;let $=P0(),J=$0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),Y=Q.oauthAccount?.organizationRole,X=Q.oauthAccount?.workspaceRole;if(!Y||!X)return!1;return["admin","billing"].includes(Y)||["workspace_admin","workspace_billing"].includes(X)}function y$(){if(_5!==null)return _5;if(!O())return!1;let Z=S();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var _5=null;var E5=R(()=>{n();Z0();u()});function h$(Z){return Z}function f$(){return!1}function k5(){return null}function S5(){return!1}var v5=R(()=>{E5()});async function n$(){let $=L().oauthAccount?.accountUuid,J=$0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await b.get(Q,{headers:{"x-api-key":J,"anthropic-beta":z0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){D(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await b.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){D(J)}}var S2=R(()=>{r0();_0();n();Z0();c0()});import{mkdirSync as o4,writeFileSync as e4}from"fs";function J8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{o4(o0,{recursive:!0,mode:448}),e4(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function M5(Z,$){try{let Q=v2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!A5(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function f5({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let V=process.env[Z];if(!V){let G=M5($,J);return Y(G),G}let W=parseInt(V,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${V}`,{level:"error"}),Y(null),null;try{let G=v2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,H=G.readFileSync(B,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),Y(H),J8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=M5($,J);return Y(B),B}}function e0(){return f5({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:Z8,label:"OAuth token",getCached:I5,setCached:y5})}function M2(){return f5({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:$8,label:"API key",getCached:T5,setCached:C5})}var o0="/home/claude/.claude/remote",Z8,$8,e$;var g5=R(()=>{o();x0();u();h5();r4();Z8=`${o0}/.oauth_token`,$8=`${o0}/.api_key`,e$=`${o0}/.session_ingress_token`});async function p5(){if(process.platform==="darwin"){let Z=i();if((await j0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function Z2(Z){return Z.slice(-20)}var m5=R(()=>{u5();I2()});function XJ(Z){return Z?.name==="CredentialsProviderError"}function c5(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function y2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function d5(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var n5=R(()=>{x0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=J0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(T.instance)T.instance.changed.clear(),T.instance=null}}var i5=R(()=>{t5()});var $2="claude-code-20250219",l5="interleaved-thinking-2025-05-14",E0="context-1m-2025-08-07",s5="context-management-2025-06-27",a5="structured-outputs-2025-12-15",T2="web-search-2025-03-05",r5="advanced-tool-use-2025-11-20",o5="tool-search-tool-2025-10-19",zJ="effort-2025-11-24",GJ="task-budgets-2026-03-13",e5="prompt-caching-scope-2026-01-05",xJ="extended-cache-ttl-2025-04-11",jJ="fast-mode-2026-02-01",Z1="redact-thinking-2026-02-12",$1="thinking-token-count-2026-05-13",J1="token-efficient-tools-2026-03-28",BJ="afk-mode-2026-01-31",RJ="advisor-tool-2026-03-01",C2,HJ;var A2=R(()=>{C2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),HJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(q()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function W1(){if(!A())return!1;return V8()===null}function X8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function V8(){if(q()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!V1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&J2()&&!Y1()){if(!_("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(k.status==="disabled"){if(k.reason==="network_error"||k.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=X8(k.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function yJ(){return"opus"+(M0()?"[1m]":"")}function TJ(Z){if(!A())return!1;if(!W1())return!1;if(!z1(Z))return!1;let $=e();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function z1(Z){if(!A())return!1;let $=Z??v0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function q8(){if(B0.status==="cooldown"&&Date.now()>=B0.resetAt){if(A()&&!h2)z("Fast mode cooldown expired, re-enabling fast mode"),h2=!0,x1.emit();B0={status:"active"}}return B0}function hJ(Z,$){if(!A())return;B0={status:"cooldown",resetAt:Z,reason:$},h2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),G1.emit(Z,$)}function fJ(){B0={status:"active"}}function gJ(){if(k.status==="disabled")return;k={status:"disabled",reason:"preference"},Y2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),f2.emit(!1)}function W8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function z8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function pJ(Z){let $=W8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!z8(Z))Y2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));j1.emit($)}function G8(){return q8().status==="cooldown"}function mJ(Z,$){let J=A()&&W1()&&!!$&&z1(Z);if(J&&G8())return"cooldown";if(J)return"on";return"off"}async function x8(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":z0}:{"x-api-key":Z.apiKey};return(await b.get($,{headers:J})).data}function dJ(){if(!A())return;if(k.status!=="pending")return;k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function nJ(){if(q1())return;if(!A())return;if(k0)return z("Fast mode prefetch in progress, returning in-flight promise"),k0;let Z=$0();if(!(w()?.accessToken&&Q0())&&!Z){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-Q1<j8){z("Skipping fast mode prefetch, fetched recently");return}Q1=J;let Q=async()=>{let X=w(),V=X?.accessToken&&Q0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!V)throw Error("No auth available");return x8(V)};async function Y(){try{let X;try{X=await Q()}catch(W){if(b.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await g2(B),X=await Q();else throw W}else throw W}let V=k.status!=="pending"?k.status==="enabled":L().penguinModeOrgEnabled;if(k=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},V!==X.enabled){if(!X.enabled)Y2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:X.enabled})),f2.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${k.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{k0=null}}return k0=Y(),k0}var IJ="Opus 4.7",B0,h2=!1,G1,x1,CJ,AJ,j1,uJ,k,f2,cJ,j8=30000,Q1=0,k0=null;var B1=R(()=>{r0();_0();X1();o();Q2();n();Q8();Z0();x0();u();R0();t();Y8();W0();t5();B0={status:"active"},G1=J0(),x1=J0(),CJ=G1.subscribe,AJ=x1.subscribe;j1=J0(),uJ=j1.subscribe;k={status:"pending"},f2=J0(),cJ=f2.subscribe});function L8(Z){for(let $ of F8)if($.pattern.test(Z))return $.cost;return}function u2(Z){if(A()&&Z)return B8;return H0}function D8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function K8(Z,$){let J=P(Z);if(J===K(d0.firstParty)||J===K(n0.firstParty)||J===K(t0.firstParty)){let Y=$.speed==="fast";return u2(Y)}let Q=H1[J];if(!Q){let Y=L8(Z);if(Y)return Y;return N8(Z,J),H1[P(v0())]??w8}return Q}function N8(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),F1()}function U8(Z,$){let J=K8(Z,$);return D8(J,$)}function oJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return U8(Z,J)}function w1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function L1(Z){return`${w1(Z.inputTokens)}/${w1(Z.outputTokens)} per Mtok`}var I0,R1,H0,B8,R8,H8,w8,F8,H1;var D1=R(()=>{Q2();o();B1();k2();R0();I0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},R1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},H0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},B8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},R8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},H8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},w8=H0,F8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];H1={[K(K2.firstParty)]:R8,[K(N2.firstParty)]:H8,[K(D2.firstParty)]:I0,[K(L2.firstParty)]:I0,[K(U2.firstParty)]:I0,[K(O2.firstParty)]:I0,[K(E2.firstParty)]:I0,[K(b2.firstParty)]:R1,[K(P2.firstParty)]:R1,[K(_2.firstParty)]:H0,[K(d0.firstParty)]:H0,[K(n0.firstParty)]:H0,[K(t0.firstParty)]:H0}});function m(Z){return O8.includes(Z)}function w0(Z){return b8.includes(Z)}var O8,b8;var p2=R(()=>{O8=["sonnet","opus","haiku","best","sonnet[1m]","opus[1m]","opusplan"];b8=["sonnet","opus","haiku"]});function P8(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function K1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function _8(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(K1(J,$))return!0;if(!$.startsWith("claude-")&&K1(J,`claude-${$}`))return!0;return!1}function N1(Z,$){for(let J of $){if(w0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function U1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=s0(Z).trim().toLowerCase(),X=J.map((V)=>V.trim().toLowerCase());if(X.includes(Y)){if(!w0(Y)||!N1(Y,X))return!0}for(let V of X)if(w0(V)&&!N1(V,X)&&P8(Y,V))return!0;if(m(Y)){let V=I(Y).toLowerCase();if(X.includes(V))return!0}for(let V of X)if(!w0(V)&&m(V)){if(I(V).toLowerCase()===Y)return!0}for(let V of X)if(!w0(V)&&!m(V)){if(_8(Y,V))return!0}return!1}var O1=R(()=>{W0();p2();R0();a0()});function V3(){return Object.values(b1)}var b1,m2;var P1=R(()=>{b1={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},m2=Object.fromEntries(Object.values(b1).map((Z)=>[Z.id,Z.name]))});function X2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=N();if(!Z?.model)return;return M1(Z.model)}function P3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"codexspark";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return T1()}function _3(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function c2(){let Z,$=E1();if($!==void 0)Z=$;else{let J=y()||{},Q=X2(J.model),Y=L0();if(I1()!==void 0)Z=X2(v1().activeModelForProject)||void 0;else Z=Y||Q||void 0}if(Z&&!U1(Z))return;return Z}function E3(){let Z=c2();if(Z!==void 0&&Z!==null)return I(Z);return C1()}function v8(){return F0()}function F0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.5-pro";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.7";if(q()!=="firstParty")return j().opus46;return j().opus48}function y0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"mistral-medium-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5";if(q()!=="firstParty")return j().sonnet45;return j().sonnet46}function T1(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function k3(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(c2()==="opusplan"&&$==="plan"&&!Q)return F0();if(c2()==="haiku"&&$==="plan")return y0();return J}function v0(){let Z=L0();if(q()==="github"){let $=y()||{};return X2($.model)||Z||"github:copilot"}if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(V2())return F0()+(M0()?"[1m]":"");if(q2())return F0()+(M0()?"[1m]":"");return y0()}function C1(){return I(v0())}function K(Z){if(Z=Z.toLowerCase(),Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function P(Z){return K(s0(Z))}function M8(Z=!1){if(V2()||q2()){if(M0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?_1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?_1(!0):""}`}return"Sonnet 4.6 · Best for everyday tasks"}function S3(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 4.6";return h1(I(Z))}function _1(Z){if(q()!=="firstParty")return"";let $=L1(u2(Z));return` ·${Z?` (${k1})`:""} ${$}`}function M0(){if(D0()||t2()||q()!=="firstParty")return!1;if(O()&&S()===null)return!1;return!0}function v3(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return S1(Z);return h1(Z)}function A1(Z){if(q()==="openai"||q()==="gemini"||q()==="codex"||q()==="github"){if(m2[Z])return m2[Z];return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function h1(Z){let $=A1(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function M3(Z){let $=A1(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=X2(Z);if(!$)return y0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y))switch(Y){case"opusplan":return y0()+(Q?"[1m]":"");case"sonnet":return y0()+(Q?"[1m]":"");case"haiku":return T1()+(Q?"[1m]":"");case"opus":return F0()+(Q?"[1m]":"");case"best":return v8();default:}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(q()==="firstParty"&&y8(Y)&&T8())return F0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function I3(Z,$){if(l(Z)||!l($))return Z;if(d2(I(Z)))return Z+"[1m]";return Z}function y8(Z){return I8.includes(Z)}function T8(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function y3(Z){if(Z===null){if(O())return`Default (${M8()})`;return`Default (${C1()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function T3(Z){if(q()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=P(Z);if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function C3(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function A3(Z){let $=P(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")}var I8;var R0=R(()=>{o();q0();Z0();y1();n();n2();u();S8();a0();D1();W0();t();E8();O1();p2();k8();P1();I8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function i2(Z){return}async function f3(){}var f1=()=>{};var t1={};g1(t1,{prefetchOpenAICompatibleModels:()=>n8,getDiscoveredContextWindow:()=>A8,discoverOpenAICompatibleModelOptions:()=>n1});function A8(Z){return c1.get(Z)}function h8(){return(N()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function d1(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function f8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function g8(Z){let $=N()?.apiKey?.trim();if(!$)return{};if(f8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(d1(Z))J["api-key"]=$;return J}function u8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&d1(Z)?(X)=>{try{let V=new URL(X);return V.searchParams.set("api-version",Q),V.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function p8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function m8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function c8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await b.get(Q,{headers:$,timeout:m1}),X=[];for(let V of Y.data?.data??[]){let W=V.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=V.name?.trim()||W,B=V.context_length??null;if(B&&B>0)c1.set(W,B);let H=B?` · ${m8(B)}`:"";X.push({value:W,label:G,description:`${W}${H}`})}if(X.length>0)return X.sort((V,W)=>{let G=String(V.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",H=G.localeCompare(B);return H!==0?H:String(V.value).localeCompare(String(W.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function d8(Z,$){try{let J=await b.get(Z,{headers:$,timeout:m1}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function n1(){if(q()!=="openai")return[];let Z=h8(),$=g8(Z),J=await c8(u8(Z),$);if(J.length>0)return J;let Q=p8(Z);if(Q)return d8(Q,$);return[]}function n8(){if(T0)return T0;return T0=(async()=>{if(!p1()?.startsWith("openai:"))return;try{let $=await n1();if($.length>0)u1($)}catch{}finally{T0=null}})(),T0}var m1=5000,c1,T0=null;var i1=R(()=>{r0();q0();C8();x0();t();y1();c1=new Map});function s1(Z,$,J){let Q=N()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=l1($,J);if(Y!==void 0)return Y;return l1(Z,J)}function l1(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function a1(Z){let $=s1(i8,s8,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(i1(),t8(t1));return J(Z)}catch{return}}function r1(Z){return s1(l8,a8,Z)}var i8,l8,s8,a8;var o1=R(()=>{q0();i8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},l8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},s8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),a8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function e1(){let Z=N()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function D0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function l(Z){if(D0())return!1;return/\[1m\]/i.test(Z)}function d2(Z){if(D0())return!1;let $=P(Z);return $.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")}function YQ(Z,$){if(l(Z))return 1e6;if(e1()){let Q=a1(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),r8}let J=i2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>l2&&D0())return l2;return J.max_input_tokens}if($?.includes(E0)&&d2(Z))return 1e6;if(ZZ(Z))return 1e6;return l2}function ZZ(Z){if(D0())return!1;if(l(Z))return!1;if(!P(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function XQ(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function VQ(Z){let $,J;if(e1()){let X=r1(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=P(Z);if(Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=o8,J=e8;let Y=i2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var l2=200000,r8,$Q=20000,o8=32000,e8=64000,JQ=8000,QQ=64000;var n2=R(()=>{A2();q0();Z0();u();R0();f1();o1();r8=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var $Z,Z4;var $4=R(()=>{m0();t();$Z=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],Z4=M((Z,$)=>{if(q()==="firstParty")return;let J=Z.toLowerCase();for(let Q of $Z){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((V)=>V.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function JZ(Z){let $=[],J=[];for(let Q of Z)if(V4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function bQ(Z){if(!Z||Z.length===0)return;if(O()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=JZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${V4.join(", ")}`);return $.length>0?$:void 0}function J4(Z){let $=Z4(Z,"interleaved_thinking");if($!==void 0)return $;let J=P(Z),Q=q();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-4")}function QZ(Z){let $=P(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function YZ(Z){let $=P(Z),J=q();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function XZ(Z){let $=P(Z),J=q();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function PQ(Z){let $=P(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function _Q(){let Z=q();if(Z==="vertex"||Z==="bedrock")return o5;return r5}function Q4(){return(q()==="firstParty"||q()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function EQ(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return q()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function kQ(Z,$){let J=[...q4(Z)];if($?.isAgenticQuery){if(!J.includes($2))J.push($2)}let Q=Y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function W4(){s2.cache?.clear?.(),q4.cache?.clear?.(),VZ.cache?.clear?.()}var V4,s2,q4,VZ;var z4=R(()=>{m0();X1();o();A2();_0();n();n2();u();R0();$4();t();W0();V4=[E0];s2=M((Z)=>{let $=[],J=P(Z).includes("haiku"),Q=q(),Y=Q4();if(!J)$.push($2);if(O())$.push(z0);if(l(Z))$.push(E0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&J4(Z))$.push(l5);if(Y&&J4(Z)&&!f()&&e().showThinkingSummaries!==!0)$.push(Z1),$.push($1);let X=YZ(Z);if(Q4()&&X)$.push(s5);let V=X4("tengu_tool_pear"),W=!V&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&XZ(Z)&&V)$.push(a5);if(Y&&W)$.push(J1);if(Q==="vertex"&&QZ(Z))$.push(T2);if(Q==="foundry")$.push(T2);if(Y)$.push(e5);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),q4=M((Z)=>{let $=s2(Z);if(q()==="bedrock")return $.filter((J)=>!C2.has(J));return $}),VZ=M((Z)=>{return s2(Z).filter((J)=>C2.has(J))})});import{execFile as qZ}from"child_process";function G4(Z){return new Promise(($)=>{qZ("security",["find-generic-password","-a",z2(),"-w","-s",Z],{encoding:"utf-8",timeout:WZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function yQ(){if(process.platform!=="darwin"||W2||g())return;let Z=G4(i(x4)),$=G4(i());W2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)j4(J.stdout);if(!Q.timedOut)a2={stdout:Q.stdout}})}async function TQ(){if(W2)await W2}function B4(){return a2}function r2(){a2=null}var WZ=1e4,a2=null,W2=null;var R4=R(()=>{u();I2()});function o2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,V,Q);function V(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",V,{once:!0}),J?.unref)X.unref()})}var H4=()=>{};function hQ(){return w4}function F4(){w4.clear()}var w4;var L4=R(()=>{w4=new Map});var oZ={};g1(oZ,{validateForceLoginOrg:()=>rZ,saveOAuthTokensIfNeeded:()=>C4,saveApiKey:()=>B5,removeApiKey:()=>fZ,refreshGcpCredentialsIfNeeded:()=>j5,refreshGcpAuth:()=>y4,refreshAwsAuth:()=>M4,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>TZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>CZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>OZ,isUsing3PServices:()=>B2,isTeamSubscriber:()=>dZ,isTeamPremiumSubscriber:()=>q2,isProSubscriber:()=>t2,isOverageProvisioningAllowed:()=>mZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>g4,isMaxSubscriber:()=>V2,isGcpAuthRefreshFromProjectSettings:()=>x5,isEnterpriseSubscriber:()=>nZ,isCustomApiKeyApproved:()=>hZ,isConsumerSubscriber:()=>sZ,isClaudeAISubscriber:()=>O,isAwsCredentialExportFromProjectSettings:()=>z5,isAwsAuthRefreshFromProjectSettings:()=>q5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>pZ,hasProfileScope:()=>Q0,hasOpusAccess:()=>cZ,hasAnthropicApiKeyAuth:()=>DZ,handleOAuth401Error:()=>g2,getSubscriptionType:()=>S,getSubscriptionName:()=>h4,getRateLimitTier:()=>A4,getOtelHeadersFromHelper:()=>iZ,getOauthAccountInfo:()=>j2,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>h0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>P0,getApiKeyHelperElapsedMs:()=>KZ,getApiKeyFromConfigOrMacOSKeychain:()=>H2,getApiKeyFromApiKeyHelperCached:()=>Z5,getApiKeyFromApiKeyHelper:()=>v4,getAnthropicApiKeyWithSource:()=>g0,getAnthropicApiKey:()=>$0,getAccountInformation:()=>aZ,clearOAuthTokenCache:()=>R5,clearGcpCredentialsCache:()=>yZ,clearAwsCredentialsCache:()=>kZ,clearApiKeyHelperCache:()=>UZ,checkGcpCredentialsValid:()=>I4,checkAndRefreshOAuthTokenIfNeeded:()=>u0,calculateApiKeyHelperTTL:()=>S4});import{exec as E4}from"child_process";import{mkdir as HZ,stat as wZ}from"fs/promises";import{join as FZ}from"path";function x2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(g())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=B2(),J=(y()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=g0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!x2()||X&&!x2())}function P0(){if(g()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!x2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(e0()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!x2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(U0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function $0(){let{key:Z}=g0();return Z}function DZ(){try{let{key:Z,source:$}=g0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function g0(Z={}){let $=(()=>{let V=N();if(V?.transport!=="anthropic")return;let W=V.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:Z5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=U4()?void 0:$;if(J2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let V=M2();if(V)return{key:V,source:"ANTHROPIC_API_KEY"};if(!B2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!B2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&L().customApiKeyResponses?.approved?.includes(Z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=M2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:Z5(),source:"apiKeyHelper"}}let X=H2();if(X)return X;return{key:null,source:"none"}}function s(){if(g())return _("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function k4(){let Z=s();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function V5(){return(y()||{}).awsAuthRefresh}function q5(){let Z=V5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function W5(){return(y()||{}).awsCredentialExport}function z5(){let Z=W5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function S4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return LZ}function KZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function v4(Z){if(!s())return null;let $=S4();if(v){if(Date.now()-v.timestamp<$)return v.value;if(!c)c={promise:D4(Z,!1,N0),startedAt:null};return v.value}if(c)return c.promise;return c={promise:D4(Z,!0,N0),startedAt:Date.now()},c.promise}async function D4(Z,$,J){try{let Q=await NZ(Z);if(J!==N0)return Q;if(Q!==null)v={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==N0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&v&&v.value!==" ")return v={...v,timestamp:Date.now()},v.value;return v={value:" ",timestamp:Date.now()}," "}finally{if(J===N0)c=null}}async function NZ(Z){let $=s();if(!$)return null;if(k4()){if(!d()&&!Z){let X=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("apiKeyHelper invoked before trust check",X),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await j0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function Z5(){return v?.value??null}function UZ(){N0++,v=null,c=null}function OZ(Z){if(k4()&&!d())return;v4(Z)}async function PZ(){let Z=V5();if(!Z)return!1;if(q5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await y2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return M4(Z)}}function M4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=E4(Z,{timeout:_Z});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=X==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function EZ(){let Z=W5();if(!Z)return null;if(z5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await y2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await j0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=Q5($.stdout.trim());if(!c5(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function kZ(){X0.cache.clear()}function G5(){return(y()||{}).gcpAuthRefresh}function x5(){let Z=G5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function I4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=o2(SZ).then(()=>{throw new u4("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function MZ(){let Z=G5();if(!Z)return!1;if(x5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await I4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return y4(Z)}function y4(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=E4(Z,{timeout:IZ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=X==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function yZ(){j5.cache.clear()}function TZ(){if(!G5())return;if(x5()){if(!d()&&!f())return}j5()}function CZ(){let Z=V5(),$=W5();if(!Z&&!$)return;if(q5()||z5()){if(!d()&&!f())return}X0(),j()}function AZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function B5(Z){if(!AZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await T4();let $=!1;if(process.platform==="darwin")try{let Q=i(),Y=z2(),X=Buffer.from(Z,"utf-8").toString("hex"),V=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
+ `;await j0("security",["-i"],{input:V,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){D(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=Z2(Z);C((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),H2.cache.clear?.(),r2()}function hZ(Z){let $=L(),J=Z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function fZ(){await T4(),C((Z)=>({...Z,primaryApiKey:void 0})),H2.cache.clear?.(),r2()}async function T4(){try{await p5()}catch(Z){D(Z)}}function C4(Z){if(!U0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=R2(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),W4(),F4(),X}catch(Q){return D(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function R5(){w.cache?.clear?.(),K0()}async function gZ(){try{let{mtimeMs:Z}=await wZ(FZ(J5(),".credentials.json"));if(Z!==K4)K4=Z,R5()}catch{w.cache?.clear?.()}}function g2(Z){let $=e2.get(Z);if($)return $;let J=uZ(Z).finally(()=>{e2.delete(Z)});return e2.set(Z,J),J}async function uZ(Z){R5();let $=await h0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return u0(0,!0)}async function h0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||e0())return w();try{let J=(await R2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return D(Z),null}}function u0(Z=0,$=!1){if(Z===0&&!$){if(C0)return C0;return C0=$5(Z,$).finally(()=>{C0=null}),C0}return $5(Z,$)}async function $5(Z,$){await gZ();let Q=w();if(!$){if(!Q?.refreshToken||!A0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!U0(Q.scopes))return!1;w.cache?.clear?.(),K0();let Y=await h0();if(!Y?.refreshToken||!A0(Y.expiresAt))return!1;let X=J5();await HZ(X,{recursive:!0});let V;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),V=await b4(X),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await o2(1000+Math.random()*1000),$5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return D(W),x("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),K0();let W=await h0();if(!W?.refreshToken||!A0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await P4(W.refreshToken,{scopes:U0(W.scopes)?void 0:W.scopes});return C4(G),w.cache?.clear?.(),K0(),!0}catch(W){D(W),w.cache?.clear?.(),K0();let G=await h0();if(G&&!A0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await V(),x("tengu_oauth_token_refresh_lock_released",{})}}function O(){if(!O0())return!1;return U0(w()?.scopes)}function Q0(){return w()?.scopes?.includes(O4)??!1}function pZ(){{let Z=N()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(O())return!1;return!0}function j2(){return O0()?L().oauthAccount:void 0}function mZ(){let $=j2()?.billingType;if(!O()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function cZ(){let Z=S();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function S(){if(S5())return k5();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function V2(){return S()==="max"}function dZ(){return S()==="team"}function q2(){return S()==="team"&&A4()==="default_claude_max_5x"}function nZ(){return S()==="enterprise"}function t2(){return S()==="pro"}function A4(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function h4(){switch(S()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function B2(){let Z=N()?.transport;if(!Z)return!1;return Z!=="anthropic"}function f4(){return(y()||{}).otelHeadersHelper}function g4(){let Z=f4();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function iZ(){let Z=f4();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||tZ.toString());if(G2&&Date.now()-N4<$)return G2;if(g4()){if(!d())return{}}try{let J=Y5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=Q5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return G2=Q,N4=Date.now(),G2}catch(J){throw D(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function lZ(Z){return Z==="max"||Z==="pro"}function sZ(){let Z=S();return O()&&Z!==null&&lZ(Z)}function aZ(){if(q()!=="firstParty")return;let{source:$}=P0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(O())J.subscription=h4();else J.tokenSource=$;let{key:Q,source:Y}=g0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let V=j2()?.organizationName;if(V)J.organization=V}let X=j2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function rZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=_("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await u0();let $=w();if(!$)return{valid:!0};let{source:J}=P0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
+ This machine requires organization ${Z} but the profile could not be fetched.
4
+ This may be a network error, or the token may lack the user:profile scope required for
5
+ verification (tokens from 'claude setup-token' do not include this scope).
6
+ Try again, or obtain a full-scope token via 'claude auth login'.`};let X=Y.organization.uuid;if(X===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
+ different organization than required by this machine's managed settings.
8
+
9
+ Required organization: ${Z}
10
+ Token organization: ${X}
11
+
12
+ Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
13
+ but this machine requires organization ${Z}.
14
+
15
+ Please log in with the correct organization: claude auth login`}}var LZ=300000,v=null,c=null,N0=0,bZ=3600000,_Z=180000,X0,SZ=5000,vZ=3600000,IZ=180000,j5,H2,w,K4=0,e2,C0=null,G2=null,N4=0,tZ=1740000,u4;var n=R(()=>{GZ();u5();m0();_0();Q2();a0();t();o();q0();v5();_4();S2();g5();m5();n5();i5();z4();Z0();x0();u();h5();xZ();BZ();c0();jZ();RZ();R4();I2();W0();H4();zZ();L4();X0=X5(async()=>{let Z=await PZ(),$=await EZ();if(Z||$)await d5();return $},bZ);j5=X5(async()=>{return await MZ()},vZ);H2=M(()=>{if(g())return null;if(process.platform==="darwin"){let $=B4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=i();try{let Q=Y5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){D(Q)}}}let Z=L();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=M(()=>{if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=e0();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=R2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return D($),null}});e2=new Map;u4=class u4 extends Error{}});function U0(Z){return Boolean(Z?.includes(H5))}function eZ(Z){return Z?.split(" ").filter(Boolean)??[]}function E7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:V,loginHint:W,loginMethod:G}){let B=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(B);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let Y0=X?[H5]:c4;if(H.searchParams.append("scope",Y0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),V)H.searchParams.append("orgUUID",V);if(W)H.searchParams.append("login_hint",W);if(G)H.searchParams.append("login_method",G);return H.toString()}async function k7(Z,$,J,Q,Y=!1,X){let V={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)V.expires_in=X;let W=await b.post(U().TOKEN_URL,V,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return x("tengu_oauth_token_exchange_success",{}),W.data}async function P4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:m4).join(" ")};try{let Q=await b.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:V=Z,expires_in:W}=Y,G=Date.now()+W*1000,B=eZ(Y.scope);x("tengu_oauth_token_refresh_success",{});let H=L(),Y0=w(),E=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&Y0?.subscriptionType!=null&&Y0?.rateLimitTier!=null?null:await Z$(X);if(E&&H.oauthAccount){let a={};if(E.displayName!==void 0)a.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)a.billingType=E.billingType;if(E.accountCreatedAt!==void 0)a.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(a).length>0)C((p0)=>({...p0,oauthAccount:p0.oauthAccount?{...p0.oauthAccount,...a}:p0.oauthAccount}))}return{accessToken:X,refreshToken:V,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??Y0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??Y0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=b.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function S7(Z){let $=await b.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!L().oauthAccount)throw Error("OAuth account information not found in config");C((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function v7(Z){try{let $=await b.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await B5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function A0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function Z$(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function M7(){let $=L().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!Q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function I7(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!L().oauthAccount)p4({accountUuid:Z,emailAddress:$,organizationUuid:J})}await u0();let Y=L();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!O()||!Q0())return!1;let X=w();if(X?.accessToken){let V=await G0(X.accessToken);if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return p4({accountUuid:V.account.uuid,emailAddress:V.account.email,organizationUuid:V.organization.uuid,displayName:V.account.display_name||void 0,hasExtraUsageEnabled:V.organization.has_extra_usage_enabled??!1,billingType:V.organization.billing_type??void 0,accountCreatedAt:V.account.created_at,subscriptionCreatedAt:V.organization.subscription_created_at??void 0}),!0}}return!1}function p4({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:V,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:V,subscriptionCreatedAt:W};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var _4=R(()=>{r0();Q2();_0();n();Z0();x0();S2()});
16
+ export{yQ as OZ,TQ as PZ,R4 as QZ,w5 as RZ,F5 as SZ,W$ as TZ,z$ as UZ,n4 as VZ,l4 as WZ,G$ as XZ,N5 as YZ,d0 as ZZ,n0 as _Z,V0 as $Z,k2 as a0,q as b0,H$ as c0,w$ as d0,F$ as e0,L$ as f0,t as g0,j as h0,E$ as i0,a0 as j0,I$ as k0,y$ as l0,E5 as m0,h$ as n0,f$ as o0,v5 as p0,n$ as q0,G0 as r0,S2 as s0,U0 as t0,eZ as u0,E7 as v0,k7 as w0,P4 as x0,S7 as y0,v7 as z0,A0,Z$ as B0,M7 as C0,I7 as D0,p4 as E0,_4 as F0,e$ as G0,J8 as H0,M5 as I0,g5 as J0,Z2 as K0,m5 as L0,XJ as M0,n5 as N0,T as O0,i5 as P0,E0 as Q0,s5 as R0,a5 as S0,zJ as T0,GJ as U0,e5 as V0,xJ as W0,jJ as X0,Z1 as Y0,BJ as Z0,RJ as _0,HJ as $0,A2 as a1,A as b1,W1 as c1,V8 as d1,IJ as e1,yJ as f1,TJ as g1,z1 as h1,CJ as i1,AJ as j1,q8 as k1,hJ as l1,fJ as m1,gJ as n1,uJ as o1,pJ as p1,G8 as q1,mJ as r1,cJ as s1,dJ as t1,nJ as u1,B1 as v1,I0 as w1,R8 as x1,H8 as y1,u2 as z1,U8 as A1,oJ as B1,L1 as C1,D1,O8 as E1,p2 as F1,U1 as G1,O1 as H1,V3 as I1,P1 as J1,P3 as K1,_3 as L1,c2 as M1,E3 as N1,v8 as O1,F0 as P1,y0 as Q1,T1 as R1,k3 as S1,v0 as T1,C1 as U1,K as V1,P as W1,M8 as X1,S3 as Y1,_1 as Z1,M0 as _1,v3 as $1,A1 as a2,h1 as b2,M3 as c2,I as d2,I3 as e2,T8 as f2,y3 as g2,T3 as h2,C3 as i2,A3 as j2,R0 as k2,f3 as l2,f1 as m2,n1 as n2,n8 as o2,i1 as p2,$Q as q2,JQ as r2,QQ as s2,D0 as t2,l as u2,YQ as v2,ZZ as w2,XQ as x2,VQ as y2,n2 as z2,Z4 as A2,$4 as B2,bQ as C2,XZ as D2,PQ as E2,_Q as F2,Q4 as G2,EQ as H2,q4 as I2,VZ as J2,kQ as K2,W4 as L2,z4 as M2,o2 as N2,H4 as O2,hQ as P2,F4 as Q2,L4 as R2,O0 as S2,P0 as T2,$0 as U2,DZ as V2,g0 as W2,s as X2,q5 as Y2,z5 as Z2,S4 as _2,KZ as $2,v4 as a3,Z5 as b3,UZ as c3,OZ as d3,M4 as e3,X0 as f3,kZ as g3,x5 as h3,I4 as i3,y4 as j3,j5 as k3,yZ as l3,TZ as m3,CZ as n3,H2 as o3,B5 as p3,hZ as q3,fZ as r3,C4 as s3,w as t3,R5 as u3,g2 as v3,h0 as w3,u0 as x3,O as y3,Q0 as z3,pZ as A3,j2 as B3,mZ as C3,cZ as D3,S as E3,V2 as F3,dZ as G3,q2 as H3,nZ as I3,t2 as J3,A4 as K3,h4 as L3,B2 as M3,g4 as N3,iZ as O3,sZ as P3,aZ as Q3,rZ as R3,oZ as S3,n as T3};
@@ -0,0 +1,2 @@
1
+ import{nh as G,ph as m}from"./cli-0.5.10-9dazv3hg.mjs";import{qh as H,rh as C}from"./cli-0.5.10-948wwm63.mjs";import{DZ as X,FZ as Y,KZ as R}from"./cli-0.5.10-2c19pn7b.mjs";import{MZ as k,NZ as y}from"./cli-0.5.10-d1y749qy.mjs";import{E3 as B,T3 as f,l0 as w,m0 as E}from"./cli-0.5.10-xyscak5q.mjs";import{Raa as x,kca as Q,sca as D,uaa as S,xaa as j}from"./cli-0.5.10-2fqes7gy.mjs";import{Mea as V,Nea as b}from"./cli-0.5.10-jd7ff66n.mjs";import{Wma as W,mna as I}from"./cli-0.5.10-rwqvbtg3.mjs";import{Lna as Z}from"./cli-0.5.10-1sd567wn.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));G();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await H())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await k(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();m();C();f();E();y();x();D()});
2
+ export{i as kh,A as lh};
@@ -0,0 +1,2 @@
1
+ import{LS as u,uS as k,vS as f}from"./cli-0.5.10-vyem3gpm.mjs";import{ST as C,cU as d}from"./cli-0.5.10-t11my4jb.mjs";import{IZ as A,KZ as F}from"./cli-0.5.10-2c19pn7b.mjs";import{b0 as q,g0 as i}from"./cli-0.5.10-xyscak5q.mjs";import{X3 as W,_3 as _,f4 as j,g4 as w,l4 as I}from"./cli-0.5.10-2yrgbmd1.mjs";import{kca as V,sca as U}from"./cli-0.5.10-2fqes7gy.mjs";import{Mea as M,Nea as v}from"./cli-0.5.10-jd7ff66n.mjs";import{Qfa as J,Tfa as x,tfa as X,ufa as R,yfa as p}from"./cli-0.5.10-p4wmnjhz.mjs";import{iga as P,pga as T}from"./cli-0.5.10-8wqagr68.mjs";import{Mna as O}from"./cli-0.5.10-1sd567wn.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.5.10-0bca9c3g.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 Ga,$z as Ha,Xz as Ia,Wz as Ja,Lz as Ka};
@@ -0,0 +1 @@
1
+ import{Ada as x,Bda as B,xda as q,zda as A}from"./cli-0.5.10-xrwj7982.mjs";import{yfa as J}from"./cli-0.5.10-p4wmnjhz.mjs";import{pga as G}from"./cli-0.5.10-8wqagr68.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -0,0 +1,2 @@
1
+ import{Xd as j,Yd as E}from"./cli-0.5.10-syb1bnb2.mjs";import{An as W,Dn as v,TH as X,VH as Y,cI as Z,eI as w,iI as _,kI as $,pI as f}from"./cli-0.5.10-8jjacn05.mjs";import{Gaa as S,Raa as A,b_ as Q,kca as V,o_ as T,sca as N}from"./cli-0.5.10-2fqes7gy.mjs";import{Qfa as B,Tfa as R}from"./cli-0.5.10-p4wmnjhz.mjs";import{iga as L,pga as K}from"./cli-0.5.10-8wqagr68.mjs";import{Lna as y}from"./cli-0.5.10-1sd567wn.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:Q(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(S()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){V(q)}})()}var J=null,G=null;var U=y(()=>{E();A();R();K();N();f();w();v();T()});
2
+ export{d as mc,P as nc,t as oc,U as pc};
@@ -0,0 +1,2 @@
1
+ import{Kna as n,Lna as o}from"./cli-0.5.10-1sd567wn.mjs";var p={};n(p,{stripProtoFields:()=>e,logEventAsync:()=>c,logEvent:()=>i,attachAnalyticsSink:()=>r,_resetForTesting:()=>s});function e(t){return t}function r(){}function i(){}async function c(){}function s(){}var u=()=>{};
2
+ export{i as Oea,p as Pea,u as Qea};
@@ -0,0 +1,2 @@
1
+ import{T3 as f,W2 as M,b0 as G,f0 as W,g0 as V,t3 as j}from"./cli-0.5.10-xyscak5q.mjs";import{$7 as Y,T$ as x,U$ as B,X7 as w,Y7 as z}from"./cli-0.5.10-2fqes7gy.mjs";import{Fea as J,Nea as F}from"./cli-0.5.10-jd7ff66n.mjs";import{Lna as Z}from"./cli-0.5.10-1sd567wn.mjs";function g(){q=void 0,w()}function p(){if(q!==void 0)return q;if(G()!=="firstParty")return q=z(!1);if(!W())return q=z(!1);if(x())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=j();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(J)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=M({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var X=Z(()=>{F();f();V();B();Y()});function S(Q){let $=Q.toUpperCase();return K.has($)||k.some((m)=>$.startsWith(m))}var K,k,y,I;var b=Z(()=>{K=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),k=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
2
+ export{g as rQ,p as sQ,X as tQ,S as uQ,y as vQ,I as wQ,b as xQ};
@@ -0,0 +1,2 @@
1
+ import{Lna as n}from"./cli-0.5.10-1sd567wn.mjs";function o(){return{}}function e(){return null}async function i(){}function g(){return!1}function r(){}function u(){}function f(){}async function l(){}var t=()=>{};
2
+ export{o as LR,e as MR,i as NR,g as OR,r as PR,u as QR,f as RR,l as SR,t as TR};
@@ -0,0 +1,2 @@
1
+ import{JX as k,LV as Z,eX as K}from"./cli-0.5.10-9xc8zhxg.mjs";import{nZ as J,oZ as H}from"./cli-0.5.10-gs8dx67v.mjs";import{k6 as v,l6 as Y}from"./cli-0.5.10-2fqes7gy.mjs";import{Hna as V,Lna as X}from"./cli-0.5.10-1sd567wn.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
+ export{N as gg,C as hg};
@@ -0,0 +1,2 @@
1
+ import{xe as V,ze as B}from"./cli-0.5.10-mgkc1jay.mjs";import{AK as w,Aw as Q,Bw as q,Ci as L,DN as F,yK as U}from"./cli-0.5.10-8jjacn05.mjs";import{F8 as K,K8 as k}from"./cli-0.5.10-2fqes7gy.mjs";import{Qfa as I,Tfa as $}from"./cli-0.5.10-p4wmnjhz.mjs";import{iga as G,pga as _}from"./cli-0.5.10-8wqagr68.mjs";import{Lna as Z}from"./cli-0.5.10-1sd567wn.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
2
+ export{h as ve,D as we};
@@ -0,0 +1,2 @@
1
+ import{Ju as T,PL as f,QL as L,_L as r,dA as K,dO as i,fA as I,gA as _,iA as p,mz as P,sz as b,yz as j}from"./cli-0.5.10-8jjacn05.mjs";import{PS as A,QS as n}from"./cli-0.5.10-nx3m5sa2.mjs";import{Oea as E,Qea as C}from"./cli-0.5.10-y9qd4psg.mjs";import{Cfa as M,Gfa as m,Qfa as Z,Tea as F,Tfa as u,Vea as S}from"./cli-0.5.10-p4wmnjhz.mjs";import{Jla as v,ama as c,fia as Y,gia as k}from"./cli-0.5.10-atkghjt0.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
2
+ export{Zq as nb};
@@ -0,0 +1,2 @@
1
+ import{gV as x,hV as d}from"./cli-0.5.10-dzr8kmx4.mjs";import{tX as y,uX as g}from"./cli-0.5.10-9xc8zhxg.mjs";import{pZ as S}from"./cli-0.5.10-9ek8f4vk.mjs";import{DZ as w,FZ as F,KZ as t}from"./cli-0.5.10-2c19pn7b.mjs";import{B3 as W,E3 as b,T3 as s,y3 as m}from"./cli-0.5.10-xyscak5q.mjs";import{Raa as n,T$ as P,U$ as i,kca as E,sca as r,uaa as f,xaa as L}from"./cli-0.5.10-2fqes7gy.mjs";import{Mea as A,Nea as a}from"./cli-0.5.10-jd7ff66n.mjs";import{Qfa as G,Tfa as u}from"./cli-0.5.10-p4wmnjhz.mjs";import{Wma as U,mna as o}from"./cli-0.5.10-rwqvbtg3.mjs";import{Hna as k,Lna as K}from"./cli-0.5.10-1sd567wn.mjs";function v(z,N,J){let Q=Z.useRef(0),V=Z.useRef(void 0),X=Z.useCallback(()=>{if(V.current)clearTimeout(V.current),V.current=void 0},[]);return Z.useEffect(()=>{return()=>{X()}},[X]),Z.useCallback(()=>{let Y=Date.now();if(Y-Q.current<=T&&V.current!==void 0)X(),z(!1),N();else J?.(),z(!0),X(),V.current=setTimeout((j,H)=>{j(!1),H.current=void 0},T,z,V);Q.current=Y},[z,N,J,X])}var Z,T=800;var R=K(()=>{Z=k(S(),1)});function C(z,N,J,Q=!0){let{exit:V}=y(),[X,Y]=$.useState({pending:!1,keyName:null}),q=$.useMemo(()=>J??V,[J,V]),M=v((_)=>Y({pending:_,keyName:"Ctrl-C"}),q),j=v((_)=>Y({pending:_,keyName:"Ctrl-D"}),q),H=$.useCallback(()=>{if(N?.())return;M()},[M,N]),O=$.useCallback(()=>{j()},[j]),c=$.useMemo(()=>({"app:interrupt":H,"app:exit":O}),[H,O]);return z(c,{context:"Global",isActive:Q}),X}var $;var I=K(()=>{g();R();$=k(S(),1)});function Gz(z,N,J){return C(x,N,z,J)}var l=K(()=>{d();I()});async function e(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/eligibility`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:5000})).data}async function vz(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/redemptions`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:1e4})).data}function p(){return!!(W()?.organizationUuid&&m()&&b()==="max")}function Az(){if(!p())return{eligible:!1,needsRefresh:!1,hasCache:!1};let z=W()?.organizationUuid;if(!z)return{eligible:!1,needsRefresh:!1,hasCache:!1};let J=L().passesEligibilityCache?.[z];if(!J)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Q,timestamp:V}=J,Y=Date.now()-V>h;return{eligible:Q,needsRefresh:Y,hasCache:!0}}function Uz(z){let N=zz[z.currency]??`${z.currency} `,J=z.amount_minor_units/100,Q=J%1===0?J.toString():J.toFixed(2);return`${N}${Q}`}function wz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.referrer_reward??null}function Fz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.remaining_passes??null}async function D(){if(B)return G("Passes: Reusing in-flight eligibility fetch"),B;let z=W()?.organizationUuid;if(!z)return null;return B=(async()=>{try{let N=await e(),J={...N,timestamp:Date.now()};return f((Q)=>({...Q,passesEligibilityCache:{...Q.passesEligibilityCache,[z]:J}})),G(`Passes eligibility cached for org ${z}: ${N.eligible}`),N}catch(N){return G("Failed to fetch and cache passes eligibility"),E(N),null}finally{B=null}})(),B}async function Jz(){if(!p())return null;let z=W()?.organizationUuid;if(!z)return null;let J=L().passesEligibilityCache?.[z],Q=Date.now();if(!J)return G("Passes: No cache, fetching eligibility in background (command unavailable this session)"),D(),null;if(Q-J.timestamp>h){G("Passes: Cache stale, returning cached data and refreshing in background"),D();let{timestamp:Y,...q}=J;return q}G("Passes: Using fresh cached eligibility data");let{timestamp:V,...X}=J;return X}async function Oz(){if(P())return;Jz()}var h=86400000,B=null,zz;var Nz=K(()=>{o();a();s();n();u();r();i();t();zz={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
2
+ export{v as dU,R as eU,Gz as fU,l as gU,vz as hU,Az as iU,Uz as jU,wz as kU,Fz as lU,Jz as mU,Oz as nU,Nz as oU};
@@ -0,0 +1,2 @@
1
+ import{Lna as $}from"./cli-0.5.10-1sd567wn.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function x(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function A(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function N(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function k(z=1){return z===0?"":J(z,"A")}function X(z=1){return z===0?"":J(z,"B")}function D(z=1){return z===0?"":J(z,"C")}function M(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function S(z,Q){let V="";if(z<0)V+=M(-z);else if(z>0)V+=D(z);if(Q<0)V+=k(-Q);else if(Q>0)V+=X(Q);return V}function E(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=k(1);return Q+=W,Q}function y(z=1){return z===0?"":J(z,"S")}function a(z=1){return z===0?"":J(z,"T")}function n(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,W,q,b,l,F,K,o,c,t,r,i,e,s,zz,Jz,Qz;var v=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];W=J("G");q=J("H");b=J("s"),l=J("u"),F=J(2,"K"),K=J(2,"J"),o=J(3,"J");c=J("r"),t=J("200~"),r=J("201~"),i=J("I"),e=J("O"),s=J(">1u"),zz=J("<u"),Jz=J(">4;2m"),Qz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+q}var P,$z;var f=$(()=>{v();P=J(0,"f");$z=T()});
2
+ export{d as RX,Y as SX,h as TX,j as UX,H as VX,w as WX,L as XX,x as YX,A as ZX,N as _X,J as $X,g as aY,I as bY,_ as cY,u as dY,R as eY,C as fY,q as gY,S as hY,K as iY,E as jY,y as kY,a as lY,n as mY,c as nY,t as oY,r as pY,i as qY,e as rY,s as sY,zz as tY,Jz as uY,Qz as vY,v as wY,T as xY,$z as yY,f as zY};
@@ -0,0 +1 @@
1
+ import{A0 as h,B0 as i,C0 as j,D0 as k,E0 as l,F0 as m,t0 as a,u0 as b,v0 as c,w0 as d,x0 as e,y0 as f,z0 as g}from"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import"./cli-0.5.10-1sd567wn.mjs";m();export{l as storeOAuthAccountInfo,a as shouldUseClaudeAIAuth,e as refreshOAuthToken,k as populateOAuthAccountInfoIfNeeded,b as parseScopes,h as isOAuthTokenExpired,j as getOrganizationUUID,i as fetchProfileInfo,f as fetchAndStoreUserRoles,d as exchangeCodeForTokens,g as createAndStoreApiKey,c as buildAuthUrl};
@@ -0,0 +1 @@
1
+ import{Or as w,PP as f,Sr as Z,_h as F,iP as H}from"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import"./cli-0.5.10-6z4j2qja.mjs";import{WT as K,cU as Y}from"./cli-0.5.10-t11my4jb.mjs";import"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import"./cli-0.5.10-dzr8kmx4.mjs";import"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import"./cli-0.5.10-gs8dx67v.mjs";import"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import{ama as X,jia as B}from"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import{Lna as W}from"./cli-0.5.10-1sd567wn.mjs";async function h(q,J,y){if(K())return q("Cannot set color: This session is a swarm teammate. Teammate colors are assigned by the team leader.",{display:"system"}),null;if(!y||y.trim()===""){let b=w.join(", ");return q(`Please provide a color. Available colors: ${b}, default`,{display:"system"}),null}let k=y.trim().toLowerCase();if($.includes(k)){let b=B(),V=F();return await H(b,"default",V),J.setAppState((z)=>({...z,standaloneAgentContext:{...z.standaloneAgentContext,name:z.standaloneAgentContext?.name??"",color:void 0}})),q("Session color reset to default",{display:"system"}),null}if(!w.includes(k)){let b=w.join(", ");return q(`Invalid color "${k}". Available colors: ${b}, default`,{display:"system"}),null}let Q=B(),U=F();return await H(Q,k,U),J.setAppState((b)=>({...b,standaloneAgentContext:{...b.standaloneAgentContext,name:b.standaloneAgentContext?.name??"",color:k}})),q(`Session color set to: ${k}`,{display:"system"}),null}var $;var M=W(()=>{X();Z();f();Y();$=["default","reset","none","gray","grey"]});M();export{h as call};
@@ -0,0 +1,3 @@
1
+ import{CA as Y,DA as I,DN as wj,EA as Z,FA as $,GA as O,HA as _,JA as n,KF as y,LF as c,Zw as b,_w as x,aw as N,bL as B,cL as s,cw as m,dO as zj,ew as X,ft as A,fw as a,gM as l,gt as u,hL as k,hw as U,iw as r,mQ as R,nM as qj,nQ as W,oQ as Hj,pN as C,tL as o,vL as P,vz as f,wL as e}from"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import"./cli-0.5.10-6z4j2qja.mjs";import"./cli-0.5.10-t11my4jb.mjs";import"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import"./cli-0.5.10-dzr8kmx4.mjs";import"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import"./cli-0.5.10-gs8dx67v.mjs";import"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import{n4 as h,o4 as p}from"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import{kca as D,sca as g}from"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import{gga as v,pga as E}from"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import{ama as i,mja as T}from"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import{Lna as M}from"./cli-0.5.10-1sd567wn.mjs";async function t(q,j,H,w){j.onCompactProgress?.({type:"hooks_start",hookType:"pre_compact"}),j.setSDKStatus?.("compacting");try{let[z,J]=await Promise.all([f({trigger:"manual",customInstructions:H||null},j.abortController.signal),d(j,q)]),Q=O(H,z.newCustomInstructions);j.setStreamMode?.("requesting"),j.setResponseLength?.(()=>0),j.onCompactProgress?.({type:"compact_start"});let K=await w.reactiveCompactOnPromptTooLong(q,J,{customInstructions:Q,trigger:"manual"});if(!K.ok)switch(K.reason){case"too_few_groups":throw Error(Y);case"aborted":throw Error(I);case"exhausted":case"error":case"media_unstrippable":throw Error(Z)}k(void 0);let F=$(K.result);B(void 0,F,j.contentReplacementState),X(),W.cache.clear?.();let V=[z.userDisplayMessage,K.result.userDisplayMessage].filter(Boolean).join(`
2
+ `)||void 0;return{type:"compact",compactionResult:{...K.result,userDisplayMessage:V},displayText:L(j,V)}}finally{j.setStreamMode?.("requesting"),j.setResponseLength?.(()=>0),j.onCompactProgress?.({type:"compact_end"}),j.setSDKStatus?.(null)}}function L(q,j){let H=b("tip"),w=A("app:toggleTranscript","Global","ctrl+o"),z=[...q.options.verbose?[]:[`(${w} to see full summary)`],...j?[j]:[],...H?[H]:[]];return h.dim("Compacted "+z.join(`
3
+ `))}async function d(q,j){let H=q.getAppState(),w=await l(q.options.tools,q.options.mainLoopModel,Array.from(H.toolPermissionContext.additionalWorkingDirectories.keys()),q.options.mcpClients),z=y({mainThreadAgentDefinition:void 0,toolUseContext:q,customSystemPrompt:q.options.customSystemPrompt,defaultSystemPrompt:w,appendSystemPrompt:q.options.appendSystemPrompt}),[J,Q]=await Promise.all([W(),R()]);return{systemPrompt:z,userContext:J,systemContext:Q,toolUseContext:q,forkContextMessages:j}}var G=null,Aj=async(q,j)=>{let{abortController:H}=j,{messages:w}=j;if(w=C(w),w.length===0)throw Error("No messages to compact");let z=q.trim();try{if(!z){let V=await P(w,j.agentId);if(V){W.cache.clear?.();let S=$(V);return B(void 0,S,j.contentReplacementState),N(j.options.querySource??"compact",j.agentId),T(),X(),{type:"compact",compactionResult:V,displayText:L(j)}}}if(G?.isReactiveOnlyMode())return await t(w,j,z,G);let Q=(await U(w,j)).messages,K=await _(Q,j,await d(j,Q),!1,z,!1);k(void 0),X(),W.cache.clear?.();let F=$(K);return B(void 0,F,j.contentReplacementState),{type:"compact",compactionResult:K,displayText:L(j,K.userDisplayMessage)}}catch(J){if(H.signal.aborted)throw Error("Compaction canceled.");else if(v(J,Y))throw Error(Y);else if(v(J,Z))throw Error(Z);else throw D(J),Error(`Error during compaction: ${J}`)}};var jj=M(()=>{p();i();qj();Hj();u();m();n();a();r();s();e();o();E();zj();g();wj();x();c()});jj();export{Aj as call};
@@ -0,0 +1 @@
1
+ import{$$ as a,Aaa as u,Baa as v,Caa as w,Daa as x,Eaa as y,Faa as z,Gaa as A,Haa as B,Iaa as C,Jaa as D,Kaa as E,Laa as F,Maa as G,Naa as H,Oaa as I,Paa as J,Qaa as K,Raa as L,aaa as b,iaa as c,jaa as d,kaa as e,laa as f,maa as g,naa as h,oaa as i,paa as j,qaa as k,raa as l,saa as m,taa as n,uaa as o,vaa as p,waa as q,xaa as r,yaa as s,zaa as t}from"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-1sd567wn.mjs";L();export{A as shouldSkipPluginAutoupdate,o as saveGlobalConfig,y as saveCurrentProjectConfig,h as resetTrustDialogAcceptedCacheForTesting,l as resetProjectConfigForTests,k as resetGlobalConfigForTests,E as recordFirstStartTime,n as onGlobalConfigChange,m as isProjectConfigKey,j as isPathTrusted,f as isGlobalConfigKey,u as isConfigReadingAllowed,z as isAutoUpdaterDisabled,H as getUserClaudeRulesDir,s as getRemoteControlAtStartup,w as getProjectPathForConfig,D as getOrCreateUserID,F as getMemoryPath,G as getManagedClaudeRulesDir,p as getGlobalConfigWriteCount,r as getGlobalConfig,t as getCustomApiKeyStatus,x as getCurrentProjectConfig,C as getAutoUpdaterDisabledReason,B as formatAutoUpdaterDisabledReason,v as enableConfigs,i as checkHasTrustDialogAccepted,J as _wouldLoseAuthStateForTesting,K as _setGlobalConfigCacheForTesting,I as _getConfigForTesting,c as SHOW_CACHE_STATS_MODES,g as PROJECT_CONFIG_KEYS,a as NOTIFICATION_CHANNELS,e as GLOBAL_CONFIG_KEYS,b as EDITOR_MODES,d as DEFAULT_GLOBAL_CONFIG,q as CONFIG_WRITE_DISPLAY_THRESHOLD};
@@ -0,0 +1 @@
1
+ import{Cf as f,Df as q}from"./cli-0.5.10-dkt8bbmm.mjs";import"./cli-0.5.10-qx17jbqj.mjs";import"./cli-0.5.10-20w5v1ja.mjs";import"./cli-0.5.10-r0jt3zrj.mjs";import"./cli-0.5.10-bmc43e4g.mjs";import"./cli-0.5.10-w93v7bhm.mjs";import"./cli-0.5.10-mcw01p8b.mjs";import"./cli-0.5.10-hmp23q7z.mjs";import"./cli-0.5.10-4ekf1v4x.mjs";import"./cli-0.5.10-9dazv3hg.mjs";import"./cli-0.5.10-948wwm63.mjs";import"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import"./cli-0.5.10-6z4j2qja.mjs";import"./cli-0.5.10-t11my4jb.mjs";import"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import"./cli-0.5.10-dzr8kmx4.mjs";import"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import{mZ as d,oZ as b}from"./cli-0.5.10-gs8dx67v.mjs";import"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import{Lna as l}from"./cli-0.5.10-1sd567wn.mjs";var y=async(h,k)=>{return d(f,{onClose:h,context:k,defaultTab:"Config"})};var v=l(()=>{q();b()});v();export{y as call};
@@ -0,0 +1 @@
1
+ import{gg as O0,hg as Hv}from"./cli-0.5.10-yxxbgd59.mjs";import{DN as cv,Gh as b0,Hh as r0,Ih as w0,Jh as a0,Oh as Y0,Ph as o0,Qi as L0,Ri as e0,hw as p0,iw as dv,pM as g0,pN as m0,qM as lv}from"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import"./cli-0.5.10-6z4j2qja.mjs";import"./cli-0.5.10-t11my4jb.mjs";import{fU as k0,gU as pv}from"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import"./cli-0.5.10-dzr8kmx4.mjs";import{JX as F0,LV as S0,cX as H,eX as z,yX as u0}from"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import{mZ as K,nZ as Z,oZ as T}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as kv}from"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import{C8 as I0,N8 as y0,U8 as Vv,X_ as Yv,k6 as P0,l6 as Kv,p8 as Z0}from"./cli-0.5.10-2fqes7gy.mjs";import{Jca as V,Pca as V0}from"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import{Hna as q0,Lna as X0}from"./cli-0.5.10-1sd567wn.mjs";function D0(J){let v=[];return Jv(J,v),Qv(J,v),Zv(J,v),zv(J,v),Wv(J,v),v.sort((Q,X)=>{if(Q.severity!==X.severity)return Q.severity==="warning"?-1:1;return(X.savingsTokens??0)-(Q.savingsTokens??0)}),v}function Jv(J,v){if(J.percentage>=h0)v.push({severity:"warning",title:`Context is ${J.percentage}% full`,detail:J.isAutoCompactEnabled?"Autocompact will trigger soon, which discards older messages. Use /compact now to control what gets kept.":"Autocompact is disabled. Use /compact to free space, or enable autocompact in /config."})}function Qv(J,v){if(!J.messageBreakdown)return;for(let Q of J.messageBreakdown.toolCallsByType){let X=Q.callTokens+Q.resultTokens,U=X/J.rawMaxTokens*100;if(U<N0||X<U0)continue;let W=Xv(Q.name,X,U);if(W)v.push(W)}}function Xv(J,v,Q){let X=V(v);switch(J){case b0:return{severity:"warning",title:`Bash results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Pipe output through head, tail, or grep to reduce result size. Avoid cat on large files — use Read with offset/limit instead.",savingsTokens:Math.floor(v*0.5)};case Y0:return{severity:"info",title:`Read results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Use offset and limit parameters to read only the sections you need. Avoid re-reading entire files when you only need a few lines.",savingsTokens:Math.floor(v*0.3)};case w0:return{severity:"info",title:`Grep results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Add more specific patterns or use the glob or type parameter to narrow file types. Consider Glob for file discovery instead of Grep.",savingsTokens:Math.floor(v*0.3)};case L0:return{severity:"info",title:`WebFetch results using ${X} tokens (${Q.toFixed(0)}%)`,detail:"Web page content can be very large. Consider extracting only the specific information needed.",savingsTokens:Math.floor(v*0.4)};default:if(Q>=20)return{severity:"info",title:`${J} using ${X} tokens (${Q.toFixed(0)}%)`,detail:"This tool is consuming a significant portion of context.",savingsTokens:Math.floor(v*0.2)};return null}}function Zv(J,v){if(!J.messageBreakdown)return;let X=J.messageBreakdown.toolCallsByType.find((F)=>F.name===Y0);if(!X)return;let U=X.callTokens+X.resultTokens,W=U/J.rawMaxTokens*100,Y=X.resultTokens/J.rawMaxTokens*100;if(W>=N0&&U>=U0)return;if(Y>=s0&&X.resultTokens>=U0)v.push({severity:"info",title:`File reads using ${V(X.resultTokens)} tokens (${Y.toFixed(0)}%)`,detail:"If you are re-reading files, consider referencing earlier reads. Use offset/limit for large files.",savingsTokens:Math.floor(X.resultTokens*0.3)})}function zv(J,v){let Q=J.memoryFiles.reduce((U,W)=>U+W.tokens,0),X=Q/J.rawMaxTokens*100;if(X>=t0&&Q>=vv){let U=[...J.memoryFiles].sort((W,Y)=>Y.tokens-W.tokens).slice(0,3).map((W)=>{return`${Z0(W.path)} (${V(W.tokens)})`}).join(", ");v.push({severity:"info",title:`Memory files using ${V(Q)} tokens (${X.toFixed(0)}%)`,detail:`Largest: ${U}. Use /memory to review and prune stale entries.`,savingsTokens:Math.floor(Q*0.3)})}}function Wv(J,v){if(!J.isAutoCompactEnabled&&J.percentage>=50&&J.percentage<h0)v.push({severity:"info",title:"Autocompact is disabled",detail:"Without autocompact, you will hit context limits and lose the conversation. Enable it in /config or use /compact manually."})}var N0=15,U0=1e4,s0=5,h0=80,t0=5,vv=5000;var C0=X0(()=>{r0();o0();a0();e0();I0();V0()});function f0(J){let v=A0.c(5),{suggestions:Q}=J;if(Q.length===0)return null;let X;if(v[0]===Symbol.for("react.memo_cache_sentinel"))X=K(z,{bold:!0,children:"Suggestions"}),v[0]=X;else X=v[0];let U;if(v[1]!==Q)U=Q.map(Uv),v[1]=Q,v[2]=U;else U=v[2];let W;if(v[3]!==U)W=Z(H,{flexDirection:"column",marginTop:1,children:[X,U]}),v[3]=U,v[4]=W;else W=v[4];return W}function Uv(J,v){return Z(H,{flexDirection:"column",marginTop:v===0?0:1,children:[Z(H,{children:[K(O0,{status:J.severity,withSpace:!0}),K(z,{bold:!0,children:J.title}),J.savingsTokens?Z(z,{dimColor:!0,children:[" ",P0.arrowRight," save ~",V(J.savingsTokens)]}):null]}),K(H,{marginLeft:2,children:K(z,{dimColor:!0,children:J.detail})})]},v)}var A0;var M0=X0(()=>{Kv();F0();V0();Hv();T();A0=q0(S0(),1)});function $(J,v){return J===v.length-1?"└":"├"}function qv(){let J=G0.c(2);return null}function B0(J){let v=new Map;for(let X of J){let U=y0(X.source),W=v.get(U)||[];W.push(X),v.set(U,W)}for(let[X,U]of v.entries())v.set(X,U.sort((W,Y)=>Y.tokens-W.tokens));let Q=new Map;for(let X of Fv){let U=v.get(X);if(U)Q.set(X,U)}return Q}function R0(J){let v=G0.c(87),{data:Q}=J,{categories:X,totalTokens:U,rawMaxTokens:W,percentage:Y,gridRows:F,model:G,memoryFiles:I,mcpTools:q,deferredBuiltinTools:x,systemTools:r,systemPromptSections:a,agents:o,skills:n,messageBreakdown:W0}=Q,h,D,C,P,b,S,O,A,w,L;if(v[0]!==X||v[1]!==F||v[2]!==q||v[3]!==G||v[4]!==Y||v[5]!==W||v[6]!==r||v[7]!==x||v[8]!==U){let j0=x===void 0?[]:x,l0=X.filter(uv),s;if(v[19]!==X)s=X.some(Ev),v[19]=X,v[20]=s;else s=v[20];let _=s,c0=j0.length>0,p=X.find(Rv);if(D=H,O="column",A=1,v[21]===Symbol.for("react.memo_cache_sentinel"))w=K(z,{bold:!0,children:"Context Usage"}),v[21]=w;else w=v[21];let d;if(v[22]!==F)d=F.map(Bv),v[22]=F,v[23]=d;else d=v[23];let g;if(v[24]!==d)g=K(H,{flexDirection:"column",flexShrink:0,children:d}),v[24]=d,v[25]=g;else g=v[25];let m;if(v[26]!==U)m=V(U),v[26]=U,v[27]=m;else m=v[27];let j;if(v[28]!==W)j=V(W),v[28]=W,v[29]=j;else j=v[29];let l;if(v[30]!==G||v[31]!==Y||v[32]!==m||v[33]!==j)l=Z(z,{dimColor:!0,children:[G," · ",m,"/",j," ","tokens (",Y,"%)"]}),v[30]=G,v[31]=Y,v[32]=m,v[33]=j,v[34]=l;else l=v[34];let t,v0,J0;if(v[35]===Symbol.for("react.memo_cache_sentinel"))t=K(qv,{}),v0=K(z,{children:" "}),J0=K(z,{dimColor:!0,italic:!0,children:"Estimated usage by category"}),v[35]=t,v[36]=v0,v[37]=J0;else t=v[35],v0=v[36],J0=v[37];let Q0;if(v[38]!==W)Q0=(N,i0)=>{let T0=V(N.tokens),$0=N.isDeferred?"N/A":`${(N.tokens/W*100).toFixed(1)}%`,n0=N.name===z0,_0=N.name,x0=N.isDeferred?" ":n0?"⛝":"⛁";return Z(H,{children:[K(z,{color:N.color,children:x0}),Z(z,{children:[" ",_0,": "]}),Z(z,{dimColor:!0,children:[T0," tokens (",$0,")"]})]},i0)},v[38]=W,v[39]=Q0;else Q0=v[39];let K0=l0.map(Q0),c;if(v[40]!==X||v[41]!==W)c=(X.find(Mv)?.tokens??0)>0&&Z(H,{children:[K(z,{dimColor:!0,children:"⛶"}),K(z,{children:" Free space: "}),Z(z,{dimColor:!0,children:[V(X.find(fv)?.tokens||0)," ","(",((X.find(Av)?.tokens||0)/W*100).toFixed(1),"%)"]})]}),v[40]=X,v[41]=W,v[42]=c;else c=v[42];let H0=p&&p.tokens>0&&Z(H,{children:[K(z,{color:p.color,children:"⛝"}),Z(z,{dimColor:!0,children:[" ",p.name,": "]}),Z(z,{dimColor:!0,children:[V(p.tokens)," tokens (",(p.tokens/W*100).toFixed(1),"%)"]})]}),i;if(v[43]!==l||v[44]!==K0||v[45]!==c||v[46]!==H0)i=Z(H,{flexDirection:"column",gap:0,flexShrink:0,children:[l,t,v0,J0,K0,c,H0]}),v[43]=l,v[44]=K0,v[45]=c,v[46]=H0,v[47]=i;else i=v[47];if(v[48]!==g||v[49]!==i)L=Z(H,{flexDirection:"row",gap:2,children:[g,i]}),v[48]=g,v[49]=i,v[50]=L;else L=v[50];if(h=H,C="column",P=-1,v[51]!==_||v[52]!==q)b=q.length>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"MCP tools"}),Z(z,{dimColor:!0,children:[" ","· /mcp",_?" (loaded on-demand)":""]})]}),q.some(Ov)&&Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:"Loaded"}),q.filter(Sv).map(Pv)]}),_&&q.some(Cv)&&Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:"Available"}),q.filter(Dv).map(hv)]}),!_&&q.map(Nv)]}),v[51]=_,v[52]=q,v[53]=b;else b=v[53];S=(r&&r.length>0||c0)&&!1,v[0]=X,v[1]=F,v[2]=q,v[3]=G,v[4]=Y,v[5]=W,v[6]=r,v[7]=x,v[8]=U,v[9]=h,v[10]=D,v[11]=C,v[12]=P,v[13]=b,v[14]=S,v[15]=O,v[16]=A,v[17]=w,v[18]=L}else h=v[9],D=v[10],C=v[11],P=v[12],b=v[13],S=v[14],O=v[15],A=v[16],w=v[17],L=v[18];let f;if(v[54]!==a)f=a&&a.length>0&&!1,v[54]=a,v[55]=f;else f=v[55];let M;if(v[56]!==o)M=o.length>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"Custom agents"}),K(z,{dimColor:!0,children:" · /agents"})]}),Array.from(B0(o).entries()).map(wv)]}),v[56]=o,v[57]=M;else M=v[57];let B;if(v[58]!==I)B=I.length>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"Memory files"}),K(z,{dimColor:!0,children:" · /memory"})]}),I.map(bv)]}),v[58]=I,v[59]=B;else B=v[59];let y;if(v[60]!==n)y=n&&n.tokens>0&&Z(H,{flexDirection:"column",marginTop:1,children:[Z(H,{children:[K(z,{bold:!0,children:"Skills"}),K(z,{dimColor:!0,children:" · /skills"})]}),Array.from(B0(n.skillFrontmatter).entries()).map(Gv)]}),v[60]=n,v[61]=y;else y=v[61];let R;if(v[62]!==W0)R=W0&&!1,v[62]=W0,v[63]=R;else R=v[63];let E;if(v[64]!==h||v[65]!==f||v[66]!==M||v[67]!==B||v[68]!==y||v[69]!==R||v[70]!==C||v[71]!==P||v[72]!==b||v[73]!==S)E=Z(h,{flexDirection:C,marginLeft:P,children:[b,S,f,M,B,y,R]}),v[64]=h,v[65]=f,v[66]=M,v[67]=B,v[68]=y,v[69]=R,v[70]=C,v[71]=P,v[72]=b,v[73]=S,v[74]=E;else E=v[74];let u;if(v[75]!==Q)u=D0(Q),v[75]=Q,v[76]=u;else u=v[76];let k;if(v[77]!==u)k=K(f0,{suggestions:u}),v[77]=u,v[78]=k;else k=v[78];let e;if(v[79]!==D||v[80]!==E||v[81]!==k||v[82]!==O||v[83]!==A||v[84]!==w||v[85]!==L)e=Z(D,{flexDirection:O,paddingLeft:A,children:[w,L,E,k]}),v[79]=D,v[80]=E,v[81]=k,v[82]=O,v[83]=A,v[84]=w,v[85]=L,v[86]=e;else e=v[86];return e}function Gv(J){let[v,Q]=J;return Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:v}),Q.map(Iv)]},v)}function Iv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function bv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",Z0(J.path),": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function wv(J){let[v,Q]=J;return Z(H,{flexDirection:"column",marginTop:1,children:[K(z,{dimColor:!0,children:v}),Q.map(Lv)]},v)}function Lv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.agentType,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function Nv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function hv(J,v,Q){return K(H,{children:Z(z,{dimColor:!0,children:[$(v,Q)," ",J.name]})},v)}function Dv(J){return!J.isLoaded}function Cv(J){return!J.isLoaded}function Pv(J,v,Q){return Z(H,{children:[Z(z,{children:[$(v,Q)," ",J.name,": "]}),Z(z,{dimColor:!0,children:[V(J.tokens)," tokens"]})]},v)}function Sv(J){return J.isLoaded}function Ov(J){return J.isLoaded}function Av(J){return J.name==="Free space"}function fv(J){return J.name==="Free space"}function Mv(J){return J.name==="Free space"}function Bv(J,v){return K(H,{flexDirection:"row",marginLeft:-1,children:J.map(yv)},v)}function yv(J,v){if(J.categoryName==="Free space")return K(z,{dimColor:!0,children:"⛶ "},v);if(J.categoryName===z0)return K(z,{color:J.color,children:"⛝ "},v);return K(z,{color:J.color,children:J.squareFullness>=0.7?"⛁ ":"⛀ "},v)}function Rv(J){return J.name===z0}function Ev(J){return J.isDeferred&&J.name.includes("MCP")}function uv(J){return J.tokens>0&&J.name!=="Free space"&&J.name!==z0&&!J.isDeferred}var G0,z0="Autocompact buffer",Fv;var E0=X0(()=>{F0();C0();I0();V0();Vv();Yv();M0();T();G0=q0(S0(),1);Fv=["Project","User","Managed","Plugin","Built-in"]});function gv({data:J,onDone:v}){let Q=d0.useCallback(()=>v("Context dialog dismissed",{display:"system"}),[v]),X=k0(Q);return u0((U,W)=>{if(W.escape||W.return)Q()}),Z(H,{flexDirection:"column",children:[K(R0,{data:J}),K(z,{dimColor:!0,children:X.pending?`Press ${X.keyName} again to exit`:"Press esc or enter to close"})]})}function mv(J){return m0(J)}async function LJ(J,v){let{messages:Q,getAppState:X,options:{mainLoopModel:U,tools:W}}=v,Y=mv(Q),{messages:F}=await p0(Y),G=process.stdout.columns||80,I=X(),q=await g0(F,U,async()=>I.toolPermissionContext,W,I.agentDefinitions,G,v,void 0,Y);return K(gv,{data:q,onDone:J})}var d0;var jv=X0(()=>{F0();E0();pv();dv();lv();cv();T();d0=q0(kv(),1)});jv();export{LJ as call};
@@ -0,0 +1 @@
1
+ import{ig as a,jg as b,kg as c}from"./cli-0.5.10-t9d916t1.mjs";import"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import"./cli-0.5.10-6z4j2qja.mjs";import"./cli-0.5.10-t11my4jb.mjs";import"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import"./cli-0.5.10-dzr8kmx4.mjs";import"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import"./cli-0.5.10-gs8dx67v.mjs";import"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import"./cli-0.5.10-1sd567wn.mjs";c();export{a as collectContextData,b as call};
@@ -0,0 +1 @@
1
+ import{Ag as a,Bg as b}from"./cli-0.5.10-0sg20shr.mjs";import"./cli-0.5.10-6c055y30.mjs";import"./cli-0.5.10-w29mv5e9.mjs";import"./cli-0.5.10-e8wz8kc0.mjs";import"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import"./cli-0.5.10-6z4j2qja.mjs";import"./cli-0.5.10-t11my4jb.mjs";import"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import"./cli-0.5.10-dzr8kmx4.mjs";import"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import"./cli-0.5.10-gs8dx67v.mjs";import"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import"./cli-0.5.10-1sd567wn.mjs";b();export{a as clearConversation};
@@ -0,0 +1,9 @@
1
+ import{Ci as i,DN as Tq,Eh as d,Fh as Yq,cm as T,dm as Nq,gm as l,hm as Iq,uD as n,vD as Fq,xi as a}from"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import"./cli-0.5.10-6z4j2qja.mjs";import"./cli-0.5.10-t11my4jb.mjs";import"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import{pV as s,qV as vq}from"./cli-0.5.10-dzr8kmx4.mjs";import{FV as $,JX as Mq,KV as zq,LV as Hq,cX as c,eX as u}from"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import{mZ as I,nZ as h,oZ as k}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as Gq}from"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import{R_ as b,Raa as Xq,X_ as Uq,uaa as r,xaa as _}from"./cli-0.5.10-2fqes7gy.mjs";import{xca as f,yca as Zq}from"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import{Oea as P,Qea as Vq}from"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import{Hna as g,Lna as Qq}from"./cli-0.5.10-1sd567wn.mjs";import{mkdir as Kq,writeFile as Rq}from"fs/promises";import{tmpdir as Oq}from"os";import{join as t}from"path";function Pq(Q){let q=d.lexer(a(Q)),V=[];for(let J of q)if(J.type==="code"){let Z=J;V.push({code:Z.text,lang:Z.lang})}return V}function wq(Q){let q=[];for(let V=Q.length-1;V>=0&&q.length<Wq;V--){let J=Q[V];if(J?.type!=="assistant"||J.isApiErrorMessage)continue;let Z=J.message.content;if(!Array.isArray(Z))continue;let U=i(Z,`
2
+
3
+ `);if(U)q.push(U)}return q}function yq(Q){if(Q){let q=Q.replace(/[^a-zA-Z0-9]/g,"");if(q&&q!=="plaintext")return`.${q}`}return".txt"}async function Jq(Q,q){let V=t(x,q);return await Kq(x,{recursive:!0}),await Rq(V,Q,"utf-8"),V}async function m(Q,q){let V=await $(Q);if(V)process.stdout.write(V);let J=b(Q,`
4
+ `)+1,Z=Q.length;try{let U=await Jq(Q,q);return`Copied to clipboard (${Z} characters, ${J} lines)
5
+ Also written to ${U}`}catch{return`Copied to clipboard (${Z} characters, ${J} lines)`}}function Aq(Q,q){let V=Q.split(`
6
+ `)[0]??"";if(f(V)<=q)return V;let J="",Z=0,U=q-1;for(let H of V){let G=f(H);if(Z+G>U)break;J+=H,Z+=G}return J+"…"}function pq(Q){let q=o.c(33),{fullText:V,codeBlocks:J,messageAge:Z,onDone:U}=Q,H=e.useRef("full"),G=`${V.length} chars, ${b(V,`
7
+ `)+1} lines`,M;if(q[0]!==G)M={label:"Full response",value:"full",description:G},q[0]=G,q[1]=M;else M=q[1];let z;if(q[2]!==J||q[3]!==M){let Y;if(q[5]===Symbol.for("react.memo_cache_sentinel"))Y={label:"Always copy full response",value:"always",description:"Skip this picker in the future (revert via /config)"},q[5]=Y;else Y=q[5];z=[M,...J.map(Lq),Y],q[2]=J,q[3]=M,q[4]=z}else z=q[4];let B=z,w;if(q[6]!==J||q[7]!==V)w=function(N){if(N==="full"||N==="always")return{text:V,filename:qq};let X=J[N];return{text:X.code,filename:`copy${yq(X.lang)}`,blockIndex:N}},q[6]=J,q[7]=V,q[8]=w;else w=q[8];let v=w,y;if(q[9]!==J.length||q[10]!==v||q[11]!==Z||q[12]!==U)y=async function(N){let X=v(N);if(N==="always"){if(!_().copyFullResponse)r(Eq);P("tengu_copy",{block_count:J.length,always:!0,message_age:Z});let W=await m(X.text,X.filename);U(`${W}
8
+ Preference saved. Use /config to change copyFullResponse`);return}P("tengu_copy",{selected_block:X.blockIndex,block_count:J.length,message_age:Z});let O=await m(X.text,X.filename);U(O)},q[9]=J.length,q[10]=v,q[11]=Z,q[12]=U,q[13]=y;else y=q[13];let S=y,A;if(q[14]!==J.length||q[15]!==v||q[16]!==Z||q[17]!==U){let Y=async function(X){let O=v(X);P("tengu_copy",{selected_block:O.blockIndex,block_count:J.length,message_age:Z,write_shortcut:!0});try{let W=await Jq(O.text,O.filename);U(`Written to ${W}`)}catch(W){let D=W;U(`Failed to write file: ${D instanceof Error?D.message:D}`)}};A=function(X){if(X.key==="w")X.preventDefault(),Y(H.current)},q[14]=J.length,q[15]=v,q[16]=Z,q[17]=U,q[18]=A}else A=q[18];let C=A,p;if(q[19]===Symbol.for("react.memo_cache_sentinel"))p=I(u,{dimColor:!0,children:"Select content to copy:"}),q[19]=p;else p=q[19];let E;if(q[20]===Symbol.for("react.memo_cache_sentinel"))E=(Y)=>{H.current=Y},q[20]=E;else E=q[20];let F;if(q[21]!==S)F=(Y)=>{S(Y)},q[21]=S,q[22]=F;else F=q[22];let K;if(q[23]!==U)K=()=>{U("Copy cancelled",{display:"system"})},q[23]=U,q[24]=K;else K=q[24];let R;if(q[25]!==B||q[26]!==K||q[27]!==F)R=I(n,{options:B,hideIndexes:!1,onFocus:E,onChange:F,onCancel:K}),q[25]=B,q[26]=K,q[27]=F,q[28]=R;else R=q[28];let L;if(q[29]===Symbol.for("react.memo_cache_sentinel"))L=I(u,{dimColor:!0,children:h(l,{children:[I(T,{shortcut:"enter",action:"copy"}),I(T,{shortcut:"w",action:"write to file"}),I(T,{shortcut:"esc",action:"cancel"})]})}),q[29]=L;else L=q[29];let j;if(q[30]!==C||q[31]!==R)j=I(s,{children:h(c,{flexDirection:"column",gap:1,tabIndex:0,autoFocus:!0,onKeyDown:C,children:[p,R,L]})}),q[30]=C,q[31]=R,q[32]=j;else j=q[32];return j}function Eq(Q){return{...Q,copyFullResponse:!0}}function Lq(Q,q){let V=b(Q.code,`
9
+ `)+1;return{label:Aq(Q.code,60),value:q,description:[Q.lang,V>1?`${V} lines`:void 0].filter(Boolean).join(", ")||void 0}}var o,e,x,qq="response.md",Wq=20,aq=async(Q,q,V)=>{let J=wq(q.messages);if(J.length===0)return Q("No assistant message to copy"),null;let Z=0,U=V?.trim();if(U){let z=Number(U);if(!Number.isInteger(z)||z<1)return Q(`Usage: /copy [N] where N is 1 (latest), 2, 3, … Got: ${U}`),null;if(z>J.length)return Q(`Only ${J.length} assistant ${J.length===1?"message":"messages"} available to copy`),null;Z=z-1}let H=J[Z],G=Pq(H),M=_();if(G.length===0||M.copyFullResponse){P("tengu_copy",{always:M.copyFullResponse,block_count:G.length,message_age:Z});let z=await m(H,qq);return Q(z),null}return I(pq,{fullText:H,codeBlocks:G,messageAge:Z,onDone:Q})};var jq=Qq(()=>{Yq();Fq();Iq();Nq();vq();Zq();zq();Mq();Vq();Xq();Tq();Uq();k();o=g(Hq(),1),e=g(Gq(),1),x=t(Oq(),"claude")});jq();export{yq as fileExtension,wq as collectRecentAssistantTexts,aq as call};
@@ -0,0 +1 @@
1
+ import{Js as q,Ks as z,Vo as p,Zo as y}from"./cli-0.5.10-8jjacn05.mjs";import"./cli-0.5.10-vpfctkxf.mjs";import"./cli-0.5.10-ytqna8q4.mjs";import"./cli-0.5.10-k0mnqs0g.mjs";import"./cli-0.5.10-0ar26ct8.mjs";import"./cli-0.5.10-b761m5q2.mjs";import"./cli-0.5.10-6g0257t2.mjs";import"./cli-0.5.10-a1hh6v31.mjs";import"./cli-0.5.10-vqkn3pgf.mjs";import"./cli-0.5.10-yvjnvgky.mjs";import"./cli-0.5.10-pr8yqs5v.mjs";import"./cli-0.5.10-vyem3gpm.mjs";import"./cli-0.5.10-nx3m5sa2.mjs";import"./cli-0.5.10-bhb8rt9y.mjs";import"./cli-0.5.10-2qxn5ad9.mjs";import"./cli-0.5.10-6jarntdq.mjs";import"./cli-0.5.10-6z4j2qja.mjs";import"./cli-0.5.10-t11my4jb.mjs";import"./cli-0.5.10-z5ysspq8.mjs";import"./cli-0.5.10-c0xtw3q0.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-207502x5.mjs";import"./cli-0.5.10-dzr8kmx4.mjs";import"./cli-0.5.10-9xc8zhxg.mjs";import"./cli-0.5.10-7tpa30tv.mjs";import"./cli-0.5.10-zk1h67jm.mjs";import"./cli-0.5.10-9h23hhgb.mjs";import"./cli-0.5.10-5mp7dx81.mjs";import"./cli-0.5.10-dvmddb7c.mjs";import"./cli-0.5.10-pxhw9mwz.mjs";import"./cli-0.5.10-m0hghx42.mjs";import"./cli-0.5.10-gs8dx67v.mjs";import"./cli-0.5.10-9ek8f4vk.mjs";import"./cli-0.5.10-tqpg21eq.mjs";import"./cli-0.5.10-p5j82v0t.mjs";import"./cli-0.5.10-2c19pn7b.mjs";import"./cli-0.5.10-d1y749qy.mjs";import{T3 as x,y3 as k}from"./cli-0.5.10-xyscak5q.mjs";import"./cli-0.5.10-2yrgbmd1.mjs";import"./cli-0.5.10-rzshk2m6.mjs";import"./cli-0.5.10-p8hbe96w.mjs";import"./cli-0.5.10-xnmg1qwd.mjs";import"./cli-0.5.10-mxzdkm6r.mjs";import"./cli-0.5.10-npmmxjts.mjs";import"./cli-0.5.10-g4khh98h.mjs";import"./cli-0.5.10-2fqes7gy.mjs";import"./cli-0.5.10-6zwxmza2.mjs";import"./cli-0.5.10-vqrqhas6.mjs";import"./cli-0.5.10-xrwj7982.mjs";import"./cli-0.5.10-rk7at2tn.mjs";import"./cli-0.5.10-d609fanf.mjs";import"./cli-0.5.10-jd7ff66n.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-rwqvbtg3.mjs";import"./cli-0.5.10-dmmckmyf.mjs";import"./cli-0.5.10-5m76kmzk.mjs";import{Lna as w}from"./cli-0.5.10-1sd567wn.mjs";var G=async()=>{if(k()){let g;if(p.isUsingOverage)g="You are currently using your overages to power your Claude Code usage. We will automatically switch you back to your subscription rate limits when they reset";else g="You are currently using your subscription to power your Claude Code usage";return{type:"text",value:g}}return{type:"text",value:q()}};var B=w(()=>{z();y();x()});B();export{G as call};
@@ -0,0 +1 @@
1
+ import"./cli-0.5.10-1sd567wn.mjs";var o=()=>null,n=o;export{n as default};
@@ -0,0 +1 @@
1
+ import{fe as a,ge as b,he as c,ie as d,je as e}from"./cli-0.5.10-a8ecfnq0.mjs";import"./cli-0.5.10-azhfv28d.mjs";import"./cli-0.5.10-rq5mv7xq.mjs";import"./cli-0.5.10-y9qd4psg.mjs";import"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-1sd567wn.mjs";e();export{d as updateBridgeSessionTitle,b as getBridgeSession,a as createBridgeSession,c as archiveBridgeSession};
@@ -0,0 +1 @@
1
+ import{Hfa as a,Ifa as b,Jfa as c,Kfa as d,Lfa as e,Mfa as f,Nfa as g,Ofa as h,Pfa as i,Qfa as j,Rfa as k,Sfa as l,Tfa as m}from"./cli-0.5.10-p4wmnjhz.mjs";import"./cli-0.5.10-xhy1yx61.mjs";import"./cli-0.5.10-8wqagr68.mjs";import"./cli-0.5.10-jsnrvena.mjs";import"./cli-0.5.10-atkghjt0.mjs";import"./cli-0.5.10-c9z4tdw2.mjs";import"./cli-0.5.10-6wzddpjt.mjs";import"./cli-0.5.10-1sd567wn.mjs";m();export{g as setHasFormattedOutput,j as logForDebugging,l as logAntError,e as isDebugToStdErr,b as isDebugMode,a as getMinDebugLogLevel,h as getHasFormattedOutput,k as getDebugLogPath,d as getDebugFilter,f as getDebugFilePath,i as flushDebugLogs,c as enableDebugLogging};