@claudiolabs/claudin 0.7.2 → 0.7.4

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 (905) hide show
  1. package/LICENSE +23 -200
  2. package/README.md +25 -89
  3. package/dist/chunks/AgentTool-0.7.4-n3w81nr0.mjs +1 -0
  4. package/dist/chunks/App-0.7.4-f82nhj4b.mjs +1 -0
  5. package/dist/chunks/ApproveApiKey-0.7.4-27gdpx41.mjs +1 -0
  6. package/dist/chunks/AssistantSessionChooser-0.7.4-dfwr2199.mjs +1 -0
  7. package/dist/chunks/AutoModeOptInDialog-0.7.4-y9fxqce2.mjs +1 -0
  8. package/dist/chunks/BypassPermissionsModeDialog-0.7.4-vqmkfdv5.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.4-yya4exxc.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.7.4-pkmm3hrc.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.7.4-c524vxrv.mjs +7 -0
  12. package/dist/chunks/Doctor-0.7.4-pa6ms0qn.mjs +1 -0
  13. package/dist/chunks/ExplorerDialog-0.7.4-bmp67p2b.mjs +6 -0
  14. package/dist/chunks/Grove-0.7.4-9acw1m3r.mjs +1 -0
  15. package/dist/chunks/ITermBackend-0.7.4-dy75k5qx.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.7.4-8ra8bj22.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.7.4-n4h644pz.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.7.4-cnays88h.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.7.4-fqvxpdtd.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.7.4-e21vv07m.mjs +1 -0
  21. package/dist/chunks/REPL-0.7.4-n38hda18.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.7.4-f3xp8e01.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.7.4-39wyejgx.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.7.4-6373v72h.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.7.4-y6km4665.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.7.4-wh96svjn.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.7.4-grwq5d7n.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.7.4-k0kt2bxp.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.7.4-xhgj5jat.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.7.4-vzfmpvjc.mjs +1 -0
  31. package/dist/chunks/add-dir-0.7.4-mfwwzt70.mjs +1 -0
  32. package/dist/chunks/agentTypes-0.7.4-9fgk10yx.mjs +1 -0
  33. package/dist/chunks/agents-0.7.4-9fxas1pf.mjs +110 -0
  34. package/dist/chunks/agents-0.7.4-eart70kj.mjs +3 -0
  35. package/dist/chunks/api-0.7.4-eqsmhts7.mjs +1 -0
  36. package/dist/chunks/asciicast-0.7.4-900ptry2.mjs +1 -0
  37. package/dist/chunks/assistant-0.7.4-qp02hgvg.mjs +1 -0
  38. package/dist/chunks/auth-0.7.4-ccf1t8td.mjs +1 -0
  39. package/dist/chunks/auth-0.7.4-tzph01c0.mjs +1 -0
  40. package/dist/chunks/autoMode-0.7.4-5m9bs574.mjs +48 -0
  41. package/dist/chunks/autoUpdater-0.7.4-s4krk2je.mjs +1 -0
  42. package/dist/chunks/backgroundHousekeeping-0.7.4-zqytsqmx.mjs +1 -0
  43. package/dist/chunks/branch-0.7.4-29eypmvg.mjs +4 -0
  44. package/dist/chunks/bridge-0.7.4-45nq3nxm.mjs +2 -0
  45. package/dist/chunks/bridgeConfig-0.7.4-fb2nwbxq.mjs +1 -0
  46. package/dist/chunks/bridgeEnabled-0.7.4-rreg4xyn.mjs +1 -0
  47. package/dist/chunks/bridgeMain-0.7.4-m4rjydb5.mjs +88 -0
  48. package/dist/chunks/bridgePointer-0.7.4-mjexaxq5.mjs +1 -0
  49. package/dist/chunks/btw-0.7.4-rw5186va.mjs +1 -0
  50. package/dist/chunks/buddy-0.7.4-mwgfqb1k.mjs +3 -0
  51. package/dist/chunks/cacache-0.7.4-254mqspw.mjs +1 -0
  52. package/dist/chunks/cache-probe-0.7.4-kjrs8qh8.mjs +21 -0
  53. package/dist/chunks/cacheStats-0.7.4-2pfk76t7.mjs +4 -0
  54. package/dist/chunks/caches-0.7.4-qjs93vrb.mjs +1 -0
  55. package/dist/chunks/claudeDesktop-0.7.4-e2h7mp9r.mjs +1 -0
  56. package/dist/chunks/claudemd-0.7.4-tv76d8c5.mjs +1 -0
  57. package/dist/chunks/clear-0.7.4-2qt378q0.mjs +1 -0
  58. package/dist/chunks/clearTerminal-0.7.4-5jfekabd.mjs +1 -0
  59. package/dist/chunks/cli-0.7.4-00n6rj7y.mjs +3 -0
  60. package/dist/chunks/cli-0.7.4-0a7934k3.mjs +21 -0
  61. package/dist/chunks/cli-0.7.4-0a9kv7ps.mjs +2 -0
  62. package/dist/chunks/cli-0.7.4-0c1vbfmd.mjs +2 -0
  63. package/dist/chunks/cli-0.7.4-0h9b4tge.mjs +2 -0
  64. package/dist/chunks/cli-0.7.4-0thtf513.mjs +2 -0
  65. package/dist/chunks/cli-0.7.4-0ytxwr14.mjs +2 -0
  66. package/dist/chunks/cli-0.7.4-12k33ng9.mjs +2 -0
  67. package/dist/chunks/cli-0.7.4-15xs793c.mjs +2 -0
  68. package/dist/chunks/cli-0.7.4-1ba5bwdq.mjs +42 -0
  69. package/dist/chunks/cli-0.7.4-1tkzz9x6.mjs +5469 -0
  70. package/dist/chunks/cli-0.7.4-2apswqf5.mjs +59 -0
  71. package/dist/chunks/cli-0.7.4-2fxnz89x.mjs +6 -0
  72. package/dist/chunks/cli-0.7.4-2haqz80h.mjs +16 -0
  73. package/dist/chunks/cli-0.7.4-2p5w6279.mjs +45 -0
  74. package/dist/chunks/cli-0.7.4-33k7j18b.mjs +3 -0
  75. package/dist/chunks/cli-0.7.4-3e7assg4.mjs +2 -0
  76. package/dist/chunks/cli-0.7.4-3gn2tfsb.mjs +2 -0
  77. package/dist/chunks/cli-0.7.4-40m5mk3s.mjs +2 -0
  78. package/dist/chunks/cli-0.7.4-47nyf9j2.mjs +2 -0
  79. package/dist/chunks/cli-0.7.4-489pp4nd.mjs +2 -0
  80. package/dist/chunks/cli-0.7.4-4a6hn01n.mjs +133 -0
  81. package/dist/chunks/cli-0.7.4-4br84c8j.mjs +2 -0
  82. package/dist/chunks/cli-0.7.4-4ee9swqr.mjs +2 -0
  83. package/dist/chunks/cli-0.7.4-4pagjrxs.mjs +18 -0
  84. package/dist/chunks/cli-0.7.4-4sh782tn.mjs +2 -0
  85. package/dist/chunks/cli-0.7.4-507dp6s1.mjs +2 -0
  86. package/dist/chunks/cli-0.7.4-510c371d.mjs +12 -0
  87. package/dist/chunks/cli-0.7.4-51t8p2qe.mjs +2 -0
  88. package/dist/chunks/cli-0.7.4-533hdyc8.mjs +2 -0
  89. package/dist/chunks/cli-0.7.4-53k7apn9.mjs +2 -0
  90. package/dist/chunks/cli-0.7.4-58p1wenr.mjs +2 -0
  91. package/dist/chunks/cli-0.7.4-5fjrbavz.mjs +2 -0
  92. package/dist/chunks/cli-0.7.4-5k1t5jcn.mjs +2 -0
  93. package/dist/chunks/cli-0.7.4-61etrp8x.mjs +2 -0
  94. package/dist/chunks/cli-0.7.4-61svw97d.mjs +3 -0
  95. package/dist/chunks/cli-0.7.4-6265e9tz.mjs +2 -0
  96. package/dist/chunks/cli-0.7.4-62ac47x8.mjs +2 -0
  97. package/dist/chunks/cli-0.7.4-66p94pps.mjs +3 -0
  98. package/dist/chunks/cli-0.7.4-68dbzpkf.mjs +3 -0
  99. package/dist/chunks/cli-0.7.4-6cft4ytf.mjs +15 -0
  100. package/dist/chunks/cli-0.7.4-6n295sx3.mjs +2 -0
  101. package/dist/chunks/cli-0.7.4-6sqa761d.mjs +2 -0
  102. package/dist/chunks/cli-0.7.4-6tvnyqjj.mjs +2 -0
  103. package/dist/chunks/cli-0.7.4-6zr3mpvn.mjs +2 -0
  104. package/dist/chunks/cli-0.7.4-729n63er.mjs +2 -0
  105. package/dist/chunks/cli-0.7.4-7ftm6c0s.mjs +26 -0
  106. package/dist/chunks/cli-0.7.4-7k74b1yf.mjs +1 -0
  107. package/dist/chunks/cli-0.7.4-7mzefe20.mjs +2 -0
  108. package/dist/chunks/cli-0.7.4-7t2zsdm5.mjs +2 -0
  109. package/dist/chunks/cli-0.7.4-7tr153ha.mjs +2 -0
  110. package/dist/chunks/cli-0.7.4-7wr3z77e.mjs +2 -0
  111. package/dist/chunks/cli-0.7.4-85txq06q.mjs +2 -0
  112. package/dist/chunks/cli-0.7.4-8hskaxte.mjs +2 -0
  113. package/dist/chunks/cli-0.7.4-8nss0n1a.mjs +25 -0
  114. package/dist/chunks/cli-0.7.4-8vd2zhhw.mjs +2 -0
  115. package/dist/chunks/cli-0.7.4-8wbk60h9.mjs +2 -0
  116. package/dist/chunks/cli-0.7.4-8xxafyv0.mjs +18 -0
  117. package/dist/chunks/cli-0.7.4-90d95m4d.mjs +2 -0
  118. package/dist/chunks/cli-0.7.4-9kf16ber.mjs +2 -0
  119. package/dist/chunks/cli-0.7.4-9kzgbrwj.mjs +2 -0
  120. package/dist/chunks/cli-0.7.4-9r1s7xtv.mjs +6 -0
  121. package/dist/chunks/cli-0.7.4-9vph2ayc.mjs +2 -0
  122. package/dist/chunks/cli-0.7.4-9zsty6c5.mjs +2 -0
  123. package/dist/chunks/cli-0.7.4-abs9vv3n.mjs +2 -0
  124. package/dist/chunks/cli-0.7.4-ae96heq4.mjs +2 -0
  125. package/dist/chunks/cli-0.7.4-ahm3gnaw.mjs +2 -0
  126. package/dist/chunks/cli-0.7.4-akf6rhsn.mjs +4 -0
  127. package/dist/chunks/cli-0.7.4-aswaa5m4.mjs +2 -0
  128. package/dist/chunks/cli-0.7.4-at2fkgpk.mjs +2 -0
  129. package/dist/chunks/cli-0.7.4-b5qdnvdg.mjs +2 -0
  130. package/dist/chunks/cli-0.7.4-bh4xsr2c.mjs +4 -0
  131. package/dist/chunks/cli-0.7.4-bkgx5wz7.mjs +2 -0
  132. package/dist/chunks/cli-0.7.4-bmw3qchp.mjs +2 -0
  133. package/dist/chunks/cli-0.7.4-bqk5rkrz.mjs +2 -0
  134. package/dist/chunks/cli-0.7.4-c0e99xn9.mjs +24 -0
  135. package/dist/chunks/cli-0.7.4-cfsjq69q.mjs +2 -0
  136. package/dist/chunks/cli-0.7.4-d82gqb10.mjs +2 -0
  137. package/dist/chunks/cli-0.7.4-d9y5wx3y.mjs +2 -0
  138. package/dist/chunks/cli-0.7.4-da69w12w.mjs +3 -0
  139. package/dist/chunks/cli-0.7.4-deyaxrbc.mjs +2 -0
  140. package/dist/chunks/cli-0.7.4-djbdmzgq.mjs +2 -0
  141. package/dist/chunks/cli-0.7.4-dwjhqjan.mjs +2 -0
  142. package/dist/chunks/cli-0.7.4-e2bhfh6d.mjs +2 -0
  143. package/dist/chunks/cli-0.7.4-ee9ansx1.mjs +24 -0
  144. package/dist/chunks/cli-0.7.4-eg7xj51b.mjs +2 -0
  145. package/dist/chunks/cli-0.7.4-egc286gx.mjs +2 -0
  146. package/dist/chunks/cli-0.7.4-ejm88apc.mjs +2 -0
  147. package/dist/chunks/cli-0.7.4-emdbzgja.mjs +2 -0
  148. package/dist/chunks/cli-0.7.4-en1ggcz7.mjs +2 -0
  149. package/dist/chunks/cli-0.7.4-evtmfc7t.mjs +2 -0
  150. package/dist/chunks/cli-0.7.4-f23ty9s6.mjs +39 -0
  151. package/dist/chunks/cli-0.7.4-f8qmyn41.mjs +4 -0
  152. package/dist/chunks/cli-0.7.4-fhgnbfvj.mjs +2 -0
  153. package/dist/chunks/cli-0.7.4-g9hc44qq.mjs +2 -0
  154. package/dist/chunks/cli-0.7.4-g9w5x5ns.mjs +4 -0
  155. package/dist/chunks/cli-0.7.4-ge77h9d7.mjs +2 -0
  156. package/dist/chunks/cli-0.7.4-ghq0kwkv.mjs +2 -0
  157. package/dist/chunks/cli-0.7.4-gjn70n3p.mjs +2 -0
  158. package/dist/chunks/cli-0.7.4-gr1feczd.mjs +2 -0
  159. package/dist/chunks/cli-0.7.4-gxccpbef.mjs +3 -0
  160. package/dist/chunks/cli-0.7.4-h0ze5j97.mjs +2 -0
  161. package/dist/chunks/cli-0.7.4-h24m11yy.mjs +2 -0
  162. package/dist/chunks/cli-0.7.4-h5274d0h.mjs +2 -0
  163. package/dist/chunks/cli-0.7.4-h57hq23q.mjs +2 -0
  164. package/dist/chunks/cli-0.7.4-h5wxsd2h.mjs +9 -0
  165. package/dist/chunks/cli-0.7.4-h94hrj45.mjs +2 -0
  166. package/dist/chunks/cli-0.7.4-hayqy916.mjs +2 -0
  167. package/dist/chunks/cli-0.7.4-hegk157e.mjs +6 -0
  168. package/dist/chunks/cli-0.7.4-hnfm0p8b.mjs +2 -0
  169. package/dist/chunks/cli-0.7.4-hsa9khw7.mjs +17 -0
  170. package/dist/chunks/cli-0.7.4-hvnq08bj.mjs +24 -0
  171. package/dist/chunks/cli-0.7.4-hvnzwb5v.mjs +194 -0
  172. package/dist/chunks/cli-0.7.4-hvs3h0hc.mjs +3 -0
  173. package/dist/chunks/cli-0.7.4-hw93j7vq.mjs +2 -0
  174. package/dist/chunks/cli-0.7.4-hz7s1rtn.mjs +2 -0
  175. package/dist/chunks/cli-0.7.4-jg5ajbyb.mjs +2 -0
  176. package/dist/chunks/cli-0.7.4-jgg33mak.mjs +2 -0
  177. package/dist/chunks/cli-0.7.4-jgswqtvj.mjs +3 -0
  178. package/dist/chunks/cli-0.7.4-k735e5sg.mjs +133 -0
  179. package/dist/chunks/cli-0.7.4-k7s78hkt.mjs +58 -0
  180. package/dist/chunks/cli-0.7.4-kmgvx19r.mjs +5 -0
  181. package/dist/chunks/cli-0.7.4-kmxpdkne.mjs +2 -0
  182. package/dist/chunks/cli-0.7.4-kpp23hbz.mjs +2 -0
  183. package/dist/chunks/cli-0.7.4-kz0h2jkr.mjs +15 -0
  184. package/dist/chunks/cli-0.7.4-m1f3fc2v.mjs +2 -0
  185. package/dist/chunks/cli-0.7.4-m2yz2rtr.mjs +2 -0
  186. package/dist/chunks/cli-0.7.4-m6n2gga8.mjs +4 -0
  187. package/dist/chunks/cli-0.7.4-mdv26096.mjs +6 -0
  188. package/dist/chunks/cli-0.7.4-mg4yp3b0.mjs +2 -0
  189. package/dist/chunks/cli-0.7.4-mmzkb167.mjs +2 -0
  190. package/dist/chunks/cli-0.7.4-mq3qzben.mjs +2 -0
  191. package/dist/chunks/cli-0.7.4-mqbmk6y6.mjs +4 -0
  192. package/dist/chunks/cli-0.7.4-n9arxrya.mjs +12 -0
  193. package/dist/chunks/cli-0.7.4-naanktx2.mjs +34 -0
  194. package/dist/chunks/cli-0.7.4-nbnqrjgm.mjs +2 -0
  195. package/dist/chunks/cli-0.7.4-nnd4g2nm.mjs +2 -0
  196. package/dist/chunks/cli-0.7.4-nst28yat.mjs +2 -0
  197. package/dist/chunks/cli-0.7.4-p85h0qry.mjs +17 -0
  198. package/dist/chunks/cli-0.7.4-pgtn2eay.mjs +2 -0
  199. package/dist/chunks/cli-0.7.4-pjfb6eq2.mjs +2 -0
  200. package/dist/chunks/cli-0.7.4-pyyaz246.mjs +2 -0
  201. package/dist/chunks/cli-0.7.4-q23avgwg.mjs +2 -0
  202. package/dist/chunks/cli-0.7.4-q4g37dxk.mjs +2 -0
  203. package/dist/chunks/cli-0.7.4-q4q5x19y.mjs +2 -0
  204. package/dist/chunks/cli-0.7.4-q83h4xz7.mjs +10 -0
  205. package/dist/chunks/cli-0.7.4-qcc7kfkv.mjs +2 -0
  206. package/dist/chunks/cli-0.7.4-qcqz94w2.mjs +2 -0
  207. package/dist/chunks/cli-0.7.4-qjfmn9db.mjs +2 -0
  208. package/dist/chunks/cli-0.7.4-r0fkpzp3.mjs +2 -0
  209. package/dist/chunks/cli-0.7.4-r0nqh5aw.mjs +2 -0
  210. package/dist/chunks/cli-0.7.4-r1ebyx3p.mjs +2 -0
  211. package/dist/chunks/cli-0.7.4-r6ste2g4.mjs +2 -0
  212. package/dist/chunks/cli-0.7.4-rn8x06p3.mjs +2 -0
  213. package/dist/chunks/cli-0.7.4-rr7x6s9y.mjs +2 -0
  214. package/dist/chunks/cli-0.7.4-rskynrc5.mjs +4 -0
  215. package/dist/chunks/cli-0.7.4-rszd2m9d.mjs +3 -0
  216. package/dist/chunks/cli-0.7.4-rts5twex.mjs +2 -0
  217. package/dist/chunks/cli-0.7.4-rxsb2bkg.mjs +2 -0
  218. package/dist/chunks/cli-0.7.4-rzkdke3e.mjs +4 -0
  219. package/dist/chunks/cli-0.7.4-s97t3v7z.mjs +2 -0
  220. package/dist/chunks/cli-0.7.4-sm8wf8qx.mjs +67 -0
  221. package/dist/chunks/cli-0.7.4-sw7nh3hq.mjs +2 -0
  222. package/dist/chunks/cli-0.7.4-sxvnky38.mjs +2 -0
  223. package/dist/chunks/cli-0.7.4-syg2nab8.mjs +18 -0
  224. package/dist/chunks/cli-0.7.4-t68xf0hs.mjs +2 -0
  225. package/dist/chunks/cli-0.7.4-tcwf7yvv.mjs +2 -0
  226. package/dist/chunks/cli-0.7.4-te9nvehv.mjs +2 -0
  227. package/dist/chunks/cli-0.7.4-tkcchh6p.mjs +2 -0
  228. package/dist/chunks/cli-0.7.4-tme1sywb.mjs +2 -0
  229. package/dist/chunks/cli-0.7.4-tny04z8h.mjs +2 -0
  230. package/dist/chunks/cli-0.7.4-tsf2s2bg.mjs +2 -0
  231. package/dist/chunks/cli-0.7.4-tz5hgphm.mjs +3 -0
  232. package/dist/chunks/cli-0.7.4-v70q1qwp.mjs +2 -0
  233. package/dist/chunks/cli-0.7.4-ve6x1t8v.mjs +5 -0
  234. package/dist/chunks/cli-0.7.4-vq696c8w.mjs +2 -0
  235. package/dist/chunks/cli-0.7.4-vtnqj21e.mjs +2 -0
  236. package/dist/chunks/cli-0.7.4-vw2w38z0.mjs +2 -0
  237. package/dist/chunks/cli-0.7.4-wa74g17n.mjs +2 -0
  238. package/dist/chunks/cli-0.7.4-wb89zsbs.mjs +2 -0
  239. package/dist/chunks/cli-0.7.4-wes9w04e.mjs +2 -0
  240. package/dist/chunks/cli-0.7.4-wh44hxq2.mjs +5 -0
  241. package/dist/chunks/cli-0.7.4-wmw8fpv7.mjs +12 -0
  242. package/dist/chunks/cli-0.7.4-wtz9ed9r.mjs +2 -0
  243. package/dist/chunks/cli-0.7.4-wv6x6pzr.mjs +50 -0
  244. package/dist/chunks/cli-0.7.4-x1w88hnn.mjs +12 -0
  245. package/dist/chunks/cli-0.7.4-x5fcmgcd.mjs +4 -0
  246. package/dist/chunks/cli-0.7.4-xgw8jjs2.mjs +2 -0
  247. package/dist/chunks/cli-0.7.4-xhw7cmg0.mjs +2 -0
  248. package/dist/chunks/cli-0.7.4-xt87yshe.mjs +20 -0
  249. package/dist/chunks/cli-0.7.4-y3z3j4d9.mjs +8 -0
  250. package/dist/chunks/cli-0.7.4-y4w46256.mjs +2 -0
  251. package/dist/chunks/cli-0.7.4-y7sxx7d0.mjs +2 -0
  252. package/dist/chunks/cli-0.7.4-ybvnfxcf.mjs +4 -0
  253. package/dist/chunks/cli-0.7.4-yces9dz7.mjs +2 -0
  254. package/dist/chunks/cli-0.7.4-yjqyy8n2.mjs +2 -0
  255. package/dist/chunks/cli-0.7.4-yrbhzggw.mjs +3 -0
  256. package/dist/chunks/cli-0.7.4-yvdbdncp.mjs +2 -0
  257. package/dist/chunks/cli-0.7.4-z1vgf16g.mjs +25 -0
  258. package/dist/chunks/cli-0.7.4-z48enz4n.mjs +2 -0
  259. package/dist/chunks/cli-0.7.4-z88n7a08.mjs +2 -0
  260. package/dist/chunks/cli-0.7.4-za9xa1j8.mjs +3 -0
  261. package/dist/chunks/cli-0.7.4-zaa684f4.mjs +15 -0
  262. package/dist/chunks/cli-0.7.4-zbdceewq.mjs +7 -0
  263. package/dist/chunks/cli-0.7.4-zdkph0g9.mjs +2 -0
  264. package/dist/chunks/cli-0.7.4-zzze6t7f.mjs +2 -0
  265. package/dist/chunks/client-0.7.4-hxpb2apz.mjs +1 -0
  266. package/dist/chunks/color-0.7.4-pkanvtan.mjs +1 -0
  267. package/dist/chunks/compact-0.7.4-sjz49brs.mjs +3 -0
  268. package/dist/chunks/config-0.7.4-f5dgrp7x.mjs +1 -0
  269. package/dist/chunks/config-0.7.4-mc1mvka6.mjs +1 -0
  270. package/dist/chunks/constants-0.7.4-q426cgcp.mjs +1 -0
  271. package/dist/chunks/context-0.7.4-ssay296s.mjs +1 -0
  272. package/dist/chunks/context-noninteractive-0.7.4-y9y9az38.mjs +1 -0
  273. package/dist/chunks/conversation-0.7.4-m00s33jt.mjs +1 -0
  274. package/dist/chunks/copilotHeaders-0.7.4-pv50vnpq.mjs +1 -0
  275. package/dist/chunks/copy-0.7.4-ktk8gabv.mjs +9 -0
  276. package/dist/chunks/cost-0.7.4-r3td1n69.mjs +1 -0
  277. package/dist/chunks/createSSHSession-0.7.4-hhqxxfmb.mjs +1 -0
  278. package/dist/chunks/createSession-0.7.4-ebs0k8yt.mjs +1 -0
  279. package/dist/chunks/debug-0.7.4-0nebad2s.mjs +1 -0
  280. package/dist/chunks/defaultActionDeps-0.7.4-jbzptdbp.mjs +1446 -0
  281. package/dist/chunks/desktop-0.7.4-fmsm731w.mjs +1 -0
  282. package/dist/chunks/detectRepository-0.7.4-qse5a13f.mjs +1 -0
  283. package/dist/chunks/detection-0.7.4-a7c8arz9.mjs +1 -0
  284. package/dist/chunks/diff-0.7.4-ayakpeyz.mjs +1 -0
  285. package/dist/chunks/doctor-0.7.4-hwhyhjfr.mjs +1 -0
  286. package/dist/chunks/doctorDiagnostic-0.7.4-qm9knj52.mjs +1 -0
  287. package/dist/chunks/earlyInput-0.7.4-x3ysj16t.mjs +1 -0
  288. package/dist/chunks/effort-0.7.4-1sv0dhhk.mjs +10 -0
  289. package/dist/chunks/engine-0.7.4-gz82afzv.mjs +1 -0
  290. package/dist/chunks/envLessBridgeConfig-0.7.4-q1h5p7jv.mjs +1 -0
  291. package/dist/chunks/envUtils-0.7.4-ww7aa64y.mjs +1 -0
  292. package/dist/chunks/environmentSelection-0.7.4-r3g0hp0m.mjs +1 -0
  293. package/dist/chunks/environments-0.7.4-8n2fat2s.mjs +1 -0
  294. package/dist/chunks/errors-0.7.4-v9nwybq7.mjs +1 -0
  295. package/dist/chunks/exampleCommands-0.7.4-80n656nx.mjs +1 -0
  296. package/dist/chunks/exit-0.7.4-zmzt7mx8.mjs +1 -0
  297. package/dist/chunks/explorer-0.7.4-1knjqbak.mjs +1 -0
  298. package/dist/chunks/export-0.7.4-8b909kg4.mjs +2 -0
  299. package/dist/chunks/extra-usage-0.7.4-gwxf43jr.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-0.7.4-vntrq9c8.mjs +1 -0
  301. package/dist/chunks/fast-0.7.4-7d198jes.mjs +1 -0
  302. package/dist/chunks/feedback-0.7.4-5q49cx0k.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-0.7.4-w1471f1j.mjs +1 -0
  304. package/dist/chunks/git-0.7.4-qm9bjwe1.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-0.7.4-ecrp7kdj.mjs +1 -0
  306. package/dist/chunks/goal-0.7.4-ce3ysbxg.mjs +4 -0
  307. package/dist/chunks/grove-0.7.4-20a0nspg.mjs +1 -0
  308. package/dist/chunks/growthbook-0.7.4-85m0qnfn.mjs +1 -0
  309. package/dist/chunks/headless-0.7.4-g1me8a7s.mjs +2 -0
  310. package/dist/chunks/heapdump-0.7.4-sgk3zw0t.mjs +6 -0
  311. package/dist/chunks/help-0.7.4-aw6p8ena.mjs +1 -0
  312. package/dist/chunks/hookChains-0.7.4-3eqqv9t2.mjs +3 -0
  313. package/dist/chunks/hooks-0.7.4-q1wrys2h.mjs +79 -0
  314. package/dist/chunks/hooks-0.7.4-v782ktbj.mjs +1 -0
  315. package/dist/chunks/ide-0.7.4-nvtd5hpv.mjs +3 -0
  316. package/dist/chunks/image-processor-napi-0.7.4-a0arvwvs.mjs +1 -0
  317. package/dist/chunks/inboundAttachments-0.7.4-9hxndvnx.mjs +1 -0
  318. package/dist/chunks/index-0.7.4-0atnj624.mjs +1 -0
  319. package/dist/chunks/index-0.7.4-3yc5n58n.mjs +1 -0
  320. package/dist/chunks/index-0.7.4-46qessxk.mjs +1 -0
  321. package/dist/chunks/index-0.7.4-5x44zrgw.mjs +2 -0
  322. package/dist/chunks/index-0.7.4-97t4afz3.mjs +1 -0
  323. package/dist/chunks/index-0.7.4-9rhxb7ph.mjs +1 -0
  324. package/dist/chunks/index-0.7.4-9z6mgm05.mjs +2 -0
  325. package/dist/chunks/index-0.7.4-adfj0wz0.mjs +1 -0
  326. package/dist/chunks/index-0.7.4-bv491fah.mjs +5 -0
  327. package/dist/chunks/index-0.7.4-cxv3b9bg.mjs +1 -0
  328. package/dist/chunks/index-0.7.4-d7jstqgp.mjs +1 -0
  329. package/dist/chunks/index-0.7.4-fxa74szv.mjs +1 -0
  330. package/dist/chunks/index-0.7.4-hh3v0qz8.mjs +1 -0
  331. package/dist/chunks/index-0.7.4-kkcp2c2w.mjs +9 -0
  332. package/dist/chunks/index-0.7.4-n3dcdt88.mjs +1 -0
  333. package/dist/chunks/index-0.7.4-p8ts8cvg.mjs +1 -0
  334. package/dist/chunks/index-0.7.4-pamx7cgj.mjs +17 -0
  335. package/dist/chunks/index-0.7.4-pvvgj6g7.mjs +1 -0
  336. package/dist/chunks/index-0.7.4-rhf5p3mf.mjs +1 -0
  337. package/dist/chunks/index-0.7.4-rzztd31r.mjs +1 -0
  338. package/dist/chunks/index-0.7.4-sajaaw7k.mjs +30 -0
  339. package/dist/chunks/index-0.7.4-xdq0jf9r.mjs +1 -0
  340. package/dist/chunks/index-0.7.4-z3z8qmah.mjs +9 -0
  341. package/dist/chunks/init-0.7.4-4e9zty2q.mjs +1 -0
  342. package/dist/chunks/initReplBridge-0.7.4-yrparcz7.mjs +1 -0
  343. package/dist/chunks/ink-0.7.4-r1261h4c.mjs +1 -0
  344. package/dist/chunks/insights-0.7.4-t5dmav2c.mjs +870 -0
  345. package/dist/chunks/install-0.7.4-09cxj9vb.mjs +1 -0
  346. package/dist/chunks/install-github-app-0.7.4-hv9wkbxq.mjs +149 -0
  347. package/dist/chunks/install-slack-app-0.7.4-hgnea2d6.mjs +1 -0
  348. package/dist/chunks/instrumentation-0.7.4-17ca7p44.mjs +1 -0
  349. package/dist/chunks/interactiveHelpers-0.7.4-8jxj468e.mjs +1 -0
  350. package/dist/chunks/keybindings-0.7.4-raw68sen.mjs +2 -0
  351. package/dist/chunks/knowledge-0.7.4-xg9wb8wf.mjs +2 -0
  352. package/dist/chunks/latestVersionCache-0.7.4-60ks5x17.mjs +1 -0
  353. package/dist/chunks/loadAgentsDir-0.7.4-fg72pr2c.mjs +1 -0
  354. package/dist/chunks/loadPluginHooks-0.7.4-anp72ngw.mjs +1 -0
  355. package/dist/chunks/loadPluginHooks-0.7.4-jsx8r8aw.mjs +1 -0
  356. package/dist/chunks/log-0.7.4-12x7gw8q.mjs +1 -0
  357. package/dist/chunks/main-0.7.4-q6k044gc.mjs +1 -0
  358. package/dist/chunks/managedEnv-0.7.4-74e7mhhm.mjs +1 -0
  359. package/dist/chunks/mcp-0.7.4-4sr5rcvc.mjs +17 -0
  360. package/dist/chunks/mcp-0.7.4-9g6a64bt.mjs +4 -0
  361. package/dist/chunks/mcp-0.7.4-z4k2mzgy.mjs +1 -0
  362. package/dist/chunks/mcpb-0.7.4-jxskcyd8.mjs +1 -0
  363. package/dist/chunks/memory-0.7.4-541b29se.mjs +3 -0
  364. package/dist/chunks/model-0.7.4-mxvb5p7w.mjs +2 -0
  365. package/dist/chunks/model-0.7.4-nc7qk972.mjs +1 -0
  366. package/dist/chunks/node-0.7.4-hg387vyg.mjs +12 -0
  367. package/dist/chunks/oauth-0.7.4-e4sc7m0w.mjs +1 -0
  368. package/dist/chunks/openaiShim-0.7.4-mwtq6jnq.mjs +14 -0
  369. package/dist/chunks/output-style-0.7.4-b3vewghm.mjs +1 -0
  370. package/dist/chunks/package-GCDC7LJR-0.7.4-1e6194dg.mjs +1 -0
  371. package/dist/chunks/parseConnectUrl-0.7.4-46v5dfsp.mjs +1 -0
  372. package/dist/chunks/parser-0.7.4-2wt2btdd.mjs +1 -0
  373. package/dist/chunks/passes-0.7.4-182xeaj4.mjs +1 -0
  374. package/dist/chunks/permissions-0.7.4-hbqjvate.mjs +3 -0
  375. package/dist/chunks/permissions-0.7.4-qxf6e5nd.mjs +1 -0
  376. package/dist/chunks/plan-0.7.4-t5djkwkz.mjs +1 -0
  377. package/dist/chunks/plist-0.7.4-98g5pq7j.mjs +1 -0
  378. package/dist/chunks/plugin-0.7.4-0kmdzd88.mjs +29 -0
  379. package/dist/chunks/pluginStartupCheck-0.7.4-f1kq85sa.mjs +1 -0
  380. package/dist/chunks/plugins-0.7.4-52qggqw3.mjs +9 -0
  381. package/dist/chunks/preActionHook-0.7.4-qdyv0zgd.mjs +2 -0
  382. package/dist/chunks/print-0.7.4-1y1eqyhp.mjs +57 -0
  383. package/dist/chunks/privacy-settings-0.7.4-jrr06fw8.mjs +1 -0
  384. package/dist/chunks/process-0.7.4-bh0fjdst.mjs +1 -0
  385. package/dist/chunks/processBashCommand-0.7.4-8j3chrnm.mjs +1 -0
  386. package/dist/chunks/processSlashCommand-0.7.4-j53jaae7.mjs +9 -0
  387. package/dist/chunks/prompt-0.7.4-6eskezm8.mjs +1 -0
  388. package/dist/chunks/prompt-0.7.4-bnhsjhx3.mjs +1 -0
  389. package/dist/chunks/prompts-0.7.4-vevq7ae1.mjs +1 -0
  390. package/dist/chunks/protocolHandler-0.7.4-s4j6aeqh.mjs +13 -0
  391. package/dist/chunks/provider-0.7.4-jvtch160.mjs +2 -0
  392. package/dist/chunks/providerProfiles-0.7.4-yqetgvnq.mjs +1 -0
  393. package/dist/chunks/providerValidation-0.7.4-g6enpya6.mjs +6 -0
  394. package/dist/chunks/rate-limit-options-0.7.4-cwnmpqq9.mjs +1 -0
  395. package/dist/chunks/registerSubcommands-0.7.4-z1bdpgwx.mjs +34 -0
  396. package/dist/chunks/registry-0.7.4-5tne3d7e.mjs +1 -0
  397. package/dist/chunks/release-notes-0.7.4-sdsbw8s6.mjs +5 -0
  398. package/dist/chunks/reload-plugins-0.7.4-8fpph071.mjs +2 -0
  399. package/dist/chunks/remote-env-0.7.4-b1mzf95y.mjs +1 -0
  400. package/dist/chunks/remoteBridgeCore-0.7.4-9psc4fph.mjs +1 -0
  401. package/dist/chunks/remoteSession-0.7.4-8q76j945.mjs +1 -0
  402. package/dist/chunks/rename-0.7.4-x6q5drmn.mjs +1 -0
  403. package/dist/chunks/replBridgeHandle-0.7.4-dnp2by0g.mjs +1 -0
  404. package/dist/chunks/replLauncher-0.7.4-ztr3sg2j.mjs +1 -0
  405. package/dist/chunks/resume-0.7.4-zg3nxxte.mjs +2 -0
  406. package/dist/chunks/rewind-0.7.4-9j0zbj9a.mjs +1 -0
  407. package/dist/chunks/rootOptions-0.7.4-jrktzb1h.mjs +1 -0
  408. package/dist/chunks/sandbox-adapter-0.7.4-h71dwt2q.mjs +1 -0
  409. package/dist/chunks/sandbox-toggle-0.7.4-ks8gnbp8.mjs +1 -0
  410. package/dist/chunks/session-0.7.4-vc75bjkq.mjs +2 -0
  411. package/dist/chunks/sessionDiscovery-0.7.4-aqvmyy21.mjs +1 -0
  412. package/dist/chunks/sessionFileAccessHooks-0.7.4-7rw6txzf.mjs +1 -0
  413. package/dist/chunks/sessionStorage-0.7.4-820nxqcx.mjs +1 -0
  414. package/dist/chunks/settings-0.7.4-xn9kh7fk.mjs +1 -0
  415. package/dist/chunks/setup-0.7.4-ad98h634.mjs +5 -0
  416. package/dist/chunks/sinks-0.7.4-z7ad37zx.mjs +1 -0
  417. package/dist/chunks/skills-0.7.4-ad67cz1j.mjs +1 -0
  418. package/dist/chunks/startupProfiler-0.7.4-akaj65pe.mjs +1 -0
  419. package/dist/chunks/startupUpdateCheck-0.7.4-7r3vt1zf.mjs +1 -0
  420. package/dist/chunks/state-0.7.4-vjqm3ded.mjs +1 -0
  421. package/dist/chunks/stats-0.7.4-hqz1awtk.mjs +6 -0
  422. package/dist/chunks/status-0.7.4-e09aw5s3.mjs +1 -0
  423. package/dist/chunks/stickers-0.7.4-356twswm.mjs +1 -0
  424. package/dist/chunks/subprocessEnv-0.7.4-zjpbw9eg.mjs +1 -0
  425. package/dist/chunks/tasks-0.7.4-yqdwmw5j.mjs +1 -0
  426. package/dist/chunks/teamHelpers-0.7.4-0mtce030.mjs +1 -0
  427. package/dist/chunks/teammateModeSnapshot-0.7.4-q60shbd0.mjs +1 -0
  428. package/dist/chunks/teleport-0.7.4-6h25n23n.mjs +1 -0
  429. package/dist/chunks/terminalSetup-0.7.4-5fm9br3v.mjs +1 -0
  430. package/dist/chunks/theme-0.7.4-3cxdxqzd.mjs +1 -0
  431. package/dist/chunks/thinkback-0.7.4-k40dtctf.mjs +1 -0
  432. package/dist/chunks/thinkback-play-0.7.4-vmbx4r0v.mjs +1 -0
  433. package/dist/chunks/toolPool-0.7.4-fr9jcgkr.mjs +1 -0
  434. package/dist/chunks/toolSearch-0.7.4-72eq96x6.mjs +1 -0
  435. package/dist/chunks/tools-0.7.4-n2jj5cxj.mjs +1 -0
  436. package/dist/chunks/trustedDevice-0.7.4-5jh1e885.mjs +1 -0
  437. package/dist/chunks/turndown.cjs-0.7.4-3sq52e78.mjs +69 -0
  438. package/dist/chunks/types-0.7.4-cybkwcw1.mjs +1 -0
  439. package/dist/chunks/ultrareviewCommand-0.7.4-p3ykdjx4.mjs +4 -0
  440. package/dist/chunks/update-0.7.4-9hphbpbx.mjs +86 -0
  441. package/dist/chunks/upgrade-0.7.4-hhn879a5.mjs +1 -0
  442. package/dist/chunks/upload-0.7.4-rmfqa4n5.mjs +7 -0
  443. package/dist/chunks/upstreamproxy-0.7.4-f89cjzmp.mjs +14 -0
  444. package/dist/chunks/url-handler-napi-0.7.4-kdweyv4n.mjs +1 -0
  445. package/dist/chunks/usage-0.7.4-z5s6dhj7.mjs +1 -0
  446. package/dist/chunks/util-0.7.4-wf3hrc3w.mjs +1 -0
  447. package/dist/chunks/utils-0.7.4-f33hkvq8.mjs +1 -0
  448. package/dist/chunks/vim-0.7.4-pkw9kc18.mjs +1 -0
  449. package/dist/chunks/watcher-0.7.4-h80z0z8g.mjs +1 -0
  450. package/dist/chunks/wiki-0.7.4-5rfrx592.mjs +132 -0
  451. package/dist/chunks/workflows-0.7.4-7dgxra0n.mjs +1 -0
  452. package/dist/chunks/worktree-0.7.4-ar646nm5.mjs +1 -0
  453. package/dist/chunks/worktreeModeEnabled-0.7.4-1z56z896.mjs +1 -0
  454. package/dist/chunks/wrapper-0.7.4-bp55g4da.mjs +7 -0
  455. package/dist/claudin-vscode.vsix +0 -0
  456. package/dist/cli.mjs +2 -2
  457. package/package.json +18 -2
  458. package/dist/chunks/AgentTool-0.7.2-9q9cf0s2.mjs +0 -1
  459. package/dist/chunks/App-0.7.2-1yazneaj.mjs +0 -1
  460. package/dist/chunks/ApproveApiKey-0.7.2-r6n7yk1e.mjs +0 -1
  461. package/dist/chunks/AssistantSessionChooser-0.7.2-bq8tfzkt.mjs +0 -1
  462. package/dist/chunks/AutoModeOptInDialog-0.7.2-exq70cpt.mjs +0 -1
  463. package/dist/chunks/BypassPermissionsModeDialog-0.7.2-4wq8e6bg.mjs +0 -1
  464. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.2-tfd9bwks.mjs +0 -1
  465. package/dist/chunks/ConsoleOAuthFlow-0.7.2-x4nff112.mjs +0 -1
  466. package/dist/chunks/DiffDialog-0.7.2-rynq65x0.mjs +0 -7
  467. package/dist/chunks/Doctor-0.7.2-47kvka8v.mjs +0 -1
  468. package/dist/chunks/ExplorerDialog-0.7.2-whxpmm57.mjs +0 -6
  469. package/dist/chunks/Grove-0.7.2-xd5sc9zj.mjs +0 -1
  470. package/dist/chunks/ITermBackend-0.7.2-d9gvx90g.mjs +0 -1
  471. package/dist/chunks/InvalidConfigDialog-0.7.2-caf92zwe.mjs +0 -1
  472. package/dist/chunks/InvalidSettingsDialog-0.7.2-4ahhegj6.mjs +0 -1
  473. package/dist/chunks/MigrationDialog-0.7.2-j7wxkhr6.mjs +0 -1
  474. package/dist/chunks/Onboarding-0.7.2-4rq70qsr.mjs +0 -1
  475. package/dist/chunks/ProviderManager-0.7.2-gjmzm35c.mjs +0 -1
  476. package/dist/chunks/REPL-0.7.2-a8j6n2qa.mjs +0 -1
  477. package/dist/chunks/ResumeConversation-0.7.2-84wvvrx5.mjs +0 -1
  478. package/dist/chunks/SnapshotUpdateDialog-0.7.2-wk0qx8j6.mjs +0 -1
  479. package/dist/chunks/TeleportProgress-0.7.2-dj8zvkv5.mjs +0 -1
  480. package/dist/chunks/TeleportRepoMismatchDialog-0.7.2-ey2mmrd3.mjs +0 -1
  481. package/dist/chunks/TeleportResumeWrapper-0.7.2-j4vtrwzz.mjs +0 -1
  482. package/dist/chunks/TmuxBackend-0.7.2-en2ev5fc.mjs +0 -9
  483. package/dist/chunks/ToolSearchTool-0.7.2-qkk7a91f.mjs +0 -1
  484. package/dist/chunks/TrustDialog-0.7.2-eh3tqgea.mjs +0 -1
  485. package/dist/chunks/activeProvider-0.7.2-53s4g0s8.mjs +0 -1
  486. package/dist/chunks/add-dir-0.7.2-p09yjmj7.mjs +0 -1
  487. package/dist/chunks/agents-0.7.2-0m73ejzs.mjs +0 -3
  488. package/dist/chunks/agents-0.7.2-a1zpb02y.mjs +0 -110
  489. package/dist/chunks/api-0.7.2-gwy9gs1j.mjs +0 -1
  490. package/dist/chunks/asciicast-0.7.2-5vqep6sv.mjs +0 -1
  491. package/dist/chunks/assistant-0.7.2-txvf934b.mjs +0 -1
  492. package/dist/chunks/auth-0.7.2-02q30rsb.mjs +0 -1
  493. package/dist/chunks/auth-0.7.2-x29x49yh.mjs +0 -1
  494. package/dist/chunks/autoMode-0.7.2-5jnc8v33.mjs +0 -48
  495. package/dist/chunks/autoUpdater-0.7.2-pdqvbd3c.mjs +0 -1
  496. package/dist/chunks/backgroundHousekeeping-0.7.2-1m4w90vq.mjs +0 -1
  497. package/dist/chunks/branch-0.7.2-wgyhx41x.mjs +0 -4
  498. package/dist/chunks/bridge-0.7.2-f4ryhejx.mjs +0 -2
  499. package/dist/chunks/bridgeConfig-0.7.2-g6w4rghz.mjs +0 -1
  500. package/dist/chunks/bridgeEnabled-0.7.2-5aspb655.mjs +0 -1
  501. package/dist/chunks/bridgeMain-0.7.2-fey03cj7.mjs +0 -88
  502. package/dist/chunks/bridgePointer-0.7.2-8k41syzc.mjs +0 -1
  503. package/dist/chunks/btw-0.7.2-syxbtnxj.mjs +0 -1
  504. package/dist/chunks/buddy-0.7.2-gge72j8t.mjs +0 -3
  505. package/dist/chunks/cacache-0.7.2-gztwvvrm.mjs +0 -1
  506. package/dist/chunks/cache-probe-0.7.2-1gytt4j5.mjs +0 -21
  507. package/dist/chunks/cacheStats-0.7.2-sd9n48k1.mjs +0 -4
  508. package/dist/chunks/caches-0.7.2-cqzt5zwn.mjs +0 -1
  509. package/dist/chunks/claudeDesktop-0.7.2-7pna3peh.mjs +0 -1
  510. package/dist/chunks/claudemd-0.7.2-n2d9tbz6.mjs +0 -1
  511. package/dist/chunks/clear-0.7.2-v59pskrm.mjs +0 -1
  512. package/dist/chunks/clearTerminal-0.7.2-p4d7q5b7.mjs +0 -1
  513. package/dist/chunks/cli-0.7.2-0cmw1f4j.mjs +0 -2
  514. package/dist/chunks/cli-0.7.2-0mj25tns.mjs +0 -2
  515. package/dist/chunks/cli-0.7.2-0v8f8cx4.mjs +0 -2
  516. package/dist/chunks/cli-0.7.2-19vhaz2c.mjs +0 -2
  517. package/dist/chunks/cli-0.7.2-1a4j9k2f.mjs +0 -2
  518. package/dist/chunks/cli-0.7.2-1aerk8aa.mjs +0 -2
  519. package/dist/chunks/cli-0.7.2-1rwkghr2.mjs +0 -2
  520. package/dist/chunks/cli-0.7.2-21mtjks8.mjs +0 -15
  521. package/dist/chunks/cli-0.7.2-23xjb2nt.mjs +0 -2
  522. package/dist/chunks/cli-0.7.2-26rzbaez.mjs +0 -2
  523. package/dist/chunks/cli-0.7.2-29hh46ve.mjs +0 -3
  524. package/dist/chunks/cli-0.7.2-2dbmqwyn.mjs +0 -2
  525. package/dist/chunks/cli-0.7.2-2rj33835.mjs +0 -6
  526. package/dist/chunks/cli-0.7.2-31k7gjq7.mjs +0 -2
  527. package/dist/chunks/cli-0.7.2-358vh55m.mjs +0 -2
  528. package/dist/chunks/cli-0.7.2-3cc67r6d.mjs +0 -2
  529. package/dist/chunks/cli-0.7.2-3frg7csa.mjs +0 -2
  530. package/dist/chunks/cli-0.7.2-3s2zd715.mjs +0 -3
  531. package/dist/chunks/cli-0.7.2-3synxf81.mjs +0 -2
  532. package/dist/chunks/cli-0.7.2-40f37y02.mjs +0 -2
  533. package/dist/chunks/cli-0.7.2-40xymk1q.mjs +0 -2
  534. package/dist/chunks/cli-0.7.2-437jawbh.mjs +0 -2
  535. package/dist/chunks/cli-0.7.2-43d0yq0h.mjs +0 -2
  536. package/dist/chunks/cli-0.7.2-44rzmsbx.mjs +0 -2
  537. package/dist/chunks/cli-0.7.2-4d6z9fdj.mjs +0 -2
  538. package/dist/chunks/cli-0.7.2-4g4d682x.mjs +0 -3
  539. package/dist/chunks/cli-0.7.2-520tgkhw.mjs +0 -5438
  540. package/dist/chunks/cli-0.7.2-53qayxqk.mjs +0 -2
  541. package/dist/chunks/cli-0.7.2-5415yrkc.mjs +0 -2
  542. package/dist/chunks/cli-0.7.2-55ye29jy.mjs +0 -2
  543. package/dist/chunks/cli-0.7.2-5750g5et.mjs +0 -2
  544. package/dist/chunks/cli-0.7.2-59wm2srd.mjs +0 -2
  545. package/dist/chunks/cli-0.7.2-5aka4emf.mjs +0 -133
  546. package/dist/chunks/cli-0.7.2-5c89p68w.mjs +0 -2
  547. package/dist/chunks/cli-0.7.2-5ca5nqtj.mjs +0 -4
  548. package/dist/chunks/cli-0.7.2-5e72m61f.mjs +0 -25
  549. package/dist/chunks/cli-0.7.2-5ff63f31.mjs +0 -4
  550. package/dist/chunks/cli-0.7.2-5gqht4d7.mjs +0 -2
  551. package/dist/chunks/cli-0.7.2-5qd0bn5g.mjs +0 -193
  552. package/dist/chunks/cli-0.7.2-5tacs42k.mjs +0 -2
  553. package/dist/chunks/cli-0.7.2-5y498dyr.mjs +0 -2
  554. package/dist/chunks/cli-0.7.2-5y75zyrv.mjs +0 -15
  555. package/dist/chunks/cli-0.7.2-5yrman6f.mjs +0 -2
  556. package/dist/chunks/cli-0.7.2-60exfzc0.mjs +0 -2
  557. package/dist/chunks/cli-0.7.2-65v6wt4g.mjs +0 -2
  558. package/dist/chunks/cli-0.7.2-68dn8am7.mjs +0 -2
  559. package/dist/chunks/cli-0.7.2-6pjgt9bx.mjs +0 -2
  560. package/dist/chunks/cli-0.7.2-6zd4a6yh.mjs +0 -12
  561. package/dist/chunks/cli-0.7.2-796x24s1.mjs +0 -2
  562. package/dist/chunks/cli-0.7.2-7dh7rk2t.mjs +0 -2
  563. package/dist/chunks/cli-0.7.2-7rjfehxm.mjs +0 -2
  564. package/dist/chunks/cli-0.7.2-7xfph0pz.mjs +0 -2
  565. package/dist/chunks/cli-0.7.2-81s45w7r.mjs +0 -2
  566. package/dist/chunks/cli-0.7.2-828f420c.mjs +0 -7
  567. package/dist/chunks/cli-0.7.2-83dd0h2c.mjs +0 -2
  568. package/dist/chunks/cli-0.7.2-88h70xrj.mjs +0 -50
  569. package/dist/chunks/cli-0.7.2-894093rv.mjs +0 -2
  570. package/dist/chunks/cli-0.7.2-89wj5h3q.mjs +0 -2
  571. package/dist/chunks/cli-0.7.2-8pfcc363.mjs +0 -12
  572. package/dist/chunks/cli-0.7.2-8qd7xft9.mjs +0 -16
  573. package/dist/chunks/cli-0.7.2-9156j3vm.mjs +0 -6
  574. package/dist/chunks/cli-0.7.2-9328ezjz.mjs +0 -3
  575. package/dist/chunks/cli-0.7.2-9953mwyy.mjs +0 -2
  576. package/dist/chunks/cli-0.7.2-99am4r15.mjs +0 -4
  577. package/dist/chunks/cli-0.7.2-9kn29b9a.mjs +0 -4
  578. package/dist/chunks/cli-0.7.2-9ry87dm1.mjs +0 -2
  579. package/dist/chunks/cli-0.7.2-9vr6ts7b.mjs +0 -2
  580. package/dist/chunks/cli-0.7.2-a5svqzyj.mjs +0 -2
  581. package/dist/chunks/cli-0.7.2-a6q1amed.mjs +0 -2
  582. package/dist/chunks/cli-0.7.2-a9324x4q.mjs +0 -8
  583. package/dist/chunks/cli-0.7.2-aaxbm02p.mjs +0 -2
  584. package/dist/chunks/cli-0.7.2-apg4ptg9.mjs +0 -2
  585. package/dist/chunks/cli-0.7.2-atsd6734.mjs +0 -2
  586. package/dist/chunks/cli-0.7.2-avk3azcp.mjs +0 -2
  587. package/dist/chunks/cli-0.7.2-aye3y5eg.mjs +0 -2
  588. package/dist/chunks/cli-0.7.2-b0v1mt53.mjs +0 -2
  589. package/dist/chunks/cli-0.7.2-b9pdb0nv.mjs +0 -26
  590. package/dist/chunks/cli-0.7.2-bd97qyyb.mjs +0 -2
  591. package/dist/chunks/cli-0.7.2-bdnz1mnz.mjs +0 -21
  592. package/dist/chunks/cli-0.7.2-bjk14f5p.mjs +0 -2
  593. package/dist/chunks/cli-0.7.2-bmz47g1t.mjs +0 -18
  594. package/dist/chunks/cli-0.7.2-bttmh4fa.mjs +0 -4
  595. package/dist/chunks/cli-0.7.2-ccy16hvg.mjs +0 -2
  596. package/dist/chunks/cli-0.7.2-chg4zqj2.mjs +0 -2
  597. package/dist/chunks/cli-0.7.2-cjhzamwx.mjs +0 -2
  598. package/dist/chunks/cli-0.7.2-cqh66sd8.mjs +0 -2
  599. package/dist/chunks/cli-0.7.2-cqqj8v1e.mjs +0 -6
  600. package/dist/chunks/cli-0.7.2-czgmcj2j.mjs +0 -2
  601. package/dist/chunks/cli-0.7.2-d5fbych4.mjs +0 -2
  602. package/dist/chunks/cli-0.7.2-dggndd24.mjs +0 -2
  603. package/dist/chunks/cli-0.7.2-drxj7wsn.mjs +0 -2
  604. package/dist/chunks/cli-0.7.2-ds7h4ntr.mjs +0 -2
  605. package/dist/chunks/cli-0.7.2-dxm2c139.mjs +0 -24
  606. package/dist/chunks/cli-0.7.2-dzt53r0y.mjs +0 -2
  607. package/dist/chunks/cli-0.7.2-e6dtw86q.mjs +0 -2
  608. package/dist/chunks/cli-0.7.2-ec60dmtg.mjs +0 -2
  609. package/dist/chunks/cli-0.7.2-edf740pd.mjs +0 -5
  610. package/dist/chunks/cli-0.7.2-eey9qnsc.mjs +0 -2
  611. package/dist/chunks/cli-0.7.2-eyjs1wq5.mjs +0 -2
  612. package/dist/chunks/cli-0.7.2-f4nt233k.mjs +0 -3
  613. package/dist/chunks/cli-0.7.2-fcadqwem.mjs +0 -1
  614. package/dist/chunks/cli-0.7.2-fkp8v4sr.mjs +0 -2
  615. package/dist/chunks/cli-0.7.2-g3k7m45h.mjs +0 -12
  616. package/dist/chunks/cli-0.7.2-g6cqgcyf.mjs +0 -2
  617. package/dist/chunks/cli-0.7.2-gar34ch2.mjs +0 -4
  618. package/dist/chunks/cli-0.7.2-gn8ff3x2.mjs +0 -2
  619. package/dist/chunks/cli-0.7.2-gssxkynf.mjs +0 -2
  620. package/dist/chunks/cli-0.7.2-gx0r7hs8.mjs +0 -2
  621. package/dist/chunks/cli-0.7.2-gysw8esj.mjs +0 -2
  622. package/dist/chunks/cli-0.7.2-h248q4gt.mjs +0 -2
  623. package/dist/chunks/cli-0.7.2-h3jq0nx1.mjs +0 -2
  624. package/dist/chunks/cli-0.7.2-h7m849rt.mjs +0 -2
  625. package/dist/chunks/cli-0.7.2-h903zfjz.mjs +0 -2
  626. package/dist/chunks/cli-0.7.2-hbmczrch.mjs +0 -9
  627. package/dist/chunks/cli-0.7.2-he1hdn59.mjs +0 -18
  628. package/dist/chunks/cli-0.7.2-hspcdhd7.mjs +0 -2
  629. package/dist/chunks/cli-0.7.2-hv1z3had.mjs +0 -3
  630. package/dist/chunks/cli-0.7.2-hvk7rgt3.mjs +0 -2
  631. package/dist/chunks/cli-0.7.2-j029dkan.mjs +0 -3
  632. package/dist/chunks/cli-0.7.2-j0s33kp5.mjs +0 -2
  633. package/dist/chunks/cli-0.7.2-j3vx2jqw.mjs +0 -2
  634. package/dist/chunks/cli-0.7.2-jbhdwhp3.mjs +0 -2
  635. package/dist/chunks/cli-0.7.2-jc7jm1vm.mjs +0 -2
  636. package/dist/chunks/cli-0.7.2-jkt40yfs.mjs +0 -2
  637. package/dist/chunks/cli-0.7.2-jn2497vh.mjs +0 -2
  638. package/dist/chunks/cli-0.7.2-jv6k1kz6.mjs +0 -2
  639. package/dist/chunks/cli-0.7.2-k40k933y.mjs +0 -24
  640. package/dist/chunks/cli-0.7.2-k6jnr159.mjs +0 -2
  641. package/dist/chunks/cli-0.7.2-k9qpm29e.mjs +0 -2
  642. package/dist/chunks/cli-0.7.2-kyd7mrxn.mjs +0 -2
  643. package/dist/chunks/cli-0.7.2-mapkx1gt.mjs +0 -2
  644. package/dist/chunks/cli-0.7.2-mg2tmjs3.mjs +0 -12
  645. package/dist/chunks/cli-0.7.2-mja3g8j0.mjs +0 -2
  646. package/dist/chunks/cli-0.7.2-mp7jnva5.mjs +0 -15
  647. package/dist/chunks/cli-0.7.2-mqv265gk.mjs +0 -42
  648. package/dist/chunks/cli-0.7.2-mw93dmjz.mjs +0 -3
  649. package/dist/chunks/cli-0.7.2-n1ncm3tc.mjs +0 -2
  650. package/dist/chunks/cli-0.7.2-n8kpba5n.mjs +0 -2
  651. package/dist/chunks/cli-0.7.2-ndt224p1.mjs +0 -2
  652. package/dist/chunks/cli-0.7.2-nf346apq.mjs +0 -18
  653. package/dist/chunks/cli-0.7.2-ngdtr2fz.mjs +0 -2
  654. package/dist/chunks/cli-0.7.2-nkafymh4.mjs +0 -3
  655. package/dist/chunks/cli-0.7.2-nxtag6y2.mjs +0 -45
  656. package/dist/chunks/cli-0.7.2-p42bcqhs.mjs +0 -3
  657. package/dist/chunks/cli-0.7.2-pbaedfkk.mjs +0 -67
  658. package/dist/chunks/cli-0.7.2-pjavf176.mjs +0 -2
  659. package/dist/chunks/cli-0.7.2-pm05qj0a.mjs +0 -4
  660. package/dist/chunks/cli-0.7.2-ppaeptkd.mjs +0 -2
  661. package/dist/chunks/cli-0.7.2-q2pk22xv.mjs +0 -2
  662. package/dist/chunks/cli-0.7.2-q85af7gm.mjs +0 -2
  663. package/dist/chunks/cli-0.7.2-q88h44qv.mjs +0 -17
  664. package/dist/chunks/cli-0.7.2-q9twb2tn.mjs +0 -2
  665. package/dist/chunks/cli-0.7.2-qdapr4dz.mjs +0 -2
  666. package/dist/chunks/cli-0.7.2-qf8435qy.mjs +0 -2
  667. package/dist/chunks/cli-0.7.2-qftw5wyw.mjs +0 -5
  668. package/dist/chunks/cli-0.7.2-qr706n52.mjs +0 -10
  669. package/dist/chunks/cli-0.7.2-qsx52bst.mjs +0 -2
  670. package/dist/chunks/cli-0.7.2-r1502pen.mjs +0 -2
  671. package/dist/chunks/cli-0.7.2-r26ghgw6.mjs +0 -5
  672. package/dist/chunks/cli-0.7.2-r7x165sf.mjs +0 -17
  673. package/dist/chunks/cli-0.7.2-rn3w4y3r.mjs +0 -2
  674. package/dist/chunks/cli-0.7.2-s0av8fr2.mjs +0 -2
  675. package/dist/chunks/cli-0.7.2-s3r1krp7.mjs +0 -2
  676. package/dist/chunks/cli-0.7.2-s41x7s9w.mjs +0 -133
  677. package/dist/chunks/cli-0.7.2-se4w3qaw.mjs +0 -2
  678. package/dist/chunks/cli-0.7.2-sjrnxjfp.mjs +0 -2
  679. package/dist/chunks/cli-0.7.2-sr9m45tm.mjs +0 -2
  680. package/dist/chunks/cli-0.7.2-t1wtmnh8.mjs +0 -2
  681. package/dist/chunks/cli-0.7.2-tds456xt.mjs +0 -34
  682. package/dist/chunks/cli-0.7.2-tf3mc20k.mjs +0 -4
  683. package/dist/chunks/cli-0.7.2-twx01hwg.mjs +0 -2
  684. package/dist/chunks/cli-0.7.2-tx2rxhrx.mjs +0 -3
  685. package/dist/chunks/cli-0.7.2-tytdzgnc.mjs +0 -2
  686. package/dist/chunks/cli-0.7.2-tz5zv753.mjs +0 -6
  687. package/dist/chunks/cli-0.7.2-tzc6qkph.mjs +0 -3
  688. package/dist/chunks/cli-0.7.2-vb0ja1yz.mjs +0 -2
  689. package/dist/chunks/cli-0.7.2-vgq7ce31.mjs +0 -4
  690. package/dist/chunks/cli-0.7.2-vqvfxb9x.mjs +0 -2
  691. package/dist/chunks/cli-0.7.2-vvbp0ycp.mjs +0 -2
  692. package/dist/chunks/cli-0.7.2-vx10940a.mjs +0 -2
  693. package/dist/chunks/cli-0.7.2-vx90v3pr.mjs +0 -2
  694. package/dist/chunks/cli-0.7.2-w07ksegr.mjs +0 -2
  695. package/dist/chunks/cli-0.7.2-waas8a1p.mjs +0 -2
  696. package/dist/chunks/cli-0.7.2-wahbzckp.mjs +0 -58
  697. package/dist/chunks/cli-0.7.2-whm7dq8a.mjs +0 -2
  698. package/dist/chunks/cli-0.7.2-wk3m6ndw.mjs +0 -2
  699. package/dist/chunks/cli-0.7.2-wmz88sxe.mjs +0 -2
  700. package/dist/chunks/cli-0.7.2-xced0m7v.mjs +0 -2
  701. package/dist/chunks/cli-0.7.2-xkbkgc1x.mjs +0 -2
  702. package/dist/chunks/cli-0.7.2-xmf0q5j5.mjs +0 -39
  703. package/dist/chunks/cli-0.7.2-xpw13d73.mjs +0 -59
  704. package/dist/chunks/cli-0.7.2-xtj79p8n.mjs +0 -2
  705. package/dist/chunks/cli-0.7.2-xwmd0gap.mjs +0 -2
  706. package/dist/chunks/cli-0.7.2-xzq4nj1z.mjs +0 -2
  707. package/dist/chunks/cli-0.7.2-ydcqkbay.mjs +0 -20
  708. package/dist/chunks/cli-0.7.2-yeym3pfk.mjs +0 -4
  709. package/dist/chunks/cli-0.7.2-ygx94a70.mjs +0 -2
  710. package/dist/chunks/cli-0.7.2-ymes9mpn.mjs +0 -2
  711. package/dist/chunks/cli-0.7.2-yppcb6em.mjs +0 -2
  712. package/dist/chunks/cli-0.7.2-ze0wyhxh.mjs +0 -2
  713. package/dist/chunks/cli-0.7.2-zevvxkk3.mjs +0 -2
  714. package/dist/chunks/cli-0.7.2-zjn5drn1.mjs +0 -3
  715. package/dist/chunks/cli-0.7.2-zva1j44t.mjs +0 -2
  716. package/dist/chunks/cli-0.7.2-zvq6jw19.mjs +0 -2
  717. package/dist/chunks/client-0.7.2-5ayk0kpq.mjs +0 -1
  718. package/dist/chunks/color-0.7.2-qwk7wwhg.mjs +0 -1
  719. package/dist/chunks/compact-0.7.2-1htfptdq.mjs +0 -3
  720. package/dist/chunks/config-0.7.2-5qhqvs6r.mjs +0 -1
  721. package/dist/chunks/config-0.7.2-m4pjdgrd.mjs +0 -1
  722. package/dist/chunks/constants-0.7.2-pkxz3zw1.mjs +0 -1
  723. package/dist/chunks/context-0.7.2-sbj7xgcd.mjs +0 -1
  724. package/dist/chunks/context-noninteractive-0.7.2-0e342zm8.mjs +0 -1
  725. package/dist/chunks/conversation-0.7.2-8w1wm1xe.mjs +0 -1
  726. package/dist/chunks/copilotHeaders-0.7.2-qkkqpxf3.mjs +0 -1
  727. package/dist/chunks/copy-0.7.2-edx6f8tb.mjs +0 -9
  728. package/dist/chunks/cost-0.7.2-8arxgyd6.mjs +0 -1
  729. package/dist/chunks/createSSHSession-0.7.2-3n718ymh.mjs +0 -1
  730. package/dist/chunks/createSession-0.7.2-hm9d0q01.mjs +0 -1
  731. package/dist/chunks/debug-0.7.2-ngrc7p4e.mjs +0 -1
  732. package/dist/chunks/defaultActionDeps-0.7.2-dftsz493.mjs +0 -1446
  733. package/dist/chunks/desktop-0.7.2-vt6ymh81.mjs +0 -1
  734. package/dist/chunks/detectRepository-0.7.2-xgsqcqxv.mjs +0 -1
  735. package/dist/chunks/detection-0.7.2-m6c0amh8.mjs +0 -1
  736. package/dist/chunks/diff-0.7.2-7np6da8n.mjs +0 -1
  737. package/dist/chunks/doctor-0.7.2-spqx634t.mjs +0 -1
  738. package/dist/chunks/doctorDiagnostic-0.7.2-81rdywyn.mjs +0 -1
  739. package/dist/chunks/earlyInput-0.7.2-b7j7hx34.mjs +0 -1
  740. package/dist/chunks/effort-0.7.2-1jd0yvy3.mjs +0 -10
  741. package/dist/chunks/envLessBridgeConfig-0.7.2-x5wybzrg.mjs +0 -1
  742. package/dist/chunks/envUtils-0.7.2-srtr0ybx.mjs +0 -1
  743. package/dist/chunks/environmentSelection-0.7.2-drjpcqg5.mjs +0 -1
  744. package/dist/chunks/environments-0.7.2-c51gb5sh.mjs +0 -1
  745. package/dist/chunks/errors-0.7.2-4mfat7g5.mjs +0 -1
  746. package/dist/chunks/exampleCommands-0.7.2-c8b6smyk.mjs +0 -1
  747. package/dist/chunks/exit-0.7.2-0b21e2f4.mjs +0 -1
  748. package/dist/chunks/explorer-0.7.2-b2qgsg4r.mjs +0 -1
  749. package/dist/chunks/export-0.7.2-j6tnta5r.mjs +0 -2
  750. package/dist/chunks/extra-usage-0.7.2-8xrddgmh.mjs +0 -1
  751. package/dist/chunks/extra-usage-noninteractive-0.7.2-vzzkmfzw.mjs +0 -1
  752. package/dist/chunks/fast-0.7.2-kfcnj6wq.mjs +0 -1
  753. package/dist/chunks/feedback-0.7.2-cmhc12wj.mjs +0 -14
  754. package/dist/chunks/firstPartyEventLogger-0.7.2-pa49ax22.mjs +0 -1
  755. package/dist/chunks/git-0.7.2-9f7gvn9h.mjs +0 -1
  756. package/dist/chunks/githubModelsCredentials-0.7.2-qy1mhzsm.mjs +0 -1
  757. package/dist/chunks/goal-0.7.2-t9vq2zc6.mjs +0 -4
  758. package/dist/chunks/grove-0.7.2-9sxczf29.mjs +0 -1
  759. package/dist/chunks/growthbook-0.7.2-ch3yc64n.mjs +0 -1
  760. package/dist/chunks/headless-0.7.2-9kh4ecvm.mjs +0 -2
  761. package/dist/chunks/heapdump-0.7.2-jrxgec1e.mjs +0 -6
  762. package/dist/chunks/help-0.7.2-mkkkzv97.mjs +0 -1
  763. package/dist/chunks/hookChains-0.7.2-4rsz02te.mjs +0 -3
  764. package/dist/chunks/hooks-0.7.2-mpa8g97z.mjs +0 -1
  765. package/dist/chunks/hooks-0.7.2-yaybnthb.mjs +0 -79
  766. package/dist/chunks/ide-0.7.2-a5p1wn0n.mjs +0 -3
  767. package/dist/chunks/image-processor-napi-0.7.2-c971ey5m.mjs +0 -1
  768. package/dist/chunks/inboundAttachments-0.7.2-vkae77ac.mjs +0 -1
  769. package/dist/chunks/index-0.7.2-4qr2yjjg.mjs +0 -1
  770. package/dist/chunks/index-0.7.2-5mfmhd35.mjs +0 -1
  771. package/dist/chunks/index-0.7.2-62g62r4p.mjs +0 -1
  772. package/dist/chunks/index-0.7.2-7b6mkd4g.mjs +0 -9
  773. package/dist/chunks/index-0.7.2-87jrdmn3.mjs +0 -2
  774. package/dist/chunks/index-0.7.2-9h4tsef1.mjs +0 -1
  775. package/dist/chunks/index-0.7.2-9mk9g3c3.mjs +0 -1
  776. package/dist/chunks/index-0.7.2-a3w6at2z.mjs +0 -1
  777. package/dist/chunks/index-0.7.2-b296et1z.mjs +0 -1
  778. package/dist/chunks/index-0.7.2-c22bn4q9.mjs +0 -1
  779. package/dist/chunks/index-0.7.2-dn8m3dh3.mjs +0 -9
  780. package/dist/chunks/index-0.7.2-f8swc4mv.mjs +0 -30
  781. package/dist/chunks/index-0.7.2-fdsptfbt.mjs +0 -17
  782. package/dist/chunks/index-0.7.2-g2vfnmjs.mjs +0 -1
  783. package/dist/chunks/index-0.7.2-hjcptpaz.mjs +0 -1
  784. package/dist/chunks/index-0.7.2-hts44hhf.mjs +0 -2
  785. package/dist/chunks/index-0.7.2-k2y0b0h3.mjs +0 -1
  786. package/dist/chunks/index-0.7.2-nhtpksxs.mjs +0 -5
  787. package/dist/chunks/index-0.7.2-p5a52s17.mjs +0 -1
  788. package/dist/chunks/index-0.7.2-r0zwxc1g.mjs +0 -1
  789. package/dist/chunks/index-0.7.2-vfyvycvc.mjs +0 -1
  790. package/dist/chunks/index-0.7.2-vw5e1spt.mjs +0 -1
  791. package/dist/chunks/index-0.7.2-xp0gpx8w.mjs +0 -1
  792. package/dist/chunks/init-0.7.2-mdhax55g.mjs +0 -1
  793. package/dist/chunks/initReplBridge-0.7.2-sq5dka9e.mjs +0 -1
  794. package/dist/chunks/ink-0.7.2-xhfkzs8w.mjs +0 -1
  795. package/dist/chunks/insights-0.7.2-hnzbcbwt.mjs +0 -870
  796. package/dist/chunks/install-0.7.2-f33pbxz0.mjs +0 -1
  797. package/dist/chunks/install-github-app-0.7.2-rysxaqa4.mjs +0 -149
  798. package/dist/chunks/install-slack-app-0.7.2-nsg858f1.mjs +0 -1
  799. package/dist/chunks/instrumentation-0.7.2-6t0dw394.mjs +0 -1
  800. package/dist/chunks/interactiveHelpers-0.7.2-wqr53tgp.mjs +0 -1
  801. package/dist/chunks/keybindings-0.7.2-b6yhemd9.mjs +0 -2
  802. package/dist/chunks/knowledge-0.7.2-94b972dr.mjs +0 -2
  803. package/dist/chunks/latestVersionCache-0.7.2-1e9h6ycx.mjs +0 -1
  804. package/dist/chunks/loadAgentsDir-0.7.2-d3vy1hjh.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-0.7.2-9bdtab1f.mjs +0 -1
  806. package/dist/chunks/loadPluginHooks-0.7.2-v002c6d9.mjs +0 -1
  807. package/dist/chunks/log-0.7.2-n28x7jf3.mjs +0 -1
  808. package/dist/chunks/main-0.7.2-bbgx9tzn.mjs +0 -1
  809. package/dist/chunks/managedEnv-0.7.2-c7gnfsz5.mjs +0 -1
  810. package/dist/chunks/mcp-0.7.2-nakq1rhg.mjs +0 -1
  811. package/dist/chunks/mcp-0.7.2-v40gxs87.mjs +0 -17
  812. package/dist/chunks/mcp-0.7.2-wtmt0vpe.mjs +0 -4
  813. package/dist/chunks/mcpb-0.7.2-k7z7aa64.mjs +0 -1
  814. package/dist/chunks/memory-0.7.2-1hfh6410.mjs +0 -3
  815. package/dist/chunks/model-0.7.2-c8esc658.mjs +0 -1
  816. package/dist/chunks/model-0.7.2-sjw6chpt.mjs +0 -2
  817. package/dist/chunks/node-0.7.2-2bm5bpwx.mjs +0 -12
  818. package/dist/chunks/oauth-0.7.2-ze80cmtw.mjs +0 -1
  819. package/dist/chunks/openaiShim-0.7.2-qwqrcmfv.mjs +0 -14
  820. package/dist/chunks/output-style-0.7.2-mhfyzz5h.mjs +0 -1
  821. package/dist/chunks/package-GCDC7LJR-0.7.2-d271461v.mjs +0 -1
  822. package/dist/chunks/parseConnectUrl-0.7.2-5c6xzn22.mjs +0 -1
  823. package/dist/chunks/parser-0.7.2-ekqc81n3.mjs +0 -1
  824. package/dist/chunks/passes-0.7.2-dyr0j4xs.mjs +0 -1
  825. package/dist/chunks/permissions-0.7.2-ap5ve9y3.mjs +0 -3
  826. package/dist/chunks/permissions-0.7.2-pqbpv219.mjs +0 -1
  827. package/dist/chunks/plan-0.7.2-3qcvkebx.mjs +0 -1
  828. package/dist/chunks/plist-0.7.2-sfrs3sb5.mjs +0 -1
  829. package/dist/chunks/plugin-0.7.2-23zzkpzp.mjs +0 -29
  830. package/dist/chunks/pluginStartupCheck-0.7.2-hdbd4vjf.mjs +0 -1
  831. package/dist/chunks/plugins-0.7.2-8b79cq4h.mjs +0 -9
  832. package/dist/chunks/preActionHook-0.7.2-denqn35e.mjs +0 -2
  833. package/dist/chunks/print-0.7.2-k3jvb8xp.mjs +0 -57
  834. package/dist/chunks/privacy-settings-0.7.2-2a25e9zd.mjs +0 -1
  835. package/dist/chunks/process-0.7.2-bydxzc10.mjs +0 -1
  836. package/dist/chunks/processBashCommand-0.7.2-n8zeggtq.mjs +0 -1
  837. package/dist/chunks/processSlashCommand-0.7.2-8bkqmvyg.mjs +0 -9
  838. package/dist/chunks/prompt-0.7.2-xcyvamqv.mjs +0 -1
  839. package/dist/chunks/prompt-0.7.2-zgvfvr40.mjs +0 -1
  840. package/dist/chunks/prompts-0.7.2-v3chnzw2.mjs +0 -1
  841. package/dist/chunks/protocolHandler-0.7.2-pcar7hdp.mjs +0 -13
  842. package/dist/chunks/provider-0.7.2-amg0a8yq.mjs +0 -2
  843. package/dist/chunks/providerProfiles-0.7.2-nwbz4k4w.mjs +0 -1
  844. package/dist/chunks/providerValidation-0.7.2-acwg3yzh.mjs +0 -6
  845. package/dist/chunks/rate-limit-options-0.7.2-spv7s8hs.mjs +0 -1
  846. package/dist/chunks/registerSubcommands-0.7.2-7g1dds0b.mjs +0 -34
  847. package/dist/chunks/registry-0.7.2-kv34xe3p.mjs +0 -1
  848. package/dist/chunks/release-notes-0.7.2-amerc2cj.mjs +0 -5
  849. package/dist/chunks/reload-plugins-0.7.2-tx1872h3.mjs +0 -2
  850. package/dist/chunks/remote-env-0.7.2-hq2w0qkg.mjs +0 -1
  851. package/dist/chunks/remoteBridgeCore-0.7.2-5stcs58w.mjs +0 -1
  852. package/dist/chunks/remoteSession-0.7.2-zwc7cra7.mjs +0 -1
  853. package/dist/chunks/rename-0.7.2-gk2b22q0.mjs +0 -1
  854. package/dist/chunks/replBridgeHandle-0.7.2-17phx9ww.mjs +0 -1
  855. package/dist/chunks/replLauncher-0.7.2-th0j1erj.mjs +0 -1
  856. package/dist/chunks/resume-0.7.2-xmxzptvs.mjs +0 -2
  857. package/dist/chunks/rewind-0.7.2-bvjnkrk2.mjs +0 -1
  858. package/dist/chunks/rootOptions-0.7.2-2cy9mmwc.mjs +0 -1
  859. package/dist/chunks/sandbox-adapter-0.7.2-h0xxevv6.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-0.7.2-qhhmmtft.mjs +0 -1
  861. package/dist/chunks/session-0.7.2-c8me3g3x.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-0.7.2-3k39j4tc.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-0.7.2-rv6etkhg.mjs +0 -1
  864. package/dist/chunks/sessionStorage-0.7.2-97nxk3y6.mjs +0 -1
  865. package/dist/chunks/settings-0.7.2-xc200363.mjs +0 -1
  866. package/dist/chunks/setup-0.7.2-c982wyvz.mjs +0 -5
  867. package/dist/chunks/sinks-0.7.2-95rk1mrs.mjs +0 -1
  868. package/dist/chunks/skills-0.7.2-6gdq6xgn.mjs +0 -1
  869. package/dist/chunks/startupProfiler-0.7.2-bx988amf.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-0.7.2-n1cjfry1.mjs +0 -1
  871. package/dist/chunks/state-0.7.2-p9tevca2.mjs +0 -1
  872. package/dist/chunks/stats-0.7.2-8xhdefb7.mjs +0 -6
  873. package/dist/chunks/status-0.7.2-fh89jm1g.mjs +0 -1
  874. package/dist/chunks/stickers-0.7.2-8p2fssw5.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-0.7.2-rxrfb67k.mjs +0 -1
  876. package/dist/chunks/tasks-0.7.2-e27mj4dh.mjs +0 -1
  877. package/dist/chunks/teamHelpers-0.7.2-m3z5pcdz.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-0.7.2-p7amb3d6.mjs +0 -1
  879. package/dist/chunks/teleport-0.7.2-5esyfq9r.mjs +0 -1
  880. package/dist/chunks/terminalSetup-0.7.2-yscmphsc.mjs +0 -1
  881. package/dist/chunks/theme-0.7.2-1zmsca02.mjs +0 -1
  882. package/dist/chunks/thinkback-0.7.2-17ff2vy3.mjs +0 -1
  883. package/dist/chunks/thinkback-play-0.7.2-mdnape3r.mjs +0 -1
  884. package/dist/chunks/toolPool-0.7.2-jbgwb4kh.mjs +0 -1
  885. package/dist/chunks/toolSearch-0.7.2-c6qby1zz.mjs +0 -1
  886. package/dist/chunks/tools-0.7.2-b04qyzf8.mjs +0 -1
  887. package/dist/chunks/trustedDevice-0.7.2-jz3zmc03.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-0.7.2-bj6egxgk.mjs +0 -69
  889. package/dist/chunks/types-0.7.2-fsjvv1kt.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-0.7.2-w2fbj23d.mjs +0 -4
  891. package/dist/chunks/update-0.7.2-4ccgmd4p.mjs +0 -86
  892. package/dist/chunks/upgrade-0.7.2-d7h7vmqn.mjs +0 -1
  893. package/dist/chunks/upload-0.7.2-p6je053d.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-0.7.2-sjmkdjb8.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-0.7.2-snjwvzje.mjs +0 -1
  896. package/dist/chunks/usage-0.7.2-2k2m3v75.mjs +0 -1
  897. package/dist/chunks/util-0.7.2-n4vdasdr.mjs +0 -1
  898. package/dist/chunks/utils-0.7.2-bmqt59ff.mjs +0 -1
  899. package/dist/chunks/vim-0.7.2-bd15xeza.mjs +0 -1
  900. package/dist/chunks/watcher-0.7.2-pjzeng3k.mjs +0 -1
  901. package/dist/chunks/wiki-0.7.2-2a655hhv.mjs +0 -132
  902. package/dist/chunks/worktree-0.7.2-gs72mnyb.mjs +0 -1
  903. package/dist/chunks/worktreeModeEnabled-0.7.2-gqtz9ha6.mjs +0 -1
  904. package/dist/chunks/wrapper-0.7.2-j420s6rc.mjs +0 -7
  905. /package/dist/chunks/{cli-0.7.2-1xbehmgb.mjs → cli-0.7.4-a8qv9b1x.mjs} +0 -0
