@claudiolabs/claudin 1.1.7 → 1.1.9

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 (918) hide show
  1. package/dist/chunks/AgentTool-1.1.9-wkz9sjmc.mjs +1 -0
  2. package/dist/chunks/App-1.1.9-xgs7khyz.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.9-7gfmxnyz.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.9-pf08j23x.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.9-4ze1tfxe.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.9-ztaz7kpc.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.9-hzpy5qvh.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.9-ajjzhfrp.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.9-m3n0bamd.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.9-74y6nka7.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.9-9av1q0k2.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.9-me7gmbqp.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.9-776dpey8.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.9-gzyybqqn.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.9-e71y6pr4.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.9-4bkckq3q.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.9-d6c3hrvj.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.9-2dk7z5b6.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.9-ds8mvm64.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.9-2z1ye829.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.9-68k8x7yf.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.9-anh2z73y.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.9-tedma9q3.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.9-3n1b2vrf.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.9-63awezwe.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.9-msa503cz.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.9-w058z417.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.9-t27aw1nb.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.9-dxvbnrfa.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.9-3kevh6af.mjs +1 -0
  31. package/dist/chunks/agents-1.1.9-eabf2wdc.mjs +3 -0
  32. package/dist/chunks/agents-1.1.9-nj93ac5m.mjs +110 -0
  33. package/dist/chunks/api-1.1.9-m1mrnd2p.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.9-d0kjtphm.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.9-e3zkxz2m.mjs +1 -0
  36. package/dist/chunks/auth-1.1.9-8qm9p05y.mjs +1 -0
  37. package/dist/chunks/auth-1.1.9-gm4sybx1.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.9-p9fppced.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.9-m6etj2pr.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.9-4hvzygqr.mjs +1 -0
  41. package/dist/chunks/branch-1.1.9-wqszm8z2.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.9-h886wtcd.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.9-ehv4dp42.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.9-8qkc9feq.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.9-1sdw2z47.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.9-bvwdykpj.mjs +1 -0
  47. package/dist/chunks/btw-1.1.9-sm4j5bt8.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.9-fesnzyh6.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.9-6kzb7z5q.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.9-9j06fcrx.mjs +4 -0
  51. package/dist/chunks/caches-1.1.9-4g38wyxp.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.9-gd3bgkhe.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.9-7xr0h7qv.mjs +1 -0
  54. package/dist/chunks/clear-1.1.9-nadfsynk.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.9-48k9fftx.mjs +1 -0
  56. package/dist/chunks/cli-1.1.9-06k8vem7.mjs +3 -0
  57. package/dist/chunks/cli-1.1.9-0da4szeq.mjs +2 -0
  58. package/dist/chunks/cli-1.1.9-0dcyhvk3.mjs +2 -0
  59. package/dist/chunks/cli-1.1.9-0evqvwgb.mjs +2 -0
  60. package/dist/chunks/cli-1.1.9-0h7f33hw.mjs +66 -0
  61. package/dist/chunks/cli-1.1.9-0s7kmsaa.mjs +6 -0
  62. package/dist/chunks/cli-1.1.9-0w9c82qd.mjs +2 -0
  63. package/dist/chunks/cli-1.1.9-1932rbs7.mjs +2 -0
  64. package/dist/chunks/cli-1.1.9-1b1mw6v2.mjs +6 -0
  65. package/dist/chunks/cli-1.1.9-1ganj1qj.mjs +1 -0
  66. package/dist/chunks/cli-1.1.9-1gg4qe92.mjs +4 -0
  67. package/dist/chunks/cli-1.1.9-1q40zcz0.mjs +2 -0
  68. package/dist/chunks/cli-1.1.9-1ydmnrp6.mjs +2 -0
  69. package/dist/chunks/cli-1.1.9-223enqdr.mjs +2 -0
  70. package/dist/chunks/cli-1.1.9-22gp283h.mjs +2 -0
  71. package/dist/chunks/cli-1.1.9-260z6ry3.mjs +3 -0
  72. package/dist/chunks/cli-1.1.9-2t4pp98q.mjs +133 -0
  73. package/dist/chunks/cli-1.1.9-2wrs8key.mjs +9 -0
  74. package/dist/chunks/cli-1.1.9-2zeypqcv.mjs +3 -0
  75. package/dist/chunks/cli-1.1.9-3ajc04xt.mjs +4 -0
  76. package/dist/chunks/cli-1.1.9-3mgd7wkd.mjs +20 -0
  77. package/dist/chunks/cli-1.1.9-3nfhvvzw.mjs +3 -0
  78. package/dist/chunks/cli-1.1.9-3t9by3gn.mjs +2 -0
  79. package/dist/chunks/cli-1.1.9-4eqcxefk.mjs +4 -0
  80. package/dist/chunks/cli-1.1.9-4k5khbp0.mjs +5 -0
  81. package/dist/chunks/cli-1.1.9-4p8zymhf.mjs +2 -0
  82. package/dist/chunks/cli-1.1.9-4qctf8p1.mjs +2 -0
  83. package/dist/chunks/cli-1.1.9-4ygmyvas.mjs +2 -0
  84. package/dist/chunks/cli-1.1.9-4z0nxn7p.mjs +3 -0
  85. package/dist/chunks/cli-1.1.9-4z7ddbsc.mjs +3 -0
  86. package/dist/chunks/cli-1.1.9-573zndr8.mjs +2 -0
  87. package/dist/chunks/cli-1.1.9-5cr2dpgf.mjs +2 -0
  88. package/dist/chunks/cli-1.1.9-5hzaexj9.mjs +2 -0
  89. package/dist/chunks/cli-1.1.9-5v03p4xq.mjs +2 -0
  90. package/dist/chunks/cli-1.1.9-6a8pdm8s.mjs +2 -0
  91. package/dist/chunks/cli-1.1.9-6h5nwsn1.mjs +18 -0
  92. package/dist/chunks/cli-1.1.9-6kcc57kb.mjs +42 -0
  93. package/dist/chunks/cli-1.1.9-6mwsk9z2.mjs +2 -0
  94. package/dist/chunks/cli-1.1.9-6sv92w0b.mjs +2 -0
  95. package/dist/chunks/cli-1.1.9-79wdzxep.mjs +4 -0
  96. package/dist/chunks/cli-1.1.9-7y42yxmj.mjs +2 -0
  97. package/dist/chunks/cli-1.1.9-840ckwq8.mjs +2 -0
  98. package/dist/chunks/cli-1.1.9-890aswmq.mjs +2 -0
  99. package/dist/chunks/cli-1.1.9-8f0a6ved.mjs +2 -0
  100. package/dist/chunks/cli-1.1.9-8gkjdbxs.mjs +202 -0
  101. package/dist/chunks/cli-1.1.9-8gypdqm2.mjs +2 -0
  102. package/dist/chunks/cli-1.1.9-8sktt26v.mjs +2 -0
  103. package/dist/chunks/cli-1.1.9-8vfhjyxn.mjs +2 -0
  104. package/dist/chunks/cli-1.1.9-8xy2498p.mjs +2 -0
  105. package/dist/chunks/cli-1.1.9-8zhwfv3p.mjs +2 -0
  106. package/dist/chunks/cli-1.1.9-914mh2gv.mjs +16 -0
  107. package/dist/chunks/cli-1.1.9-97jvvqrz.mjs +2 -0
  108. package/dist/chunks/cli-1.1.9-98ypzgj0.mjs +25 -0
  109. package/dist/chunks/cli-1.1.9-9bqrz8qn.mjs +2 -0
  110. package/dist/chunks/cli-1.1.9-9f1te59e.mjs +2 -0
  111. package/dist/chunks/cli-1.1.9-9t7xx2r9.mjs +2 -0
  112. package/dist/chunks/cli-1.1.9-9yrwnzf6.mjs +2 -0
  113. package/dist/chunks/cli-1.1.9-a4c57zxm.mjs +21 -0
  114. package/dist/chunks/cli-1.1.9-a5z84t63.mjs +2 -0
  115. package/dist/chunks/cli-1.1.9-a6yyaw1d.mjs +2 -0
  116. package/dist/chunks/cli-1.1.9-a7x6qt7v.mjs +6 -0
  117. package/dist/chunks/cli-1.1.9-agbzpv77.mjs +2 -0
  118. package/dist/chunks/cli-1.1.9-ajr585mm.mjs +4 -0
  119. package/dist/chunks/cli-1.1.9-aqbj20gg.mjs +2 -0
  120. package/dist/chunks/cli-1.1.9-atdcgnab.mjs +2 -0
  121. package/dist/chunks/cli-1.1.9-atge24ab.mjs +2 -0
  122. package/dist/chunks/cli-1.1.9-ax8tkq65.mjs +2 -0
  123. package/dist/chunks/cli-1.1.9-b353901w.mjs +2 -0
  124. package/dist/chunks/cli-1.1.9-b3za9cts.mjs +2 -0
  125. package/dist/chunks/cli-1.1.9-b78c2fws.mjs +8 -0
  126. package/dist/chunks/cli-1.1.9-b9ykbj6y.mjs +17 -0
  127. package/dist/chunks/cli-1.1.9-bc22evty.mjs +2 -0
  128. package/dist/chunks/cli-1.1.9-bftwnbgn.mjs +5390 -0
  129. package/dist/chunks/cli-1.1.9-bfyz4xjz.mjs +2 -0
  130. package/dist/chunks/cli-1.1.9-bk3tqt6v.mjs +26 -0
  131. package/dist/chunks/cli-1.1.9-bwhdpxw6.mjs +12 -0
  132. package/dist/chunks/cli-1.1.9-c27gt3w1.mjs +2 -0
  133. package/dist/chunks/cli-1.1.9-c5wsttrd.mjs +2 -0
  134. package/dist/chunks/cli-1.1.9-c6nqtzv9.mjs +2 -0
  135. package/dist/chunks/cli-1.1.9-ckr5mgw1.mjs +25 -0
  136. package/dist/chunks/cli-1.1.9-ct1yqfqn.mjs +2 -0
  137. package/dist/chunks/cli-1.1.9-cwtcnyyj.mjs +2 -0
  138. package/dist/chunks/cli-1.1.9-d9wz5g8s.mjs +2 -0
  139. package/dist/chunks/cli-1.1.9-de902mzz.mjs +2 -0
  140. package/dist/chunks/cli-1.1.9-dh5213n0.mjs +2 -0
  141. package/dist/chunks/cli-1.1.9-dxt1d7jm.mjs +2 -0
  142. package/dist/chunks/cli-1.1.9-e0bejpfk.mjs +2 -0
  143. package/dist/chunks/cli-1.1.9-e1ak8jhn.mjs +12 -0
  144. package/dist/chunks/cli-1.1.9-e2ny87k0.mjs +15 -0
  145. package/dist/chunks/cli-1.1.9-e4jhw8xj.mjs +2 -0
  146. package/dist/chunks/cli-1.1.9-e5xq1msp.mjs +58 -0
  147. package/dist/chunks/cli-1.1.9-e6x7cyw4.mjs +2 -0
  148. package/dist/chunks/cli-1.1.9-egv4z3tf.mjs +2 -0
  149. package/dist/chunks/cli-1.1.9-ena9w4sg.mjs +24 -0
  150. package/dist/chunks/cli-1.1.9-etmwe3pd.mjs +2 -0
  151. package/dist/chunks/cli-1.1.9-ewst4gvt.mjs +2 -0
  152. package/dist/chunks/cli-1.1.9-ezkc7ag5.mjs +2 -0
  153. package/dist/chunks/cli-1.1.9-fcqz89mq.mjs +2 -0
  154. package/dist/chunks/cli-1.1.9-fdzgypr3.mjs +3 -0
  155. package/dist/chunks/cli-1.1.9-fqk44arm.mjs +45 -0
  156. package/dist/chunks/cli-1.1.9-frwdaeyw.mjs +2 -0
  157. package/dist/chunks/cli-1.1.9-fws7k6ak.mjs +2 -0
  158. package/dist/chunks/cli-1.1.9-fxyfgpjj.mjs +2 -0
  159. package/dist/chunks/cli-1.1.9-fy9kv0hx.mjs +2 -0
  160. package/dist/chunks/cli-1.1.9-fygnj03b.mjs +2 -0
  161. package/dist/chunks/cli-1.1.9-fzh3d8n1.mjs +2 -0
  162. package/dist/chunks/cli-1.1.9-ga16e8rd.mjs +3 -0
  163. package/dist/chunks/cli-1.1.9-gbtz45hn.mjs +3 -0
  164. package/dist/chunks/cli-1.1.9-gmb2wpqf.mjs +2 -0
  165. package/dist/chunks/cli-1.1.9-gpmbky2h.mjs +2 -0
  166. package/dist/chunks/cli-1.1.9-grhcdmgm.mjs +2 -0
  167. package/dist/chunks/cli-1.1.9-gttthtg1.mjs +2 -0
  168. package/dist/chunks/cli-1.1.9-gv5x5e8a.mjs +2 -0
  169. package/dist/chunks/cli-1.1.9-h45gam34.mjs +2 -0
  170. package/dist/chunks/cli-1.1.9-h66p9ghw.mjs +2 -0
  171. package/dist/chunks/cli-1.1.9-hq4kcpxc.mjs +2 -0
  172. package/dist/chunks/cli-1.1.9-j1bj4zfy.mjs +2 -0
  173. package/dist/chunks/cli-1.1.9-jah1vcdm.mjs +2 -0
  174. package/dist/chunks/cli-1.1.9-jaq6r6ba.mjs +2 -0
  175. package/dist/chunks/cli-1.1.9-jew2xd4p.mjs +2 -0
  176. package/dist/chunks/cli-1.1.9-jfyv5vb1.mjs +7 -0
  177. package/dist/chunks/cli-1.1.9-jmwr69v2.mjs +2 -0
  178. package/dist/chunks/cli-1.1.9-jn9kh16z.mjs +39 -0
  179. package/dist/chunks/cli-1.1.9-jqs0ktme.mjs +2 -0
  180. package/dist/chunks/cli-1.1.9-jqz75k6h.mjs +4 -0
  181. package/dist/chunks/cli-1.1.9-k0b62q76.mjs +2 -0
  182. package/dist/chunks/cli-1.1.9-k3tzdef2.mjs +50 -0
  183. package/dist/chunks/cli-1.1.9-k4gthvh4.mjs +4 -0
  184. package/dist/chunks/cli-1.1.9-k8kz8k9t.mjs +2 -0
  185. package/dist/chunks/cli-1.1.9-k9bbqwgs.mjs +2 -0
  186. package/dist/chunks/cli-1.1.9-kaxffmz4.mjs +2 -0
  187. package/dist/chunks/cli-1.1.9-kdavw6zm.mjs +2 -0
  188. package/dist/chunks/cli-1.1.9-kdgc8zvn.mjs +24 -0
  189. package/dist/chunks/cli-1.1.9-kdpv38ab.mjs +2 -0
  190. package/dist/chunks/cli-1.1.9-kgtexer1.mjs +2 -0
  191. package/dist/chunks/cli-1.1.9-khhnt4hq.mjs +2 -0
  192. package/dist/chunks/cli-1.1.9-khskdxps.mjs +6 -0
  193. package/dist/chunks/cli-1.1.9-kvk6ba28.mjs +2 -0
  194. package/dist/chunks/cli-1.1.9-kyn85fwa.mjs +15 -0
  195. package/dist/chunks/cli-1.1.9-kzqqvms6.mjs +34 -0
  196. package/dist/chunks/cli-1.1.9-m2x94hxw.mjs +5 -0
  197. package/dist/chunks/cli-1.1.9-md4ratv1.mjs +4 -0
  198. package/dist/chunks/cli-1.1.9-mdd84pmt.mjs +2 -0
  199. package/dist/chunks/cli-1.1.9-mgm6zdpx.mjs +2 -0
  200. package/dist/chunks/cli-1.1.9-mk4nfh2a.mjs +2 -0
  201. package/dist/chunks/cli-1.1.9-mp2pqq66.mjs +24 -0
  202. package/dist/chunks/cli-1.1.9-mt1mshmr.mjs +2 -0
  203. package/dist/chunks/cli-1.1.9-mw0y14ny.mjs +133 -0
  204. package/dist/chunks/cli-1.1.9-mz91g55f.mjs +4 -0
  205. package/dist/chunks/cli-1.1.9-n2qz0enm.mjs +2 -0
  206. package/dist/chunks/cli-1.1.9-n886v2tr.mjs +2 -0
  207. package/dist/chunks/cli-1.1.9-nacg7asv.mjs +2 -0
  208. package/dist/chunks/cli-1.1.9-nadf4arq.mjs +2 -0
  209. package/dist/chunks/cli-1.1.9-nbdn95s0.mjs +2 -0
  210. package/dist/chunks/cli-1.1.9-nbtds7y5.mjs +2 -0
  211. package/dist/chunks/cli-1.1.9-p24jbscq.mjs +2 -0
  212. package/dist/chunks/cli-1.1.9-pdcfc5y5.mjs +3 -0
  213. package/dist/chunks/cli-1.1.9-pjfvmwr9.mjs +2 -0
  214. package/dist/chunks/cli-1.1.9-ppnsbsqg.mjs +2 -0
  215. package/dist/chunks/cli-1.1.9-pr2kkmf8.mjs +15 -0
  216. package/dist/chunks/cli-1.1.9-pxbfakmz.mjs +2 -0
  217. package/dist/chunks/cli-1.1.9-q384fwfa.mjs +2 -0
  218. package/dist/chunks/cli-1.1.9-qc93tafw.mjs +2 -0
  219. package/dist/chunks/cli-1.1.9-qr51aqsa.mjs +2 -0
  220. package/dist/chunks/cli-1.1.9-r5gk3nve.mjs +2 -0
  221. package/dist/chunks/cli-1.1.9-r7g33857.mjs +2 -0
  222. package/dist/chunks/cli-1.1.9-r7gng5fx.mjs +2 -0
  223. package/dist/chunks/cli-1.1.9-rawga9ty.mjs +2 -0
  224. package/dist/chunks/cli-1.1.9-rh6wjwvg.mjs +2 -0
  225. package/dist/chunks/cli-1.1.9-rjztj1ez.mjs +9 -0
  226. package/dist/chunks/cli-1.1.9-rmd68sfp.mjs +2 -0
  227. package/dist/chunks/cli-1.1.9-rvmgrj4q.mjs +2 -0
  228. package/dist/chunks/cli-1.1.9-s52npgq0.mjs +2 -0
  229. package/dist/chunks/cli-1.1.9-s5b8svr6.mjs +3 -0
  230. package/dist/chunks/cli-1.1.9-sbmesghv.mjs +2 -0
  231. package/dist/chunks/cli-1.1.9-se5tezpj.mjs +3 -0
  232. package/dist/chunks/cli-1.1.9-spn11xgr.mjs +2 -0
  233. package/dist/chunks/cli-1.1.9-sqfgvaz9.mjs +2 -0
  234. package/dist/chunks/cli-1.1.9-sxsgvz9x.mjs +2 -0
  235. package/dist/chunks/cli-1.1.9-tcx9qwzz.mjs +18 -0
  236. package/dist/chunks/cli-1.1.9-tt85wfyx.mjs +2 -0
  237. package/dist/chunks/cli-1.1.9-txs7wza6.mjs +59 -0
  238. package/dist/chunks/cli-1.1.9-tze0002b.mjs +4 -0
  239. package/dist/chunks/cli-1.1.9-v4hh4r8g.mjs +2 -0
  240. package/dist/chunks/cli-1.1.9-v6dh85e0.mjs +4 -0
  241. package/dist/chunks/cli-1.1.9-vhsgp7b5.mjs +2 -0
  242. package/dist/chunks/cli-1.1.9-vmggmsba.mjs +2 -0
  243. package/dist/chunks/cli-1.1.9-w3xqbxyp.mjs +2 -0
  244. package/dist/chunks/cli-1.1.9-w462299v.mjs +3 -0
  245. package/dist/chunks/cli-1.1.9-w4yjadk7.mjs +2 -0
  246. package/dist/chunks/cli-1.1.9-wg00txsx.mjs +2 -0
  247. package/dist/chunks/cli-1.1.9-wscqghf9.mjs +2 -0
  248. package/dist/chunks/cli-1.1.9-wsqhh56s.mjs +2 -0
  249. package/dist/chunks/cli-1.1.9-wx0fgtgp.mjs +3 -0
  250. package/dist/chunks/cli-1.1.9-wydc25pa.mjs +2 -0
  251. package/dist/chunks/cli-1.1.9-x1ame9j0.mjs +2 -0
  252. package/dist/chunks/cli-1.1.9-x9jz46tx.mjs +2 -0
  253. package/dist/chunks/cli-1.1.9-xa48sv5y.mjs +6 -0
  254. package/dist/chunks/cli-1.1.9-xccq68bp.mjs +2 -0
  255. package/dist/chunks/cli-1.1.9-xmqye6j6.mjs +2 -0
  256. package/dist/chunks/cli-1.1.9-xn1fx31s.mjs +2 -0
  257. package/dist/chunks/cli-1.1.9-xxwf95xq.mjs +17 -0
  258. package/dist/chunks/cli-1.1.9-ygp7jfm9.mjs +2 -0
  259. package/dist/chunks/cli-1.1.9-ytgc0me8.mjs +2 -0
  260. package/dist/chunks/cli-1.1.9-yw9403an.mjs +24 -0
  261. package/dist/chunks/cli-1.1.9-z0wenj5y.mjs +6 -0
  262. package/dist/chunks/cli-1.1.9-zhyjqy1b.mjs +2 -0
  263. package/dist/chunks/cli-1.1.9-zp9cpxw5.mjs +12 -0
  264. package/dist/chunks/cli-1.1.9-zv6e4k6z.mjs +2 -0
  265. package/dist/chunks/cli-1.1.9-zy71vgyg.mjs +2 -0
  266. package/dist/chunks/client-1.1.9-ew20apkg.mjs +1 -0
  267. package/dist/chunks/color-1.1.9-r9fb3e7k.mjs +1 -0
  268. package/dist/chunks/compact-1.1.9-ea493ntb.mjs +3 -0
  269. package/dist/chunks/config-1.1.9-6fxf7dj2.mjs +1 -0
  270. package/dist/chunks/config-1.1.9-snnk2z79.mjs +1 -0
  271. package/dist/chunks/constants-1.1.9-adx0a3k9.mjs +1 -0
  272. package/dist/chunks/context-1.1.9-nxs61bmq.mjs +1 -0
  273. package/dist/chunks/context-noninteractive-1.1.9-cppfq9pr.mjs +1 -0
  274. package/dist/chunks/conversation-1.1.9-3x6s0c83.mjs +1 -0
  275. package/dist/chunks/copilotHeaders-1.1.9-vvy4jfh7.mjs +1 -0
  276. package/dist/chunks/copy-1.1.9-sx84nhzr.mjs +9 -0
  277. package/dist/chunks/cost-1.1.9-msc3677c.mjs +1 -0
  278. package/dist/chunks/createSSHSession-1.1.9-cpa9c11q.mjs +1 -0
  279. package/dist/chunks/createSession-1.1.9-kapv4jes.mjs +1 -0
  280. package/dist/chunks/debug-1.1.9-h57648ft.mjs +1 -0
  281. package/dist/chunks/defaultActionDeps-1.1.9-j6kdarmk.mjs +1526 -0
  282. package/dist/chunks/desktop-1.1.9-4z5p38ma.mjs +1 -0
  283. package/dist/chunks/detectRepository-1.1.9-9c8ws2cg.mjs +1 -0
  284. package/dist/chunks/detection-1.1.9-2vb502cf.mjs +1 -0
  285. package/dist/chunks/diff-1.1.9-8m7str6k.mjs +1 -0
  286. package/dist/chunks/doctor-1.1.9-0f6jzgas.mjs +1 -0
  287. package/dist/chunks/doctorDiagnostic-1.1.9-w983dv1c.mjs +1 -0
  288. package/dist/chunks/earlyInput-1.1.9-c047s7qm.mjs +1 -0
  289. package/dist/chunks/effort-1.1.9-5qnffzr4.mjs +13 -0
  290. package/dist/chunks/engine-1.1.9-5jjj151c.mjs +1 -0
  291. package/dist/chunks/envLessBridgeConfig-1.1.9-jex25t6e.mjs +1 -0
  292. package/dist/chunks/envUtils-1.1.9-krdbmbwa.mjs +1 -0
  293. package/dist/chunks/environmentSelection-1.1.9-nbbgerx3.mjs +1 -0
  294. package/dist/chunks/environments-1.1.9-1t7bdxn2.mjs +1 -0
  295. package/dist/chunks/errors-1.1.9-e3vc9p8s.mjs +1 -0
  296. package/dist/chunks/exampleCommands-1.1.9-xazstg5e.mjs +1 -0
  297. package/dist/chunks/execFileNoThrow-1.1.9-c14n54h8.mjs +1 -0
  298. package/dist/chunks/exit-1.1.9-r4x4th0b.mjs +1 -0
  299. package/dist/chunks/explorer-1.1.9-wdzp1dsf.mjs +1 -0
  300. package/dist/chunks/export-1.1.9-0zmn3m1m.mjs +2 -0
  301. package/dist/chunks/extra-usage-1.1.9-v3cypezj.mjs +1 -0
  302. package/dist/chunks/extra-usage-noninteractive-1.1.9-1b722pj8.mjs +1 -0
  303. package/dist/chunks/fast-1.1.9-ys3bnnx1.mjs +1 -0
  304. package/dist/chunks/feedback-1.1.9-xtbxr07t.mjs +14 -0
  305. package/dist/chunks/firstPartyEventLogger-1.1.9-anc9n41n.mjs +1 -0
  306. package/dist/chunks/git-1.1.9-9dmxfhs7.mjs +1 -0
  307. package/dist/chunks/githubModelsCredentials-1.1.9-tyw52d6k.mjs +1 -0
  308. package/dist/chunks/goal-1.1.9-64kdsaz8.mjs +4 -0
  309. package/dist/chunks/grove-1.1.9-feqpprte.mjs +1 -0
  310. package/dist/chunks/growthbook-1.1.9-5haradn1.mjs +1 -0
  311. package/dist/chunks/headless-1.1.9-x413dfed.mjs +2 -0
  312. package/dist/chunks/heapdump-1.1.9-z0mn192y.mjs +6 -0
  313. package/dist/chunks/help-1.1.9-fsng3h1g.mjs +1 -0
  314. package/dist/chunks/hookChains-1.1.9-h0b5hx6z.mjs +3 -0
  315. package/dist/chunks/hooks-1.1.9-gsjxxhxg.mjs +79 -0
  316. package/dist/chunks/hooks-1.1.9-hhydka88.mjs +1 -0
  317. package/dist/chunks/ide-1.1.9-ke6a38yk.mjs +3 -0
  318. package/dist/chunks/image-processor-napi-1.1.9-0cf7sh4j.mjs +1 -0
  319. package/dist/chunks/inboundAttachments-1.1.9-j5vez7jv.mjs +1 -0
  320. package/dist/chunks/index-1.1.9-1cqvjp5p.mjs +1 -0
  321. package/dist/chunks/index-1.1.9-1pambxgy.mjs +1 -0
  322. package/dist/chunks/index-1.1.9-2gb6syse.mjs +1 -0
  323. package/dist/chunks/index-1.1.9-2sk8q3x9.mjs +30 -0
  324. package/dist/chunks/index-1.1.9-3wevfp37.mjs +1 -0
  325. package/dist/chunks/index-1.1.9-3xm5j58t.mjs +1 -0
  326. package/dist/chunks/index-1.1.9-66dcm0v8.mjs +1 -0
  327. package/dist/chunks/index-1.1.9-6skqhhzf.mjs +1 -0
  328. package/dist/chunks/index-1.1.9-97yrmssd.mjs +1 -0
  329. package/dist/chunks/index-1.1.9-a0nf5r6f.mjs +1 -0
  330. package/dist/chunks/index-1.1.9-a6c1xz4e.mjs +2 -0
  331. package/dist/chunks/index-1.1.9-ad1rhnqp.mjs +9 -0
  332. package/dist/chunks/index-1.1.9-bw0cax5s.mjs +2 -0
  333. package/dist/chunks/index-1.1.9-h341k1xk.mjs +1 -0
  334. package/dist/chunks/index-1.1.9-jneayavn.mjs +23 -0
  335. package/dist/chunks/index-1.1.9-nc3014dy.mjs +1 -0
  336. package/dist/chunks/index-1.1.9-r1qk4xvr.mjs +1 -0
  337. package/dist/chunks/index-1.1.9-sfyz5cb7.mjs +9 -0
  338. package/dist/chunks/index-1.1.9-sg4e7zkb.mjs +5 -0
  339. package/dist/chunks/index-1.1.9-wkj78xgk.mjs +1 -0
  340. package/dist/chunks/index-1.1.9-wqjwb4zm.mjs +1 -0
  341. package/dist/chunks/index-1.1.9-x3yr70wm.mjs +1 -0
  342. package/dist/chunks/index-1.1.9-yznkq9s3.mjs +1 -0
  343. package/dist/chunks/init-1.1.9-0pss5n1w.mjs +1 -0
  344. package/dist/chunks/initReplBridge-1.1.9-xn4x74kj.mjs +1 -0
  345. package/dist/chunks/ink-1.1.9-zwhy78y6.mjs +1 -0
  346. package/dist/chunks/insights-1.1.9-hgpde32q.mjs +870 -0
  347. package/dist/chunks/install-1.1.9-34x0hj9y.mjs +1 -0
  348. package/dist/chunks/install-github-app-1.1.9-9sw6tr8d.mjs +149 -0
  349. package/dist/chunks/install-slack-app-1.1.9-sddcp9xd.mjs +1 -0
  350. package/dist/chunks/instrumentation-1.1.9-b52jmsm9.mjs +1 -0
  351. package/dist/chunks/interactiveHelpers-1.1.9-9d7d8js5.mjs +1 -0
  352. package/dist/chunks/keybindings-1.1.9-8amnba42.mjs +2 -0
  353. package/dist/chunks/knowledge-1.1.9-kz84fs8v.mjs +2 -0
  354. package/dist/chunks/latestVersionCache-1.1.9-d4kwr00h.mjs +1 -0
  355. package/dist/chunks/loadAgentsDir-1.1.9-smk51q1t.mjs +1 -0
  356. package/dist/chunks/loadPluginHooks-1.1.9-a8ny49aa.mjs +1 -0
  357. package/dist/chunks/log-1.1.9-e9py7g1v.mjs +1 -0
  358. package/dist/chunks/main-1.1.9-vx43js6g.mjs +1 -0
  359. package/dist/chunks/managedEnv-1.1.9-zdhg1zfw.mjs +1 -0
  360. package/dist/chunks/mcp-1.1.9-66xztk7e.mjs +4 -0
  361. package/dist/chunks/mcp-1.1.9-6q4s5vpd.mjs +1 -0
  362. package/dist/chunks/mcp-1.1.9-sgvnwe73.mjs +17 -0
  363. package/dist/chunks/mcpb-1.1.9-67ew9jzm.mjs +1 -0
  364. package/dist/chunks/memory-1.1.9-d580fc8g.mjs +72 -0
  365. package/dist/chunks/model-1.1.9-n7gjmzqe.mjs +2 -0
  366. package/dist/chunks/model-1.1.9-r24h6ebx.mjs +1 -0
  367. package/dist/chunks/node-1.1.9-kx2wx79w.mjs +12 -0
  368. package/dist/chunks/oauth-1.1.9-mb03cbrk.mjs +1 -0
  369. package/dist/chunks/openaiShim-1.1.9-7n9g3sj8.mjs +14 -0
  370. package/dist/chunks/output-style-1.1.9-eb07k735.mjs +1 -0
  371. package/dist/chunks/package-L37ZVTF4-1.1.9-s5ve90jq.mjs +1 -0
  372. package/dist/chunks/parseConnectUrl-1.1.9-zdgekp41.mjs +1 -0
  373. package/dist/chunks/parser-1.1.9-v7w400w6.mjs +1 -0
  374. package/dist/chunks/passes-1.1.9-eq2gaejx.mjs +1 -0
  375. package/dist/chunks/permissions-1.1.9-e410dndk.mjs +1 -0
  376. package/dist/chunks/permissions-1.1.9-qdtk36nc.mjs +3 -0
  377. package/dist/chunks/plan-1.1.9-fz63v9vy.mjs +1 -0
  378. package/dist/chunks/plist-1.1.9-vvf1dmeh.mjs +1 -0
  379. package/dist/chunks/plugin-1.1.9-5wgxw7e5.mjs +29 -0
  380. package/dist/chunks/pluginStartupCheck-1.1.9-wsqp215d.mjs +1 -0
  381. package/dist/chunks/plugins-1.1.9-gn7vrvsn.mjs +9 -0
  382. package/dist/chunks/preActionHook-1.1.9-hk5p06zk.mjs +2 -0
  383. package/dist/chunks/print-1.1.9-ccqx25s0.mjs +57 -0
  384. package/dist/chunks/privacy-settings-1.1.9-53703vc6.mjs +1 -0
  385. package/dist/chunks/process-1.1.9-6e5jfgee.mjs +1 -0
  386. package/dist/chunks/processBashCommand-1.1.9-q27mqh31.mjs +1 -0
  387. package/dist/chunks/processSlashCommand-1.1.9-pmx45pst.mjs +9 -0
  388. package/dist/chunks/prompt-1.1.9-2374kg79.mjs +1 -0
  389. package/dist/chunks/prompt-1.1.9-rmzk76ja.mjs +1 -0
  390. package/dist/chunks/prompts-1.1.9-vw2cgjmn.mjs +1 -0
  391. package/dist/chunks/protocolHandler-1.1.9-5qy2tmvh.mjs +13 -0
  392. package/dist/chunks/provider-1.1.9-a55a0767.mjs +2 -0
  393. package/dist/chunks/providerProfiles-1.1.9-0qf6737w.mjs +1 -0
  394. package/dist/chunks/providerValidation-1.1.9-xy0peh3y.mjs +6 -0
  395. package/dist/chunks/rate-limit-options-1.1.9-3mv4vcm2.mjs +1 -0
  396. package/dist/chunks/registerSubcommands-1.1.9-xwrrc93y.mjs +34 -0
  397. package/dist/chunks/registry-1.1.9-nhs76azt.mjs +1 -0
  398. package/dist/chunks/release-notes-1.1.9-evdvm41n.mjs +5 -0
  399. package/dist/chunks/reload-plugins-1.1.9-nsan544v.mjs +2 -0
  400. package/dist/chunks/remote-env-1.1.9-wqd0jdhv.mjs +1 -0
  401. package/dist/chunks/remoteBridgeCore-1.1.9-epxhjpaw.mjs +1 -0
  402. package/dist/chunks/remoteSession-1.1.9-80pvqseg.mjs +1 -0
  403. package/dist/chunks/rename-1.1.9-t6q4frnz.mjs +1 -0
  404. package/dist/chunks/replBridgeHandle-1.1.9-fhcz3nmf.mjs +1 -0
  405. package/dist/chunks/replLauncher-1.1.9-k6bt66pp.mjs +1 -0
  406. package/dist/chunks/resume-1.1.9-f8pqevkb.mjs +2 -0
  407. package/dist/chunks/rewind-1.1.9-mqnvjgnw.mjs +1 -0
  408. package/dist/chunks/rootOptions-1.1.9-hm3xq5ew.mjs +1 -0
  409. package/dist/chunks/runWorkflowHeadless-1.1.9-yzzt2wgy.mjs +10 -0
  410. package/dist/chunks/sandbox-adapter-1.1.9-djbmdqmh.mjs +1 -0
  411. package/dist/chunks/sandbox-toggle-1.1.9-ca1f9nar.mjs +1 -0
  412. package/dist/chunks/session-1.1.9-1h4w7jv2.mjs +2 -0
  413. package/dist/chunks/sessionDiscovery-1.1.9-4xav26hz.mjs +1 -0
  414. package/dist/chunks/sessionFileAccessHooks-1.1.9-76sy9frv.mjs +1 -0
  415. package/dist/chunks/sessionStorage-1.1.9-054r3b21.mjs +1 -0
  416. package/dist/chunks/settings-1.1.9-6xnvy3wf.mjs +1 -0
  417. package/dist/chunks/setup-1.1.9-ryytyyyq.mjs +5 -0
  418. package/dist/chunks/sinks-1.1.9-1tmn5q67.mjs +1 -0
  419. package/dist/chunks/skills-1.1.9-21b3ema9.mjs +1 -0
  420. package/dist/chunks/startupProfiler-1.1.9-4cynjbh6.mjs +1 -0
  421. package/dist/chunks/startupUpdateCheck-1.1.9-0zeaaev8.mjs +1 -0
  422. package/dist/chunks/state-1.1.9-4vnhh3s5.mjs +1 -0
  423. package/dist/chunks/stats-1.1.9-n37acpyb.mjs +6 -0
  424. package/dist/chunks/status-1.1.9-e7fgh9na.mjs +1 -0
  425. package/dist/chunks/stickers-1.1.9-vpzantjb.mjs +1 -0
  426. package/dist/chunks/subprocessEnv-1.1.9-qja4apm2.mjs +1 -0
  427. package/dist/chunks/tasks-1.1.9-xvrvpcpf.mjs +1 -0
  428. package/dist/chunks/teamHelpers-1.1.9-kc45263x.mjs +1 -0
  429. package/dist/chunks/teammateModeSnapshot-1.1.9-5jf6f8yz.mjs +1 -0
  430. package/dist/chunks/teleport-1.1.9-f1mzkj3j.mjs +1 -0
  431. package/dist/chunks/terminalSetup-1.1.9-7xczc9pg.mjs +1 -0
  432. package/dist/chunks/theme-1.1.9-xnntw39r.mjs +1 -0
  433. package/dist/chunks/thinkback-1.1.9-2agv1je1.mjs +1 -0
  434. package/dist/chunks/thinkback-play-1.1.9-0f61agae.mjs +1 -0
  435. package/dist/chunks/toolPool-1.1.9-x4dvej7a.mjs +1 -0
  436. package/dist/chunks/toolSearch-1.1.9-2n3qz8m6.mjs +1 -0
  437. package/dist/chunks/tools-1.1.9-2st9wxya.mjs +1 -0
  438. package/dist/chunks/trustedDevice-1.1.9-24j13chh.mjs +1 -0
  439. package/dist/chunks/turndown.cjs-1.1.9-6a2bdbmc.mjs +69 -0
  440. package/dist/chunks/types-1.1.9-hx767c40.mjs +1 -0
  441. package/dist/chunks/ultrareviewCommand-1.1.9-1d65a9qv.mjs +4 -0
  442. package/dist/chunks/update-1.1.9-2qs71qk6.mjs +72 -0
  443. package/dist/chunks/upgrade-1.1.9-4m89wfqh.mjs +1 -0
  444. package/dist/chunks/upload-1.1.9-141vg13j.mjs +7 -0
  445. package/dist/chunks/upstreamproxy-1.1.9-1hh4dkwb.mjs +14 -0
  446. package/dist/chunks/url-handler-napi-1.1.9-awan17cf.mjs +1 -0
  447. package/dist/chunks/usage-1.1.9-3e6gg2kg.mjs +1 -0
  448. package/dist/chunks/util-1.1.9-jy80stt8.mjs +1 -0
  449. package/dist/chunks/utils-1.1.9-k4q7cea1.mjs +1 -0
  450. package/dist/chunks/vim-1.1.9-s13xmm4h.mjs +1 -0
  451. package/dist/chunks/watchLoop-1.1.9-cbww8p0b.mjs +13 -0
  452. package/dist/chunks/watcher-1.1.9-2mym56cs.mjs +1 -0
  453. package/dist/chunks/wiki-1.1.9-yyjrhwn4.mjs +132 -0
  454. package/dist/chunks/workflows-1.1.9-4jccerzk.mjs +1 -0
  455. package/dist/chunks/worktree-1.1.9-fq2ry5d2.mjs +1 -0
  456. package/dist/chunks/worktreeModeEnabled-1.1.9-42k3m5c3.mjs +1 -0
  457. package/dist/chunks/wrapper-1.1.9-8kjvkg3x.mjs +7 -0
  458. package/dist/cli.mjs +2 -2
  459. package/package.json +9 -9
  460. package/dist/chunks/AgentTool-1.1.7-ta4a3hax.mjs +0 -1
  461. package/dist/chunks/App-1.1.7-bb5w6zvz.mjs +0 -1
  462. package/dist/chunks/ApproveApiKey-1.1.7-92afe7m0.mjs +0 -1
  463. package/dist/chunks/AssistantSessionChooser-1.1.7-gx3qxf94.mjs +0 -1
  464. package/dist/chunks/AutoModeOptInDialog-1.1.7-d0as32bc.mjs +0 -1
  465. package/dist/chunks/BypassPermissionsModeDialog-1.1.7-etp5s6ps.mjs +0 -1
  466. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.7-9thhg137.mjs +0 -1
  467. package/dist/chunks/ConsoleOAuthFlow-1.1.7-wwv2cgzz.mjs +0 -1
  468. package/dist/chunks/DiffDialog-1.1.7-30wzw849.mjs +0 -7
  469. package/dist/chunks/Doctor-1.1.7-m040nz42.mjs +0 -1
  470. package/dist/chunks/ExplorerDialog-1.1.7-xemvy0mx.mjs +0 -6
  471. package/dist/chunks/Grove-1.1.7-0synn9dr.mjs +0 -1
  472. package/dist/chunks/ITermBackend-1.1.7-be5cx2dr.mjs +0 -1
  473. package/dist/chunks/InvalidConfigDialog-1.1.7-b37xct1d.mjs +0 -1
  474. package/dist/chunks/InvalidSettingsDialog-1.1.7-89avh225.mjs +0 -1
  475. package/dist/chunks/MigrationDialog-1.1.7-1k5yjmhb.mjs +0 -1
  476. package/dist/chunks/Onboarding-1.1.7-0qnmq973.mjs +0 -1
  477. package/dist/chunks/ProviderManager-1.1.7-h9tf58hn.mjs +0 -1
  478. package/dist/chunks/REPL-1.1.7-93jsr9mr.mjs +0 -1
  479. package/dist/chunks/ResumeConversation-1.1.7-gv6zzztg.mjs +0 -1
  480. package/dist/chunks/SnapshotUpdateDialog-1.1.7-p7e7703c.mjs +0 -1
  481. package/dist/chunks/TeleportProgress-1.1.7-p8bxj585.mjs +0 -1
  482. package/dist/chunks/TeleportRepoMismatchDialog-1.1.7-nz62ycxc.mjs +0 -1
  483. package/dist/chunks/TeleportResumeWrapper-1.1.7-p5pzbd37.mjs +0 -1
  484. package/dist/chunks/TmuxBackend-1.1.7-6wwv8wy2.mjs +0 -9
  485. package/dist/chunks/ToolSearchTool-1.1.7-cdgerv78.mjs +0 -1
  486. package/dist/chunks/TrustDialog-1.1.7-h6jenc4t.mjs +0 -1
  487. package/dist/chunks/activeProvider-1.1.7-3xbperzf.mjs +0 -1
  488. package/dist/chunks/add-dir-1.1.7-e1padvq0.mjs +0 -1
  489. package/dist/chunks/agentTypes-1.1.7-s8xd8r8v.mjs +0 -1
  490. package/dist/chunks/agents-1.1.7-a5ngvagv.mjs +0 -3
  491. package/dist/chunks/agents-1.1.7-c2hzc3gf.mjs +0 -110
  492. package/dist/chunks/api-1.1.7-fkvjxbac.mjs +0 -1
  493. package/dist/chunks/asciicast-1.1.7-9j8vqr1m.mjs +0 -1
  494. package/dist/chunks/assistant-1.1.7-fxfh1k7b.mjs +0 -1
  495. package/dist/chunks/auth-1.1.7-nrjefdt5.mjs +0 -1
  496. package/dist/chunks/auth-1.1.7-z48g7tsc.mjs +0 -1
  497. package/dist/chunks/autoMode-1.1.7-13583dda.mjs +0 -48
  498. package/dist/chunks/autoUpdater-1.1.7-s5qp83zy.mjs +0 -1
  499. package/dist/chunks/backgroundHousekeeping-1.1.7-4nc59aph.mjs +0 -1
  500. package/dist/chunks/branch-1.1.7-ar2367j0.mjs +0 -4
  501. package/dist/chunks/bridge-1.1.7-qk1825qz.mjs +0 -2
  502. package/dist/chunks/bridgeConfig-1.1.7-dfwv9704.mjs +0 -1
  503. package/dist/chunks/bridgeEnabled-1.1.7-ergk9b5s.mjs +0 -1
  504. package/dist/chunks/bridgeMain-1.1.7-re0t745d.mjs +0 -88
  505. package/dist/chunks/bridgePointer-1.1.7-pcfmgmj9.mjs +0 -1
  506. package/dist/chunks/btw-1.1.7-g8g55nje.mjs +0 -1
  507. package/dist/chunks/buddy-1.1.7-m8tx1e1a.mjs +0 -3
  508. package/dist/chunks/cacache-1.1.7-5t3nj244.mjs +0 -1
  509. package/dist/chunks/cache-probe-1.1.7-wk6sr8ma.mjs +0 -21
  510. package/dist/chunks/cacheStats-1.1.7-3wd7pt08.mjs +0 -4
  511. package/dist/chunks/caches-1.1.7-rwrwkfmc.mjs +0 -1
  512. package/dist/chunks/claudeDesktop-1.1.7-3pkhb5wd.mjs +0 -1
  513. package/dist/chunks/claudemd-1.1.7-zw1vywa0.mjs +0 -1
  514. package/dist/chunks/clear-1.1.7-xme70phr.mjs +0 -1
  515. package/dist/chunks/clearTerminal-1.1.7-cjgtkhn0.mjs +0 -1
  516. package/dist/chunks/cli-1.1.7-00r59ren.mjs +0 -2
  517. package/dist/chunks/cli-1.1.7-00xwy80x.mjs +0 -2
  518. package/dist/chunks/cli-1.1.7-07qdmr1e.mjs +0 -15
  519. package/dist/chunks/cli-1.1.7-0dn48gxn.mjs +0 -2
  520. package/dist/chunks/cli-1.1.7-0ptzaz8z.mjs +0 -15
  521. package/dist/chunks/cli-1.1.7-0sbdqb04.mjs +0 -45
  522. package/dist/chunks/cli-1.1.7-0yczgbvg.mjs +0 -133
  523. package/dist/chunks/cli-1.1.7-17ye23zw.mjs +0 -2
  524. package/dist/chunks/cli-1.1.7-1fyag9qs.mjs +0 -18
  525. package/dist/chunks/cli-1.1.7-1pt67y2k.mjs +0 -2
  526. package/dist/chunks/cli-1.1.7-1sjzdsvt.mjs +0 -2
  527. package/dist/chunks/cli-1.1.7-1wwtwdd5.mjs +0 -2
  528. package/dist/chunks/cli-1.1.7-237ea9et.mjs +0 -2
  529. package/dist/chunks/cli-1.1.7-247qq37c.mjs +0 -2
  530. package/dist/chunks/cli-1.1.7-29jtrc18.mjs +0 -6
  531. package/dist/chunks/cli-1.1.7-2j5f9qsg.mjs +0 -2
  532. package/dist/chunks/cli-1.1.7-370fzee5.mjs +0 -202
  533. package/dist/chunks/cli-1.1.7-37vw5n8s.mjs +0 -4
  534. package/dist/chunks/cli-1.1.7-3c1fz3tj.mjs +0 -3
  535. package/dist/chunks/cli-1.1.7-3c59vjgs.mjs +0 -3
  536. package/dist/chunks/cli-1.1.7-3s5h7xwp.mjs +0 -2
  537. package/dist/chunks/cli-1.1.7-3yd94afn.mjs +0 -2
  538. package/dist/chunks/cli-1.1.7-45h3r40v.mjs +0 -2
  539. package/dist/chunks/cli-1.1.7-4jb3802k.mjs +0 -6
  540. package/dist/chunks/cli-1.1.7-4vn54hra.mjs +0 -2
  541. package/dist/chunks/cli-1.1.7-4w65nb7a.mjs +0 -2
  542. package/dist/chunks/cli-1.1.7-53ptk5md.mjs +0 -2
  543. package/dist/chunks/cli-1.1.7-55sdnwxx.mjs +0 -2
  544. package/dist/chunks/cli-1.1.7-5a7dx8xv.mjs +0 -67
  545. package/dist/chunks/cli-1.1.7-5afzqeez.mjs +0 -2
  546. package/dist/chunks/cli-1.1.7-5hy6nrtz.mjs +0 -2
  547. package/dist/chunks/cli-1.1.7-5jtj2ksb.mjs +0 -2
  548. package/dist/chunks/cli-1.1.7-5p7dfxc8.mjs +0 -3
  549. package/dist/chunks/cli-1.1.7-5xg15za9.mjs +0 -2
  550. package/dist/chunks/cli-1.1.7-6327xnsa.mjs +0 -16
  551. package/dist/chunks/cli-1.1.7-6393tfa4.mjs +0 -2
  552. package/dist/chunks/cli-1.1.7-6k9j331s.mjs +0 -2
  553. package/dist/chunks/cli-1.1.7-709xp7h3.mjs +0 -2
  554. package/dist/chunks/cli-1.1.7-70dq06tj.mjs +0 -2
  555. package/dist/chunks/cli-1.1.7-72scj2da.mjs +0 -2
  556. package/dist/chunks/cli-1.1.7-77fv8msz.mjs +0 -4
  557. package/dist/chunks/cli-1.1.7-78k36t0w.mjs +0 -2
  558. package/dist/chunks/cli-1.1.7-7m4h7kpa.mjs +0 -4
  559. package/dist/chunks/cli-1.1.7-7ykpgzpd.mjs +0 -2
  560. package/dist/chunks/cli-1.1.7-7zf1vqxk.mjs +0 -2
  561. package/dist/chunks/cli-1.1.7-80x28qvs.mjs +0 -50
  562. package/dist/chunks/cli-1.1.7-89xnqhx8.mjs +0 -2
  563. package/dist/chunks/cli-1.1.7-8e3qerv0.mjs +0 -59
  564. package/dist/chunks/cli-1.1.7-8f779vem.mjs +0 -2
  565. package/dist/chunks/cli-1.1.7-8hfhdq9h.mjs +0 -2
  566. package/dist/chunks/cli-1.1.7-8ht7sy5z.mjs +0 -2
  567. package/dist/chunks/cli-1.1.7-8pdn9bvd.mjs +0 -2
  568. package/dist/chunks/cli-1.1.7-8wevpaq4.mjs +0 -25
  569. package/dist/chunks/cli-1.1.7-8yk0ktps.mjs +0 -26
  570. package/dist/chunks/cli-1.1.7-903dbpsw.mjs +0 -2
  571. package/dist/chunks/cli-1.1.7-91mbg6d2.mjs +0 -2
  572. package/dist/chunks/cli-1.1.7-9cr42mkf.mjs +0 -2
  573. package/dist/chunks/cli-1.1.7-9twa1dgn.mjs +0 -2
  574. package/dist/chunks/cli-1.1.7-9wapsqqm.mjs +0 -2
  575. package/dist/chunks/cli-1.1.7-a16gq5s9.mjs +0 -2
  576. package/dist/chunks/cli-1.1.7-a1sffgeq.mjs +0 -2
  577. package/dist/chunks/cli-1.1.7-a34vkb0g.mjs +0 -2
  578. package/dist/chunks/cli-1.1.7-a59w1d0k.mjs +0 -3
  579. package/dist/chunks/cli-1.1.7-a5zb1mk0.mjs +0 -4
  580. package/dist/chunks/cli-1.1.7-aa0r6myz.mjs +0 -3
  581. package/dist/chunks/cli-1.1.7-ac6ve6ks.mjs +0 -2
  582. package/dist/chunks/cli-1.1.7-ah2nkq02.mjs +0 -2
  583. package/dist/chunks/cli-1.1.7-aq4f719n.mjs +0 -2
  584. package/dist/chunks/cli-1.1.7-asb7164v.mjs +0 -18
  585. package/dist/chunks/cli-1.1.7-asnfms2j.mjs +0 -15
  586. package/dist/chunks/cli-1.1.7-avggtwyk.mjs +0 -2
  587. package/dist/chunks/cli-1.1.7-avhh3ykn.mjs +0 -2
  588. package/dist/chunks/cli-1.1.7-avqm93yx.mjs +0 -2
  589. package/dist/chunks/cli-1.1.7-avsxepp6.mjs +0 -2
  590. package/dist/chunks/cli-1.1.7-az0v3sy4.mjs +0 -39
  591. package/dist/chunks/cli-1.1.7-b9n3ev12.mjs +0 -2
  592. package/dist/chunks/cli-1.1.7-be3bepsr.mjs +0 -2
  593. package/dist/chunks/cli-1.1.7-bgyeh9f1.mjs +0 -5
  594. package/dist/chunks/cli-1.1.7-bmf232xq.mjs +0 -2
  595. package/dist/chunks/cli-1.1.7-bn38catj.mjs +0 -2
  596. package/dist/chunks/cli-1.1.7-bsg2jwaz.mjs +0 -2
  597. package/dist/chunks/cli-1.1.7-c1q5d5ds.mjs +0 -2
  598. package/dist/chunks/cli-1.1.7-c32f3enb.mjs +0 -2
  599. package/dist/chunks/cli-1.1.7-ca9b0k53.mjs +0 -3
  600. package/dist/chunks/cli-1.1.7-cfchvspf.mjs +0 -12
  601. package/dist/chunks/cli-1.1.7-cgcj8thk.mjs +0 -2
  602. package/dist/chunks/cli-1.1.7-cs5v2rwy.mjs +0 -2
  603. package/dist/chunks/cli-1.1.7-czrff7za.mjs +0 -3
  604. package/dist/chunks/cli-1.1.7-d44wcebs.mjs +0 -2
  605. package/dist/chunks/cli-1.1.7-dax2hwtd.mjs +0 -2
  606. package/dist/chunks/cli-1.1.7-dc8xhdv8.mjs +0 -4
  607. package/dist/chunks/cli-1.1.7-dnhbz3wm.mjs +0 -2
  608. package/dist/chunks/cli-1.1.7-dy1j64nd.mjs +0 -2
  609. package/dist/chunks/cli-1.1.7-e30xkgx8.mjs +0 -2
  610. package/dist/chunks/cli-1.1.7-e3ks80fz.mjs +0 -6
  611. package/dist/chunks/cli-1.1.7-e8rpt6jw.mjs +0 -2
  612. package/dist/chunks/cli-1.1.7-e9p7j4yw.mjs +0 -2
  613. package/dist/chunks/cli-1.1.7-esfdh0fz.mjs +0 -4
  614. package/dist/chunks/cli-1.1.7-eskazk5w.mjs +0 -4
  615. package/dist/chunks/cli-1.1.7-f0hcstcc.mjs +0 -2
  616. package/dist/chunks/cli-1.1.7-f47dycnc.mjs +0 -2
  617. package/dist/chunks/cli-1.1.7-fdmx4e0y.mjs +0 -2
  618. package/dist/chunks/cli-1.1.7-fh4kn809.mjs +0 -2
  619. package/dist/chunks/cli-1.1.7-fhatjz8y.mjs +0 -2
  620. package/dist/chunks/cli-1.1.7-fq766b4m.mjs +0 -2
  621. package/dist/chunks/cli-1.1.7-ftcsqcsq.mjs +0 -2
  622. package/dist/chunks/cli-1.1.7-ftxzdrxy.mjs +0 -2
  623. package/dist/chunks/cli-1.1.7-fzz66s7r.mjs +0 -2
  624. package/dist/chunks/cli-1.1.7-g69xsadf.mjs +0 -5652
  625. package/dist/chunks/cli-1.1.7-g84cjr3b.mjs +0 -2
  626. package/dist/chunks/cli-1.1.7-g9j8sjq1.mjs +0 -2
  627. package/dist/chunks/cli-1.1.7-gejatr5b.mjs +0 -3
  628. package/dist/chunks/cli-1.1.7-gjhe5v32.mjs +0 -3
  629. package/dist/chunks/cli-1.1.7-gm3vnavd.mjs +0 -4
  630. package/dist/chunks/cli-1.1.7-gsqhqm2p.mjs +0 -2
  631. package/dist/chunks/cli-1.1.7-gzqe35hp.mjs +0 -2
  632. package/dist/chunks/cli-1.1.7-h3m2ycf6.mjs +0 -2
  633. package/dist/chunks/cli-1.1.7-h6bad0y5.mjs +0 -2
  634. package/dist/chunks/cli-1.1.7-h8bj6vzr.mjs +0 -2
  635. package/dist/chunks/cli-1.1.7-hht84q9b.mjs +0 -2
  636. package/dist/chunks/cli-1.1.7-j5s1nhz9.mjs +0 -2
  637. package/dist/chunks/cli-1.1.7-k0cy37cc.mjs +0 -9
  638. package/dist/chunks/cli-1.1.7-k69a0vax.mjs +0 -2
  639. package/dist/chunks/cli-1.1.7-kbdranyx.mjs +0 -2
  640. package/dist/chunks/cli-1.1.7-m09c3zsc.mjs +0 -1
  641. package/dist/chunks/cli-1.1.7-m20ny6y6.mjs +0 -2
  642. package/dist/chunks/cli-1.1.7-m2jc7mts.mjs +0 -2
  643. package/dist/chunks/cli-1.1.7-m2rq9nq2.mjs +0 -2
  644. package/dist/chunks/cli-1.1.7-m4c2snne.mjs +0 -42
  645. package/dist/chunks/cli-1.1.7-m554nr3m.mjs +0 -2
  646. package/dist/chunks/cli-1.1.7-m7cx26gk.mjs +0 -2
  647. package/dist/chunks/cli-1.1.7-m7nyg4k2.mjs +0 -2
  648. package/dist/chunks/cli-1.1.7-m8kaqtm6.mjs +0 -2
  649. package/dist/chunks/cli-1.1.7-mxwxnfss.mjs +0 -24
  650. package/dist/chunks/cli-1.1.7-n642xdmn.mjs +0 -2
  651. package/dist/chunks/cli-1.1.7-n7ne87b1.mjs +0 -8
  652. package/dist/chunks/cli-1.1.7-natjc2r8.mjs +0 -2
  653. package/dist/chunks/cli-1.1.7-nay1q35s.mjs +0 -2
  654. package/dist/chunks/cli-1.1.7-ncn26e96.mjs +0 -2
  655. package/dist/chunks/cli-1.1.7-nctcfgp0.mjs +0 -2
  656. package/dist/chunks/cli-1.1.7-ndrf1r31.mjs +0 -2
  657. package/dist/chunks/cli-1.1.7-nywqmry6.mjs +0 -2
  658. package/dist/chunks/cli-1.1.7-p3a6cf8x.mjs +0 -2
  659. package/dist/chunks/cli-1.1.7-pcg3fv2k.mjs +0 -2
  660. package/dist/chunks/cli-1.1.7-phntwycy.mjs +0 -21
  661. package/dist/chunks/cli-1.1.7-pm52s8y4.mjs +0 -2
  662. package/dist/chunks/cli-1.1.7-q5cm825a.mjs +0 -6
  663. package/dist/chunks/cli-1.1.7-q711j0bm.mjs +0 -2
  664. package/dist/chunks/cli-1.1.7-qgh6hg9x.mjs +0 -2
  665. package/dist/chunks/cli-1.1.7-qgj0pn3h.mjs +0 -2
  666. package/dist/chunks/cli-1.1.7-qrkqafcw.mjs +0 -2
  667. package/dist/chunks/cli-1.1.7-qztj9jjs.mjs +0 -17
  668. package/dist/chunks/cli-1.1.7-r4j6e9vx.mjs +0 -2
  669. package/dist/chunks/cli-1.1.7-r8e45107.mjs +0 -3
  670. package/dist/chunks/cli-1.1.7-r9bf07me.mjs +0 -9
  671. package/dist/chunks/cli-1.1.7-rb629pva.mjs +0 -2
  672. package/dist/chunks/cli-1.1.7-rj70j99r.mjs +0 -4
  673. package/dist/chunks/cli-1.1.7-rtcac49z.mjs +0 -2
  674. package/dist/chunks/cli-1.1.7-sf4he5ds.mjs +0 -17
  675. package/dist/chunks/cli-1.1.7-sj06qxbn.mjs +0 -2
  676. package/dist/chunks/cli-1.1.7-sqb51kyw.mjs +0 -34
  677. package/dist/chunks/cli-1.1.7-svmaept7.mjs +0 -2
  678. package/dist/chunks/cli-1.1.7-svpmye16.mjs +0 -2
  679. package/dist/chunks/cli-1.1.7-sy3nh37g.mjs +0 -2
  680. package/dist/chunks/cli-1.1.7-t3vmh9fp.mjs +0 -12
  681. package/dist/chunks/cli-1.1.7-t4band33.mjs +0 -133
  682. package/dist/chunks/cli-1.1.7-t7869eaw.mjs +0 -2
  683. package/dist/chunks/cli-1.1.7-t9k89a7f.mjs +0 -12
  684. package/dist/chunks/cli-1.1.7-tdw09vfy.mjs +0 -6
  685. package/dist/chunks/cli-1.1.7-tebqyjfs.mjs +0 -2
  686. package/dist/chunks/cli-1.1.7-tj4a73gm.mjs +0 -2
  687. package/dist/chunks/cli-1.1.7-tpjej6bk.mjs +0 -2
  688. package/dist/chunks/cli-1.1.7-ttgr0wt8.mjs +0 -5
  689. package/dist/chunks/cli-1.1.7-v90pc090.mjs +0 -2
  690. package/dist/chunks/cli-1.1.7-v9fzr2wc.mjs +0 -25
  691. package/dist/chunks/cli-1.1.7-vbkerts0.mjs +0 -58
  692. package/dist/chunks/cli-1.1.7-veert5hx.mjs +0 -7
  693. package/dist/chunks/cli-1.1.7-vegzg3sv.mjs +0 -2
  694. package/dist/chunks/cli-1.1.7-vgnyrdsx.mjs +0 -2
  695. package/dist/chunks/cli-1.1.7-vhahreqp.mjs +0 -2
  696. package/dist/chunks/cli-1.1.7-vyxrgqgm.mjs +0 -2
  697. package/dist/chunks/cli-1.1.7-w7qe5saq.mjs +0 -24
  698. package/dist/chunks/cli-1.1.7-wczms3t6.mjs +0 -3
  699. package/dist/chunks/cli-1.1.7-wfpdnn8a.mjs +0 -2
  700. package/dist/chunks/cli-1.1.7-wnveck2c.mjs +0 -2
  701. package/dist/chunks/cli-1.1.7-wtb39gjs.mjs +0 -2
  702. package/dist/chunks/cli-1.1.7-wv4k34jv.mjs +0 -20
  703. package/dist/chunks/cli-1.1.7-wxge1tea.mjs +0 -24
  704. package/dist/chunks/cli-1.1.7-x1mh9vnk.mjs +0 -2
  705. package/dist/chunks/cli-1.1.7-x20kjfvg.mjs +0 -6
  706. package/dist/chunks/cli-1.1.7-x3bpzsev.mjs +0 -24
  707. package/dist/chunks/cli-1.1.7-x5gz0q3n.mjs +0 -2
  708. package/dist/chunks/cli-1.1.7-xbk0ex0w.mjs +0 -2
  709. package/dist/chunks/cli-1.1.7-xr9v14yb.mjs +0 -2
  710. package/dist/chunks/cli-1.1.7-xtcz12t9.mjs +0 -3
  711. package/dist/chunks/cli-1.1.7-xv2n043b.mjs +0 -4
  712. package/dist/chunks/cli-1.1.7-xzys836y.mjs +0 -2
  713. package/dist/chunks/cli-1.1.7-yatnaq1h.mjs +0 -2
  714. package/dist/chunks/cli-1.1.7-ybe5t1at.mjs +0 -2
  715. package/dist/chunks/cli-1.1.7-yejce50d.mjs +0 -2
  716. package/dist/chunks/cli-1.1.7-yf8r2p8t.mjs +0 -2
  717. package/dist/chunks/cli-1.1.7-yvfbn06j.mjs +0 -2
  718. package/dist/chunks/cli-1.1.7-z10gdn10.mjs +0 -2
  719. package/dist/chunks/cli-1.1.7-z7aapeb8.mjs +0 -2
  720. package/dist/chunks/cli-1.1.7-zaz1vdc9.mjs +0 -2
  721. package/dist/chunks/cli-1.1.7-zcxfemky.mjs +0 -2
  722. package/dist/chunks/cli-1.1.7-zk6vqjve.mjs +0 -4
  723. package/dist/chunks/cli-1.1.7-zpr5n1k0.mjs +0 -2
  724. package/dist/chunks/cli-1.1.7-zxr9h2qd.mjs +0 -2
  725. package/dist/chunks/client-1.1.7-zsnn57xt.mjs +0 -1
  726. package/dist/chunks/color-1.1.7-71p1dnta.mjs +0 -1
  727. package/dist/chunks/compact-1.1.7-e6arr03s.mjs +0 -3
  728. package/dist/chunks/config-1.1.7-g3d8g7g2.mjs +0 -1
  729. package/dist/chunks/config-1.1.7-nejamxf1.mjs +0 -1
  730. package/dist/chunks/constants-1.1.7-454c76bh.mjs +0 -1
  731. package/dist/chunks/context-1.1.7-p0442d4z.mjs +0 -1
  732. package/dist/chunks/context-noninteractive-1.1.7-v71njac2.mjs +0 -1
  733. package/dist/chunks/conversation-1.1.7-8ywg16g5.mjs +0 -1
  734. package/dist/chunks/copilotHeaders-1.1.7-qw0bnew9.mjs +0 -1
  735. package/dist/chunks/copy-1.1.7-dfdpmxck.mjs +0 -9
  736. package/dist/chunks/cost-1.1.7-2r3rhrq2.mjs +0 -1
  737. package/dist/chunks/createSSHSession-1.1.7-abvj6vqh.mjs +0 -1
  738. package/dist/chunks/createSession-1.1.7-a0t9ns7c.mjs +0 -1
  739. package/dist/chunks/debug-1.1.7-r660pqwp.mjs +0 -1
  740. package/dist/chunks/defaultActionDeps-1.1.7-79kexp4a.mjs +0 -1446
  741. package/dist/chunks/desktop-1.1.7-sy4n39yq.mjs +0 -1
  742. package/dist/chunks/detectRepository-1.1.7-p52dxbn9.mjs +0 -1
  743. package/dist/chunks/detection-1.1.7-8e2z2aph.mjs +0 -1
  744. package/dist/chunks/diff-1.1.7-yt5nf8gj.mjs +0 -1
  745. package/dist/chunks/doctor-1.1.7-emta4vaz.mjs +0 -1
  746. package/dist/chunks/doctorDiagnostic-1.1.7-4tam9mf5.mjs +0 -1
  747. package/dist/chunks/earlyInput-1.1.7-93ms6qsc.mjs +0 -1
  748. package/dist/chunks/effort-1.1.7-1fp3rh9f.mjs +0 -13
  749. package/dist/chunks/engine-1.1.7-yngz7phq.mjs +0 -1
  750. package/dist/chunks/envLessBridgeConfig-1.1.7-j2h0sf63.mjs +0 -1
  751. package/dist/chunks/envUtils-1.1.7-9y71p8yv.mjs +0 -1
  752. package/dist/chunks/environmentSelection-1.1.7-pd11v0zx.mjs +0 -1
  753. package/dist/chunks/environments-1.1.7-ck5qxyqy.mjs +0 -1
  754. package/dist/chunks/errors-1.1.7-emnk1qwy.mjs +0 -1
  755. package/dist/chunks/exampleCommands-1.1.7-2ksd03w4.mjs +0 -1
  756. package/dist/chunks/execFileNoThrow-1.1.7-jqbw02pg.mjs +0 -1
  757. package/dist/chunks/exit-1.1.7-wpfmrwdn.mjs +0 -1
  758. package/dist/chunks/explorer-1.1.7-b8tcxb5d.mjs +0 -1
  759. package/dist/chunks/export-1.1.7-zz79hhsz.mjs +0 -2
  760. package/dist/chunks/extra-usage-1.1.7-dt936zfb.mjs +0 -1
  761. package/dist/chunks/extra-usage-noninteractive-1.1.7-shwjbctc.mjs +0 -1
  762. package/dist/chunks/fast-1.1.7-w7b1aqwk.mjs +0 -1
  763. package/dist/chunks/feedback-1.1.7-n9j2nr98.mjs +0 -14
  764. package/dist/chunks/firstPartyEventLogger-1.1.7-c0a02n4j.mjs +0 -1
  765. package/dist/chunks/git-1.1.7-9z0c0q3r.mjs +0 -1
  766. package/dist/chunks/githubModelsCredentials-1.1.7-akhn8qhf.mjs +0 -1
  767. package/dist/chunks/goal-1.1.7-aw2580k9.mjs +0 -4
  768. package/dist/chunks/grove-1.1.7-kjhhr548.mjs +0 -1
  769. package/dist/chunks/growthbook-1.1.7-w746wv7x.mjs +0 -1
  770. package/dist/chunks/headless-1.1.7-y4j0h9z8.mjs +0 -2
  771. package/dist/chunks/heapdump-1.1.7-rct22hze.mjs +0 -6
  772. package/dist/chunks/help-1.1.7-y0c2ms52.mjs +0 -1
  773. package/dist/chunks/hookChains-1.1.7-xzn9ad36.mjs +0 -3
  774. package/dist/chunks/hooks-1.1.7-emcz8q8s.mjs +0 -79
  775. package/dist/chunks/hooks-1.1.7-jp0h65wb.mjs +0 -1
  776. package/dist/chunks/ide-1.1.7-x8w21qd6.mjs +0 -3
  777. package/dist/chunks/image-processor-napi-1.1.7-wy6ecw5p.mjs +0 -1
  778. package/dist/chunks/inboundAttachments-1.1.7-nw4e83c9.mjs +0 -1
  779. package/dist/chunks/index-1.1.7-189vzkzr.mjs +0 -1
  780. package/dist/chunks/index-1.1.7-23d4va8a.mjs +0 -2
  781. package/dist/chunks/index-1.1.7-36msf70m.mjs +0 -1
  782. package/dist/chunks/index-1.1.7-6nnrrxjs.mjs +0 -9
  783. package/dist/chunks/index-1.1.7-78kw401a.mjs +0 -1
  784. package/dist/chunks/index-1.1.7-9ag3vjcz.mjs +0 -1
  785. package/dist/chunks/index-1.1.7-abraka41.mjs +0 -1
  786. package/dist/chunks/index-1.1.7-apb8ray2.mjs +0 -1
  787. package/dist/chunks/index-1.1.7-b2e78mb7.mjs +0 -1
  788. package/dist/chunks/index-1.1.7-cxtqz2cx.mjs +0 -1
  789. package/dist/chunks/index-1.1.7-ep7qax1n.mjs +0 -5
  790. package/dist/chunks/index-1.1.7-fahb6z70.mjs +0 -1
  791. package/dist/chunks/index-1.1.7-g7me7k35.mjs +0 -1
  792. package/dist/chunks/index-1.1.7-gsdssjta.mjs +0 -2
  793. package/dist/chunks/index-1.1.7-n6c5mp02.mjs +0 -1
  794. package/dist/chunks/index-1.1.7-ngf7447d.mjs +0 -9
  795. package/dist/chunks/index-1.1.7-pbdmsdx4.mjs +0 -1
  796. package/dist/chunks/index-1.1.7-q3560epc.mjs +0 -23
  797. package/dist/chunks/index-1.1.7-ta1t48pj.mjs +0 -30
  798. package/dist/chunks/index-1.1.7-vrvbq3pq.mjs +0 -1
  799. package/dist/chunks/index-1.1.7-w3k1r4fj.mjs +0 -1
  800. package/dist/chunks/index-1.1.7-w40fc6hp.mjs +0 -1
  801. package/dist/chunks/index-1.1.7-wrysc35z.mjs +0 -1
  802. package/dist/chunks/init-1.1.7-35gnmfwk.mjs +0 -1
  803. package/dist/chunks/initReplBridge-1.1.7-tckq0ph3.mjs +0 -1
  804. package/dist/chunks/ink-1.1.7-00k9mpt1.mjs +0 -1
  805. package/dist/chunks/insights-1.1.7-0733jret.mjs +0 -870
  806. package/dist/chunks/install-1.1.7-hm4q4vg3.mjs +0 -1
  807. package/dist/chunks/install-github-app-1.1.7-td4vg9cd.mjs +0 -149
  808. package/dist/chunks/install-slack-app-1.1.7-wcg8aqqz.mjs +0 -1
  809. package/dist/chunks/instrumentation-1.1.7-c07a380v.mjs +0 -1
  810. package/dist/chunks/interactiveHelpers-1.1.7-46866tc9.mjs +0 -1
  811. package/dist/chunks/keybindings-1.1.7-8bb3ehzd.mjs +0 -2
  812. package/dist/chunks/knowledge-1.1.7-tvqfhagb.mjs +0 -2
  813. package/dist/chunks/latestVersionCache-1.1.7-21sf5wht.mjs +0 -1
  814. package/dist/chunks/loadAgentsDir-1.1.7-0fsxdwtb.mjs +0 -1
  815. package/dist/chunks/loadPluginHooks-1.1.7-dme9wkc4.mjs +0 -1
  816. package/dist/chunks/loadPluginHooks-1.1.7-tn0by9qv.mjs +0 -1
  817. package/dist/chunks/log-1.1.7-3ry9dq4f.mjs +0 -1
  818. package/dist/chunks/main-1.1.7-z35y86b1.mjs +0 -1
  819. package/dist/chunks/managedEnv-1.1.7-hkhdt6m1.mjs +0 -1
  820. package/dist/chunks/mcp-1.1.7-fhw7q8d8.mjs +0 -4
  821. package/dist/chunks/mcp-1.1.7-h76xwxj7.mjs +0 -1
  822. package/dist/chunks/mcp-1.1.7-qxaxb5n8.mjs +0 -17
  823. package/dist/chunks/mcpb-1.1.7-fh84mmcn.mjs +0 -1
  824. package/dist/chunks/memory-1.1.7-rja0b4e3.mjs +0 -72
  825. package/dist/chunks/model-1.1.7-8h1q1vva.mjs +0 -1
  826. package/dist/chunks/model-1.1.7-qn8a1vgp.mjs +0 -2
  827. package/dist/chunks/node-1.1.7-br2cm23q.mjs +0 -12
  828. package/dist/chunks/oauth-1.1.7-xprf6gf8.mjs +0 -1
  829. package/dist/chunks/openaiShim-1.1.7-xpv4sdj1.mjs +0 -14
  830. package/dist/chunks/output-style-1.1.7-gwp6rb3c.mjs +0 -1
  831. package/dist/chunks/package-L37ZVTF4-1.1.7-tv37rpat.mjs +0 -1
  832. package/dist/chunks/parseConnectUrl-1.1.7-hxb18rh0.mjs +0 -1
  833. package/dist/chunks/parser-1.1.7-gxryvbxk.mjs +0 -1
  834. package/dist/chunks/passes-1.1.7-pgn5svgj.mjs +0 -1
  835. package/dist/chunks/permissions-1.1.7-hgf49z9d.mjs +0 -3
  836. package/dist/chunks/permissions-1.1.7-vwc3xcnn.mjs +0 -1
  837. package/dist/chunks/plan-1.1.7-5pd1ezzt.mjs +0 -1
  838. package/dist/chunks/plist-1.1.7-bgk5tgcz.mjs +0 -1
  839. package/dist/chunks/plugin-1.1.7-b2da306j.mjs +0 -29
  840. package/dist/chunks/pluginStartupCheck-1.1.7-75pwt0x6.mjs +0 -1
  841. package/dist/chunks/plugins-1.1.7-wgq2tns5.mjs +0 -9
  842. package/dist/chunks/preActionHook-1.1.7-9jppavfm.mjs +0 -2
  843. package/dist/chunks/print-1.1.7-hcpp1psj.mjs +0 -57
  844. package/dist/chunks/privacy-settings-1.1.7-0rhg1990.mjs +0 -1
  845. package/dist/chunks/process-1.1.7-sz6mk2ax.mjs +0 -1
  846. package/dist/chunks/processBashCommand-1.1.7-h988ta18.mjs +0 -1
  847. package/dist/chunks/processSlashCommand-1.1.7-xj9yd54c.mjs +0 -9
  848. package/dist/chunks/prompt-1.1.7-9n1828tb.mjs +0 -1
  849. package/dist/chunks/prompt-1.1.7-xbh39c5a.mjs +0 -1
  850. package/dist/chunks/prompts-1.1.7-tm2b4n8b.mjs +0 -1
  851. package/dist/chunks/protocolHandler-1.1.7-x5r0fnay.mjs +0 -13
  852. package/dist/chunks/provider-1.1.7-8nkjfnp7.mjs +0 -2
  853. package/dist/chunks/providerProfiles-1.1.7-3hy3rra6.mjs +0 -1
  854. package/dist/chunks/providerValidation-1.1.7-wpwhgmgj.mjs +0 -6
  855. package/dist/chunks/rate-limit-options-1.1.7-qqwd9f98.mjs +0 -1
  856. package/dist/chunks/registerSubcommands-1.1.7-z933969a.mjs +0 -34
  857. package/dist/chunks/registry-1.1.7-zt717sdd.mjs +0 -1
  858. package/dist/chunks/release-notes-1.1.7-hkyqmgj0.mjs +0 -5
  859. package/dist/chunks/reload-plugins-1.1.7-90wc1rrg.mjs +0 -2
  860. package/dist/chunks/remote-env-1.1.7-gyhmvnmb.mjs +0 -1
  861. package/dist/chunks/remoteBridgeCore-1.1.7-kxpxxqbj.mjs +0 -1
  862. package/dist/chunks/remoteSession-1.1.7-931g1df4.mjs +0 -1
  863. package/dist/chunks/rename-1.1.7-pdcr2fqc.mjs +0 -1
  864. package/dist/chunks/replBridgeHandle-1.1.7-wp87p7xp.mjs +0 -1
  865. package/dist/chunks/replLauncher-1.1.7-7z04w8w8.mjs +0 -1
  866. package/dist/chunks/resume-1.1.7-8p8bahzg.mjs +0 -2
  867. package/dist/chunks/rewind-1.1.7-v2ajm3w0.mjs +0 -1
  868. package/dist/chunks/rootOptions-1.1.7-kj11gm8y.mjs +0 -1
  869. package/dist/chunks/runWorkflowHeadless-1.1.7-7d5db3vq.mjs +0 -10
  870. package/dist/chunks/sandbox-adapter-1.1.7-3waw05qr.mjs +0 -1
  871. package/dist/chunks/sandbox-toggle-1.1.7-zhrme3nq.mjs +0 -1
  872. package/dist/chunks/session-1.1.7-b11ew8hv.mjs +0 -2
  873. package/dist/chunks/sessionDiscovery-1.1.7-3w4gd5vr.mjs +0 -1
  874. package/dist/chunks/sessionFileAccessHooks-1.1.7-f1ktfmjp.mjs +0 -1
  875. package/dist/chunks/sessionStorage-1.1.7-0qj40f5g.mjs +0 -1
  876. package/dist/chunks/settings-1.1.7-ayf1fhp5.mjs +0 -1
  877. package/dist/chunks/setup-1.1.7-r7d17dtz.mjs +0 -5
  878. package/dist/chunks/sinks-1.1.7-agpm7pdt.mjs +0 -1
  879. package/dist/chunks/skills-1.1.7-xj1mgj1w.mjs +0 -1
  880. package/dist/chunks/startupProfiler-1.1.7-vy3ha1nb.mjs +0 -1
  881. package/dist/chunks/startupUpdateCheck-1.1.7-m03evcd7.mjs +0 -1
  882. package/dist/chunks/state-1.1.7-a4z499r3.mjs +0 -1
  883. package/dist/chunks/stats-1.1.7-jxbtehxs.mjs +0 -6
  884. package/dist/chunks/status-1.1.7-j7b4zw5r.mjs +0 -1
  885. package/dist/chunks/stickers-1.1.7-2feaa91e.mjs +0 -1
  886. package/dist/chunks/subprocessEnv-1.1.7-7yjfarpg.mjs +0 -1
  887. package/dist/chunks/tasks-1.1.7-74xbzaa7.mjs +0 -1
  888. package/dist/chunks/teamHelpers-1.1.7-y101nwrn.mjs +0 -1
  889. package/dist/chunks/teammateModeSnapshot-1.1.7-h5693rcg.mjs +0 -1
  890. package/dist/chunks/teleport-1.1.7-yjke98c8.mjs +0 -1
  891. package/dist/chunks/terminalSetup-1.1.7-tq3qth9s.mjs +0 -1
  892. package/dist/chunks/theme-1.1.7-5n3fsvh8.mjs +0 -1
  893. package/dist/chunks/thinkback-1.1.7-8wxb9n8q.mjs +0 -1
  894. package/dist/chunks/thinkback-play-1.1.7-rvzk8rt2.mjs +0 -1
  895. package/dist/chunks/toolPool-1.1.7-s3xnzfs1.mjs +0 -1
  896. package/dist/chunks/toolSearch-1.1.7-b99evmfg.mjs +0 -1
  897. package/dist/chunks/tools-1.1.7-1bs5mhnz.mjs +0 -1
  898. package/dist/chunks/trustedDevice-1.1.7-sk8ewavd.mjs +0 -1
  899. package/dist/chunks/turndown.cjs-1.1.7-tcj3tmer.mjs +0 -69
  900. package/dist/chunks/types-1.1.7-dt3wqg7h.mjs +0 -1
  901. package/dist/chunks/ultrareviewCommand-1.1.7-5d0eav8t.mjs +0 -4
  902. package/dist/chunks/update-1.1.7-cc4860dp.mjs +0 -72
  903. package/dist/chunks/upgrade-1.1.7-xnqh398m.mjs +0 -1
  904. package/dist/chunks/upload-1.1.7-e1023tbm.mjs +0 -7
  905. package/dist/chunks/upstreamproxy-1.1.7-54yd40wz.mjs +0 -14
  906. package/dist/chunks/url-handler-napi-1.1.7-98renjvs.mjs +0 -1
  907. package/dist/chunks/usage-1.1.7-vr50x59b.mjs +0 -1
  908. package/dist/chunks/util-1.1.7-07n3bcf9.mjs +0 -1
  909. package/dist/chunks/utils-1.1.7-2gs8qp9e.mjs +0 -1
  910. package/dist/chunks/vim-1.1.7-1hdr63bv.mjs +0 -1
  911. package/dist/chunks/watchLoop-1.1.7-dqnb4ew5.mjs +0 -13
  912. package/dist/chunks/watcher-1.1.7-0vhx6jqw.mjs +0 -1
  913. package/dist/chunks/wiki-1.1.7-hbab147s.mjs +0 -132
  914. package/dist/chunks/workflows-1.1.7-sqc7rhqm.mjs +0 -1
  915. package/dist/chunks/worktree-1.1.7-bgka176p.mjs +0 -1
  916. package/dist/chunks/worktreeModeEnabled-1.1.7-ddyrd6w3.mjs +0 -1
  917. package/dist/chunks/wrapper-1.1.7-tjp6nrw4.mjs +0 -7
  918. /package/dist/chunks/{cli-1.1.7-hr9a4wzy.mjs → cli-1.1.9-s66nvzb4.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{Lla as B,Mla as H,Vla as V}from"./cli-1.1.7-aq4f719n.mjs";import{kta as Q}from"./cli-1.1.7-a1sffgeq.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
- export{$ as Rh,Y as Sh};
@@ -1,2 +0,0 @@
1
- import{kta as b}from"./cli-1.1.7-a1sffgeq.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
2
- export{j as if,k as jf,q as kf,w as lf,g as mf};
@@ -1,2 +0,0 @@
1
- import{kta as n}from"./cli-1.1.7-a1sffgeq.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 sW,e as tW,i as uW,g as vW,r as wW,u as xW,f as yW,l as zW,t as AW};
@@ -1,3 +0,0 @@
1
- import{A2 as d,B2 as X,F2 as N}from"./cli-1.1.7-h6bad0y5.mjs";import{Rga as B,Vea as U,Yea as G,Zga as y,rea as O,rfa as p,sea as f}from"./cli-1.1.7-370fzee5.mjs";import{Fla as b,xla as x}from"./cli-1.1.7-gm3vnavd.mjs";import{Ila as H,Vla as E}from"./cli-1.1.7-aq4f719n.mjs";import{opa as w,yra as P}from"./cli-1.1.7-avggtwyk.mjs";import{Ksa as S,ssa as k}from"./cli-1.1.7-w7qe5saq.mjs";import{gta as M,kta as R}from"./cli-1.1.7-a1sffgeq.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(O())return;let J=await k.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
- `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{S();P();p();E();b();y();f();N();T=M(d(),1)});
3
- export{zq as nf,Jq as of,C as pf,h as qf,Kq as rf,Qq as sf,g as tf};
@@ -1,2 +0,0 @@
1
- import{Cd as Z,Dd as _,Ed as $,Hd as O}from"./cli-1.1.7-ftxzdrxy.mjs";import{Yd as Y,be as x}from"./cli-1.1.7-7m4h7kpa.mjs";import{YL as U,bM as W,gM as S,hM as X,rM as V}from"./cli-1.1.7-g69xsadf.mjs";import{_ka as R,bla as K}from"./cli-1.1.7-4jb3802k.mjs";import{Fla as C,yla as Q}from"./cli-1.1.7-gm3vnavd.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
- export{F as $a};
@@ -1,16 +0,0 @@
1
- import{t9 as E2,v9 as L8}from"./cli-1.1.7-t3vmh9fp.mjs";import{x9 as C,y9 as J$}from"./cli-1.1.7-x20kjfvg.mjs";import{J9 as r5,L9 as k8}from"./cli-1.1.7-gzqe35hp.mjs";import{A_ as D2,Aba as C1,B_ as U0,Bba as l8,C_ as p4,Cga as D,D_ as r2,Fga as J0,I_ as F0,J_ as F1,Nfa as R4,Oba as B5,Pea as d,Pfa as X4,Rga as b,Sda as O,Sfa as P2,Tfa as q$,U_ as v5,Uda as G2,Uea as t5,Vea as A,X_ as Q$,Xda as Y0,Yda as M,Yea as K,Zga as s0,cfa as J4,dca as wZ,fea as H0,i$ as E5,k$ as Y$,mda as $4,oea as e4,qea as X$,qga as s5,rea as f1,rfa as i,sea as i8,tfa as Q4,tga as w4,ufa as KZ,vda as FZ,y_ as g4,yfa as Y4,z_ as s,zga as a5}from"./cli-1.1.7-370fzee5.mjs";import{$ha as M4,Zha as C0,jia as A1}from"./cli-1.1.7-avhh3ykn.mjs";import{Oja as f5,Pja as o4,Qja as R0,Sja as F8,Tja as K8,Vja as U,Wja as M0}from"./cli-1.1.7-1sjzdsvt.mjs";import{Xja as j,_ja as B2}from"./cli-1.1.7-tj4a73gm.mjs";import{Eka as O5,Ika as $$,Mka as s2,Qka as g8,_ka as z,ala as d0,bla as $0}from"./cli-1.1.7-4jb3802k.mjs";import{Ala as G1,Fla as H1,yla as p}from"./cli-1.1.7-gm3vnavd.mjs";import{Ila as P5,Lla as F,Nla as u,Pla as v2,Sla as r4,Vla as g}from"./cli-1.1.7-aq4f719n.mjs";import{$pa as j2,Moa as Z4,Mpa as z1,Npa as x1,Opa as j1,Ppa as B1,Qoa as S4,Voa as T0,Woa as J2,opa as f,vna as q0,vpa as h1,wna as U1,yoa as i1,yra as Q0}from"./cli-1.1.7-avggtwyk.mjs";import{Xra as y,Yra as t0}from"./cli-1.1.7-kbdranyx.mjs";import{Ksa as q2,ssa as P}from"./cli-1.1.7-w7qe5saq.mjs";import{hta as y0,jta as n2,kta as R,lta as Z0}from"./cli-1.1.7-a1sffgeq.mjs";function u5(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:q,context:V}=$.shift();try{let x=await Z.apply(V,Y);X(x)}catch(x){q(x)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,q)=>{$.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var g5=()=>{};function m5(Z,$){return Z.find((J)=>J.includes($))??null}async function c5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v2(),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 E2(),...J&&{requestHandler:new(await import("./index-1.1.7-189vzkzr.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.7-wrysc35z.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function ZJ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v2(),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 E2(),...J&&{requestHandler:new(await import("./index-1.1.7-189vzkzr.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.7-wrysc35z.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function D8(Z){return Z.startsWith("anthropic.")}function b8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function U8(Z){let $=b8(Z);for(let J of N8)if($.startsWith(`${J}.anthropic.`))return J;return}function JJ(Z,$){let J=U8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(D8(Z))return`${$}.${Z}`;return Z}var p5,$J,N8;var d5=R(()=>{t0();n();g();s0();L8();p5=y(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([c5(),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 b(Y),Y}});$J=y(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([c5(),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 q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch($){return b($),null}});N8=["us","eu","apac","global"]});var _2,I2,y2,T2,S2,M2,h2,A2,C2,a0,r0,o0,v0,f2,u2,g2,B0,YJ,n5;var p2=R(()=>{_2={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"},I2={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"},y2={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"},T2={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"},S2={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"},M2={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"},h2={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"},A2={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"},C2={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"},a0={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"},r0={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"},o0={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"},v0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-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",mistral:"devstral-latest"},f2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-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",mistral:"devstral-latest"},u2={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"},g2={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-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",mistral:"mistral-medium-latest"},B0={haiku35:y2,haiku45:T2,sonnet35:I2,sonnet37:_2,sonnet40:S2,sonnet45:M2,sonnet46:u2,sonnet5:g2,opus40:h2,opus41:A2,opus45:C2,opus46:a0,opus47:r0,opus48:o0,opus5:v0,fable5:f2},YJ=Object.values(B0).map((Z)=>Z.firstParty),n5=Object.fromEntries(Object.entries(B0).map(([Z,$])=>[$.firstParty,Z]))});function l5(){return Object.values(e0)}var e0,m2;var c2=R(()=>{e0={"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(e0).map((Z)=>[Z.id,Z.name]))});var _0={};n2(_0,{prefetchCopilotModelCatalog:()=>i2,normalizeBareCopilotModelId:()=>l2,getEffectiveCopilotModels:()=>I8,getCopilotDisplayName:()=>y8,getCatalogCopilotMaxOutputTokens:()=>M8,getCatalogCopilotContextWindow:()=>S8,getCachedCopilotCatalog:()=>_8,fetchCopilotModelCatalog:()=>e5,copilotModelSupportsAnthropicMessages:()=>T8,_setCopilotCatalogForTesting:()=>h8});function E0(){let Z=D();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function o5(){if(!l)return!1;let Z=E0();return Z!==null&&G0===Z}function O8(){if(i5)return;i5=!0,t5(()=>{let Z=E0();if(Z&&G0!==Z)i2()})}function l2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function v8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function E8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},X=Y.vision===!0||Boolean(Q.vision),q=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:v8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function e5(){let Z=D();if(Z?.transport!=="github_copilot")return null;if(s5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),P8);try{let X=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...r5},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,x=[];for(let G of q.data){let H=E8(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),x.push(H)}return x.length>0?x:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i2(){O8();let Z=E0();if(!Z)return;if(l&&G0!==Z)l=null,G0=null;if(Z2){if(d2===Z)return;Z2.finally(()=>i2());return}d2=Z,Z2=e5().then(($)=>{if($&&E0()===Z)l=$,G0=Z}).finally(()=>{Z2=null,d2=null})}function _8(){return l}function I8(){if(o5()){let Z=l?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return l5()}function $2(Z){if(!o5())return;let $=l2(Z);return l.find((J)=>J.model.id===$)}function y8(Z){let $=l2(Z);return $2($)?.model.name??e0[$]?.name}function T8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function S8(Z){return $2(Z)?.model.limit.context}function M8(Z){return $2(Z)?.model.limit.output}function h8(Z){l=Z,G0=Z?E0():null}var P8=5000,l=null,G0=null,Z2=null,d2=null,i5=!1;var I0=R(()=>{J0();k8();a5();i();$0();c2()});function W(){let Z=D();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 HJ(){return W()==="firstParty"}function A8(Z){let $=D();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(I0(),y0(_0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function RJ(Z){let $=D()?.transport??"anthropic";if(!C8.has($))return!1;if($==="github_copilot"&&A8(Z))return!1;return!0}function wJ(){return W()}function FJ(){let Z=D();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 C8;var t=R(()=>{J0();C8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of $1)J[Q]=B0[Q][$];return J}async function f8(){let Z=Q2("bedrock"),$;try{$=await p5()}catch(Q){return b(Q),Z}if(!$?.length)return Z;let J={};for(let Q of $1){let Y=B0[Q].firstParty;J[Q]=m5($,Y)||Z[Q]}return J}function Z1(Z){let $=Y0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=n5[Q];if(X&&Y)J[X]=Y}return J}function Y2(Z){let $;try{$=Y0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function u8(){if(T0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}J1()}function B(){let Z=T0();if(Z===null)return u8(),Z1(Q2(W()));return Z1(Z)}async function OJ(){if(T0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}await J1()}var $1,J1;var X2=R(()=>{Q0();s0();g5();H0();d5();p2();t();$1=Object.keys(B0);J1=u5(async()=>{if(T0()!==null)return;try{let Z=await f8();J2(Z)}catch(Z){b(Z)}})});function yJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(k())return!1;let $=S0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=K(),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 TJ(){if(Q1!==null)return Q1;if(!k())return!1;let Z=_();if(Z==="max"||Z==="pro")return!0;let J=K().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var Q1=null;var Y1=R(()=>{n();i();g()});function AJ(Z){return Z}function CJ(){return!1}function X1(){return null}function q1(){return!1}var V1=R(()=>{Y1()});async function dJ(){let $=K().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":R0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){b(Y)}}async function w0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){b(J)}}var t2=R(()=>{q2();M0();n();i();s0()});import{mkdirSync as p8,writeFileSync as m8}from"fs";function n8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{p8(V2,{recursive:!0,mode:448}),m8(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 W1(Z,$){try{let Q=s2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!G1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function R1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[Z];if(!q){let x=W1($,J);return Y(x),x}let V=parseInt(q,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let x=s2(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=x.readFileSync(G,{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 ${V}`),Y(H),n8($,H,J),H}catch(x){z(`Failed to read ${J} from file descriptor ${V}: ${p(x)}`,{level:"error"});let G=W1($,J);return Y(G),G}}function W2(){return R1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:c8,label:"OAuth token",getCached:z1,setCached:x1})}function a2(){return R1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:d8,label:"API key",getCached:j1,setCached:B1})}var V2="/home/claude/.claude/remote",c8,d8,oJ;var w1=R(()=>{Q0();$0();g();H1();g8();c8=`${V2}/.oauth_token`,d8=`${V2}/.api_key`,oJ=`${V2}/.session_ingress_token`});async function K1(){if(process.platform==="darwin"){let Z=s();if((await F0(`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 L1=R(()=>{F1();r2()});function Y3(Z){return Z?.name==="CredentialsProviderError"}function D1(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 o2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function N1(){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 b1=R(()=>{$0()});class h{static instance=null;status={isAuthenticating:!1,output:[]};changed=q0();static getInstance(){if(!h.instance)h.instance=new h;return h.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(h.instance)h.instance.changed.clear(),h.instance=null}}var k1=R(()=>{U1()});var x2="claude-code-20250219",P1="interleaved-thinking-2025-05-14",h0="context-1m-2025-08-07",O1="context-management-2025-06-27",v1="structured-outputs-2025-12-15",e2="web-search-2025-03-05",E1="advanced-tool-use-2025-11-20",_1="tool-search-tool-2025-10-19",W3="effort-2025-11-24",z3="task-budgets-2026-03-13",I1="prompt-caching-scope-2026-01-05",x3="extended-cache-ttl-2025-04-11",j3="fast-mode-2026-02-01",y1="redact-thinking-2026-02-12",T1="thinking-token-count-2026-05-13",S1="token-efficient-tools-2026-03-28",B3="afk-mode-2026-01-31",G3="advisor-tool-2026-03-01",Z5,H3;var $5=R(()=>{Z5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),H3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function T(){if(W()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function u1(){if(!T())return!1;return s8()===null}function t8(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 s8(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!T())return"Fast mode is not available";let Z=C0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!C1()&&C0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&j2()&&!h1()){if(!O("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(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=t8(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function T3(){let Z=H2(W0());return"opus"+(Y5()&&!Z?"[1m]":"")}function S3(Z){if(!T())return!1;if(!u1())return!1;if(!g1(Z))return!1;let $=Y0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function g1(Z){if(!T())return!1;let $=Z??f0(),J=S($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function a8(){if(K0.status==="cooldown"&&Date.now()>=K0.resetAt){if(T()&&!J5)z("Fast mode cooldown expired, re-enabling fast mode"),J5=!0,m1.emit();K0={status:"active"}}return K0}function A3(Z,$){if(!T())return;K0={status:"cooldown",resetAt:Z,reason:$},J5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),j("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),p1.emit(Z,$)}function C3(){K0={status:"active"}}function f3(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},G2("userSettings",{fastMode:void 0}),A((Z)=>({...Z,penguinModeOrgEnabled:!1})),Q5.emit(!1)}function r8(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 o8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function g3(Z){let $=r8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),j("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!o8(Z))G2("userSettings",{fastMode:void 0}),A((J)=>({...J,penguinModeOrgEnabled:!1}));c1.emit($)}function e8(){return a8().status==="cooldown"}function p3(Z,$){let J=T()&&u1()&&!!$&&g1(Z);if(J&&e8())return"cooldown";if(J)return"on";return"off"}async function ZZ(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":R0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function c3(){if(!T())return;if(E.status!=="pending")return;E=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function d3(){if(f1())return;if(!T())return;if(A0)return z("Fast mode prefetch in progress, returning in-flight promise"),A0;let Z=X0();if(!(w()?.accessToken&&V0())&&!Z){E=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-M1<$Z){z("Skipping fast mode prefetch, fetched recently");return}M1=J;let Q=async()=>{let X=w(),q=X?.accessToken&&V0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return ZZ(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(P.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await X5(G),X=await Q();else throw V}else throw V}let q=E.status!=="pending"?E.status==="enabled":K().penguinModeOrgEnabled;if(E=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)G2("userSettings",{fastMode:void 0});A((V)=>({...V,penguinModeOrgEnabled:X.enabled})),Q5.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){E=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),j("tengu_org_penguin_mode_fetch_failed",{})}finally{A0=null}}return A0=Y(),A0}var y3="Opus 5",K0,J5=!1,p1,m1,M3,h3,c1,u3,E,Q5,m3,$Z=30000,M1=0,A0=null;var d1=R(()=>{q2();M0();A1();Q0();B2();n();l8();i();$0();g();L0();t();i8();H0();U1();K0={status:"active"},p1=q0(),m1=q0(),M3=p1.subscribe,h3=m1.subscribe;c1=q0(),u3=c1.subscribe;E={status:"pending"},Q5=q0(),m3=Q5.subscribe});function VZ(Z){for(let $ of qZ)if($.pattern.test(Z))return $.cost;return}function V5(Z){if(T()&&Z)return t1;return a}function W5(Z){if(T()&&Z)return t1;return q5[L(v0.firstParty)]??a}function WZ(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 zZ(Z,$){let J=N(Z);if(J===L(a0.firstParty)||J===L(r0.firstParty)||J===L(o0.firstParty)){let Y=$.speed==="fast";return V5(Y)}if(J===L(v0.firstParty))return W5($.speed==="fast");let Q=q5[J];if(!Q){let Y=VZ(Z);if(Y)return Y;return xZ(Z,J),q5[N(f0())]??XZ}return Q}function xZ(Z,$){j("tengu_unknown_model_cost",{model:Z,shortName:$}),i1()}function jZ(Z,$){let J=zZ(Z,$);return WZ(J,$)}function r3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return jZ(Z,J)}function l1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function z5(Z){return`${l1(Z.inputTokens)}/${l1(Z.outputTokens)} per Mtok`}var D0,n1,a,JZ,t1,QZ,YZ,XZ,qZ,q5;var s1=R(()=>{B2();Q0();d1();p2();L0();D0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},n1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},a={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},JZ={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},t1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},QZ={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},YZ={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},XZ=a,qZ=[{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}}];q5={[L(y2.firstParty)]:QZ,[L(T2.firstParty)]:YZ,[L(I2.firstParty)]:D0,[L(_2.firstParty)]:D0,[L(S2.firstParty)]:D0,[L(M2.firstParty)]:D0,[L(u2.firstParty)]:D0,[L(g2.firstParty)]:D0,[L(h2.firstParty)]:n1,[L(A2.firstParty)]:n1,[L(C2.firstParty)]:a,[L(a0.firstParty)]:a,[L(r0.firstParty)]:a,[L(o0.firstParty)]:a,[L(v0.firstParty)]:a,[L(f2.firstParty)]:JZ}});function m(Z){return BZ.includes(Z)}function N0(Z){return GZ.includes(Z)}var BZ,GZ;var x5=R(()=>{BZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];GZ=["sonnet","opus","haiku"]});function HZ(Z,$){if(Z.includes($))return!0;if(m(Z))return S(Z).toLowerCase().includes($);return!1}function a1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function RZ(Z,$){let J=m(Z)?S(Z).toLowerCase():Z;if(a1(J,$))return!0;if(!$.startsWith("claude-")&&a1(J,`claude-${$}`))return!0;return!1}function r1(Z,$){for(let J of $){if(N0(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 o1(Z){let $=M()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=Y2(Z).trim().toLowerCase(),X=J.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!N0(Y)||!r1(Y,X))return!0}for(let q of X)if(N0(q)&&!r1(q,X)&&HZ(Y,q))return!0;if(m(Y)){let q=S(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!N0(q)&&m(q)){if(S(q).toLowerCase()===Y)return!0}for(let q of X)if(!N0(q)&&!m(q)){if(RZ(Y,q))return!0}return!1}var e1=R(()=>{H0();x5();L0();X2()});function R2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function b0(){let Z=D();if(!Z?.model)return;return Q4(Z.model)}function b7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=b0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return q4()}function U7(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function H2(Z){let $=N(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j5(){let Z,$=Z4();if($!==void 0)Z=$;else{let J=M()||{},Q=R2(J.model),X=b0()||Q||void 0,q=J4(),V=R2(q.activeModelForProject);if(V){let x=Y4()?.id,G=q.activeModelForProjectProfileId;Z=G===void 0||G===x?V:X}else Z=X}if(Z&&!o1(Z))return;return Z}function k7(){let Z=j5();if(Z!==void 0&&Z!==null)return S(Z);return V4()}function LZ(){return W0()}function W0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=b0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function u0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=b0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=b0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function P7(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j5()==="opusplan"&&$==="plan"&&!Q)return W0();if(j5()==="haiku"&&$==="plan")return u0();return J}function f0(){let Z=b0();if(W()==="github"){let $=M()||{};return R2($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(w2()||F2()){let $=W0();return $+(Y5()&&!H2($)?"[1m]":"")}return u0()}function V4(){return S(f0())}function L(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(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-5"))return"claude-sonnet-5";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 N(Z){return L(Y2(Z))}function DZ(Z=!1){if(w2()||F2())return`Opus 5 · Most capable for complex work${Z?NZ(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function O7(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return z4(S(Z))}function v7(Z){if(W()!=="firstParty")return"";let $=z5(V5(Z));return` ·${Z?` (${B5})`:""} ${$}`}function NZ(Z){if(W()!=="firstParty")return"";let $=z5(W5(Z));return` ·${Z?` (${B5})`:""} ${$}`}function Y5(){if(z0()||R5()||W()!=="firstParty")return!1;if(k()&&_()===null)return!1;return!0}function E7(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 $4(Z);return z4(Z)}function W4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(m2[Z])return m2[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(I0(),y0(_0));return $(Z)??null}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 B().fable5:return"Fable 5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function z4(Z){let $=W4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function _7(Z){let $=W4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function S(Z){let $=R2(Z);if(!$)return u0();let J=$.toLowerCase(),Q=r(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y)){let X=(q)=>Q&&!H2(q)?q+"[1m]":q;switch(Y){case"opusplan":return X(u0());case"sonnet":return X(u0());case"haiku":return X(q4());case"opus":return X(W0());case"best":return LZ();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return B().fable5;if(W()==="firstParty"&&UZ(Y)&&kZ())return W0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function I7(Z,$){if(r(Z)||!r($))return Z;if(G5(S(Z)))return Z+"[1m]";return Z}function UZ(Z){return bZ.includes(Z)}function kZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function y7(Z){if(Z===null){if(k())return`Default (${DZ()})`;return`Default (${V4()})`}let $=S(Z);return Z===$?$:`${Z} (${$})`}function T7(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=N(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";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-5"))return"Sonnet 5";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 S7(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function M7(Z){let $=N(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var bZ;var L0=R(()=>{Q0();J0();i();X4();n();H5();g();KZ();X2();s1();H0();t();wZ();e1();x5();FZ();c2();bZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function w5(Z){return}async function A7(){}var x4=()=>{};function EZ(Z,$={}){if($.isPro??(vZ.test(Z)||j4.has(Z)))return!1;if(PZ.has(Z))return!0;if(j4.has(Z))return!1;let Q=Z.match(OZ);return Q?Number.parseFloat(Q[1])>5.4:!1}function f7(){return K2.filter((Z)=>EZ(Z.id,{isPro:Z.isPro}))}var K2,PZ,j4,OZ,vZ,B4,G4;var H4=R(()=>{K2=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],PZ=new Set(K2.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),j4=new Set(["gpt-5.5-pro"]),OZ=/^gpt-(\d+\.\d+)/,vZ=/-pro$/;B4=Object.fromEntries(K2.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),G4=Object.fromEntries(K2.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var N4={};n2(N4,{prefetchOpenAICompatibleModels:()=>fZ,getDiscoveredContextWindow:()=>_Z,discoverOpenAICompatibleModelOptions:()=>D4});function _Z(Z){return K4.get(Z)}function IZ(){return(D()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function L4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function yZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function TZ(Z){let $=D()?.apiKey?.trim();if(!$)return{};if(yZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(L4(Z))J["api-key"]=$;return J}function SZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&L4(Z)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function MZ(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 hZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function AZ(Z,$){let J=new Set;for(let Q of Z)try{let Y=await P.get(Q,{headers:$,timeout:F4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let x=q.name?.trim()||V,G=q.context_length??null;if(G&&G>0)K4.set(V,G);let H=G?` · ${hZ(G)}`:"";X.push({value:V,label:x,description:`${V}${H}`})}if(X.length>0)return X.sort((q,V)=>{let x=String(q.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=x.localeCompare(G);return H!==0?H:String(q.value).localeCompare(String(V.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function CZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:F4}),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 D4(){if(W()!=="openai")return[];let Z=IZ(),$=TZ(Z),J=await AZ(SZ(Z),$);if(J.length>0)return J;let Q=MZ(Z);if(Q)return CZ(Q,$);return[]}function fZ(){if(g0)return g0;return g0=(async()=>{if(!w4()?.startsWith("openai:"))return;try{let $=await D4();if($.length>0)R4($)}catch{}finally{g0=null}})(),g0}var F4=5000,K4,g0=null;var b4=R(()=>{q2();J0();a5();$0();t();X4();K4=new Map});function k4(Z,$,J){let Q=D()?.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=U4($,J);if(Y!==void 0)return Y;return U4(Z,J)}function U4(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 P4(Z){try{let{getDiscoveredContextWindow:J}=(b4(),y0(N4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=k4(uZ,pZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(I0(),y0(_0));return J(Z)}catch{return}}function O4(Z){let $=k4(gZ,mZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(I0(),y0(_0));return J(Z)}catch{return}}var uZ,gZ,pZ,mZ;var v4=R(()=>{J0();H4();uZ={"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,...B4,"gpt-5.5-nano":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,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":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},gZ={"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,...G4,"gpt-5.5-nano":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,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":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},pZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),mZ=(()=>{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 E4(){let Z=D()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function z0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function r(Z){if(z0())return!1;return/\[1m\]/i.test(Z)}function G5(Z){if(z0())return!1;let $=N(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function X9(Z,$){if(r(Z))return 1e6;if(E4()){let Q=P4(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."),cZ}let J=w5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>F5&&z0())return F5;return J.max_input_tokens}if(!z0()&&(N(Z).includes("fable-5")||N(Z).includes("sonnet-5")||N(Z).includes("opus-5")))return 1e6;if($?.includes(h0)&&G5(Z))return 1e6;if(lZ(Z))return 1e6;return F5}function lZ(Z){if(z0())return!1;if(r(Z))return!1;if(!N(Z).includes("sonnet-4-6"))return!1;return K().clientDataCache?.coral_reef_sonnet==="true"}function q9(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 V9(Z){let $,J;if(E4()){let X=O4(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=N(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||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 $=dZ,J=nZ;let Y=w5(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var F5=200000,cZ,J9=20000,dZ=32000,nZ=64000,Q9=8000,Y9=64000;var H5=R(()=>{$5();J0();i();g();L0();x4();v4();cZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var iZ,_4;var I4=R(()=>{t0();t();iZ=[{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"}],_4=y((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of iZ){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((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function tZ(Z){let $=[],J=[];for(let Q of Z)if(h4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function P9(Z){if(!Z||Z.length===0)return;if(k()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=tZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${h4.join(", ")}`);return $.length>0?$:void 0}function y4(Z){let $=_4(Z,"interleaved_thinking");if($!==void 0)return $;let J=N(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function sZ(Z){let $=N(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function aZ(Z){let $=N(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function rZ(Z){let $=N(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.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 O9(Z){let $=N(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 v9(){let Z=W();if(Z==="vertex"||Z==="bedrock")return _1;return E1}function T4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function E9(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function _9(Z,$){let J=[...A4(Z)];if($?.isAgenticQuery){if(!J.includes(x2))J.push(x2)}let Q=S4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function C4(){K5.cache?.clear?.(),A4.cache?.clear?.(),oZ.cache?.clear?.()}var h4,K5,A4,oZ;var f4=R(()=>{t0();A1();Q0();$5();M0();n();H5();g();L0();I4();t();H0();h4=[h0];K5=y((Z)=>{let $=[],J=N(Z).includes("haiku"),Q=W(),Y=T4();if(!J)$.push(x2);if(k())$.push(R0);if(r(Z))$.push(h0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&y4(Z))$.push(P1);if(Y&&y4(Z)&&!f()&&Y0().showThinkingSummaries!==!0)$.push(y1),$.push(T1);let X=aZ(Z);if(T4()&&X)$.push(O1);let q=M4("tengu_tool_pear"),V=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||C0("tengu_amber_json_tools",!1));if(Y&&rZ(Z)&&q)$.push(v1);if(Y&&V)$.push(S1);if(Q==="vertex"&&sZ(Z))$.push(e2);if(Q==="foundry")$.push(e2);if(Y)$.push(I1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((x)=>x.trim()).filter(Boolean));return $}),A4=y((Z)=>{let $=K5(Z);if(W()==="bedrock")return $.filter((J)=>!Z5.has(J));return $}),oZ=y((Z)=>{return K5(Z).filter((J)=>Z5.has(J))})});import{execFile as eZ}from"child_process";function u4(Z){return new Promise(($)=>{eZ("security",["find-generic-password","-a",D2(),"-w","-s",Z],{encoding:"utf-8",timeout:Z$},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function M9(){if(process.platform!=="darwin"||L2||u())return;let Z=u4(s(g4)),$=u4(s());L2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)p4(J.stdout);if(!Q.timedOut)L5={stdout:Q.stdout}})}async function h9(){if(L2)await L2}function m4(){return L5}function D5(){L5=null}var Z$=1e4,L5=null,L2=null;var c4=R(()=>{g();r2()});function N5(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((V,x,G)=>{V?.removeEventListener("abort",x),G()},Z,$,q,Q);function q(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)X.unref()})}var d4=()=>{};function f9(){return n4}function l4(){n4.clear()}var n4;var i4=R(()=>{n4=new Map});var d$={};n2(d$,{validateForceLoginOrg:()=>c$,saveOAuthTokensIfNeeded:()=>x8,saveApiKey:()=>A5,removeApiKey:()=>I$,refreshGcpCredentialsIfNeeded:()=>h5,refreshGcpAuth:()=>W8,refreshAwsAuth:()=>q8,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>O$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>v$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>R$,isUsing3PServices:()=>k2,isTeamSubscriber:()=>A$,isTeamPremiumSubscriber:()=>F2,isProSubscriber:()=>R5,isOverageProvisioningAllowed:()=>M$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>H8,isMaxSubscriber:()=>w2,isGcpAuthRefreshFromProjectSettings:()=>M5,isEnterpriseSubscriber:()=>C$,isCustomApiKeyApproved:()=>_$,isConsumerSubscriber:()=>p$,isClaudeAISubscriber:()=>k,isAwsCredentialExportFromProjectSettings:()=>T5,isAwsAuthRefreshFromProjectSettings:()=>I5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>S$,hasProfileScope:()=>V0,hasOpusAccess:()=>h$,hasAnthropicApiKeyAuth:()=>j$,handleOAuth401Error:()=>X5,getSubscriptionType:()=>_,getSubscriptionName:()=>B8,getRateLimitTier:()=>j8,getOtelHeadersFromHelper:()=>u$,getOauthAccountInfo:()=>U2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>S0,getApiKeyHelperElapsedMs:()=>B$,getApiKeyFromConfigOrMacOSKeychain:()=>O2,getApiKeyFromApiKeyHelperCached:()=>U5,getApiKeyFromApiKeyHelper:()=>X8,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>m$,clearOAuthTokenCache:()=>C5,clearGcpCredentialsCache:()=>P$,clearAwsCredentialsCache:()=>D$,clearApiKeyHelperCache:()=>H$,checkGcpCredentialsValid:()=>V8,checkAndRefreshOAuthTokenIfNeeded:()=>l0,calculateApiKeyHelperTTL:()=>Y8});import{exec as J8}from"child_process";import{mkdir as V$,stat as W$}from"fs/promises";import{join as z$}from"path";function b2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k2(),J=(M()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!b2()||X&&!b2())}function S0(){if(u()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!b2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){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(o()&&!b2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(P0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function j$(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=D();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:U5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=r4()?void 0:$;if(j2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=a2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!k2()&&!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&&!k2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&K().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=a2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:U5(),source:"apiKeyHelper"}}let X=O2();if(X)return X;return{key:null,source:"none"}}function o(){if(u())return O("flagSettings")?.apiKeyHelper;return(M()||{}).apiKeyHelper}function Q8(){let Z=o();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function _5(){return(M()||{}).awsAuthRefresh}function I5(){let Z=_5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y5(){return(M()||{}).awsCredentialExport}function T5(){let Z=y5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Y8(){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 x$}function B$(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function X8(Z){if(!o())return null;let $=Y8();if(I){if(Date.now()-I.timestamp<$)return I.value;if(!c)c={promise:t4(Z,!1,k0),startedAt:null};return I.value}if(c)return c.promise;return c={promise:t4(Z,!0,k0),startedAt:Date.now()},c.promise}async function t4(Z,$,J){try{let Q=await G$(Z);if(J!==k0)return Q;if(Q!==null)I={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==k0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(C.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&I&&I.value!==" ")return I={...I,timestamp:Date.now()},I.value;return I={value:" ",timestamp:Date.now()}," "}finally{if(J===k0)c=null}}async function G$(Z){let $=o();if(!$)return null;if(Q8()){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 d0("apiKeyHelper invoked before trust check",X),j("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await F0($,{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 U5(){return I?.value??null}function H$(){k0++,I=null,c=null}function R$(Z){if(Q8()&&!d())return;X8(Z)}async function F$(){let Z=_5();if(!Z)return!1;if(I5()){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 d0("awsAuthRefresh invoked before trust check",J),j("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await o2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return q8(Z)}}function q8(Z){z("Running AWS auth refresh command");let $=h.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=J8(Z,{timeout:K$});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 V=X==="SIGTERM"?C.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):C.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function L$(){let Z=y5();if(!Z)return null;if(T5()){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 d0("awsCredentialExport invoked before trust check",J),j("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await o2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await F0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=O5($.stdout.trim());if(!D1(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=C.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 D$(){j0.cache.clear()}function S5(){return(M()||{}).gcpAuthRefresh}function M5(){let Z=S5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function V8(){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=N5(N$).then(()=>{throw new R8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function U$(){let Z=S5();if(!Z)return!1;if(M5()){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 d0("gcpAuthRefresh invoked before trust check",J),j("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await V8())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return W8(Z)}function W8(Z){z("Running GCP auth refresh command");let $=h.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=J8(Z,{timeout:k$});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 V=X==="SIGTERM"?C.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):C.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function P$(){h5.cache.clear()}function O$(){if(!S5())return;if(M5()){if(!d()&&!f())return}h5()}function v$(){let Z=_5(),$=y5();if(!Z&&!$)return;if(I5()||T5()){if(!d()&&!f())return}j0(),B()}function E$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function A5(Z){if(!E$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await z8();let $=!1;if(process.platform==="darwin")try{let Q=s(),Y=D2(),X=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
- `;await F0("security",["-i"],{input:q,reject:!1}),j("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){b(Q),j("tengu_api_key_keychain_error",{error:p(Q)}),j("tengu_api_key_saved_to_config",{})}else j("tengu_api_key_saved_to_config",{});let J=z2(Z);A((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??[]}}}),O2.cache.clear?.(),D5()}function _$(Z){let $=K(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function I$(){await z8(),A((Z)=>({...Z,primaryApiKey:void 0})),O2.cache.clear?.(),D5()}async function z8(){try{await K1()}catch(Z){b(Z)}}function x8(Z){if(!P0(Z.scopes))return j("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return j("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=P2(),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)j("tengu_oauth_tokens_saved",{storageBackend:J});else j("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),C4(),l4(),X}catch(Q){return b(Q),j("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function C5(){w.cache?.clear?.(),U0()}async function y$(){try{let{mtimeMs:Z}=await W$(z$(P5(),".credentials.json"));if(Z!==s4)s4=Z,C5()}catch{w.cache?.clear?.()}}function X5(Z){let $=b5.get(Z);if($)return $;let J=T$(Z).finally(()=>{b5.delete(Z)});return b5.set(Z,J),J}async function T$(Z){C5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return j("tengu_oauth_401_recovered_from_keychain",{}),!0;return l0(0,!0)}async function c0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await P2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return b(Z),null}}function l0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=k5(Z,$).finally(()=>{p0=null}),p0}return k5(Z,$)}async function k5(Z,$){await y$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!P0(Q.scopes))return!1;w.cache?.clear?.(),U0();let Y=await c0();if(!Y?.refreshToken||!m0(Y.expiresAt))return!1;let X=P5();await V$(X,{recursive:!0});let q;try{j("tengu_oauth_token_refresh_lock_acquiring",{}),q=await e4(X),j("tengu_oauth_token_refresh_lock_acquired",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return j("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await N5(1000+Math.random()*1000),k5(Z+1,$);return j("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return b(V),j("tengu_oauth_token_refresh_lock_error",{error:p(V)}),!1}try{w.cache?.clear?.(),U0();let V=await c0();if(!V?.refreshToken||!m0(V.expiresAt))return j("tengu_oauth_token_refresh_race_resolved",{}),!1;j("tengu_oauth_token_refresh_starting",{});let x=await Z8(V.refreshToken,{scopes:P0(V.scopes)?void 0:V.scopes});return x8(x),w.cache?.clear?.(),U0(),!0}catch(V){b(V),w.cache?.clear?.(),U0();let x=await c0();if(x&&!m0(x.expiresAt))return j("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{j("tengu_oauth_token_refresh_lock_releasing",{}),await q(),j("tengu_oauth_token_refresh_lock_released",{})}}function k(){if(!O0())return!1;return P0(w()?.scopes)}function V0(){return w()?.scopes?.includes(o4)??!1}function S$(){{let Z=D()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(k())return!1;return!0}function U2(){return O0()?K().oauthAccount:void 0}function M$(){let $=U2()?.billingType;if(!k()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function h$(){let Z=_();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function _(){if(q1())return X1();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function w2(){return _()==="max"}function A$(){return _()==="team"}function F2(){return _()==="team"&&j8()==="default_claude_max_5x"}function C$(){return _()==="enterprise"}function R5(){return _()==="pro"}function j8(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function B8(){switch(_()){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 k2(){let Z=D()?.transport;if(!Z)return!1;return Z!=="anthropic"}function G8(){return(M()||{}).otelHeadersHelper}function H8(){let Z=G8();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function u$(){let Z=G8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||f$.toString());if(N2&&Date.now()-a4<$)return N2;if(H8()){if(!d())return{}}try{let J=v5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=O5(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 N2=Q,a4=Date.now(),N2}catch(J){throw b(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function g$(Z){return Z==="max"||Z==="pro"}function p$(){let Z=_();return k()&&Z!==null&&g$(Z)}function m$(){if(W()!=="firstParty")return;let{source:$}=S0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(k())J.subscription=B8();else J.tokenSource=$;let{key:Q,source:Y}=n0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let q=U2()?.organizationName;if(q)J.organization=q}let X=U2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function c$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=O("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await l0();let $=w();if(!$)return{valid:!0};let{source:J}=S0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await w0($.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 x$=300000,I=null,c=null,k0=0,w$=3600000,K$=180000,j0,N$=5000,b$=3600000,k$=180000,h5,O2,w,s4=0,b5,p0=null,N2=null,a4=0,f$=1740000,R8;var n=R(()=>{J$();F1();t0();M0();B2();X2();t();Q0();J0();V1();$8();t2();w1();L1();b1();k1();f4();i();$0();g();H1();Q$();X$();s0();Y$();q$();c4();r2();H0();d4();$$();i4();j0=E5(async()=>{let Z=await F$(),$=await L$();if(Z||$)await N1();return $},w$);h5=E5(async()=>{return await U$()},b$);O2=y(()=>{if(u())return null;if(process.platform==="darwin"){let $=m4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=s();try{let Q=v5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){b(Q)}}}let Z=K();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=y(()=>{if(u())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=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=P2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return b($),null}});b5=new Map;R8=class R8 extends Error{}});function P0(Z){return Boolean(Z?.includes(f5))}function n$(Z){return Z?.split(" ").filter(Boolean)??[]}function EQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:x}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);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 x0=X?[f5]:K8;if(H.searchParams.append("scope",x0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),q)H.searchParams.append("orgUUID",q);if(V)H.searchParams.append("login_hint",V);if(x)H.searchParams.append("login_method",x);return H.toString()}async function _Q(Z,$,J,Q,Y=!1,X){let q={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)q.expires_in=X;let V=await P.post(U().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return j("tengu_oauth_token_exchange_success",{}),V.data}async function Z8(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:F8).join(" ")};try{let Q=await P.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:q=Z,expires_in:V}=Y,x=Date.now()+V*1000,G=n$(Y.scope);j("tengu_oauth_token_refresh_success",{});let H=K(),x0=w(),v=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&x0?.subscriptionType!=null&&x0?.rateLimitTier!=null?null:await l$(X);if(v&&H.oauthAccount){let e={};if(v.displayName!==void 0)e.displayName=v.displayName;if(typeof v.hasExtraUsageEnabled==="boolean")e.hasExtraUsageEnabled=v.hasExtraUsageEnabled;if(v.billingType!==null)e.billingType=v.billingType;if(v.accountCreatedAt!==void 0)e.accountCreatedAt=v.accountCreatedAt;if(v.subscriptionCreatedAt!==void 0)e.subscriptionCreatedAt=v.subscriptionCreatedAt;if(Object.keys(e).length>0)A((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...e}:i0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:x,scopes:G,subscriptionType:v?.subscriptionType??x0?.subscriptionType??null,rateLimitTier:v?.rateLimitTier??x0?.rateLimitTier??null,profile:v?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw j("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function IQ(Z){let $=await P.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!K().oauthAccount)throw Error("OAuth account information not found in config");A((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),j("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function yQ(Z){try{let $=await P.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await A5(J),j("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw j("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function l$(Z){let $=await w0(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 j("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function TQ(){let $=K().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!V0())return null;let Y=(await w0(J))?.organization?.uuid;if(!Y)return null;return Y}async function SQ(){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(!K().oauthAccount)w8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await l0();let Y=K();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!k()||!V0())return!1;let X=w();if(X?.accessToken){let q=await w0(X.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return w8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function w8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let x={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)x.displayName=Q;A((G)=>{if(G.oauthAccount?.accountUuid===x.accountUuid&&G.oauthAccount?.emailAddress===x.emailAddress&&G.oauthAccount?.organizationUuid===x.organizationUuid&&G.oauthAccount?.displayName===x.displayName&&G.oauthAccount?.hasExtraUsageEnabled===x.hasExtraUsageEnabled&&G.oauthAccount?.billingType===x.billingType&&G.oauthAccount?.accountCreatedAt===x.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===x.subscriptionCreatedAt)return G;return{...G,oauthAccount:x}})}var $8=R(()=>{q2();B2();M0();n();i();$0();t2()});
16
- export{M9 as R4,h9 as S4,c4 as T4,u5 as U4,g5 as V4,ZJ as W4,$J as X4,D8 as Y4,U8 as Z4,JJ as _4,d5 as $4,a0 as a5,v0 as b5,B0 as c5,p2 as d5,i2 as e5,I8 as f5,I0 as g5,W as h5,HJ as i5,A8 as j5,RJ as k5,wJ as l5,FJ as m5,t as n5,B as o5,OJ as p5,X2 as q5,yJ as r5,TJ as s5,Y1 as t5,AJ as u5,CJ as v5,V1 as w5,dJ as x5,w0 as y5,t2 as z5,P0 as A5,n$ as B5,EQ as C5,_Q as D5,Z8 as E5,IQ as F5,yQ as G5,m0 as H5,l$ as I5,TQ as J5,SQ as K5,w8 as L5,$8 as M5,oJ as N5,n8 as O5,W1 as P5,w1 as Q5,z2 as R5,L1 as S5,Y3 as T5,b1 as U5,h as V5,k1 as W5,h0 as X5,O1 as Y5,v1 as Z5,W3 as _5,z3 as $5,I1 as a6,x3 as b6,j3 as c6,y1 as d6,B3 as e6,G3 as f6,H3 as g6,$5 as h6,T as i6,u1 as j6,s8 as k6,y3 as l6,T3 as m6,S3 as n6,g1 as o6,M3 as p6,h3 as q6,a8 as r6,A3 as s6,C3 as t6,f3 as u6,u3 as v6,g3 as w6,e8 as x6,p3 as y6,m3 as z6,c3 as A6,d3 as B6,d1 as C6,D0 as D6,JZ as E6,QZ as F6,YZ as G6,V5 as H6,jZ as I6,r3 as J6,z5 as K6,s1 as L6,BZ as M6,x5 as N6,o1 as O6,e1 as P6,b7 as Q6,U7 as R6,H2 as S6,j5 as T6,k7 as U6,LZ as V6,W0 as W6,u0 as X6,q4 as Y6,P7 as Z6,f0 as _6,V4 as $6,L as a7,N as b7,DZ as c7,O7 as d7,v7 as e7,NZ as f7,Y5 as g7,E7 as h7,W4 as i7,z4 as j7,_7 as k7,S as l7,I7 as m7,kZ as n7,y7 as o7,T7 as p7,S7 as q7,M7 as r7,L0 as s7,A7 as t7,x4 as u7,f7 as v7,H4 as w7,D4 as x7,fZ as y7,b4 as z7,J9 as A7,Q9 as B7,Y9 as C7,z0 as D7,r as E7,X9 as F7,lZ as G7,q9 as H7,V9 as I7,H5 as J7,_4 as K7,I4 as L7,P9 as M7,rZ as N7,O9 as O7,v9 as P7,T4 as Q7,E9 as R7,A4 as S7,oZ as T7,_9 as U7,C4 as V7,f4 as W7,N5 as X7,d4 as Y7,f9 as Z7,l4 as _7,i4 as $7,O0 as a8,S0 as b8,X0 as c8,j$ as d8,n0 as e8,o as f8,I5 as g8,T5 as h8,Y8 as i8,B$ as j8,X8 as k8,U5 as l8,H$ as m8,R$ as n8,q8 as o8,j0 as p8,D$ as q8,M5 as r8,V8 as s8,W8 as t8,h5 as u8,P$ as v8,O$ as w8,v$ as x8,O2 as y8,A5 as z8,_$ as A8,I$ as B8,x8 as C8,w as D8,C5 as E8,X5 as F8,c0 as G8,l0 as H8,k as I8,V0 as J8,S$ as K8,U2 as L8,M$ as M8,h$ as N8,_ as O8,w2 as P8,A$ as Q8,F2 as R8,C$ as S8,R5 as T8,j8 as U8,B8 as V8,k2 as W8,H8 as X8,u$ as Y8,p$ as Z8,m$ as _8,c$ as $8,d$ as a9,n as b9};
@@ -1,2 +0,0 @@
1
- import{kta as q}from"./cli-1.1.7-a1sffgeq.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 ke,y as le,w as me};
@@ -1,2 +0,0 @@
1
- import{Gh as e,Jh as fq}from"./cli-1.1.7-e9p7j4yw.mjs";import{Kh as t,Mh as Hq}from"./cli-1.1.7-0dn48gxn.mjs";import{$n as g,WO as o,XO as s,YO as Oq,Zn as S,_n as Nq,ao as Vq,bo as $,co as Wq,fo as i,go as Yq,oG as r,pG as kq,yG as n,zG as Mq}from"./cli-1.1.7-g69xsadf.mjs";import{CY as u,EY as Zq}from"./cli-1.1.7-rb629pva.mjs";import{EZ as Qq,I1 as Xq,b1 as M,d1 as F,v1 as c,w1 as Uq}from"./cli-1.1.7-8e3qerv0.mjs";import{p4 as L,q4 as R,r4 as l}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as Lq}from"./cli-1.1.7-ac6ve6ks.mjs";import{E_ as d,F_ as Jq}from"./cli-1.1.7-370fzee5.mjs";import{gta as a,kta as Gq}from"./cli-1.1.7-a1sffgeq.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claude Code will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(r,{showCursor:!0,placeholder:`Directory path${d.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let m;if(q[6]===Symbol.for("react.memo_cache_sentinel"))m=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=m;else m=q[6];let zq=m,_;if(q[7]!==X||q[8]!==N)_=async(z)=>{let G=await o(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(s(G))},q[7]=X,q[8]=N,q[9]=_;else _=q[9];let K=_,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];u("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(n,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(i,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R($,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(g,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Oq();kq();Xq();Zq();fq();Vq();Mq();Wq();Yq();Nq();Hq();l();T=a(Qq(),1),H=a(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
2
- export{lq as Eh,Fq as Fh};
@@ -1,2 +0,0 @@
1
- import{Q_ as B,S_ as p}from"./cli-1.1.7-370fzee5.mjs";import{Xja as C,_ja as y}from"./cli-1.1.7-tj4a73gm.mjs";import{Eka as T,Ika as x,_ka as V,bla as M}from"./cli-1.1.7-4jb3802k.mjs";import{Fla as c,yla as L}from"./cli-1.1.7-gm3vnavd.mjs";y();M();p();c();x();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function h(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function E(W){let Z=h(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,j=1800000,H=3,R=60000;function I({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let O=new Map,v=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=E(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=O.get(q);if(X)clearTimeout(X);let J=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),K(q,J);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,J);O.set(q,k)}function D(q,Q){let $=O.get(q);if($)clearTimeout($);let X=U(q),J=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(J)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(K,J,q,X);O.set(q,Y)}async function K(q,Q){let $;try{$=await W()}catch(J){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(J)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let J=(v.get(q)??0)+1;if(v.set(q,J),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${J}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),J<H){let Y=setTimeout(K,R,q,Q);O.set(q,Y)}return}v.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("tengu_bridge_token_refreshed",{}),Z(q,$);let X=setTimeout(K,j,q,Q);O.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=O.get(q);if(Q)clearTimeout(Q),O.delete(q);v.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of O.values())clearTimeout(q);O.clear(),v.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
- export{E as Wb,I as Xb};
@@ -1,2 +0,0 @@
1
- import{L as D}from"./cli-1.1.7-f0hcstcc.mjs";import{V as x}from"./cli-1.1.7-n7ne87b1.mjs";import{eb as A}from"./cli-1.1.7-37vw5n8s.mjs";import{fb as L}from"./cli-1.1.7-vhahreqp.mjs";import{Qo as k,Ro as U,Uo as F,Vo as p,mU as b,nU as u}from"./cli-1.1.7-g69xsadf.mjs";import{$U as O,cV as c}from"./cli-1.1.7-vyxrgqgm.mjs";import{b9 as m,h5 as Y,n5 as I,t7 as w,u7 as M,w8 as E,x8 as G}from"./cli-1.1.7-6327xnsa.mjs";import{Cga as $,Fga as z,rea as X,sea as B}from"./cli-1.1.7-370fzee5.mjs";import{hja as _,jja as y}from"./cli-1.1.7-svpmye16.mjs";import{_ka as K,bla as T}from"./cli-1.1.7-4jb3802k.mjs";import{Fla as S,yla as V}from"./cli-1.1.7-gm3vnavd.mjs";import{Lla as J,Nla as N,Vla as v}from"./cli-1.1.7-aq4f719n.mjs";import{Ksa as j,ssa as W}from"./cli-1.1.7-w7qe5saq.mjs";v();c();u();z();m();p();y();j();T();S();I();B();var C=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let R of P.server.remotes??[]){let Q=h(R.url);if(Q)H.add(Q)}C=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}M();U();function Xq(){if(J(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||N())return;O(),b(),x(),A();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))G();if(q==="vertex"&&!J(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))E();if(F(_(),AbortSignal.timeout(3000),[]),D(),Z(),w(),k.initialize(),!N())L.initialize()}
2
- export{Xq as K};
@@ -1,2 +0,0 @@
1
- var o=()=>null,t=o,l=o;
2
- export{l as Za,t as _a};
@@ -1,4 +0,0 @@
1
- import{sg as OJ,tg as hQ}from"./cli-1.1.7-3c59vjgs.mjs";import{ug as PJ,vg as WQ}from"./cli-1.1.7-tebqyjfs.mjs";import{wg as AJ,xg as LQ}from"./cli-1.1.7-h3m2ycf6.mjs";import{yg as iq,zg as $J}from"./cli-1.1.7-e8rpt6jw.mjs";import{Ag as Fq,Bg as oq,Cg as gJ}from"./cli-1.1.7-yatnaq1h.mjs";import{Dg as LJ,Eg as RQ}from"./cli-1.1.7-bn38catj.mjs";import{$o as P,Eo as VJ,Fo as VQ,RT as wq,Rt as XJ,St as XQ,Tt as yJ,Ut as NJ,VT as tq,Vt as yQ,YT as qJ,aH as Mq,ap as Tq,bH as UQ,bR as sq,cH as wJ,dH as HJ,dR as oJ,eH as RJ,fH as wQ,iU as eJ,jy as g,my as NQ,rR as Aq,uR as nJ,uy as uq,vy as mq,xJ as WJ,xy as pq,yJ as hJ,yy as uJ,zJ as HQ}from"./cli-1.1.7-g69xsadf.mjs";import{MU as BJ,OU as UJ,RU as BQ}from"./cli-1.1.7-asnfms2j.mjs";import{BW as FJ,FW as FQ}from"./cli-1.1.7-9cr42mkf.mjs";import{DY as GJ,EY as YQ,HY as KJ,IY as GQ,QY as vq,RY as KQ}from"./cli-1.1.7-rb629pva.mjs";import{EZ as Pq,I1 as Oq,b1 as y,d1 as Q}from"./cli-1.1.7-8e3qerv0.mjs";import{o4 as h,p4 as Y,q4 as Z,r4 as c}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as zQ}from"./cli-1.1.7-ac6ve6ks.mjs";import{$6 as zJ,I7 as YJ,J7 as ZQ,U6 as rq,s7 as aq}from"./cli-1.1.7-6327xnsa.mjs";import{Daa as Iq,E_ as $,F_ as qQ,Xda as ZJ,_aa as JQ,fea as QQ,jda as gq,kda as cJ,nda as xq,vda as lJ}from"./cli-1.1.7-370fzee5.mjs";import{Ila as QJ,Vla as tJ}from"./cli-1.1.7-aq4f719n.mjs";import{Fna as JJ,yra as sJ}from"./cli-1.1.7-avggtwyk.mjs";import{gta as Bq,kta as Uq}from"./cli-1.1.7-a1sffgeq.mjs";function _q(){let J=jq.c(2);if(!uq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=pq();if(G.length===0){V=null;break q}let K=G.filter(_J),X=G.filter(jJ);q=Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,color:K.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(y,{children:[Y(Q,{dimColor:!0,children:"Location: "}),Y(Q,{dimColor:!0,children:mq()})]}),Z(y,{marginLeft:1,flexDirection:"column",marginTop:1,children:[K.map(pJ),X.map(mJ)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function mJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function pJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function jJ(J){return J.severity==="warning"}function _J(J){return J.severity==="error"}var jq;var dq=Uq(()=>{Oq();uJ();c();jq=Bq(Pq(),1)});function lq(){let J=cq.c(2);if(!P.isSupportedPlatform())return null;if(!P.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=P.checkDependencies(),K=G.errors.length>0,X=G.warnings.length>0;if(!K&&!X){V=null;break q}q=Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",Y(Q,{color:K?"error":"warning",children:K?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map(TJ),G.warnings.map(dJ),K&&Y(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function dJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function TJ(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var cq;var $q=Uq(()=>{Oq();Tq();c();cq=Bq(Pq(),1)});async function xJ(){let J=qJ(await tq());if(J.length===0)return null;let q=J.sort((G,K)=>K.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${wq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${wq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:wq}}async function rJ(J){if(!J)return null;let q=oq(J);if(q<=Fq)return null;let V=J.activeAgents.filter((K)=>K.source!=="built-in").map((K)=>{let X=`${K.agentType}: ${K.whenToUse}`;return{name:K.agentType,tokens:Aq(X)}}).sort((K,X)=>X.tokens-K.tokens),G=V.slice(0,5).map((K)=>`${K.name}: ~${K.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${Fq.toLocaleString()})`,details:G,currentValue:q,threshold:Fq}}async function aJ(J,q,V){let G=J.filter((K)=>K.isMcp);if(G.length===0)return null;try{let K=rq(),{mcpToolTokens:X,mcpToolDetails:B}=await sq(J,q,V,K);if(X<=l)return null;let U=new Map;for(let R of B){let x=R.name.split("__")[1]||"unknown",N=U.get(x)||{count:0,tokens:0};U.set(x,{count:N.count+1,tokens:N.tokens+R.tokens})}let H=Array.from(U.entries()).sort((R,F)=>F[1].tokens-R[1].tokens),z=H.slice(0,5).map(([R,F])=>`${R}: ${F.count} tools (~${F.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(K){let X=G.reduce((B,U)=>{let H=(U.name?.length||0)+U.description.length;return B+Aq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function iJ(J){let q=await J(),V=P.isSandboxingEnabled()&&P.isAutoAllowBashIfSandboxedEnabled(),G=iq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let K=G.flatMap((X)=>[`${gq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${xq(G.length,"unreachable permission rule")} detected`,details:K,currentValue:G.length,threshold:0}}async function nq(J,q,V){let[G,K,X,B]=await Promise.all([xJ(),rJ(q),aJ(J,V,q),iJ(V)]);return{claudeMdWarning:G,agentWarning:K,mcpWarning:X,unreachableRulesWarning:B}}var l=25000;var eq=Uq(()=>{nJ();oJ();eJ();aq();cJ();$J();Tq();gJ();lJ()});import{join as bq}from"path";function PQ(J){let q=Cq.c(8),{promise:V}=J,G=w.use(V);if(!G.latest){let U;if(q[0]===Symbol.for("react.memo_cache_sentinel"))U=Y(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=U;else U=q[0];return U}let K;if(q[1]!==G.stable)K=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=K;else K=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let B;if(q[5]!==K||q[6]!==X)B=Z(h,{children:[K,X]}),q[5]=K,q[6]=X,q[7]=B;else B=q[7];return B}function _Z(J){let q=Cq.c(84),{onDone:V}=J,G=g(cQ),K=g(TQ),X=g(dQ),B=g(_Q);KJ();let U;if(q[0]!==K)U=K||[],q[0]=K,q[1]=U;else U=q[1];let H=U,[z,R]=w.useState(null),[F,x]=w.useState(null),[N,bJ]=w.useState(null),[L,kq]=w.useState(null),Hq=AJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=Mq().then(pQ),q[2]=r;else r=q[2];let IJ=r,vJ=ZJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Hq)a=Hq.filter(mQ),q[3]=Hq,q[4]=a;else a=q[4];let i=a,o;if(q[5]===Symbol.for("react.memo_cache_sentinel"))o=[{name:"BASH_MAX_OUTPUT_LENGTH",default:NJ,upperLimit:yJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:hJ,upperLimit:WJ},{name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",...YJ(zJ())}].map(uQ).filter(EQ),q[5]=o;else o=q[5];let Sq=o,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{Mq().then(R),(async()=>{let W=bq(QJ(),"agents"),Dq=bq(JJ(),".claudin","agents"),{activeAgents:fq,allAgents:MJ,failedFiles:Eq}=G,[CJ,kJ]=await Promise.all([Iq(W),Iq(Dq)]),SJ={activeAgents:fq.map(fQ),userAgentsDir:W,projectAgentsDir:Dq,userDirExists:CJ,projectDirExists:kJ,failedFiles:Eq};x(SJ);let DJ=await nq(H,{activeAgents:fq,allAgents:MJ,failedFiles:Eq},async()=>X);if(bJ(DJ),wJ()){let Lq=bq(FJ(),"claude","locks"),fJ=RJ(Lq),EJ=HJ(Lq);kq({enabled:!0,locks:EJ,locksDir:Lq,staleLocksCleaned:fJ})}else kq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];w.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claude Code diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(GJ(qq,Jq),!z){let W;if(q[16]===Symbol.for("react.memo_cache_sentinel"))W=Y(vq,{children:Y(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=W;else W=q[16];return W}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=Y(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let A;if(q[21]!==z.packageManager)A=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=A;else A=q[22];let b;if(q[23]!==z.installationPath)b=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=b;else b=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let v;if(q[27]!==z.configInstallMethod)v=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=v;else v=q[28];let Rq=z.ripgrepStatus.working?"OK":"Not working",Wq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",M;if(q[29]!==Rq||q[30]!==Wq)M=Z(Q,{children:["└ Search: ",Rq," (",Wq,")"]}),q[29]=Rq,q[30]=Wq,q[31]=M;else M=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(h,{children:[Y(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
2
- `)[0]]}),Y(Q,{dimColor:!0,children:z.recommendation.split(`
3
- `)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(h,{children:[Y(Q,{}),Y(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(DQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let S;if(q[36]!==z.warnings)S=z.warnings.length>0&&Z(h,{children:[Y(Q,{}),z.warnings.map(SQ)]}),q[36]=z.warnings,q[37]=S;else S=q[37];let D;if(q[38]!==i)D=i.length>0&&Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,children:"Invalid Settings"}),Y(OJ,{errors:i})]}),q[38]=i,q[39]=D;else D=q[39];let f;if(q[40]!==O||q[41]!==A||q[42]!==b||q[43]!==I||q[44]!==v||q[45]!==M||q[46]!==C||q[47]!==k||q[48]!==S||q[49]!==D)f=Z(y,{flexDirection:"column",children:[Qq,O,A,b,I,v,M,C,k,S,D]}),q[40]=O,q[41]=A,q[42]=b,q[43]=I,q[44]=v,q[45]=M,q[46]=C,q[47]=k,q[48]=S,q[49]=D,q[50]=f;else f=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=Y(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let hq=z.packageManager?"Managed by package manager":z.autoUpdates,E;if(q[52]!==hq)E=Z(Q,{children:["└ Auto-updates:"," ",hq]}),q[52]=hq,q[53]=E;else E=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",vJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=Y(w.Suspense,{fallback:null,children:Y(PQ,{promise:IJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==E||q[59]!==u)m=Z(y,{flexDirection:"column",children:[Zq,E,u,zq,Yq]}),q[58]=E,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=Y(lq,{}),Kq=Y(LJ,{}),Vq=Y(_q,{}),Xq=Sq.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Environment Variables"}),Sq.map(kQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==L)p=L?.enabled&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Version Locks"}),L.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",L.staleLocksCleaned," stale lock(s)"]}),L.locks.length===0?Y(Q,{dimColor:!0,children:"└ No active version locks"}):L.locks.map(CQ)]}),q[65]=L,q[66]=p;else p=q[66];let j;if(q[67]!==F)j=F?.failedFiles&&F.failedFiles.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",F.failedFiles.length," agent file(s):"]}),F.failedFiles.map(MQ)]}),q[67]=F,q[68]=j;else j=q[68];let _;if(q[69]!==B)_=B.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",B.length," plugin error(s) detected:"]}),B.map(vQ)]}),q[69]=B,q[70]=_;else _=q[70];let d;if(q[71]!==N)d=N?.unreachableRulesWarning&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.unreachableRulesWarning.message]})]}),N.unreachableRulesWarning.details.map(IQ)]}),q[71]=N,q[72]=d;else d=q[72];let T;if(q[73]!==N)T=N&&(N.claudeMdWarning||N.agentWarning||N.mcpWarning)&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Context Usage Warnings"}),N.claudeMdWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),N.claudeMdWarning.details.map(bQ)]}),N.agentWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),N.agentWarning.details.map(AQ)]}),N.mcpWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),N.mcpWarning.details.map(OQ)]})]}),q[73]=N,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=Y(y,{children:Y(PJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==f||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(vq,{children:[f,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=f,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function OQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function AQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function bQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function IQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function vQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",VJ(J)]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function CQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?Y(Q,{children:"(running)"}):Y(Q,{color:"warning",children:"(stale)"})]},q)}function kQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",Y(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function SQ(J,q){return Z(y,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function DQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function fQ(J){return{agentType:J.agentType,source:J.source}}function EQ(J){return J.status!=="valid"}function uQ(J){let q=process.env[J.name],V=XJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function mQ(J){return J.mcpErrorMetadata===void 0}function pQ(J){return(J.installationType==="native"?UJ:BJ)().catch(jQ)}function jQ(){return{latest:null,stable:null}}function _Q(J){return J.plugins.errors}function dQ(J){return J.toolPermissionContext}function TQ(J){return J.mcp.tools}function cQ(J){return J.agentDefinitions}var Cq,w;var lQ=Uq(()=>{qQ();dq();RQ();ZQ();aq();tJ();sJ();KQ();WQ();$q();hQ();LQ();GQ();Oq();YQ();NQ();VQ();BQ();eq();UQ();XQ();JQ();wQ();QQ();yQ();HQ();FQ();c();Cq=Bq(Pq(),1),w=Bq(zQ(),1)});
4
- export{_Z as qg,lQ as rg};
@@ -1,2 +0,0 @@
1
- import{AG as Fq,MS as a,OS as Uq,Wz as c,Xn as S,Yn as Zq,Zn as V,Zz as T,_n as $q,_z as _q,bA as r,bo as p,cA as Vq,co as zq,jy as u,ky as g,my as Wq,yG as h}from"./cli-1.1.7-g69xsadf.mjs";import{AY as j,BY as Qq,CY as m,EY as Xq,HY as d,IY as Yq,oY as w,pY as Nq}from"./cli-1.1.7-rb629pva.mjs";import{I1 as Lq,NZ as v,OZ as H,PZ as y,b1 as J,d1 as N}from"./cli-1.1.7-8e3qerv0.mjs";import{o4 as _,p4 as q,q4 as G,r4 as B}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as Jq}from"./cli-1.1.7-ac6ve6ks.mjs";import{Uda as b,fea as Gq}from"./cli-1.1.7-370fzee5.mjs";import{gta as e,kta as qq}from"./cli-1.1.7-a1sffgeq.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
2
- export{mq as oh,Aq as ph};
@@ -1,4 +0,0 @@
1
- import{de as c,je as Eq}from"./cli-1.1.7-cs5v2rwy.mjs";import{Ap as S,BL as v,BM as vq,Bp as Fq,CL as m,CM as y,DM as Qq,EL as Oq,EM as Xq,FM as Yq,GM as $q,HM as d,Jt as l,KM as Dq,Kt as wq,XL as n,bM as e,cM as P,fp as s,gM as jq,gp as Tq,hM as O,iM as qq,jp as t,kM as I,lM as Gq,lp as Mq,pp as i,rM as Cq,rp as Rq,uM as b,vM as Lq,vp as A,xp as D,yM as Hq,yp as Aq,zM as Jq,zp as h}from"./cli-1.1.7-g69xsadf.mjs";import{Rga as a,Sda as F,Uda as L,Zga as Bq,fea as _q,nda as V,vda as Kq}from"./cli-1.1.7-370fzee5.mjs";import{Mka as p,Qka as Wq}from"./cli-1.1.7-4jb3802k.mjs";import{Ala as N,Fla as Uq,xla as o}from"./cli-1.1.7-gm3vnavd.mjs";import{Fna as f,yra as xq}from"./cli-1.1.7-avggtwyk.mjs";import{kta as Zq}from"./cli-1.1.7-a1sffgeq.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
- ${G.join(`
3
- `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
4
- export{k as Sd,HG as Td,JG as Ud,QG as Vd,kq as Wd,XG as Xd,YG as Yd,$G as Zd,zG as _d,ZG as $d,xG as ae,hq as be};
@@ -1,2 +0,0 @@
1
- import{Ni as W,Oi as B}from"./cli-1.1.7-zpr5n1k0.mjs";import{p4 as U,r4 as J}from"./cli-1.1.7-1pt67y2k.mjs";import{P4 as V,Q4 as v}from"./cli-1.1.7-gjhe5v32.mjs";import{D8 as Q,I8 as R,b9 as $,y5 as N,z5 as _}from"./cli-1.1.7-6327xnsa.mjs";import{Rga as K,Zga as Z}from"./cli-1.1.7-370fzee5.mjs";import{kta as Y}from"./cli-1.1.7-a1sffgeq.mjs";async function w(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await V("https://claude.ai/upgrade/max"),U(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var E=Y(()=>{_();$();v();Z();B();J()});
2
- export{w as hc,E as ic};
@@ -1,2 +0,0 @@
1
- import{xe as V,ze as B}from"./cli-1.1.7-07qdmr1e.mjs";import{Hx as Q,Ix as q,fS as F,ok as L,wO as U,yO as w}from"./cli-1.1.7-g69xsadf.mjs";import{cba as K,hba as k}from"./cli-1.1.7-370fzee5.mjs";import{_ka as I,bla as $}from"./cli-1.1.7-4jb3802k.mjs";import{Fla as _,yla as G}from"./cli-1.1.7-gm3vnavd.mjs";import{kta as Z}from"./cli-1.1.7-a1sffgeq.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};