@@ -1,50 +0,0 @@
1
- import{qc as Kc,rc as da}from"./cli-0.7.2-23xjb2nt.mjs";import{sc as An,tc as Ht,uc as Xt,vc as Zc,xc as ea}from"./cli-0.7.2-a6q1amed.mjs";import{Bc as ma,yc as wt}from"./cli-0.7.2-5415yrkc.mjs";import{AF as ia,Ap as D,Bp as mn,Cp as Uu,Dp as Lc,Fp as zc,Gp as Nc,Ip as fc,PF as nc,QF as Gu,RF as cc,SF as uc,TF as ac,UF as Vu,Zp as Mc,_p as aa,my as Gc,nH as Hn,ny as Vc,oF as yt,oH as Au,oy as Yc,pF as Kn,py as Jc,qH as la,qy as ra,rH as oa,up as yc,vp as Wu,wp as Cc,xp as bc,xv as Qc,yF as V,yp as wc,zF as gu,zp as Oc,zv as ha}from"./cli-0.7.2-520tgkhw.mjs";import{SW as v,UW as ca,eX as Fc,fX as ua}from"./cli-0.7.2-55ye29jy.mjs";import{UZ as Ln,nZ as g,pZ as i}from"./cli-0.7.2-xpw13d73.mjs";import{$0 as Vn,X0 as Nn,Y0 as Mn,Z0 as Qn,_0 as Gn,a1 as su,d1 as Yn,h1 as Jn,i1 as $c,j1 as Zn}from"./cli-0.7.2-xwmd0gap.mjs";import{$1 as y,Z1 as dt,_1 as u,a2 as Qt}from"./cli-0.7.2-wmz88sxe.mjs";import{b2 as Vt}from"./cli-0.7.2-jc7jm1vm.mjs";import{y2 as lc,z2 as Hu}from"./cli-0.7.2-nkafymh4.mjs";import{P2 as $n,R2 as Ou}from"./cli-0.7.2-8qd7xft9.mjs";import{$ca as W,Ada as Dn,Bda as an,Cda as vn,Dda as tc,Eda as Qu,Fda as On,Gda as rc,Hda as sn,Jda as ic,Lda as Sc,Mda as gn,Vca as qc,Wca as bt,Xca as ta,Yca as Tt,Zca as nt,_da as na,ada as Kt,cda as ft,dda as Cn,eda as ct,fda as At,i8 as Ct,j8 as vu,jda as Rt,kda as bn,mda as wn,qda as Fn,vda as hn,wda as xn,xda as jn,yda as Yt,zda as rn}from"./cli-0.7.2-5qd0bn5g.mjs";import{Oia as ut,Wia as on}from"./cli-0.7.2-wk3m6ndw.mjs";import{cqa as Gt,dqa as Du,gqa as j}from"./cli-0.7.2-5tacs42k.mjs";function zu(t,c=tn,a){let r=nt().find((m)=>m.provider==="openai"&&m.extras?.githubToken!==void 0);if(r)return At(r.id,{provider:"openai",name:r.name,baseUrl:a||r.baseUrl,model:r.model||c,apiKey:t,extras:{...r.extras,githubToken:t}}),Rt(r.id),{mode:"updated"};return ct({provider:"openai",name:"GitHub Copilot",baseUrl:a||Ru,model:c,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Tn({onDone:t,onBack:c,onChangeAPIKey:a}){let r=Yn()?.trim()?"already-authed":"menu",[m,e]=E.useState(r),[A,O]=E.useState(null),[X,w]=E.useState(""),[z,S]=E.useState(0),[L,Z]=E.useState(null),N=E.useCallback(async(Y,q=tn,tt,f)=>{let T=Jn(Y,tt,f?.enterpriseDomain);if(!T.success){O(T.warning??"Could not save token to secure storage."),e("error");return}zu(Y,q,f?.baseUrl),$n(),a?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[a,t]),C=E.useCallback(async(Y)=>{e("device-busy"),O(null),Z(null);try{let q=await Mn({domain:Y});Z({user_code:q.user_code,verification_uri:q.verification_uri}),await Gn(q.verification_uri);let tt=await Qn(q.device_code,{initialInterval:q.interval,timeoutSeconds:q.expires_in,domain:Y}),f=await Vn(tt,{domain:Y});await N(f.token,tn,tt,{baseUrl:f.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:Y})}catch(q){O(q instanceof Error?q.message:String(q)),e("error")}},[N]);if(m==="already-authed")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot"}),u(i,{children:"You are already signed in to GitHub Copilot."}),u(i,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),u(V,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"back"}],onChange:(q)=>{if(q==="sign-in-again"){C();return}if(q==="enterprise"){e("enterprise-domain");return}if(c){c();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="enterprise-domain")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Enterprise sign-in"}),u(i,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:">"}),u(yt,{value:X,onChange:w,onSubmit:()=>{let q=Nn(X);if(!q){C();return}C(q)},onExit:()=>e(r),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:z,onChangeCursorOffset:S})]}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(m==="error"&&A)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"red",children:A}),u(V,{options:[{label:c?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(q)=>{if(q==="back"){if(c){c();return}e("menu"),O(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="device-busy")return y(g,{flexDirection:"column",gap:1,children:[u(i,{children:"GitHub Copilot sign-in"}),L?y(dt,{children:[y(i,{children:["Enter code ",u(i,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),u(i,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):u(i,{dimColor:!0,children:"Requesting device code from GitHub..."}),u(Hn,{})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot setup"}),u(i,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),u(V,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(Y)=>{if(Y==="cancel"){if(c){c();return}t("GitHub onboard cancelled",{display:"system"});return}if(Y==="enterprise"){e("enterprise-domain");return}C()}})]})}var E,tn="github:copilot",Ru="https://api.githubcopilot.com";var Wn=j(()=>{gu();Au();Kn();Ln();su();Zn();Ou();Fn();Qt();E=Gt(Vt(),1)});function En(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function zt(t,c){return c.some((a)=>t.includes(a))}function _u(t){return!zt(En(t),Un)}function qu(t){return t.find(_u)??null}function nn(t){let a=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(a?.[1])return Number(a[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function Su(t){return(t.quantizationLevel??t.name).toLowerCase()}function Fu(t,c,a){if(t===null)return a.push("unknown size"),0;if(c==="latency"){if(t<=4)return a.push("tiny model for low latency"),32;if(t<=8)return a.push("small model for fast responses"),26;if(t<=14)return a.push("mid-sized model with acceptable latency"),16;if(t<=24)return a.push("larger model may be slower"),8;return a.push("large model likely slower locally"),t<=40?0:-8}if(c==="coding"){if(t>=7&&t<=14)return a.push("strong coding size tier"),24;if(t>14&&t<=34)return a.push("large coding-capable size tier"),28;if(t>34)return a.push("very large model with higher quality potential"),18;return a.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return a.push("great balanced size tier"),26;if(t>=3&&t<7)return a.push("compact balanced size tier"),18;if(t>14&&t<=24)return a.push("high quality balanced size tier"),20;if(t>24)return a.push("large model for quality-first usage"),10;return a.push("very small model for general usage"),8}function $u(t,c,a){let r=Su(t);if(r.includes("q4"))return a.push("efficient Q4 quantization"),c==="latency"?8:4;if(r.includes("q5"))return a.push("balanced Q5 quantization"),c==="latency"?6:5;if(r.includes("q8"))return a.push("higher quality Q8 quantization"),c==="latency"?2:5;return 0}function Lu(t,c,a){if(c.score!==t.score)return c.score-t.score;let r=nn(t)??Number.POSITIVE_INFINITY,m=nn(c)??Number.POSITIVE_INFINITY;if(a==="latency")return r-m;if(a==="coding")return m-r;let e=14;return Math.abs(r-e)-Math.abs(m-e)}function cn(t,c){return t.map((a)=>{let r=En(a),m=[],e=0;if(zt(r,Un))e-=40,m.push("not a chat-first model");if(zt(r,fu))e+=c==="coding"?24:c==="balanced"?10:4,m.push("coding-oriented model family");if(zt(r,Xu))e+=c==="latency"?4:c==="coding"?6:8,m.push("strong general-purpose model family");if(zt(r,ku))e+=c==="latency"?2:6,m.push("chat/instruct tuned");if(r.includes("vision")||r.includes("vl"))e-=2,m.push("vision model adds extra overhead");e+=Fu(nn(a),c,m),e+=$u(a,c,m);let A=m.slice(0,3).join(", ");return{...a,score:e,reasons:m,summary:A}}).sort((a,r)=>Lu(a,r,c))}function Pn(t,c){return qu(cn(t,c))}var fu,Xu,ku,Un;var Bn=j(()=>{fu=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],Xu=["llama","qwen","mistral","gemma","phi","deepseek"],ku=["instruct","chat","assistant"],Un=["embed","embedding","rerank","bge","whisper"]});function Mu(t){let c=t.toLowerCase();return Nu.some((a)=>c.includes(a))}function un(t){try{let c=new URL(t);if(c.username)c.username="redacted";if(c.password)c.password="redacted";for(let a of c.searchParams.keys())if(Mu(a))c.searchParams.set(a,"redacted");return c.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Nu;var In=j(()=>{Nu=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Yu(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URL(`${hn}/oauth/authorize`);return a.searchParams.append("response_type","code"),a.searchParams.append("client_id",rn()),a.searchParams.append("redirect_uri",c),a.searchParams.append("scope",xn),a.searchParams.append("code_challenge",t.codeChallenge),a.searchParams.append("code_challenge_method","S256"),a.searchParams.append("id_token_add_organizations","true"),a.searchParams.append("codex_cli_simplified_flow","true"),a.searchParams.append("state",t.state),a.searchParams.append("originator",jn),a.toString()}function Ju(){return`<!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Codex Login Complete</title>
6
- <style>
7
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
8
- h1 { margin: 0 0 12px; font-size: 22px; }
9
- p { margin: 0 0 10px; }
10
- </style>
11
- </head>
12
- <body>
13
- <h1>Codex login complete</h1>
14
- <p>You can return to Claudin now.</p>
15
- <p>Claudin will finish activating your new Codex OAuth login.</p>
16
- </body>
17
- </html>`}function Zu(t){return`<!doctype html>
18
- <html lang="en">
19
- <head>
20
- <meta charset="utf-8" />
21
- <title>Codex Login Failed</title>
22
- <style>
23
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
24
- h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
25
- p { margin: 0 0 10px; }
26
- </style>
27
- </head>
28
- <body>
29
- <h1>Codex login failed</h1>
30
- <p>${vn(t)}</p>
31
- <p>You can close this window and try again in Claudin.</p>
32
- </body>
33
- </html>`}function pn(){return`<!doctype html>
34
- <html lang="en">
35
- <head>
36
- <meta charset="utf-8" />
37
- <title>Codex Login Cancelled</title>
38
- <style>
39
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
40
- h1 { margin: 0 0 12px; font-size: 22px; }
41
- p { margin: 0 0 10px; }
42
- </style>
43
- </head>
44
- <body>
45
- <h1>Codex login cancelled</h1>
46
- <p>You can close this window and retry in Claudin.</p>
47
- </body>
48
- </html>`}async function Ku(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:c,client_id:rn(),code_verifier:t.codeVerifier}),r=await fetch(`${hn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!r.ok){let w=await r.text().catch(()=>"");throw Error(w.trim()?`Codex OAuth token exchange failed (${r.status}): ${w.trim()}`:`Codex OAuth token exchange failed with status ${r.status}.`)}let m=await r.json(),e=Yt(m.access_token),A=Yt(m.refresh_token);if(!e||!A)throw Error("Codex OAuth completed, but the token response was missing credentials.");let O=Yt(m.id_token);return{apiKey:O?await tc(O).catch(()=>{return}):void 0,accessToken:e,refreshToken:A,idToken:O,accountId:an(O)??an(e)}}class ln{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let c=cc(),a=Dn(),r=new nc("/auth/callback");this.authCodeListener=r,this.port=null;try{let m=await r.start(a);this.port=m;let e=ac(),A=await uc(c),O=Yu({port:m,codeChallenge:A,state:e});try{let X=await r.waitForAuthorization(e,async()=>{await t(O)}),w=new AbortController;this.tokenExchangeAbortController=w;let z;try{z=await Ku({authorizationCode:X,codeVerifier:c,port:m,signal:w.signal})}finally{if(this.tokenExchangeAbortController===w)this.tokenExchangeAbortController=null}if(this.authCodeListener!==r)throw this.buildCancellationError();return r.handleSuccessRedirect([],(S)=>{S.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),S.end(Ju())}),z}catch(X){let w=this.authCodeListener===r?X:this.buildCancellationError();if(r.hasPendingResponse()){let z=w instanceof Error&&w.message==="Codex OAuth flow was cancelled.";r.handleErrorRedirect((S)=>{S.writeHead(z?200:400,{"Content-Type":"text/html; charset=utf-8"}),S.end(z?pn():Zu(w instanceof Error?w.message:String(w)))})}throw w}finally{this.cleanup()}}catch(m){let e=m instanceof Error?m.message:String(m);if(e.includes("EADDRINUSE")||e.includes(String(a)))throw Error(`Codex OAuth needs localhost:${a} for its callback. Close any app already using that port and try again.`);throw m}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((c)=>{c.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),c.end(pn())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var hc=j(()=>{Gu();Vu();Qu()});function Tu(){return new ln}function oc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??Tu,r=t.deps?.openBrowser??lc,m=t.deps?.saveCodexCredentials??rc,e=t.deps?.isBareMode??ut,[A,O]=Jt.useState({state:"starting"});return Jt.useEffect(()=>{if(e()){O({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let X=!1,w=a();return w.startOAuthFlow(async(z)=>{if(X)return;O({state:"waiting",authUrl:z,browserOpened:null});let S=await r(z);if(X)return;O({state:"waiting",authUrl:z,browserOpened:S})}).then(async(z)=>{if(X)return;await c(z,(L)=>{let Z=m({apiKey:z.apiKey,accessToken:z.accessToken,refreshToken:z.refreshToken,idToken:z.idToken,accountId:z.accountId,profileId:L?.profileId});if(!Z.success)throw Error(Z.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((z)=>{if(X)return;O({state:"error",message:z instanceof Error?z.message:String(z)})}),()=>{X=!0,w.cleanup()}},[a,e,c,r,m]),A}var Jt;var mc=j(()=>{hc();Hu();ic();on();Jt=Gt(Vt(),1)});function Ac(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":yc()}}function dc(t,c){let a=Number(t);return Number.isFinite(a)&&a>0?a*1000:c}function Iu(t,c){if(c?.aborted)return Promise.resolve();return new Promise((a)=>{let r=setTimeout(()=>{c?.removeEventListener("abort",m),a()},t),m=()=>{clearTimeout(r),a()};c?.addEventListener("abort",m,{once:!0})})}async function pu(t){let c=t?.fetchImpl??fetch,a=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),r=await c(bc,{method:"POST",headers:Ac(),body:new URLSearchParams({client_id:mn(),scope:Oc}).toString(),signal:a});if(!r.ok){let X=await r.text().catch(()=>"");throw Error(`xAI device code request failed (${r.status})${X?`: ${X.trim()}`:""}`)}let m=await r.json(),e=D(m.device_code),A=D(m.user_code),O=D(m.verification_uri);if(!e||!A||!O)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:e,user_code:A,verification_uri:O,verification_uri_complete:D(m.verification_uri_complete),expires_in:typeof m.expires_in==="number"&&m.expires_in>0?m.expires_in:gc/1000,interval:typeof m.interval==="number"&&m.interval>0?m.interval:sc/1000}}async function xu(t,c){let a=c?.fetchImpl??fetch,r=c?.sleep??Iu,m=c?.now??(()=>Date.now()),e=dc(t.expires_in,gc),A=m()+e,O=Math.max(dc(t.interval,sc),Eu);while(m()<A){if(c?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let X=await a(Cc,{method:"POST",headers:Ac(),body:new URLSearchParams({grant_type:wc,client_id:mn(),device_code:t.device_code}).toString(),signal:c?.signal});if(X.ok){let L=await X.json(),Z=D(L.access_token),N=D(L.refresh_token);if(!Z||!N)throw Error("xAI OAuth completed, but the token response was missing credentials.");let C=typeof L.expires_in==="number"&&Number.isFinite(L.expires_in)&&L.expires_in>0?L.expires_in:3600;return{accessToken:Z,refreshToken:N,idToken:D(L.id_token),expiresAt:m()+C*1000}}let w=await X.json().catch(()=>({})),z=Math.max(0,A-m());if(w.error==="authorization_pending"){await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="slow_down"){O=Math.min(O+Pu,Bu),await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="access_denied"||w.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(w.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let S=w.error_description??w.error??"";throw Error(`xAI device token exchange failed (${X.status})${S?`: ${S}`:""}`)}throw Error("xAI device authorization timed out.")}class en{abortController=null;async startDeviceFlow(t){let c=new AbortController;this.abortController=c;try{let a=await pu({signal:c.signal});return await t(a),await xu(a,{signal:c.signal})}finally{if(this.abortController===c)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var sc=5000,Eu=1000,Pu=5000,Bu=60000,gc=300000,ec=3000;var Rc=j(()=>{Wu();Uu()});function ju(){return new en}function Xc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??ju,r=t.deps?.saveXaiCredentials??zc,m=t.deps?.isBareMode??ut,[e,A]=Zt.useState({state:"starting"});return Zt.useEffect(()=>{if(m()){A({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let O=!1,X=a();return X.startDeviceFlow(async(w)=>{if(O)return;A({state:"waiting",userCode:w.user_code,verificationUri:w.verification_uri,verificationUriComplete:w.verification_uri_complete})}).then(async(w)=>{if(O)return;await c(w,(S)=>{let L=r({accessToken:w.accessToken,refreshToken:w.refreshToken,idToken:w.idToken,expiresAt:w.expiresAt,profileId:S?.profileId});if(!L.success)throw Error(L.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((w)=>{if(O)return;A({state:"error",message:w instanceof Error?w.message:String(w)})}),()=>{O=!0,X.cleanup()}},[a,m,c,r]),e}var Zt;var kc=j(()=>{Rc();on();fc();Zt=Gt(Vt(),1)});function sa(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function ga(t){let c=Tt(t);return{name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey??""}}function Aa(t){let c={};for(let a of t.split(/\r?\n/)){let r=a.trim();if(!r)continue;let m=r.indexOf(":");if(m<=0)continue;let e=r.slice(0,m).trim(),A=r.slice(m+1).trim();if(e&&A)c[e]=A}return c}function Ra(t){if(!t)return"";return Object.entries(t).map(([c,a])=>`${c}: ${a}`).join(`
49
- `)}function za(t,c){let a={},r=t.awsRegion?.trim();if(r)a.awsRegion=r;let m=t.gcpProject?.trim();if(m)a.gcpProject=m;let e=t.gcpRegion?.trim();if(e)a.gcpRegion=e;let A=t.azureResource?.trim();if(A)a.azureResource=A;let O=Aa(c);if(Object.keys(O).length>0)a.customHeaders=O;return Object.keys(a).length>0?a:void 0}function Xa(t,c){let a=c?" (active)":"",r=t.apiKey?"key set":"no key",m=t.provider==="anthropic"?"anthropic":"openai-compatible",e=qc(t.model),A=e.length<=3?e.join(", "):`${e[0]}, ${e[1]} + ${e.length-2} more`;return`${m} · ${t.baseUrl} · ${A} · ${r}${a}`}function ka(t,c){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${un(c)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function _a(t,c){if(t.state==="unreachable")return`Could not reach Ollama at ${un(c)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let a=t.probeModel??"the selected model",r=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${a}.${r} Run "ollama run ${a}" once and retry, or enter details manually.`}return""}function yn(t,c){if(!c)return;return t.find((a)=>a.id===c)}function _c(t,c){return Boolean(t&&c&&t.id===c)}function qa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=oc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"Codex OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Codex OAuth"}),u(i,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),r.state==="starting"?u(i,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):r.browserOpened===!1?y(dt,{children:[u(i,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),u(i,{children:r.authUrl})]}):r.browserOpened===!0?y(dt,{children:[u(i,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),u(i,{children:r.authUrl})]}):u(i,{dimColor:!0,children:"Opening your browser..."}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=Xc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"xAI OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),r.state==="starting"?u(i,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(dt,{children:[y(i,{children:["Open this URL on any device:"," ",u(i,{bold:!0,children:r.verificationUri})]}),y(i,{children:["Enter code ",u(i,{bold:!0,children:r.userCode})]}),r.verificationUriComplete&&r.verificationUriComplete!==r.verificationUri?y(i,{dimColor:!0,children:["Or open this prefilled URL: ",r.verificationUriComplete]}):null,u(i,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sh({mode:t,onDone:c}){let a=Qc(),[r,m]=b.useState([]),[e,A]=b.useState(),[O,X]=b.useState(),[w,z]=b.useState(!1),[S,L]=b.useState(),Z=b.useRef(0),[N,C]=b.useState(t==="first-run"?"select-preset":"menu"),[ht,Y]=b.useState(null),[q,tt]=b.useState("openai"),[f,T]=b.useState(()=>ga("ollama")),[Wt,kt]=b.useState({}),[Rn,Ut]=b.useState(""),[Hc,Tc]=b.useState(0),[Wc,Uc]=b.useState(0),[Et,zn]=b.useState(null),[rt,Ot]=b.useState(0),[it,P]=b.useState(0),[Ec,B]=b.useState(0),[fn,M]=b.useState(),[lt,R]=b.useState(),[Pc,Bc]=b.useState(),[Xn,_t]=b.useState(!1),[st,gt]=b.useState(),[I,qt]=b.useState({state:"idle"}),[p,St]=b.useState({state:"idle"}),[x,Pt]=b.useState({state:"idle"}),[Ic,pc]=b.useState(!0),[xc,H]=b.useState(!1),Bt=b.useRef(!1),[It,pt]=b.useState(()=>Xt()),[kn,jc]=b.useState(()=>Zc());b.useEffect(()=>{queueMicrotask(()=>{let n=nt(),h=W()?.id;m(n),A(h),X(Kt()),L(Cn()),z(ft()),pc(!1)})},[]);let ot=at[it]??at[0],Ft=ot.key,Dc=f[Ft],xt=r.length>0,$t=xt,_n=b.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:S?`Currently: ${r.find((n)=>n.id===S)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!$t},{value:"activate-project",label:"Set active provider (Project)",description:O?`Currently: ${r.find((n)=>n.id===O)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!$t},...w?[{value:"clear-project-override",label:"Clear project provider override",description:O?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!xt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!$t},...Xn?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[$t,xt,Xn,It,S,O,r]),jt=b.useCallback(()=>{if(ut()){Z.current+=1,_t(!1),gt(void 0);return}let n=++Z.current;(async()=>{let h=await On();if(n!==Z.current)return;_t(Boolean(h?.apiKey||h?.accessToken||h?.refreshToken||h?.idToken)),gt(h?.profileId)})()},[]);b.useEffect(()=>{return jt(),()=>{Z.current+=1}},[jt]),b.useEffect(()=>{if(N!=="select-ollama-model")return;let n=!1;return qt({state:"loading"}),(async()=>{let h=await Jc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)qt({state:"unavailable",message:_a(h,f.baseUrl)});return}let o=cn(h.models,"balanced"),l=Pn(h.models,"balanced");if(!n)qt({state:"ready",defaultValue:l?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-atomic-chat-model")return;let n=!1;return St({state:"loading"}),(async()=>{let h=await Yc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)St({state:"unavailable",message:ka(h,f.baseUrl)});return}if(!n)St({state:"ready",defaultValue:h.models[0],options:h.models.map((o)=>({label:o,value:o}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-openai-model")return;let n=!1;return Pt({state:"loading"}),(async()=>{let h=await Gc({baseUrl:f.baseUrl,apiKey:f.apiKey||void 0});if(n)return;if(!h||h.length===0){Pt({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:o,defaultValue:l}=Vc(h,f.model);Pt({state:"ready",options:o,defaultValue:l})})(),()=>{n=!0}},[f.baseUrl,f.apiKey,N]);function Q(){if(Bt.current)return;Bt.current=!0,queueMicrotask(()=>{let n=nt();m(n),A(W()?.id),X(Kt()),L(Cn()),z(ft()),jt(),Bt.current=!1})}function mt(){return null}function Dt(n){if(n.activationWarning)return`${n.prefix}. Saved for next startup. Warning: ${n.warnings.join("; ")}.`;if(n.warnings.length>0)return`${n.prefix}. Claudin switched to it for this session with warnings: ${n.warnings.join("; ")}.`;return`${n.prefix}. Claudin switched to it for this session.`}async function vt(n){if(n?.accessToken&&n.accountId)return null;let h=await On();if(!h)return"stored Codex OAuth credentials could not be loaded";if(!h.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function qn(){Mc()}async function vc(n){let h="provider";H(!0),M("Activating provider...");try{await new Promise((U)=>queueMicrotask(U));let o=ft(),l=Rt(n);if(!l){R("Could not change active provider."),H(!1),k();return}let d=o?W()??l:l,s=bt(d.model);if(!o)a((U)=>({...U,mainLoopModel:s,mainLoopModelForSession:null}));h=l.name;let _=mt(),J=_c(l,st),$=J?await vt():null;Q();let K=o&&d.id!==l.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=J?Dt({prefix:`Active provider: ${l.name}${K}`,activationWarning:$,warnings:[$,_?`could not clear startup provider override (${_})`:null].filter((U)=>Boolean(U))}):_?`Active provider: ${l.name}${K}. Warning: could not clear startup provider override (${_}).`:`Active provider: ${l.name}${K}`;M(F),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:s,message:`Provider switched to ${l.name} (${s})`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish activating ${h}: ${l}`),k()}}async function tu(){H(!0),M("Clearing project provider override...");try{await new Promise((h)=>queueMicrotask(h)),bn(null),Q();let n=W();if(n){let h=bt(n.model);wt(),a((o)=>({...o,mainLoopModel:h,mainLoopModelForSession:null})),M(`Project override cleared. Using global default: ${n.name}.`),H(!1),c({action:"activated",activeProfileId:n.id,activeProviderName:n.name,activeProviderModel:h,message:`Project override cleared — using ${n.name} (${h})`}),k()}else M("Project provider override cleared. No global default set."),H(!1),c({action:"saved",message:"Project provider override cleared. No global default set."}),k()}catch(n){Q(),M(void 0),H(!1);let h=n instanceof Error?n.message:String(n);R(`Could not clear project provider override: ${h}`),k()}}async function nu(n){let h="provider";H(!0),M("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Kt(),l=bn(n);if(!l){R("Could not set project provider override."),H(!1),k();return}let d=bt(l.model);if(o===l.id)wt();a((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),h=l.name;let s=mt(),_=_c(l,st),J=_?await vt():null;Q();let $=`Active provider for this project: ${l.name}. Other projects keep the global default.`,K=_?Dt({prefix:$,activationWarning:J,warnings:[J,s?`could not clear startup provider override (${s})`:null].filter((F)=>Boolean(F))}):s?`${$} Warning: could not clear startup provider override (${s}).`:$;M(K),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:d,message:`Provider switched to ${l.name} (${d}) for this project`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish setting ${h} for this project: ${l}`),k()}}function k(){Bc("done"),C("menu")}function Lt(n){c({action:"cancelled",message:n})}function cu(n){let h=Tt(n),o={name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""};if(Y(null),tt(h.provider??"openai"),T(o),kt({}),Ut(""),zn(n),P(0),Ot(0),B(o.name.length),R(void 0),n==="ollama"){qt({state:"loading"}),C("select-ollama-model");return}if(n==="atomic-chat"){St({state:"loading"}),C("select-atomic-chat-model");return}if(n==="anthropic"){C("anthropic-auth-choice");return}if(n==="bedrock"||n==="vertex"||n==="foundry"){C("cloud-extras");return}C("form")}function uu(n){let h=r.find((l)=>l.id===n);if(!h)return;let o=sa(h);Y(n),tt(h.provider??"openai"),T(o),kt({awsRegion:h.extras?.awsRegion,gcpProject:h.extras?.gcpProject,gcpRegion:h.extras?.gcpRegion,azureResource:h.extras?.azureResource}),Ut(Ra(h.extras?.customHeaders)),zn(null),P(0),Ot(0),B(o.name.length),R(void 0),C("form")}function Nt(n=f){let h=za(Wt,Rn),o={provider:q,name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey,extras:h},l=ht?At(ht,o):ct(o,{makeActive:!0});if(!l){R("Could not save provider. Fill all required fields.");return}let d=W()?.id===l.id;if(d)wt(),a((K)=>({...K,mainLoopModel:bt(l.model),mainLoopModelForSession:null}));let s=d?mt():null;Q();let _=!ht&&ft()&&!d,J=_?W()?.name??"override target":null,$=ht?`Updated provider: ${l.name}`:_?`Added provider: ${l.name} (now global default — project keeps using ${J}; use "Clear project provider override" to apply here)`:`Added provider: ${l.name} (now active)`;if(M(s?`${$}. Warning: could not clear startup provider override (${s}).`:$),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:`Provider configured: ${l.name}`});return}Y(null),P(0),R(void 0),k()}function au(){if(p.state==="loading"||p.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),u(i,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(p.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Atomic Chat setup"}),u(i,{dimColor:!0,children:p.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),u(i,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),u(V,{options:p.options,defaultValue:p.defaultValue,defaultFocusValue:p.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,p.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function hu(){if(I.state==="loading"||I.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Ollama"}),u(i,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(I.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Ollama setup"}),u(i,{dimColor:!0,children:I.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Ollama model"}),u(i,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),u(V,{options:I.options,defaultValue:I.defaultValue,defaultFocusValue:I.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,I.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function et(n){let h=at.findIndex((o)=>o.key===n);P(h<0?0:h),B(f[n].length),R(void 0),C("form")}function ru(){if(x.state==="loading"||x.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Fetching models"}),u(i,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),u(i,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(x.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:x.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(o)=>{if(o==="manual"){et("model");return}et("apiKey")},onCancel:()=>et("apiKey"),visibleOptionCount:2})]});let n=[...x.options,{value:dn,label:"Enter a model id manually",description:"Type an id the provider did not list"}],h=x.defaultValue??dn;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),u(V,{options:n,defaultValue:h,defaultFocusValue:h,inlineDescriptions:!0,visibleOptionCount:Math.min(8,n.length),onChange:(o)=>{if(o===dn){et("model");return}let l={...f,model:o};T(l),Sn(l)},onCancel:()=>et("apiKey")}),u(i,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function Sn(n){if(Et==="anthropic"||Et==="custom"){T(n),C("custom-headers");return}Nt(n)}function iu(n){let h=n.trim();if(!ot.optional&&h.length===0){R(`${ot.label} is required.`);return}let o={...f,[Ft]:h};if(T(o),R(void 0),it<at.length-1){let l=it+1,d=at[l]?.key??"name";if(d==="model"&&!ya.has(q)&&o.baseUrl.trim().length>0){C("select-openai-model");return}P(l),B(o[d].length);return}Sn(o)}function lu(){if(R(void 0),it>0){let n=it-1,h=at[n]?.key??"name";P(n),B(f[h].length);return}if(t==="first-run"){C("select-preset");return}k()}v("confirm:no",lu,{context:"Settings",isActive:N==="form"}),v("confirm:no",()=>et("model"),{context:"Settings",isActive:N==="select-openai-model"&&(x.state==="loading"||x.state==="idle")});function ou(){if(R(void 0),rt>0){Ot(rt-1);return}C("select-preset")}v("confirm:no",ou,{context:"Settings",isActive:N==="cloud-extras"}),v("confirm:no",()=>C("form"),{context:"Settings",isActive:N==="custom-headers"}),v("confirm:no",()=>C("select-preset"),{context:"Settings",isActive:N==="anthropic-auth-choice"||N==="anthropic-oauth"});function mu(){let n=!ut(),h=[...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...n?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),u(i,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),u(V,{options:h,onChange:(o)=>{if(o==="skip"){Lt("Provider setup skipped");return}if(o==="codex-oauth"){C("codex-oauth");return}if(o==="xai-oauth"){C("xai-oauth");return}if(o==="github-onboard"){C("github-onboard");return}if(o==="import-legacy"){(async()=>{let l=await An({force:!0});pt(Xt()),Q();let d=Ht(l);if(l.errors.length>0){R(d);return}let s=W();if(t==="first-run"&&s){c({action:"saved",activeProfileId:s.id,activeProviderName:s.name,activeProviderModel:s.model,message:d});return}if(M(d),R(void 0),t==="manage")k()})();return}cu(o)},onCancel:()=>{if(t==="first-run"){Lt("Provider setup skipped");return}k()},visibleOptionCount:Math.min(13,h.length)})]})}function eu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),u(i,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),u(V,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(n)=>{if(n==="oauth"){C("anthropic-oauth");return}if(n==="apiKey"){C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:3})]})}function du(){let n=(oa(),Du(la)).ConsoleOAuthFlow;return u(g,{flexDirection:"column",gap:1,children:u(n,{mode:"login",onDone:()=>{let h=Tt("anthropic"),o={provider:"anthropic",name:h.name,baseUrl:h.baseUrl,model:h.model},l=ct(o,{makeActive:!0});if(!l){R("OAuth completed, but the Anthropic profile could not be saved."),C("select-preset");return}let d=`Anthropic OAuth configured: ${l.name}`;if(Q(),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}})})}function yu(){let n=Et;if(n!=="bedrock"&&n!=="vertex"&&n!=="foundry")return null;let h=fa[n],o=h[rt]??h[0],l=Wt[o.key]??"";function d(s){let _=s.trim();if(_.length===0){R(`${o.label} is required.`);return}let J={...Wt,[o.key]:_};if(kt(J),R(void 0),rt<h.length-1){Ot(rt+1);return}Ot(0),C("form")}return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:`${n==="bedrock"?"AWS Bedrock":n==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),u(i,{dimColor:!0,children:o.helpText}),y(i,{dimColor:!0,children:["Step ",rt+1," of ",h.length,": ",o.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:l,onChange:(s)=>kt((_)=>({..._,[o.key]:s})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${Ct.ellipsis}`,columns:80,cursorOffset:Hc,onChangeCursorOffset:Tc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Cu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(i,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",u(i,{children:"Header: Value"}),". Leave empty to skip."]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Rn,onChange:Ut,onSubmit:()=>Nt(f),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Wc,onChangeCursorOffset:Uc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function bu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:ht?"Edit provider profile":"Create provider profile"}),u(i,{dimColor:!0,children:ot.helpText}),y(i,{dimColor:!0,children:["Provider type:"," ",q==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(i,{dimColor:!0,children:["Step ",it+1," of ",at.length,": ",ot.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Dc,onChange:(n)=>T((h)=>({...h,[Ft]:n})),onSubmit:iu,focus:!0,showCursor:!0,placeholder:`${ot.placeholder}${Ct.ellipsis}`,mask:Ft==="apiKey"?"*":void 0,columns:80,cursorOffset:Ec,onChangeCursorOffset:B})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function wu(){let n=r.length>0,h=n;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Provider manager"}),u(i,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),fn&&u(i,{children:fn}),u(g,{flexDirection:"column",children:r.length===0?u(i,{dimColor:!0,children:"No provider profiles configured yet."}):r.map((o)=>y(i,{dimColor:!0,children:["- ",o.name,": ",Xa(o,o.id===e)]},o.id))}),u(V,{options:_n,onChange:(o)=>{switch(R(void 0),o){case"add":C("select-preset");break;case"import-legacy":{(async()=>{let l=await An({force:!0});if(pt(Xt()),Q(),l.errors.length>0)R(Ht(l));else M(Ht(l))})();break}case"activate":if(h)C("select-active");break;case"activate-project":if(h)C("select-active-project");break;case"clear-project-override":tu();break;case"edit":if(n)C("select-edit");break;case"delete":if(h)C("select-delete");break;case"logout-codex-oauth":{let l=sn();if(!l.success){R(l.warning??"Could not clear Codex OAuth credentials.");break}_t(!1),gt(void 0);let d=yn(nt(),st),s=null;if(d){let _=wn(d.id);if(!_.removed){R("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),Q();break}qn(),s=_.activeProfileId?mt():null}Q(),M(s?`Codex OAuth logged out. Warning: could not clear startup provider override (${s}).`:"Codex OAuth logged out.");break}default:Lt("Provider manager closed");break}},onCancel:()=>Lt("Provider manager closed"),defaultFocusValue:Pc,visibleOptionCount:_n.length})]})}function Mt(n,h,o){let l=r.map((d)=>{let s=[];if(d.id===e)s.push("active");if(O&&d.id===O)s.push("this project");if(S&&d.id===S)s.push("global default");let _=s.length>0?` (${s.join(", ")})`:"";return{value:d.id,label:`${d.name}${_}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(l.length===0)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(i,{dimColor:!0,children:h}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>k(),onCancel:()=>k(),visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(V,{options:l,onChange:o,onCancel:()=>k(),visibleOptionCount:Math.min(10,Math.max(2,l.length))})]})}let G;switch(N){case"select-preset":G=mu();break;case"select-ollama-model":G=hu();break;case"select-openai-model":G=ru();break;case"select-atomic-chat-model":G=au();break;case"codex-oauth":G=u(qa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let o={provider:"openai",name:Ca,baseUrl:Sc,model:ba,apiKey:""},l=yn(nt(),st),d=l?At(l.id,o):ct(o,{makeActive:!0});if(!d){R("Codex OAuth login finished, but the provider profile could not be saved."),k();return}let s=l&&e!==d.id?Rt(d.id):d;if(!s){R("Codex OAuth login finished, but the provider could not be set as the startup provider."),k();return}h({profileId:d.id});let _=mt(),J=await vt(n);_t(!0),gt(d.id),Q();let $=[J,_?`could not clear startup provider override (${_})`:null].filter((F)=>Boolean(F)),K=Dt({prefix:"Codex OAuth configured",activationWarning:J,warnings:$});if(t==="first-run"){c({action:"saved",activeProfileId:s.id,message:K});return}M(K),R(void 0),k()}});break;case"xai-oauth":G=u(Sa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let l=ct({provider:"openai",name:wa,baseUrl:gn,model:Oa,apiKey:""},{makeActive:!0});if(!l){R("xAI OAuth login finished, but the provider profile could not be saved."),k();return}try{h({profileId:l.id})}catch(s){R(s instanceof Error?s.message:String(s)),k();return}Q();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}});break;case"github-onboard":G=u(Tn,{onDone:(n)=>{if(n)M(n),R(void 0);Q(),k()},onBack:()=>C("select-preset"),onChangeAPIKey:Q});break;case"anthropic-auth-choice":G=eu();break;case"anthropic-oauth":G=du();break;case"cloud-extras":G=yu();break;case"custom-headers":G=Cu();break;case"form":G=bu();break;case"select-active":G=Mt("Set active provider (Global)","No providers available. Add one first.",(n)=>{vc(n)});break;case"select-active-project":G=Mt("Set active provider (Project)","No providers available. Add one first.",(n)=>{nu(n)});break;case"select-edit":G=Mt("Edit provider","No providers available. Add one first.",(n)=>{uu(n)});break;case"select-delete":G=Mt("Delete provider","No providers available. Add one first.",(n)=>{let h=r.find(($)=>$.id===n),o=h?.provider==="openai"&&h?.extras?.githubToken!==void 0,l=yn(r,st)?.id===n,d=Lc()?.profileId,s=h?.provider==="openai"&&h.baseUrl===gn&&!h.apiKey&&d===n,_=W()?.id===n,J=wn(n);if(!J.removed)R("Could not delete provider.");else{let $=[];if(l){let F=sn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else gt(void 0);qn()}if(o){let F=$c();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(s){let F=Nc();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let K=J.activeProfileId?mt():null;if(K)$.push(`could not clear startup provider override (${K})`);if(Q(),_){let F=W();if(F)wt(),a((U)=>({...U,mainLoopModel:bt(F.model),mainLoopModelForSession:null}));else wt(),a((U)=>({...U,mainLoopModel:null,mainLoopModelForSession:null}))}M($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}k()});break;case"menu":default:G=wu();break}return y(Fc,{color:"permission",children:[u(Kc,{enabled:kn,onDismiss:(n)=>{pt(Xt()),jc(!1),Q();let h=W();if(n==="migrated"&&t==="first-run"&&h)c({action:"saved",activeProfileId:h.id,activeProviderName:h.name,activeProviderModel:h.model})}}),kn?null:Ic?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Loading providers..."}),u(i,{dimColor:!0,children:"Reading provider profiles from disk."})]}):xc?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Activating provider..."}),u(i,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var b,at,dn="\x00__manual__",ya,Ca="Codex OAuth",ba="codexplan",wa="xAI / Grok (OAuth)",Oa="grok-4",fa;var Fa=j(()=>{vu();Wn();na();Ln();ca();ha();ma();ic();on();ta();aa();Fn();Zn();ra();Bn();In();ia();ua();da();Kn();mc();kc();fc();ea();Qt();b=Gt(Vt(),1),at=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],ya=new Set(["anthropic","bedrock","vertex","foundry"]);fa={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
50
- export{un as lc,In as mc,Aa as nc,Sh as oc,Fa as pc};
@@ -1,2 +0,0 @@
1
- import{gqa as j}from"./cli-0.7.2-5tacs42k.mjs";function C(){return`claude-swarm-${process.pid}`}var x="team-lead",y="claude-swarm",z="swarm-view",A="tmux",B="claude-hidden",D="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
- export{x as Q1,y as R1,z as S1,A as T1,B as U1,C as V1,D as W1,k as X1};
@@ -1,2 +0,0 @@
1
- import{fqa as x,gqa as z}from"./cli-0.7.2-5tacs42k.mjs";var H={};x(H,{toInfraSessionId:()=>G,toCompatSessionId:()=>F,setCseShimGate:()=>A});function A(j){q=j}function F(j){if(!j.startsWith("cse_"))return j;if(q&&!q())return j;return"session_"+j.slice(4)}function G(j){if(!j.startsWith("session_"))return j;return"cse_"+j.slice(8)}var q;var J=()=>{};
2
- export{A as S0,F as T0,G as U0,H as V0,J as W0};
@@ -1,12 +0,0 @@
1
- import{d7 as D}from"./cli-0.7.2-5aka4emf.mjs";import{$ha as W,Nha as L,Rha as JG,cia as a}from"./cli-0.7.2-cqqj8v1e.mjs";import{Lia as c,Mia as jG,Wia as GG}from"./cli-0.7.2-wk3m6ndw.mjs";import{Woa as U,Xoa as g}from"./cli-0.7.2-bd97qyyb.mjs";import{Jpa as RG,rpa as H}from"./cli-0.7.2-bmz47g1t.mjs";import{Npa as wG}from"./cli-0.7.2-g3k7m45h.mjs";import{cqa as WG,gqa as j,hqa as e}from"./cli-0.7.2-5tacs42k.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
- `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
- \r
4
- `);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
- `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
- `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
7
- `;let $=n(K);K.write(`${w}\r
8
- `);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
9
- `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
10
- `;let V=n(Y);Y.write(`${$}\r
11
- `);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-0.7.2-hjcptpaz.mjs"),import("./index-0.7.2-7b6mkd4g.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
- export{hG as I6,p as J6,F as K6,gG as L6,aG as M6,pG as N6,KG as O6,MJ as P6,HJ as Q6,OG as R6,I as S6,h as T6,qJ as U6,jJ as V6,UJ as W6,_J as X6,FJ as Y6,NJ as Z6,TJ as _6,vG as $6};
@@ -1,16 +0,0 @@
1
- import{$6 as x8,Z6 as k2}from"./cli-0.7.2-8pfcc363.mjs";import{b7 as h,c7 as mZ}from"./cli-0.7.2-2rj33835.mjs";import{n7 as d5,p7 as w8}from"./cli-0.7.2-3frg7csa.mjs";import{Aba as y,B8 as cZ,Fca as r1,H$ as VZ,Jba as j0,O8 as N5,Q8 as dZ,Qaa as o1,Sba as n4,Sda as m5,Uba as nZ,Uca as i,Uda as W4,Vba as v1,Wba as h8,Wca as e1,Xca as zZ,Zaa as WZ,_da as c5,ada as Z4,bea as K,c$ as S1,c8 as I4,d$ as A8,d8 as s,e8 as L2,eea as $0,f8 as O0,g8 as y4,h8 as s2,n8 as H0,o8 as G1,oda as V4,q$ as a1,qca as d,qda as $4,qea as N,tda as O2,uba as k,uda as tZ,vca as p5,wba as B2,wca as C,y8 as D5,yea as s0,zba as Q0,zca as L}from"./cli-0.7.2-5qd0bn5g.mjs";import{Afa as k4,Kfa as M1,yfa as A0}from"./cli-0.7.2-twx01hwg.mjs";import{Pga as v5,Qga as d4,Rga as B0,Tga as z8,Uga as G8,Wga as O,Xga as y0}from"./cli-0.7.2-0v8f8cx4.mjs";import{$ga as j2,Yga as x}from"./cli-0.7.2-kyd7mrxn.mjs";import{$ha as z,Fha as K5,Jha as pZ,Nha as i2,Rha as S8,bia as d0,cia as Z0}from"./cli-0.7.2-cqqj8v1e.mjs";import{Bia as q1,Gia as V1,zia as p}from"./cli-0.7.2-bttmh4fa.mjs";import{Jia as L5,Mia as F,Oia as g,Qia as P2,Tia as c4,Wia as u}from"./cli-0.7.2-wk3m6ndw.mjs";import{Lla as s1,Lma as J1,Mma as Q1,Nma as X1,Oma as Y1,Pla as P4,Ula as v0,Vla as J2,_ma as x2,nma as f,uma as _1,wka as Y0,xka as w1,xla as p1,xoa as J0}from"./cli-0.7.2-5yrman6f.mjs";import{Woa as v,Xoa as l0}from"./cli-0.7.2-bd97qyyb.mjs";import{Jpa as q2,rpa as P}from"./cli-0.7.2-bmz47g1t.mjs";import{dqa as S0,fqa as c2,gqa as H,hqa as e}from"./cli-0.7.2-5tacs42k.mjs";function I5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:q,context:W}=$.shift();try{let G=await Z.apply(W,X);Y(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,q)=>{$.push({args:X,resolve:Y,reject:q,context:this}),Q()})}}var y5=()=>{};function C5(Z,$){return Z.find((J)=>J.includes($))??null}async function A5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=P2(),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 k2(),...J&&{requestHandler:new(await import("./index-0.7.2-hjcptpaz.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.7.2-c22bn4q9.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function u$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=P2(),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 k2(),...J&&{requestHandler:new(await import("./index-0.7.2-hjcptpaz.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.7.2-c22bn4q9.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function j8(Z){return Z.startsWith("anthropic.")}function R8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function H8(Z){let $=R8(Z);for(let J of B8)if($.startsWith(`${J}.anthropic.`))return J;return}function m$(Z,$){let J=H8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(j8(Z))return`${$}.${Z}`;return Z}var T5,p$,B8;var h5=H(()=>{l0();n();u();s0();x8();T5=v(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw N(X),X}});p$=v(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let q=Y.modelArn.lastIndexOf("/");return q>=0?Y.modelArn.substring(q+1):Y.modelArn}catch($){return N($),null}});B8=["us","eu","apac","global"]});var E2,_2,M2,S2,v2,I2,y2,T2,C2,a0,o0,r0,A2,h2,f2,G0,d$,f5;var g2=H(()=>{E2={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"},_2={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"},M2={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"},S2={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"},v2={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"},I2={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"},y2={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"},T2={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"},o0={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"},r0={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"},A2={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"},h2={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"},f2={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"},G0={haiku35:M2,haiku45:S2,sonnet35:_2,sonnet37:E2,sonnet40:v2,sonnet45:I2,sonnet46:h2,sonnet5:f2,opus40:y2,opus41:T2,opus45:C2,opus46:a0,opus47:o0,opus48:r0,fable5:A2},d$=Object.values(G0).map((Z)=>Z.firstParty),f5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function g5(){return Object.values(e0)}var e0,u2;var p2=H(()=>{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}}},u2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};c2(_0,{prefetchCopilotModelCatalog:()=>n2,normalizeBareCopilotModelId:()=>d2,getEffectiveCopilotModels:()=>b8,getCopilotDisplayName:()=>O8,getCatalogCopilotMaxOutputTokens:()=>k8,getCatalogCopilotContextWindow:()=>P8,getCachedCopilotCatalog:()=>N8,fetchCopilotModelCatalog:()=>t5,copilotModelSupportsAnthropicMessages:()=>U8,_setCopilotCatalogForTesting:()=>E8});function E0(){let Z=K();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function n5(){if(!t)return!1;let Z=E0();return Z!==null&&x0===Z}function L8(){if(u5)return;u5=!0,p5(()=>{let Z=E0();if(Z&&x0!==Z)n2()})}function d2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),X=Q.indexOf("/");return X===-1?Q:Q.slice(X+1)}function K8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function D8(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??{},X=Z.capabilities?.supports??{},Y=X.vision===!0||Boolean(Q.vision),q=X.adaptive_thinking===!0||Array.isArray(X.reasoning_effort)||typeof X.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:Y,reasoning:q,tool_call:X.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:Y?["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:K8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function t5(){let Z=K();if(Z?.transport!=="github_copilot")return null;if(m5(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,X=setTimeout(()=>Q.abort(),F8);try{let Y=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...d5},signal:Q.signal});if(!Y.ok)return null;let q=await Y.json();if(!Array.isArray(q?.data))return null;let W=new Set,G=[];for(let B of q.data){let R=D8(B);if(!R||W.has(R.model.id))continue;W.add(R.model.id),G.push(R)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(X)}}function n2(){L8();let Z=E0();if(!Z)return;if(t&&x0!==Z)t=null,x0=null;if(Z2){if(m2===Z)return;Z2.finally(()=>n2());return}m2=Z,Z2=t5().then(($)=>{if($&&E0()===Z)t=$,x0=Z}).finally(()=>{Z2=null,m2=null})}function N8(){return t}function b8(){if(n5()){let Z=t?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return g5()}function $2(Z){if(!n5())return;let $=d2(Z);return t.find((J)=>J.model.id===$)}function O8(Z){let $=d2(Z);return $2($)?.model.name??e0[$]?.name}function U8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function P8(Z){return $2(Z)?.model.limit.context}function k8(Z){return $2(Z)?.model.limit.output}function E8(Z){t=Z,x0=Z?E0():null}var F8=5000,t=null,x0=null,Z2=null,m2=null,u5=!1;var M0=H(()=>{$0();w8();c5();i();Z0();p2()});function V(){let Z=K();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 ZJ(){return V()==="firstParty"}function $J(Z){let $=K();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(M0(),S0(_0)),X=Q(J);if(X!==null)return X}catch{}return!0}function JJ(){return V()}function QJ(){let Z=K();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 l=H(()=>{$0()});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of l5)J[Q]=G0[Q][$];return J}async function _8(){let Z=Q2("bedrock"),$;try{$=await T5()}catch(Q){return N(Q),Z}if(!$?.length)return Z;let J={};for(let Q of l5){let X=G0[Q].firstParty;J[Q]=C5($,X)||Z[Q]}return J}function i5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=f5[Q];if(Y&&X)J[Y]=X}return J}function X2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M8(){if(v0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}s5()}function j(){let Z=v0();if(Z===null)return M8(),i5(Q2(V()));return i5(Z)}async function jJ(){if(v0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}await s5()}var l5,s5;var Y2=H(()=>{J0();s0();y5();j0();h5();g2();l();l5=Object.keys(G0);s5=I5(async()=>{if(v0()!==null)return;try{let Z=await _8();J2(Z)}catch(Z){N(Z)}})});function FJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(U())return!1;let $=I0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function LJ(){if(a5!==null)return a5;if(!U())return!1;let Z=M();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var a5=null;var o5=H(()=>{n();i();u()});function bJ(Z){return Z}function OJ(){return!1}function r5(){return null}function e5(){return!1}var Z1=H(()=>{o5()});async function SJ(){let $=L().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${O().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(X){N(X)}}async function R0(Z){let $=`${O().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){N(J)}}var t2=H(()=>{q2();y0();n();i();s0()});import{mkdirSync as v8,writeFileSync as I8}from"fs";function C8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{v8(V2,{recursive:!0,mode:448}),I8(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 $1(Z,$){try{let Q=i2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!q1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function W1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let q=process.env[Z];if(!q){let G=$1($,J);return X(G),G}let W=parseInt(q,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),X(null),null;try{let G=i2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,R=G.readFileSync(B,{encoding:"utf8"}).trim();if(!R)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),X(R),C8($,R,J),R}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=$1($,J);return X(B),B}}function W2(){return W1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:y8,label:"OAuth token",getCached:J1,setCached:Q1})}function l2(){return W1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:T8,label:"API key",getCached:X1,setCached:Y1})}var V2="/home/claude/.claude/remote",y8,T8,fJ;var z1=H(()=>{J0();Z0();u();V1();S8();y8=`${V2}/.oauth_token`,T8=`${V2}/.api_key`,fJ=`${V2}/.session_ingress_token`});async function x1(){if(process.platform==="darwin"){let Z=s();if((await H0(`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 j1=H(()=>{G1();s2()});function dJ(Z){return Z?.name==="CredentialsProviderError"}function B1(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 a2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function R1(){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 H1=H(()=>{Z0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(T.instance)T.instance.changed.clear(),T.instance=null}}var F1=H(()=>{w1()});var G2="claude-code-20250219",L1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",K1="context-management-2025-06-27",D1="structured-outputs-2025-12-15",o2="web-search-2025-03-05",N1="advanced-tool-use-2025-11-20",b1="tool-search-tool-2025-10-19",lJ="effort-2025-11-24",sJ="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",aJ="extended-cache-ttl-2025-04-11",oJ="fast-mode-2026-02-01",U1="redact-thinking-2026-02-12",P1="thinking-token-count-2026-05-13",k1="token-efficient-tools-2026-03-28",rJ="afk-mode-2026-01-31",eJ="advisor-tool-2026-03-01",r2,Z3;var e2=H(()=>{r2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),Z3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(V()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function I1(){if(!A())return!1;return g8()===null}function f8(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 g8(){if(V()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=A0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!S1()&&A0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&x2()&&!_1()){if(!k("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(_.status==="disabled"){if(_.reason==="network_error"||_.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=f8(_.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function L3(){return"opus"+(f0()?"[1m]":"")}function K3(Z){if(!A())return!1;if(!I1())return!1;if(!y1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function y1(Z){if(!A())return!1;let $=Z??h0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function u8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!Z5)z("Fast mode cooldown expired, re-enabling fast mode"),Z5=!0,C1.emit();w0={status:"active"}}return w0}function b3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},Z5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),T1.emit(Z,$)}function O3(){w0={status:"active"}}function U3(){if(_.status==="disabled")return;_={status:"disabled",reason:"preference"},B2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),$5.emit(!1)}function p8(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 m8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function k3(Z){let $=p8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!m8(Z))B2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));A1.emit($)}function c8(){return u8().status==="cooldown"}function E3(Z,$){let J=A()&&I1()&&!!$&&y1(Z);if(J&&c8())return"cooldown";if(J)return"on";return"off"}async function d8(Z){let $=`${O().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function M3(){if(!A())return;if(_.status!=="pending")return;_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function S3(){if(v1())return;if(!A())return;if(C0)return z("Fast mode prefetch in progress, returning in-flight promise"),C0;let Z=X0();if(!(w()?.accessToken&&q0())&&!Z){_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-E1<n8){z("Skipping fast mode prefetch, fetched recently");return}E1=J;let Q=async()=>{let Y=w(),q=Y?.accessToken&&q0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return d8(q)};async function X(){try{let Y;try{Y=await Q()}catch(W){if(P.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await J5(B),Y=await Q();else throw W}else throw W}let q=_.status!=="pending"?_.status==="enabled":L().penguinModeOrgEnabled;if(_=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},q!==Y.enabled){if(!Y.enabled)B2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:Y.enabled})),$5.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${_.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{C0=null}}return C0=X(),C0}var F3="Opus 4.7",w0,Z5=!1,T1,C1,D3,N3,A1,P3,_,$5,_3,n8=30000,E1=0,C0=null;var h1=H(()=>{q2();y0();M1();J0();j2();n();A8();i();Z0();u();F0();l();h8();j0();w1();w0={status:"active"},T1=Y0(),C1=Y0(),D3=T1.subscribe,N3=C1.subscribe;A1=Y0(),P3=A1.subscribe;_={status:"pending"},$5=Y0(),_3=$5.subscribe});function r8(Z){for(let $ of o8)if($.pattern.test(Z))return $.cost;return}function Q5(Z){if(A()&&Z)return i8;return K0}function e8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,X=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+X+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function ZZ(Z,$){let J=b(Z);if(J===D(a0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let X=$.speed==="fast";return Q5(X)}let Q=g1[J];if(!Q){let X=r8(Z);if(X)return X;return $Z(Z,J),g1[b(h0())]??a8}return Q}function $Z(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),p1()}function JZ(Z,$){let J=ZZ(Z,$);return e8(J,$)}function h3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return JZ(Z,J)}function u1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function m1(Z){return`${u1(Z.inputTokens)}/${u1(Z.outputTokens)} per Mtok`}var L0,f1,K0,t8,i8,l8,s8,a8,o8,g1;var c1=H(()=>{j2();J0();h1();g2();F0();L0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},f1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},K0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},t8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},l8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},s8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},a8=K0,o8=[{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}}];g1={[D(M2.firstParty)]:l8,[D(S2.firstParty)]:s8,[D(_2.firstParty)]:L0,[D(E2.firstParty)]:L0,[D(v2.firstParty)]:L0,[D(I2.firstParty)]:L0,[D(h2.firstParty)]:L0,[D(f2.firstParty)]:L0,[D(y2.firstParty)]:f1,[D(T2.firstParty)]:f1,[D(C2.firstParty)]:K0,[D(a0.firstParty)]:K0,[D(o0.firstParty)]:K0,[D(r0.firstParty)]:K0,[D(A2.firstParty)]:t8}});function m(Z){return QZ.includes(Z)}function D0(Z){return XZ.includes(Z)}var QZ,XZ;var X5=H(()=>{QZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];XZ=["sonnet","opus","haiku"]});function YZ(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function d1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function qZ(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(d1(J,$))return!0;if(!$.startsWith("claude-")&&d1(J,`claude-${$}`))return!0;return!1}function n1(Z,$){for(let J of $){if(D0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function t1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=X2(Z).trim().toLowerCase(),Y=J.map((q)=>q.trim().toLowerCase());if(Y.includes(X)){if(!D0(X)||!n1(X,Y))return!0}for(let q of Y)if(D0(q)&&!n1(q,Y)&&YZ(X,q))return!0;if(m(X)){let q=I(X).toLowerCase();if(Y.includes(q))return!0}for(let q of Y)if(!D0(q)&&m(q)){if(I(q).toLowerCase()===X)return!0}for(let q of Y)if(!D0(q)&&!m(q)){if(qZ(X,q))return!0}return!1}var i1=H(()=>{j0();X5();F0();Y2()});function R2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function b0(){let Z=K();if(!Z?.model)return;return e1(Z.model)}function W7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"codexspark";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return J4()}function z7(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function Y5(){let Z,$=s1();if($!==void 0)Z=$;else{let J=y()||{},Q=R2(J.model),X=b0();if(Z4()!==void 0)Z=R2(r1().activeModelForProject)||void 0;else Z=X||Q||void 0}if(Z&&!t1(Z))return;return Z}function G7(){let Z=Y5();if(Z!==void 0&&Z!==null)return I(Z);return Q4()}function GZ(){return N0()}function N0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.5-pro";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.7";if(V()!=="firstParty")return j().opus46;return j().opus48}function g0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"mistral-medium-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5";if(V()!=="firstParty")return j().sonnet45;return j().sonnet5}function J4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=b0();if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function x7(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(Y5()==="opusplan"&&$==="plan"&&!Q)return N0();if(Y5()==="haiku"&&$==="plan")return g0();return J}function h0(){let Z=b0();if(V()==="github"){let $=y()||{};return R2($.model)||Z||"github:copilot"}if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(H2())return N0()+(f0()?"[1m]":"");if(w2())return N0()+(f0()?"[1m]":"");return g0()}function Q4(){return I(h0())}function D(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-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 b(Z){return D(X2(Z))}function xZ(Z=!1){if(H2()||w2()){if(f0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?l1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?l1(!0):""}`}return"Sonnet 5 · Best for everyday tasks"}function j7(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return Y4(I(Z))}function l1(Z){if(V()!=="firstParty")return"";let $=m1(Q5(Z));return` ·${Z?` (${a1})`:""} ${$}`}function f0(){if(V0()||W5()||V()!=="firstParty")return!1;if(U()&&M()===null)return!1;return!0}function B7(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 o1(Z);return Y4(Z)}function X4(Z){if(V()==="openai"||V()==="gemini"||V()==="codex"||V()==="github"){if(u2[Z])return u2[Z];if(V()==="github"){let{getCopilotDisplayName:$}=(M0(),S0(_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 j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet5:return"Sonnet 5";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function Y4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function R7(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=R2(Z);if(!$)return g0();let J=$.toLowerCase(),Q=a(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return g0()+(Q?"[1m]":"");case"sonnet":return g0()+(Q?"[1m]":"");case"haiku":return J4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return GZ();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(X==="fable"||X==="fable5")return j().fable5;if(V()==="firstParty"&&BZ(X)&&RZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function H7(Z,$){if(a(Z)||!a($))return Z;if(q5(I(Z)))return Z+"[1m]";return Z}function BZ(Z){return jZ.includes(Z)}function RZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function w7(Z){if(Z===null){if(U())return`Default (${xZ()})`;return`Default (${Q4()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function F7(Z){if(V()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 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 L7(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function K7(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var jZ;var F0=H(()=>{J0();$0();i();$4();n();V5();u();zZ();Y2();c1();j0();l();VZ();i1();X5();WZ();p2();jZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function z5(Z){return}async function N7(){}var q4=()=>{};var B4={};c2(B4,{prefetchOpenAICompatibleModels:()=>UZ,getDiscoveredContextWindow:()=>HZ,discoverOpenAICompatibleModelOptions:()=>j4});function HZ(Z){return G4.get(Z)}function wZ(){return(K()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function x4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function FZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function LZ(Z){let $=K()?.apiKey?.trim();if(!$)return{};if(FZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(x4(Z))J["api-key"]=$;return J}function KZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&x4(Z)?(Y)=>{try{let q=new URL(Y);return q.searchParams.set("api-version",Q),q.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function DZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function NZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function bZ(Z,$){let J=new Set;for(let Q of Z)try{let X=await P.get(Q,{headers:$,timeout:z4}),Y=[];for(let q of X.data?.data??[]){let W=q.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=q.name?.trim()||W,B=q.context_length??null;if(B&&B>0)G4.set(W,B);let R=B?` · ${NZ(B)}`:"";Y.push({value:W,label:G,description:`${W}${R}`})}if(Y.length>0)return Y.sort((q,W)=>{let G=String(q.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",R=G.localeCompare(B);return R!==0?R:String(q.value).localeCompare(String(W.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function OZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:z4}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function j4(){if(V()!=="openai")return[];let Z=wZ(),$=LZ(Z),J=await bZ(KZ(Z),$);if(J.length>0)return J;let Q=DZ(Z);if(Q)return OZ(Q,$);return[]}function UZ(){if(u0)return u0;return u0=(async()=>{if(!W4()?.startsWith("openai:"))return;try{let $=await j4();if($.length>0)V4($)}catch{}finally{u0=null}})(),u0}var z4=5000,G4,u0=null;var R4=H(()=>{q2();$0();c5();Z0();l();$4();G4=new Map});function w4(Z,$,J){let Q=K()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=H4($,J);if(X!==void 0)return X;return H4(Z,J)}function H4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function F4(Z){let $=w4(PZ,EZ,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(R4(),S0(B4)),Q=J(Z);if(Q!==void 0)return Q}catch{}try{let{getCatalogCopilotContextWindow:J}=(M0(),S0(_0));return J(Z)}catch{return}}function L4(Z){let $=w4(kZ,_Z,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(M0(),S0(_0));return J(Z)}catch{return}}var PZ,kZ,EZ,_Z;var K4=H(()=>{$0();PZ={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},kZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},EZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),_Z=(()=>{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 D4(){let Z=K()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function a(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function q5(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function p7(Z,$){if(a(Z))return 1e6;if(D4()){let Q=F4(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."),MZ}let J=z5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>G5&&V0())return G5;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")))return 1e6;if($?.includes(T0)&&q5(Z))return 1e6;if(IZ(Z))return 1e6;return G5}function IZ(Z){if(V0())return!1;if(a(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function m7(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),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function c7(Z){let $,J;if(D4()){let Y=L4(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=b(Z);if(Q.includes("fable-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 $=SZ,J=vZ;let X=z5(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var G5=200000,MZ,f7=20000,SZ=32000,vZ=64000,g7=8000,u7=64000;var V5=H(()=>{e2();$0();i();u();F0();q4();K4();MZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var yZ,N4;var b4=H(()=>{l0();l();yZ=[{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"}],N4=v((Z,$)=>{if(V()==="firstParty")return;let J=Z.toLowerCase();for(let Q of yZ){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function TZ(Z){let $=[],J=[];for(let Q of Z)if(E4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function V9(Z){if(!Z||Z.length===0)return;if(U()){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: ${E4.join(", ")}`);return $.length>0?$:void 0}function O4(Z){let $=N4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=V();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function CZ(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function AZ(Z){let $=b(Z),J=V();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function hZ(Z){let $=b(Z),J=V();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-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 W9(Z){let $=b(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 z9(){let Z=V();if(Z==="vertex"||Z==="bedrock")return b1;return N1}function U4(){return(V()==="firstParty"||V()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function G9(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return V()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function x9(Z,$){let J=[..._4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=P4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function M4(){x5.cache?.clear?.(),_4.cache?.clear?.(),fZ.cache?.clear?.()}var E4,x5,_4,fZ;var S4=H(()=>{l0();M1();J0();e2();y0();n();V5();u();F0();b4();l();j0();E4=[T0];x5=v((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=V(),X=U4();if(!J)$.push(G2);if(U())$.push(B0);if(a(Z))$.push(T0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&O4(Z))$.push(L1);if(X&&O4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(U1),$.push(P1);let Y=AZ(Z);if(U4()&&Y)$.push(K1);let q=k4("tengu_tool_pear"),W=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(X&&hZ(Z)&&q)$.push(D1);if(X&&W)$.push(k1);if(Q==="vertex"&&CZ(Z))$.push(o2);if(Q==="foundry")$.push(o2);if(X)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),_4=v((Z)=>{let $=x5(Z);if(V()==="bedrock")return $.filter((J)=>!r2.has(J));return $}),fZ=v((Z)=>{return x5(Z).filter((J)=>r2.has(J))})});import{execFile as gZ}from"child_process";function v4(Z){return new Promise(($)=>{gZ("security",["find-generic-password","-a",L2(),"-w","-s",Z],{encoding:"utf-8",timeout:uZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function w9(){if(process.platform!=="darwin"||F2||g())return;let Z=v4(s(I4)),$=v4(s());F2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)y4(J.stdout);if(!Q.timedOut)j5={stdout:Q.stdout}})}async function F9(){if(F2)await F2}function T4(){return j5}function B5(){j5=null}var uZ=1e4,j5=null,F2=null;var C4=H(()=>{u();s2()});function R5(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)Y.unref()})}var A4=()=>{};function D9(){return h4}function f4(){h4.clear()}var h4;var g4=H(()=>{h4=new Map});var S$={};c2(S$,{validateForceLoginOrg:()=>M$,saveOAuthTokensIfNeeded:()=>J8,saveApiKey:()=>M5,removeApiKey:()=>w$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>Z8,refreshAwsAuth:()=>r4,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>j$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>B$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>$$,isUsing3PServices:()=>b2,isTeamSubscriber:()=>b$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>W5,isOverageProvisioningAllowed:()=>D$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>q8,isMaxSubscriber:()=>H2,isGcpAuthRefreshFromProjectSettings:()=>E5,isEnterpriseSubscriber:()=>O$,isCustomApiKeyApproved:()=>H$,isConsumerSubscriber:()=>E$,isClaudeAISubscriber:()=>U,isAwsCredentialExportFromProjectSettings:()=>P5,isAwsAuthRefreshFromProjectSettings:()=>O5,isAnthropicAuthEnabled:()=>k0,is1PApiCustomer:()=>K$,hasProfileScope:()=>q0,hasOpusAccess:()=>N$,hasAnthropicApiKeyAuth:()=>oZ,handleOAuth401Error:()=>J5,getSubscriptionType:()=>M,getSubscriptionName:()=>X8,getRateLimitTier:()=>Q8,getOtelHeadersFromHelper:()=>P$,getOauthAccountInfo:()=>N2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>I0,getApiKeyHelperElapsedMs:()=>rZ,getApiKeyFromConfigOrMacOSKeychain:()=>U2,getApiKeyFromApiKeyHelperCached:()=>w5,getApiKeyFromApiKeyHelper:()=>o4,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>_$,clearOAuthTokenCache:()=>S5,clearGcpCredentialsCache:()=>x$,clearAwsCredentialsCache:()=>q$,clearApiKeyHelperCache:()=>Z$,checkGcpCredentialsValid:()=>e4,checkAndRefreshOAuthTokenIfNeeded:()=>t0,calculateApiKeyHelperTTL:()=>a4});import{exec as l4}from"child_process";import{mkdir as iZ,stat as lZ}from"fs/promises";import{join as sZ}from"path";function D2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function k0(){if(g())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=b2(),J=(y()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!D2()||Y&&!D2())}function I0(){if(g()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D2())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()&&!D2())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 oZ(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=K();if(q?.transport!=="anthropic")return;let W=q.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:w5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=c4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=l2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!b2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!b2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&L().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:w5(),source:"apiKeyHelper"}}let Y=U2();if(Y)return Y;return{key:null,source:"none"}}function o(){if(g())return k("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function s4(){let Z=o();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function b5(){return(y()||{}).awsAuthRefresh}function O5(){let Z=b5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function U5(){return(y()||{}).awsCredentialExport}function P5(){let Z=U5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function a4(){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 aZ}function rZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function o4(Z){if(!o())return null;let $=a4();if(S){if(Date.now()-S.timestamp<$)return S.value;if(!c)c={promise:u4(Z,!1,U0),startedAt:null};return S.value}if(c)return c.promise;return c={promise:u4(Z,!0,U0),startedAt:Date.now()},c.promise}async function u4(Z,$,J){try{let Q=await eZ(Z);if(J!==U0)return Q;if(Q!==null)S={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==U0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&S&&S.value!==" ")return S={...S,timestamp:Date.now()},S.value;return S={value:" ",timestamp:Date.now()}," "}finally{if(J===U0)c=null}}async function eZ(Z){let $=o();if(!$)return null;if(s4()){if(!d()&&!Z){let Y=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",Y),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function w5(){return S?.value??null}function Z$(){U0++,S=null,c=null}function $$(Z){if(s4()&&!d())return;o4(Z)}async function Q$(){let Z=b5();if(!Z)return!1;if(O5()){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),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return r4(Z)}}function r4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:X$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function Y$(){let Z=U5();if(!Z)return null;if(P5()){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),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=K5($.stdout.trim());if(!B1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function q$(){z0.cache.clear()}function k5(){return(y()||{}).gcpAuthRefresh}function E5(){let Z=k5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function e4(){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=R5(V$).then(()=>{throw new V8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function z$(){let Z=k5();if(!Z)return!1;if(E5()){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),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await e4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Z8(Z)}function Z8(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:G$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function x$(){_5.cache.clear()}function j$(){if(!k5())return;if(E5()){if(!d()&&!f())return}_5()}function B$(){let Z=b5(),$=U5();if(!Z&&!$)return;if(O5()||P5()){if(!d()&&!f())return}z0(),j()}function R$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function M5(Z){if(!R$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await $8();let $=!1;if(process.platform==="darwin")try{let Q=s(),X=L2(),Y=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
2
- `;await H0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){N(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=z2(Z);C((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U2.cache.clear?.(),B5()}function H$(Z){let $=L(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function w$(){await $8(),C((Z)=>({...Z,primaryApiKey:void 0})),U2.cache.clear?.(),B5()}async function $8(){try{await x1()}catch(Z){N(Z)}}function J8(Z){if(!P0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=O2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),M4(),f4(),Y}catch(Q){return N(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function S5(){w.cache?.clear?.(),O0()}async function F$(){try{let{mtimeMs:Z}=await lZ(sZ(L5(),".credentials.json"));if(Z!==p4)p4=Z,S5()}catch{w.cache?.clear?.()}}function J5(Z){let $=H5.get(Z);if($)return $;let J=L$(Z).finally(()=>{H5.delete(Z)});return H5.set(Z,J),J}async function L$(Z){S5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return t0(0,!0)}async function c0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await O2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return N(Z),null}}function t0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=F5(Z,$).finally(()=>{p0=null}),p0}return F5(Z,$)}async function F5(Z,$){await F$();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?.(),O0();let X=await c0();if(!X?.refreshToken||!m0(X.expiresAt))return!1;let Y=L5();await iZ(Y,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await n4(Y),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await R5(1000+Math.random()*1000),F5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return N(W),x("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),O0();let W=await c0();if(!W?.refreshToken||!m0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await t4(W.refreshToken,{scopes:P0(W.scopes)?void 0:W.scopes});return J8(G),w.cache?.clear?.(),O0(),!0}catch(W){N(W),w.cache?.clear?.(),O0();let G=await c0();if(G&&!m0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await q(),x("tengu_oauth_token_refresh_lock_released",{})}}function U(){if(!k0())return!1;return P0(w()?.scopes)}function q0(){return w()?.scopes?.includes(d4)??!1}function K$(){{let Z=K()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(U())return!1;return!0}function N2(){return k0()?L().oauthAccount:void 0}function D$(){let $=N2()?.billingType;if(!U()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function N$(){let Z=M();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function M(){if(e5())return r5();if(!k0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H2(){return M()==="max"}function b$(){return M()==="team"}function w2(){return M()==="team"&&Q8()==="default_claude_max_5x"}function O$(){return M()==="enterprise"}function W5(){return M()==="pro"}function Q8(){if(!k0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function X8(){switch(M()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function b2(){let Z=K()?.transport;if(!Z)return!1;return Z!=="anthropic"}function Y8(){return(y()||{}).otelHeadersHelper}function q8(){let Z=Y8();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function P$(){let Z=Y8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||U$.toString());if(K2&&Date.now()-m4<$)return K2;if(q8()){if(!d())return{}}try{let J=D5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=K5(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[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return K2=Q,m4=Date.now(),K2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function k$(Z){return Z==="max"||Z==="pro"}function E$(){let Z=M();return U()&&Z!==null&&k$(Z)}function _$(){if(V()!=="firstParty")return;let{source:$}=I0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(U())J.subscription=X8();else J.tokenSource=$;let{key:Q,source:X}=n0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let q=N2()?.organizationName;if(q)J.organization=q}let Y=N2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function M$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!k0())return{valid:!0};let Z=k("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await t0();let $=w();if(!$)return{valid:!0};let{source:J}=I0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await R0($.accessToken);if(!X)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 Y=X.organization.uuid;if(Y===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: ${Y}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var aZ=300000,S=null,c=null,U0=0,J$=3600000,X$=180000,z0,V$=5000,W$=3600000,G$=180000,_5,U2,w,p4=0,H5,p0=null,K2=null,m4=0,U$=1740000,V8;var n=H(()=>{mZ();G1();l0();y0();j2();Y2();l();J0();$0();Z1();i4();t2();z1();j1();H1();F1();S4();i();Z0();u();V1();cZ();nZ();s0();dZ();tZ();C4();s2();j0();A4();pZ();g4();z0=N5(async()=>{let Z=await Q$(),$=await Y$();if(Z||$)await R1();return $},J$);_5=N5(async()=>{return await z$()},W$);U2=v(()=>{if(g())return null;if(process.platform==="darwin"){let $=T4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=s();try{let Q=D5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){N(Q)}}}let Z=L();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=v(()=>{if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=O2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});H5=new Map;V8=class V8 extends Error{}});function P0(Z){return Boolean(Z?.includes(v5))}function v$(Z){return Z?.split(" ").filter(Boolean)??[]}function GQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:q,loginHint:W,loginMethod:G}){let B=X?O().CLAUDE_AI_AUTHORIZE_URL:O().CONSOLE_AUTHORIZE_URL,R=new URL(B);R.searchParams.append("code","true"),R.searchParams.append("client_id",O().CLIENT_ID),R.searchParams.append("response_type","code"),R.searchParams.append("redirect_uri",Q?O().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=Y?[v5]:G8;if(R.searchParams.append("scope",W0.join(" ")),R.searchParams.append("code_challenge",Z),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("state",$),q)R.searchParams.append("orgUUID",q);if(W)R.searchParams.append("login_hint",W);if(G)R.searchParams.append("login_method",G);return R.toString()}async function xQ(Z,$,J,Q,X=!1,Y){let q={grant_type:"authorization_code",code:Z,redirect_uri:X?O().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:O().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)q.expires_in=Y;let W=await P.post(O().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return x("tengu_oauth_token_exchange_success",{}),W.data}async function t4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:O().CLIENT_ID,scope:(($?.length)?$:z8).join(" ")};try{let Q=await P.post(O().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:q=Z,expires_in:W}=X,G=Date.now()+W*1000,B=v$(X.scope);x("tengu_oauth_token_refresh_success",{});let R=L(),W0=w(),E=R.oauthAccount?.billingType!==void 0&&R.oauthAccount?.accountCreatedAt!==void 0&&R.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await I$(Y);if(E&&R.oauthAccount){let r={};if(E.displayName!==void 0)r.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)r.billingType=E.billingType;if(E.accountCreatedAt!==void 0)r.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(r).length>0)C((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...r}:i0.oauthAccount}))}return{accessToken:Y,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??W0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function jQ(Z){let $=await P.get(O().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!L().oauthAccount)throw Error("OAuth account information not found in config");C((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function BQ(Z){try{let $=await P.post(O().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await M5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function I$(Z){let $=await R0(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 X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function RQ(){let $=L().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let X=(await R0(J))?.organization?.uuid;if(!X)return null;return X}async function HQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!L().oauthAccount)W8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await t0();let X=L();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!U()||!q0())return!1;let Y=w();if(Y?.accessToken){let q=await R0(Y.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:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var i4=H(()=>{q2();j2();y0();n();i();Z0();t2()});
16
- export{w9 as A2,F9 as B2,C4 as C2,I5 as D2,y5 as E2,u$ as F2,p$ as G2,j8 as H2,H8 as I2,m$ as J2,h5 as K2,a0 as L2,o0 as M2,G0 as N2,g2 as O2,n2 as P2,b8 as Q2,M0 as R2,V as S2,ZJ as T2,$J as U2,JJ as V2,QJ as W2,l as X2,j as Y2,jJ as Z2,Y2 as _2,FJ as $2,LJ as a3,o5 as b3,bJ as c3,OJ as d3,Z1 as e3,SJ as f3,R0 as g3,t2 as h3,P0 as i3,v$ as j3,GQ as k3,xQ as l3,t4 as m3,jQ as n3,BQ as o3,m0 as p3,I$ as q3,RQ as r3,HQ as s3,W8 as t3,i4 as u3,fJ as v3,C8 as w3,$1 as x3,z1 as y3,z2 as z3,j1 as A3,dJ as B3,H1 as C3,T as D3,F1 as E3,T0 as F3,K1 as G3,D1 as H3,lJ as I3,sJ as J3,O1 as K3,aJ as L3,oJ as M3,U1 as N3,rJ as O3,eJ as P3,Z3 as Q3,e2 as R3,A as S3,I1 as T3,g8 as U3,F3 as V3,L3 as W3,K3 as X3,y1 as Y3,D3 as Z3,N3 as _3,u8 as $3,b3 as a4,O3 as b4,U3 as c4,P3 as d4,k3 as e4,c8 as f4,E3 as g4,_3 as h4,M3 as i4,S3 as j4,h1 as k4,L0 as l4,t8 as m4,l8 as n4,s8 as o4,Q5 as p4,JZ as q4,h3 as r4,m1 as s4,c1 as t4,QZ as u4,X5 as v4,t1 as w4,i1 as x4,W7 as y4,z7 as z4,Y5 as A4,G7 as B4,GZ as C4,N0 as D4,g0 as E4,J4 as F4,x7 as G4,h0 as H4,Q4 as I4,D as J4,b as K4,xZ as L4,j7 as M4,l1 as N4,f0 as O4,B7 as P4,X4 as Q4,Y4 as R4,R7 as S4,I as T4,H7 as U4,RZ as V4,w7 as W4,F7 as X4,L7 as Y4,K7 as Z4,F0 as _4,N7 as $4,q4 as a5,j4 as b5,UZ as c5,R4 as d5,f7 as e5,g7 as f5,u7 as g5,V0 as h5,a as i5,p7 as j5,IZ as k5,m7 as l5,c7 as m5,V5 as n5,N4 as o5,b4 as p5,V9 as q5,hZ as r5,W9 as s5,z9 as t5,U4 as u5,G9 as v5,_4 as w5,fZ as x5,x9 as y5,M4 as z5,S4 as A5,R5 as B5,A4 as C5,D9 as D5,f4 as E5,g4 as F5,k0 as G5,I0 as H5,X0 as I5,oZ as J5,n0 as K5,o as L5,O5 as M5,P5 as N5,a4 as O5,rZ as P5,o4 as Q5,w5 as R5,Z$ as S5,$$ as T5,r4 as U5,z0 as V5,q$ as W5,E5 as X5,e4 as Y5,Z8 as Z5,_5,x$ as $5,j$ as a6,B$ as b6,U2 as c6,M5 as d6,H$ as e6,w$ as f6,J8 as g6,w as h6,S5 as i6,J5 as j6,c0 as k6,t0 as l6,U as m6,q0 as n6,K$ as o6,N2 as p6,D$ as q6,N$ as r6,M as s6,H2 as t6,b$ as u6,w2 as v6,O$ as w6,W5 as x6,Q8 as y6,X8 as z6,b2 as A6,q8 as B6,P$ as C6,E$ as D6,_$ as E6,M$ as F6,S$ as G6,n as H6};