@claudiolabs/claudin 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (917) hide show
  1. package/README.md +3 -2
  2. package/dist/chunks/AgentTool-1.0.10-9168adv3.mjs +1 -0
  3. package/dist/chunks/App-1.0.10-b0wmgfhw.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.0.10-k8x17zqt.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.0.10-yyahg9e7.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.0.10-7d6nmenx.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.0.10-syxd1ha6.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.10-45912czy.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.0.10-efzztze6.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.0.10-6798dcwp.mjs +7 -0
  11. package/dist/chunks/Doctor-1.0.10-aagnvpzj.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.0.10-n773x39g.mjs +6 -0
  13. package/dist/chunks/Grove-1.0.10-ryqtmr1j.mjs +1 -0
  14. package/dist/chunks/ITermBackend-1.0.10-0wjvwjba.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-1.0.10-83c0rqn9.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-1.0.10-1h5tcxeh.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-1.0.10-5wbwh4fe.mjs +1 -0
  18. package/dist/chunks/Onboarding-1.0.10-xnrfb23f.mjs +1 -0
  19. package/dist/chunks/ProviderManager-1.0.10-5z81gk4w.mjs +1 -0
  20. package/dist/chunks/REPL-1.0.10-wdp6ava4.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-1.0.10-vhkf5e48.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-1.0.10-vst4p4dj.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-1.0.10-b9zsxt77.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-1.0.10-zy7bb8c1.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-1.0.10-51fsm716.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-1.0.10-eq97b1w6.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-1.0.10-kwaz93dc.mjs +1 -0
  28. package/dist/chunks/TrustDialog-1.0.10-emvcwvyz.mjs +1 -0
  29. package/dist/chunks/activeProvider-1.0.10-artcs5gw.mjs +1 -0
  30. package/dist/chunks/add-dir-1.0.10-3m9esps4.mjs +1 -0
  31. package/dist/chunks/agentTypes-1.0.10-j2eg0asq.mjs +1 -0
  32. package/dist/chunks/agents-1.0.10-b081966c.mjs +3 -0
  33. package/dist/chunks/agents-1.0.10-c6y89byc.mjs +110 -0
  34. package/dist/chunks/api-1.0.10-q6a49cq9.mjs +1 -0
  35. package/dist/chunks/asciicast-1.0.10-8mrrq69t.mjs +1 -0
  36. package/dist/chunks/assistant-1.0.10-mt80c19d.mjs +1 -0
  37. package/dist/chunks/auth-1.0.10-j9wjzwdr.mjs +1 -0
  38. package/dist/chunks/auth-1.0.10-wscad97h.mjs +1 -0
  39. package/dist/chunks/autoMode-1.0.10-qacrantk.mjs +48 -0
  40. package/dist/chunks/autoUpdater-1.0.10-kej3mpvd.mjs +1 -0
  41. package/dist/chunks/backgroundHousekeeping-1.0.10-q5rs8cg6.mjs +1 -0
  42. package/dist/chunks/branch-1.0.10-g431vyze.mjs +4 -0
  43. package/dist/chunks/bridge-1.0.10-98mv13j4.mjs +2 -0
  44. package/dist/chunks/bridgeConfig-1.0.10-pps59dv5.mjs +1 -0
  45. package/dist/chunks/bridgeEnabled-1.0.10-xpt9mfrj.mjs +1 -0
  46. package/dist/chunks/bridgeMain-1.0.10-9w755v0z.mjs +88 -0
  47. package/dist/chunks/bridgePointer-1.0.10-p6qd0vn4.mjs +1 -0
  48. package/dist/chunks/btw-1.0.10-3ks6x1cj.mjs +1 -0
  49. package/dist/chunks/buddy-1.0.10-mn169fr2.mjs +3 -0
  50. package/dist/chunks/cacache-1.0.10-1c5pjj4a.mjs +1 -0
  51. package/dist/chunks/cache-probe-1.0.10-4c2hbe4n.mjs +21 -0
  52. package/dist/chunks/cacheStats-1.0.10-bvmcxnsc.mjs +4 -0
  53. package/dist/chunks/caches-1.0.10-xnh6bthn.mjs +1 -0
  54. package/dist/chunks/claudeDesktop-1.0.10-7x49t06j.mjs +1 -0
  55. package/dist/chunks/claudemd-1.0.10-4x8m7nms.mjs +1 -0
  56. package/dist/chunks/clear-1.0.10-wjmnsbvk.mjs +1 -0
  57. package/dist/chunks/clearTerminal-1.0.10-gg3q4e2j.mjs +1 -0
  58. package/dist/chunks/cli-1.0.10-03k1bgjr.mjs +8 -0
  59. package/dist/chunks/cli-1.0.10-0dt8rr7s.mjs +2 -0
  60. package/dist/chunks/cli-1.0.10-0j3rvqvd.mjs +2 -0
  61. package/dist/chunks/cli-1.0.10-0mtvwacq.mjs +2 -0
  62. package/dist/chunks/cli-1.0.10-0p3e5mh4.mjs +2 -0
  63. package/dist/chunks/cli-1.0.10-0ww5aha0.mjs +2 -0
  64. package/dist/chunks/cli-1.0.10-10nbqkwk.mjs +5 -0
  65. package/dist/chunks/cli-1.0.10-126xqc7y.mjs +2 -0
  66. package/dist/chunks/cli-1.0.10-19r92gf0.mjs +2 -0
  67. package/dist/chunks/cli-1.0.10-1bb46j56.mjs +3 -0
  68. package/dist/chunks/cli-1.0.10-1gat00je.mjs +2 -0
  69. package/dist/chunks/cli-1.0.10-1hhjj6g5.mjs +15 -0
  70. package/dist/chunks/cli-1.0.10-1vw162pp.mjs +2 -0
  71. package/dist/chunks/cli-1.0.10-1w8ykzyr.mjs +18 -0
  72. package/dist/chunks/cli-1.0.10-1y9ehszh.mjs +4 -0
  73. package/dist/chunks/cli-1.0.10-2mrxx0ha.mjs +2 -0
  74. package/dist/chunks/cli-1.0.10-2yf0e5j0.mjs +3 -0
  75. package/dist/chunks/cli-1.0.10-38j9ydcc.mjs +2 -0
  76. package/dist/chunks/cli-1.0.10-39c794ps.mjs +2 -0
  77. package/dist/chunks/cli-1.0.10-3b8btggr.mjs +2 -0
  78. package/dist/chunks/cli-1.0.10-3g4c94ey.mjs +2 -0
  79. package/dist/chunks/cli-1.0.10-3hnjbysa.mjs +2 -0
  80. package/dist/chunks/cli-1.0.10-3kpgqv4r.mjs +2 -0
  81. package/dist/chunks/cli-1.0.10-3m372s1z.mjs +2 -0
  82. package/dist/chunks/cli-1.0.10-3mf1zb3g.mjs +2 -0
  83. package/dist/chunks/cli-1.0.10-4137p8r7.mjs +3 -0
  84. package/dist/chunks/cli-1.0.10-496yhe1m.mjs +2 -0
  85. package/dist/chunks/cli-1.0.10-4cpftynm.mjs +133 -0
  86. package/dist/chunks/cli-1.0.10-4pjpd1yr.mjs +2 -0
  87. package/dist/chunks/cli-1.0.10-4pnqm304.mjs +2 -0
  88. package/dist/chunks/cli-1.0.10-4xqmvag1.mjs +2 -0
  89. package/dist/chunks/cli-1.0.10-52vtevx2.mjs +21 -0
  90. package/dist/chunks/cli-1.0.10-53k2r2s4.mjs +24 -0
  91. package/dist/chunks/cli-1.0.10-56qwh0xr.mjs +2 -0
  92. package/dist/chunks/cli-1.0.10-5a969ex4.mjs +2 -0
  93. package/dist/chunks/cli-1.0.10-5ad4sra1.mjs +2 -0
  94. package/dist/chunks/cli-1.0.10-5mwqzywt.mjs +2 -0
  95. package/dist/chunks/cli-1.0.10-5vy47pkm.mjs +2 -0
  96. package/dist/chunks/cli-1.0.10-5yc9j1wk.mjs +18 -0
  97. package/dist/chunks/cli-1.0.10-60m6e8jb.mjs +2 -0
  98. package/dist/chunks/cli-1.0.10-648r2tej.mjs +4 -0
  99. package/dist/chunks/cli-1.0.10-64cdykjq.mjs +2 -0
  100. package/dist/chunks/cli-1.0.10-66cb9etc.mjs +2 -0
  101. package/dist/chunks/cli-1.0.10-6ezxzjjc.mjs +2 -0
  102. package/dist/chunks/cli-1.0.10-6k8wfwnm.mjs +18 -0
  103. package/dist/chunks/cli-1.0.10-6rmggk90.mjs +2 -0
  104. package/dist/chunks/cli-1.0.10-6v8b25v3.mjs +2 -0
  105. package/dist/chunks/cli-1.0.10-71469776.mjs +2 -0
  106. package/dist/chunks/cli-1.0.10-73jtw2ga.mjs +2 -0
  107. package/dist/chunks/cli-1.0.10-79ksk5t8.mjs +2 -0
  108. package/dist/chunks/cli-1.0.10-7vtw4q1z.mjs +2 -0
  109. package/dist/chunks/cli-1.0.10-80nme2ba.mjs +2 -0
  110. package/dist/chunks/cli-1.0.10-81bqbfzt.mjs +133 -0
  111. package/dist/chunks/cli-1.0.10-83nr92pr.mjs +2 -0
  112. package/dist/chunks/cli-1.0.10-8kmrt121.mjs +7 -0
  113. package/dist/chunks/cli-1.0.10-8p9adejr.mjs +2 -0
  114. package/dist/chunks/cli-1.0.10-8pv0t0rg.mjs +15 -0
  115. package/dist/chunks/cli-1.0.10-8r7kaawz.mjs +2 -0
  116. package/dist/chunks/cli-1.0.10-8zazttk7.mjs +2 -0
  117. package/dist/chunks/cli-1.0.10-99yfs0np.mjs +9 -0
  118. package/dist/chunks/cli-1.0.10-9w7ktw12.mjs +4 -0
  119. package/dist/chunks/cli-1.0.10-9w9eyp5w.mjs +26 -0
  120. package/dist/chunks/cli-1.0.10-9zyzxxg6.mjs +2 -0
  121. package/dist/chunks/cli-1.0.10-a3dzh7qn.mjs +2 -0
  122. package/dist/chunks/cli-1.0.10-ae686ksc.mjs +2 -0
  123. package/dist/chunks/cli-1.0.10-ae9e10re.mjs +2 -0
  124. package/dist/chunks/cli-1.0.10-ahv8e63t.mjs +2 -0
  125. package/dist/chunks/cli-1.0.10-ak0w8049.mjs +2 -0
  126. package/dist/chunks/cli-1.0.10-aqy1tjb5.mjs +6 -0
  127. package/dist/chunks/cli-1.0.10-b32ya0x2.mjs +2 -0
  128. package/dist/chunks/cli-1.0.10-b42che8r.mjs +2 -0
  129. package/dist/chunks/cli-1.0.10-b9d86y5k.mjs +2 -0
  130. package/dist/chunks/cli-1.0.10-bckynsrn.mjs +2 -0
  131. package/dist/chunks/cli-1.0.10-bfeskk5v.mjs +2 -0
  132. package/dist/chunks/cli-1.0.10-bft50zap.mjs +2 -0
  133. package/dist/chunks/cli-1.0.10-bg5yza2e.mjs +42 -0
  134. package/dist/chunks/cli-1.0.10-bhhjmwbq.mjs +2 -0
  135. package/dist/chunks/cli-1.0.10-bjyy7gk3.mjs +2 -0
  136. package/dist/chunks/cli-1.0.10-bmn2zrhq.mjs +2 -0
  137. package/dist/chunks/cli-1.0.10-bwsvy4ha.mjs +2 -0
  138. package/dist/chunks/cli-1.0.10-byd1s52c.mjs +2 -0
  139. package/dist/chunks/cli-1.0.10-c1x0gkce.mjs +2 -0
  140. package/dist/chunks/cli-1.0.10-ccxx6dak.mjs +34 -0
  141. package/dist/chunks/cli-1.0.10-cj46661y.mjs +17 -0
  142. package/dist/chunks/cli-1.0.10-cjvcm52x.mjs +3 -0
  143. package/dist/chunks/cli-1.0.10-cqr66bg9.mjs +2 -0
  144. package/dist/chunks/cli-1.0.10-dgjh0akh.mjs +1 -0
  145. package/dist/chunks/cli-1.0.10-djtar6x6.mjs +2 -0
  146. package/dist/chunks/cli-1.0.10-dk9yt7dj.mjs +24 -0
  147. package/dist/chunks/cli-1.0.10-dqbytbnz.mjs +2 -0
  148. package/dist/chunks/cli-1.0.10-dsx0vt1p.mjs +2 -0
  149. package/dist/chunks/cli-1.0.10-dwzzv50k.mjs +2 -0
  150. package/dist/chunks/cli-1.0.10-e33cdbwd.mjs +2 -0
  151. package/dist/chunks/cli-1.0.10-ebk3tx3x.mjs +2 -0
  152. package/dist/chunks/cli-1.0.10-en27vfnb.mjs +2 -0
  153. package/dist/chunks/cli-1.0.10-evwrkxzx.mjs +2 -0
  154. package/dist/chunks/cli-1.0.10-ewwwn978.mjs +2 -0
  155. package/dist/chunks/cli-1.0.10-f0qeess8.mjs +24 -0
  156. package/dist/chunks/cli-1.0.10-f1dj38dh.mjs +3 -0
  157. package/dist/chunks/cli-1.0.10-f9kd9ea1.mjs +2 -0
  158. package/dist/chunks/cli-1.0.10-fd700nvj.mjs +67 -0
  159. package/dist/chunks/cli-1.0.10-fexcb6zq.mjs +4 -0
  160. package/dist/chunks/cli-1.0.10-ffm9cbk3.mjs +2 -0
  161. package/dist/chunks/cli-1.0.10-fh0ndq5n.mjs +2 -0
  162. package/dist/chunks/cli-1.0.10-fnpqr7p3.mjs +6 -0
  163. package/dist/chunks/cli-1.0.10-fqj1yrnh.mjs +2 -0
  164. package/dist/chunks/cli-1.0.10-g44hcyvc.mjs +2 -0
  165. package/dist/chunks/cli-1.0.10-g54smq1c.mjs +2 -0
  166. package/dist/chunks/cli-1.0.10-gcj94djy.mjs +2 -0
  167. package/dist/chunks/cli-1.0.10-gdd5wptw.mjs +2 -0
  168. package/dist/chunks/cli-1.0.10-gjfjm956.mjs +2 -0
  169. package/dist/chunks/cli-1.0.10-gw19ejvb.mjs +2 -0
  170. package/dist/chunks/cli-1.0.10-gwg4fpdz.mjs +2 -0
  171. package/dist/chunks/cli-1.0.10-h1b5mddb.mjs +3 -0
  172. package/dist/chunks/cli-1.0.10-h5kmfbbq.mjs +2 -0
  173. package/dist/chunks/cli-1.0.10-h8hxgzcg.mjs +2 -0
  174. package/dist/chunks/cli-1.0.10-h9y92tqt.mjs +4 -0
  175. package/dist/chunks/cli-1.0.10-hh0mja3r.mjs +2 -0
  176. package/dist/chunks/cli-1.0.10-hh3gv5p7.mjs +12 -0
  177. package/dist/chunks/cli-1.0.10-hkdbtrdk.mjs +2 -0
  178. package/dist/chunks/cli-1.0.10-hmjmw1zh.mjs +3 -0
  179. package/dist/chunks/cli-1.0.10-ht0jya8e.mjs +2 -0
  180. package/dist/chunks/cli-1.0.10-j0e7nj85.mjs +199 -0
  181. package/dist/chunks/cli-1.0.10-j1c6sy8q.mjs +59 -0
  182. package/dist/chunks/cli-1.0.10-j8cpz9vy.mjs +2 -0
  183. package/dist/chunks/cli-1.0.10-jd706hep.mjs +2 -0
  184. package/dist/chunks/cli-1.0.10-jdy936dq.mjs +2 -0
  185. package/dist/chunks/cli-1.0.10-je9yx09w.mjs +2 -0
  186. package/dist/chunks/cli-1.0.10-jmgrxnds.mjs +9 -0
  187. package/dist/chunks/cli-1.0.10-jrah5nna.mjs +4 -0
  188. package/dist/chunks/cli-1.0.10-jtb37mr1.mjs +50 -0
  189. package/dist/chunks/cli-1.0.10-jtvypw88.mjs +2 -0
  190. package/dist/chunks/cli-1.0.10-jy4hgvn2.mjs +2 -0
  191. package/dist/chunks/cli-1.0.10-jyeg1gs5.mjs +2 -0
  192. package/dist/chunks/cli-1.0.10-k9e97edx.mjs +25 -0
  193. package/dist/chunks/cli-1.0.10-ke4netv4.mjs +2 -0
  194. package/dist/chunks/cli-1.0.10-kewc714d.mjs +2 -0
  195. package/dist/chunks/cli-1.0.10-kmsk4exm.mjs +15 -0
  196. package/dist/chunks/cli-1.0.10-kww7mmtb.mjs +2 -0
  197. package/dist/chunks/cli-1.0.10-ky6sqp4h.mjs +2 -0
  198. package/dist/chunks/cli-1.0.10-m2yxngqq.mjs +2 -0
  199. package/dist/chunks/cli-1.0.10-m56h58rz.mjs +4 -0
  200. package/dist/chunks/cli-1.0.10-mnyfnbxw.mjs +2 -0
  201. package/dist/chunks/cli-1.0.10-n2xanxex.mjs +2 -0
  202. package/dist/chunks/cli-1.0.10-n5n71bfh.mjs +2 -0
  203. package/dist/chunks/cli-1.0.10-n8yjcm4e.mjs +2 -0
  204. package/dist/chunks/cli-1.0.10-ng670b7q.mjs +4 -0
  205. package/dist/chunks/cli-1.0.10-nh813cn1.mjs +25 -0
  206. package/dist/chunks/cli-1.0.10-nrkp80dg.mjs +2 -0
  207. package/dist/chunks/cli-1.0.10-nzw6qreb.mjs +2 -0
  208. package/dist/chunks/cli-1.0.10-p0q41475.mjs +2 -0
  209. package/dist/chunks/cli-1.0.10-pc4k60c7.mjs +3 -0
  210. package/dist/chunks/cli-1.0.10-pd2mt28b.mjs +6 -0
  211. package/dist/chunks/cli-1.0.10-ptbb2wn9.mjs +2 -0
  212. package/dist/chunks/cli-1.0.10-pv72gcrc.mjs +2 -0
  213. package/dist/chunks/cli-1.0.10-pve8az23.mjs +2 -0
  214. package/dist/chunks/cli-1.0.10-q2gqrdsg.mjs +12 -0
  215. package/dist/chunks/cli-1.0.10-qpbq00z0.mjs +2 -0
  216. package/dist/chunks/cli-1.0.10-r0k2vrj0.mjs +4 -0
  217. package/dist/chunks/cli-1.0.10-r5vax630.mjs +2 -0
  218. package/dist/chunks/cli-1.0.10-r6fe45r0.mjs +2 -0
  219. package/dist/chunks/cli-1.0.10-rdtm500m.mjs +2 -0
  220. package/dist/chunks/cli-1.0.10-rv1gqs67.mjs +2 -0
  221. package/dist/chunks/cli-1.0.10-rvmxg955.mjs +2 -0
  222. package/dist/chunks/cli-1.0.10-rx79bg1y.mjs +3 -0
  223. package/dist/chunks/cli-1.0.10-s71r06y4.mjs +58 -0
  224. package/dist/chunks/cli-1.0.10-sk2nf64f.mjs +2 -0
  225. package/dist/chunks/cli-1.0.10-skya2rkj.mjs +5 -0
  226. package/dist/chunks/cli-1.0.10-ss2tmvtb.mjs +2 -0
  227. package/dist/chunks/cli-1.0.10-sx9jc4xr.mjs +2 -0
  228. package/dist/chunks/cli-1.0.10-sy8asc9x.mjs +2 -0
  229. package/dist/chunks/cli-1.0.10-t14tjahq.mjs +2 -0
  230. package/dist/chunks/cli-1.0.10-t4r1szrq.mjs +2 -0
  231. package/dist/chunks/cli-1.0.10-t7j9fna8.mjs +2 -0
  232. package/dist/chunks/cli-1.0.10-ta2k7fvc.mjs +2 -0
  233. package/dist/chunks/cli-1.0.10-twwqss1j.mjs +2 -0
  234. package/dist/chunks/cli-1.0.10-tz8wh2nt.mjs +2 -0
  235. package/dist/chunks/cli-1.0.10-v10zh0fh.mjs +2 -0
  236. package/dist/chunks/cli-1.0.10-v21sb2kt.mjs +2 -0
  237. package/dist/chunks/cli-1.0.10-vgpbbf1e.mjs +2 -0
  238. package/dist/chunks/cli-1.0.10-vr6qr3sv.mjs +2 -0
  239. package/dist/chunks/cli-1.0.10-vs4em692.mjs +3 -0
  240. package/dist/chunks/cli-1.0.10-vtjr25wp.mjs +2 -0
  241. package/dist/chunks/cli-1.0.10-vztkwp82.mjs +2 -0
  242. package/dist/chunks/cli-1.0.10-w3tmnr5j.mjs +20 -0
  243. package/dist/chunks/cli-1.0.10-wey5x58d.mjs +2 -0
  244. package/dist/chunks/cli-1.0.10-wg6fyahd.mjs +2 -0
  245. package/dist/chunks/cli-1.0.10-wg9nsp2f.mjs +2 -0
  246. package/dist/chunks/cli-1.0.10-wmfmsmjy.mjs +12 -0
  247. package/dist/chunks/cli-1.0.10-wqjsz7wa.mjs +5494 -0
  248. package/dist/chunks/cli-1.0.10-wxrka0th.mjs +6 -0
  249. package/dist/chunks/cli-1.0.10-x6xcvx11.mjs +16 -0
  250. package/dist/chunks/cli-1.0.10-xpe7rcb5.mjs +2 -0
  251. package/dist/chunks/cli-1.0.10-xt00tyad.mjs +2 -0
  252. package/dist/chunks/cli-1.0.10-xtvrvzg5.mjs +17 -0
  253. package/dist/chunks/cli-1.0.10-xww01et4.mjs +2 -0
  254. package/dist/chunks/cli-1.0.10-y28ymt76.mjs +2 -0
  255. package/dist/chunks/cli-1.0.10-yjrzkmfn.mjs +3 -0
  256. package/dist/chunks/cli-1.0.10-ynhcfc43.mjs +3 -0
  257. package/dist/chunks/cli-1.0.10-ywhv7cdv.mjs +6 -0
  258. package/dist/chunks/cli-1.0.10-yxygfxta.mjs +45 -0
  259. package/dist/chunks/cli-1.0.10-yzdn65j0.mjs +4 -0
  260. package/dist/chunks/cli-1.0.10-z3xm8f1d.mjs +39 -0
  261. package/dist/chunks/cli-1.0.10-z4jh4f0p.mjs +2 -0
  262. package/dist/chunks/cli-1.0.10-z6340h71.mjs +4 -0
  263. package/dist/chunks/cli-1.0.10-z7wkvxqp.mjs +3 -0
  264. package/dist/chunks/cli-1.0.10-zkydc4kt.mjs +12 -0
  265. package/dist/chunks/cli-1.0.10-zqkna2fg.mjs +2 -0
  266. package/dist/chunks/cli-1.0.10-zsywcbys.mjs +2 -0
  267. package/dist/chunks/client-1.0.10-7byazp8v.mjs +1 -0
  268. package/dist/chunks/color-1.0.10-s4c1qp2y.mjs +1 -0
  269. package/dist/chunks/compact-1.0.10-b8zsezb4.mjs +3 -0
  270. package/dist/chunks/config-1.0.10-60eqskrh.mjs +1 -0
  271. package/dist/chunks/config-1.0.10-rbfqh3y0.mjs +1 -0
  272. package/dist/chunks/constants-1.0.10-z5rz293a.mjs +1 -0
  273. package/dist/chunks/context-1.0.10-bg5xx3et.mjs +1 -0
  274. package/dist/chunks/context-noninteractive-1.0.10-cjhkmk1r.mjs +1 -0
  275. package/dist/chunks/conversation-1.0.10-3cgadyvt.mjs +1 -0
  276. package/dist/chunks/copilotHeaders-1.0.10-zmbzt99b.mjs +1 -0
  277. package/dist/chunks/copy-1.0.10-dx3pp3q2.mjs +9 -0
  278. package/dist/chunks/cost-1.0.10-80gfyjq7.mjs +1 -0
  279. package/dist/chunks/createSSHSession-1.0.10-2xk3wyeg.mjs +1 -0
  280. package/dist/chunks/createSession-1.0.10-sr914pcx.mjs +1 -0
  281. package/dist/chunks/debug-1.0.10-k0dhnsx3.mjs +1 -0
  282. package/dist/chunks/defaultActionDeps-1.0.10-fgjm5561.mjs +1446 -0
  283. package/dist/chunks/desktop-1.0.10-xe4fddd4.mjs +1 -0
  284. package/dist/chunks/detectRepository-1.0.10-g90zwegz.mjs +1 -0
  285. package/dist/chunks/detection-1.0.10-bjg1jygr.mjs +1 -0
  286. package/dist/chunks/diff-1.0.10-79y94xba.mjs +1 -0
  287. package/dist/chunks/doctor-1.0.10-tvfkxqt6.mjs +1 -0
  288. package/dist/chunks/doctorDiagnostic-1.0.10-w0zh5ae9.mjs +1 -0
  289. package/dist/chunks/earlyInput-1.0.10-1hr7dsxb.mjs +1 -0
  290. package/dist/chunks/effort-1.0.10-emjcedez.mjs +10 -0
  291. package/dist/chunks/engine-1.0.10-ywcrdtr6.mjs +1 -0
  292. package/dist/chunks/envLessBridgeConfig-1.0.10-cvy0rrma.mjs +1 -0
  293. package/dist/chunks/envUtils-1.0.10-cam4ph3k.mjs +1 -0
  294. package/dist/chunks/environmentSelection-1.0.10-1qtvt9sr.mjs +1 -0
  295. package/dist/chunks/environments-1.0.10-rxaz4r3h.mjs +1 -0
  296. package/dist/chunks/errors-1.0.10-qy5ag074.mjs +1 -0
  297. package/dist/chunks/exampleCommands-1.0.10-g3e3zz4e.mjs +1 -0
  298. package/dist/chunks/execFileNoThrow-1.0.10-s07vn416.mjs +1 -0
  299. package/dist/chunks/exit-1.0.10-ezwxcfqx.mjs +1 -0
  300. package/dist/chunks/explorer-1.0.10-a47gdyfa.mjs +1 -0
  301. package/dist/chunks/export-1.0.10-671yvkk4.mjs +2 -0
  302. package/dist/chunks/extra-usage-1.0.10-j1sw8ax0.mjs +1 -0
  303. package/dist/chunks/extra-usage-noninteractive-1.0.10-y7grm0jw.mjs +1 -0
  304. package/dist/chunks/fast-1.0.10-s9pbpm3b.mjs +1 -0
  305. package/dist/chunks/feedback-1.0.10-cyrkbx7y.mjs +14 -0
  306. package/dist/chunks/firstPartyEventLogger-1.0.10-5ycy04fg.mjs +1 -0
  307. package/dist/chunks/git-1.0.10-rxj88p2f.mjs +1 -0
  308. package/dist/chunks/githubModelsCredentials-1.0.10-brf3k7b6.mjs +1 -0
  309. package/dist/chunks/goal-1.0.10-xbq2asg7.mjs +4 -0
  310. package/dist/chunks/grove-1.0.10-9n9svmaz.mjs +1 -0
  311. package/dist/chunks/growthbook-1.0.10-w933p6sp.mjs +1 -0
  312. package/dist/chunks/headless-1.0.10-wmgrqfkj.mjs +2 -0
  313. package/dist/chunks/heapdump-1.0.10-g62zynw6.mjs +6 -0
  314. package/dist/chunks/help-1.0.10-f0gt1j1w.mjs +1 -0
  315. package/dist/chunks/hookChains-1.0.10-bepy9pvw.mjs +3 -0
  316. package/dist/chunks/hooks-1.0.10-gw89vhja.mjs +79 -0
  317. package/dist/chunks/hooks-1.0.10-mvry337c.mjs +1 -0
  318. package/dist/chunks/ide-1.0.10-f332q2j4.mjs +3 -0
  319. package/dist/chunks/image-processor-napi-1.0.10-a3r2bp6h.mjs +1 -0
  320. package/dist/chunks/inboundAttachments-1.0.10-vw1vtayk.mjs +1 -0
  321. package/dist/chunks/index-1.0.10-0k08n5bq.mjs +1 -0
  322. package/dist/chunks/index-1.0.10-4mt0jdmh.mjs +9 -0
  323. package/dist/chunks/index-1.0.10-7t360587.mjs +30 -0
  324. package/dist/chunks/index-1.0.10-9bfdndy5.mjs +9 -0
  325. package/dist/chunks/index-1.0.10-am7dnmp4.mjs +2 -0
  326. package/dist/chunks/index-1.0.10-bwk5zyqy.mjs +2 -0
  327. package/dist/chunks/index-1.0.10-dhnc5tvd.mjs +1 -0
  328. package/dist/chunks/index-1.0.10-edby3nt5.mjs +1 -0
  329. package/dist/chunks/index-1.0.10-fmdn53xt.mjs +5 -0
  330. package/dist/chunks/index-1.0.10-ggchxhyq.mjs +1 -0
  331. package/dist/chunks/index-1.0.10-j69vq8sg.mjs +1 -0
  332. package/dist/chunks/index-1.0.10-kgtk88f2.mjs +1 -0
  333. package/dist/chunks/index-1.0.10-kva9fdeh.mjs +1 -0
  334. package/dist/chunks/index-1.0.10-my9gs07r.mjs +17 -0
  335. package/dist/chunks/index-1.0.10-nhbtysa8.mjs +1 -0
  336. package/dist/chunks/index-1.0.10-nzyycr95.mjs +1 -0
  337. package/dist/chunks/index-1.0.10-q5nbszvz.mjs +1 -0
  338. package/dist/chunks/index-1.0.10-s19bfcep.mjs +1 -0
  339. package/dist/chunks/index-1.0.10-t31zjmfq.mjs +1 -0
  340. package/dist/chunks/index-1.0.10-t6nhh2kg.mjs +1 -0
  341. package/dist/chunks/index-1.0.10-vejq9y46.mjs +1 -0
  342. package/dist/chunks/index-1.0.10-y00daz8n.mjs +1 -0
  343. package/dist/chunks/index-1.0.10-ze7wmpkc.mjs +1 -0
  344. package/dist/chunks/init-1.0.10-6h103d8q.mjs +1 -0
  345. package/dist/chunks/initReplBridge-1.0.10-d867e3x4.mjs +1 -0
  346. package/dist/chunks/ink-1.0.10-nk1fq1dm.mjs +1 -0
  347. package/dist/chunks/insights-1.0.10-nd5bf3tn.mjs +870 -0
  348. package/dist/chunks/install-1.0.10-c52kdgj6.mjs +1 -0
  349. package/dist/chunks/install-github-app-1.0.10-ps0750kg.mjs +149 -0
  350. package/dist/chunks/install-slack-app-1.0.10-7wkt6hc4.mjs +1 -0
  351. package/dist/chunks/instrumentation-1.0.10-a3heyvnj.mjs +1 -0
  352. package/dist/chunks/interactiveHelpers-1.0.10-wxcke8v7.mjs +1 -0
  353. package/dist/chunks/keybindings-1.0.10-p7wqtqkd.mjs +2 -0
  354. package/dist/chunks/knowledge-1.0.10-c42940vh.mjs +2 -0
  355. package/dist/chunks/latestVersionCache-1.0.10-50a46a7m.mjs +1 -0
  356. package/dist/chunks/loadAgentsDir-1.0.10-py3qpey9.mjs +1 -0
  357. package/dist/chunks/loadPluginHooks-1.0.10-39nwmnvx.mjs +1 -0
  358. package/dist/chunks/loadPluginHooks-1.0.10-6jmcymem.mjs +1 -0
  359. package/dist/chunks/log-1.0.10-eca0cp5t.mjs +1 -0
  360. package/dist/chunks/main-1.0.10-9z91b6fs.mjs +1 -0
  361. package/dist/chunks/managedEnv-1.0.10-4jrvqcr0.mjs +1 -0
  362. package/dist/chunks/mcp-1.0.10-4c5c48sr.mjs +4 -0
  363. package/dist/chunks/mcp-1.0.10-vqvqv3j1.mjs +1 -0
  364. package/dist/chunks/mcp-1.0.10-xkcvhw01.mjs +17 -0
  365. package/dist/chunks/mcpb-1.0.10-z4af6k7x.mjs +1 -0
  366. package/dist/chunks/memory-1.0.10-0wrb9gdn.mjs +3 -0
  367. package/dist/chunks/model-1.0.10-9qthsb3v.mjs +1 -0
  368. package/dist/chunks/model-1.0.10-r9kgqf6z.mjs +2 -0
  369. package/dist/chunks/node-1.0.10-hfwnhf6d.mjs +12 -0
  370. package/dist/chunks/oauth-1.0.10-m902vg8r.mjs +1 -0
  371. package/dist/chunks/openaiShim-1.0.10-q62abztc.mjs +14 -0
  372. package/dist/chunks/output-style-1.0.10-563k721y.mjs +1 -0
  373. package/dist/chunks/package-ZZWOLTXM-1.0.10-txxn3gh8.mjs +1 -0
  374. package/dist/chunks/parseConnectUrl-1.0.10-wj3nyx2d.mjs +1 -0
  375. package/dist/chunks/parser-1.0.10-fjc5mtxc.mjs +1 -0
  376. package/dist/chunks/passes-1.0.10-x1capf33.mjs +1 -0
  377. package/dist/chunks/permissions-1.0.10-4my34k8d.mjs +3 -0
  378. package/dist/chunks/permissions-1.0.10-5n02mr16.mjs +1 -0
  379. package/dist/chunks/plan-1.0.10-hyvxe8tv.mjs +1 -0
  380. package/dist/chunks/plist-1.0.10-pp45jg89.mjs +1 -0
  381. package/dist/chunks/plugin-1.0.10-hstxrh5v.mjs +29 -0
  382. package/dist/chunks/pluginStartupCheck-1.0.10-xcrwztkb.mjs +1 -0
  383. package/dist/chunks/plugins-1.0.10-919c0yk2.mjs +9 -0
  384. package/dist/chunks/preActionHook-1.0.10-jn8fp6bd.mjs +2 -0
  385. package/dist/chunks/print-1.0.10-fztd9aqa.mjs +57 -0
  386. package/dist/chunks/privacy-settings-1.0.10-dd3na1c7.mjs +1 -0
  387. package/dist/chunks/process-1.0.10-3spc6fy0.mjs +1 -0
  388. package/dist/chunks/processBashCommand-1.0.10-tam7qz77.mjs +1 -0
  389. package/dist/chunks/processSlashCommand-1.0.10-rc50ctef.mjs +9 -0
  390. package/dist/chunks/prompt-1.0.10-hgr1z03f.mjs +1 -0
  391. package/dist/chunks/prompt-1.0.10-mtcwzabt.mjs +1 -0
  392. package/dist/chunks/prompts-1.0.10-qfcrm3h0.mjs +1 -0
  393. package/dist/chunks/protocolHandler-1.0.10-maw1nc01.mjs +13 -0
  394. package/dist/chunks/provider-1.0.10-w8e0x4wg.mjs +2 -0
  395. package/dist/chunks/providerProfiles-1.0.10-vrczr90z.mjs +1 -0
  396. package/dist/chunks/providerValidation-1.0.10-hsvbzg8v.mjs +6 -0
  397. package/dist/chunks/rate-limit-options-1.0.10-tz7t0azd.mjs +1 -0
  398. package/dist/chunks/registerSubcommands-1.0.10-c2xzhak0.mjs +34 -0
  399. package/dist/chunks/registry-1.0.10-vvp815a7.mjs +1 -0
  400. package/dist/chunks/release-notes-1.0.10-bddj03ct.mjs +5 -0
  401. package/dist/chunks/reload-plugins-1.0.10-4kyzkvgp.mjs +2 -0
  402. package/dist/chunks/remote-env-1.0.10-7w2v6jch.mjs +1 -0
  403. package/dist/chunks/remoteBridgeCore-1.0.10-gjgd2e0d.mjs +1 -0
  404. package/dist/chunks/remoteSession-1.0.10-y8fkrvm4.mjs +1 -0
  405. package/dist/chunks/rename-1.0.10-q51x2bn9.mjs +1 -0
  406. package/dist/chunks/replBridgeHandle-1.0.10-1qzwcpyn.mjs +1 -0
  407. package/dist/chunks/replLauncher-1.0.10-cnfhh6dg.mjs +1 -0
  408. package/dist/chunks/resume-1.0.10-f2k9he8x.mjs +2 -0
  409. package/dist/chunks/rewind-1.0.10-8b4h21at.mjs +1 -0
  410. package/dist/chunks/rootOptions-1.0.10-0h685kw2.mjs +1 -0
  411. package/dist/chunks/runWorkflowHeadless-1.0.10-xrygk6eq.mjs +10 -0
  412. package/dist/chunks/sandbox-adapter-1.0.10-azs01x6x.mjs +1 -0
  413. package/dist/chunks/sandbox-toggle-1.0.10-xm1nasf6.mjs +1 -0
  414. package/dist/chunks/session-1.0.10-ab9eeddq.mjs +2 -0
  415. package/dist/chunks/sessionDiscovery-1.0.10-ndj6yx0m.mjs +1 -0
  416. package/dist/chunks/sessionFileAccessHooks-1.0.10-0p2fqbx6.mjs +1 -0
  417. package/dist/chunks/sessionStorage-1.0.10-64bjn2kx.mjs +1 -0
  418. package/dist/chunks/settings-1.0.10-r6qxxnnb.mjs +1 -0
  419. package/dist/chunks/setup-1.0.10-k7szer1n.mjs +5 -0
  420. package/dist/chunks/sinks-1.0.10-dzct0b1n.mjs +1 -0
  421. package/dist/chunks/skills-1.0.10-02531p29.mjs +1 -0
  422. package/dist/chunks/startupProfiler-1.0.10-n98x8y1n.mjs +1 -0
  423. package/dist/chunks/startupUpdateCheck-1.0.10-wzb027hm.mjs +1 -0
  424. package/dist/chunks/state-1.0.10-665t7j4r.mjs +1 -0
  425. package/dist/chunks/stats-1.0.10-x6tdkrp1.mjs +6 -0
  426. package/dist/chunks/status-1.0.10-wtkz1g25.mjs +1 -0
  427. package/dist/chunks/stickers-1.0.10-zgzqw4ax.mjs +1 -0
  428. package/dist/chunks/subprocessEnv-1.0.10-37p3k517.mjs +1 -0
  429. package/dist/chunks/tasks-1.0.10-3kk1hf1s.mjs +1 -0
  430. package/dist/chunks/teamHelpers-1.0.10-1qnkvg1q.mjs +1 -0
  431. package/dist/chunks/teammateModeSnapshot-1.0.10-d265azzr.mjs +1 -0
  432. package/dist/chunks/teleport-1.0.10-qr57q6d2.mjs +1 -0
  433. package/dist/chunks/terminalSetup-1.0.10-939m4hg2.mjs +1 -0
  434. package/dist/chunks/theme-1.0.10-jxwk08gg.mjs +1 -0
  435. package/dist/chunks/thinkback-1.0.10-8v8fca1v.mjs +1 -0
  436. package/dist/chunks/thinkback-play-1.0.10-29vpx0es.mjs +1 -0
  437. package/dist/chunks/toolPool-1.0.10-r9t7snm8.mjs +1 -0
  438. package/dist/chunks/toolSearch-1.0.10-rdhjyrvv.mjs +1 -0
  439. package/dist/chunks/tools-1.0.10-660q1vgv.mjs +1 -0
  440. package/dist/chunks/trustedDevice-1.0.10-jzs4zx23.mjs +1 -0
  441. package/dist/chunks/turndown.cjs-1.0.10-jhv703h0.mjs +69 -0
  442. package/dist/chunks/types-1.0.10-1sbcc2k4.mjs +1 -0
  443. package/dist/chunks/ultrareviewCommand-1.0.10-1dmv8afw.mjs +4 -0
  444. package/dist/chunks/update-1.0.10-yg386a5b.mjs +88 -0
  445. package/dist/chunks/upgrade-1.0.10-910xk23j.mjs +1 -0
  446. package/dist/chunks/upload-1.0.10-tn5nw6e4.mjs +7 -0
  447. package/dist/chunks/upstreamproxy-1.0.10-d1ywz5zh.mjs +14 -0
  448. package/dist/chunks/url-handler-napi-1.0.10-frjeqn6d.mjs +1 -0
  449. package/dist/chunks/usage-1.0.10-2k10zj8d.mjs +1 -0
  450. package/dist/chunks/util-1.0.10-hj993p0h.mjs +1 -0
  451. package/dist/chunks/utils-1.0.10-47e3f2py.mjs +1 -0
  452. package/dist/chunks/vim-1.0.10-j5k011cf.mjs +1 -0
  453. package/dist/chunks/watchLoop-1.0.10-d5k4546s.mjs +13 -0
  454. package/dist/chunks/watcher-1.0.10-apvqyt0v.mjs +1 -0
  455. package/dist/chunks/wiki-1.0.10-5stbmxsm.mjs +132 -0
  456. package/dist/chunks/workflows-1.0.10-2j95kr59.mjs +1 -0
  457. package/dist/chunks/worktree-1.0.10-atjzgk92.mjs +1 -0
  458. package/dist/chunks/worktreeModeEnabled-1.0.10-knmjfqre.mjs +1 -0
  459. package/dist/chunks/wrapper-1.0.10-bxvd7yje.mjs +7 -0
  460. package/dist/cli.mjs +2 -2
  461. package/dist/help-workflow.txt +12 -0
  462. package/dist/help.txt +1 -0
  463. package/package.json +9 -9
  464. package/dist/chunks/AgentTool-1.0.8-eje3a59q.mjs +0 -1
  465. package/dist/chunks/App-1.0.8-d2xvppcs.mjs +0 -1
  466. package/dist/chunks/ApproveApiKey-1.0.8-46gxh8v1.mjs +0 -1
  467. package/dist/chunks/AssistantSessionChooser-1.0.8-14hqa3x1.mjs +0 -1
  468. package/dist/chunks/AutoModeOptInDialog-1.0.8-wbj2exgg.mjs +0 -1
  469. package/dist/chunks/BypassPermissionsModeDialog-1.0.8-qw286z98.mjs +0 -1
  470. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.8-d7f3p2f2.mjs +0 -1
  471. package/dist/chunks/ConsoleOAuthFlow-1.0.8-pz9144b6.mjs +0 -1
  472. package/dist/chunks/DiffDialog-1.0.8-kekremjy.mjs +0 -7
  473. package/dist/chunks/Doctor-1.0.8-y6yd83ya.mjs +0 -1
  474. package/dist/chunks/ExplorerDialog-1.0.8-sde0qmj8.mjs +0 -6
  475. package/dist/chunks/Grove-1.0.8-vaqh13j1.mjs +0 -1
  476. package/dist/chunks/ITermBackend-1.0.8-pyx0hrdr.mjs +0 -1
  477. package/dist/chunks/InvalidConfigDialog-1.0.8-9xkjpkdq.mjs +0 -1
  478. package/dist/chunks/InvalidSettingsDialog-1.0.8-sg0zxdxs.mjs +0 -1
  479. package/dist/chunks/MigrationDialog-1.0.8-sa3w4fkf.mjs +0 -1
  480. package/dist/chunks/Onboarding-1.0.8-j2grnf78.mjs +0 -1
  481. package/dist/chunks/ProviderManager-1.0.8-rhr4npaj.mjs +0 -1
  482. package/dist/chunks/REPL-1.0.8-r0frprp1.mjs +0 -1
  483. package/dist/chunks/ResumeConversation-1.0.8-y8q8w4g5.mjs +0 -1
  484. package/dist/chunks/SnapshotUpdateDialog-1.0.8-6r0afvcw.mjs +0 -1
  485. package/dist/chunks/TeleportProgress-1.0.8-8k0msa15.mjs +0 -1
  486. package/dist/chunks/TeleportRepoMismatchDialog-1.0.8-3y1gzb63.mjs +0 -1
  487. package/dist/chunks/TeleportResumeWrapper-1.0.8-sr835vjm.mjs +0 -1
  488. package/dist/chunks/TmuxBackend-1.0.8-j4ewgs24.mjs +0 -9
  489. package/dist/chunks/ToolSearchTool-1.0.8-g3jtn9j5.mjs +0 -1
  490. package/dist/chunks/TrustDialog-1.0.8-6fmeeyg3.mjs +0 -1
  491. package/dist/chunks/activeProvider-1.0.8-07gr4v39.mjs +0 -1
  492. package/dist/chunks/add-dir-1.0.8-zp69mch9.mjs +0 -1
  493. package/dist/chunks/agentTypes-1.0.8-0tz8xbhq.mjs +0 -1
  494. package/dist/chunks/agents-1.0.8-7b7qbe1b.mjs +0 -3
  495. package/dist/chunks/agents-1.0.8-hcpq0qtv.mjs +0 -110
  496. package/dist/chunks/api-1.0.8-99jqr2rt.mjs +0 -1
  497. package/dist/chunks/asciicast-1.0.8-hdy3b2tb.mjs +0 -1
  498. package/dist/chunks/assistant-1.0.8-wf6vgaxz.mjs +0 -1
  499. package/dist/chunks/auth-1.0.8-by49xah8.mjs +0 -1
  500. package/dist/chunks/auth-1.0.8-jhga5hc5.mjs +0 -1
  501. package/dist/chunks/autoMode-1.0.8-9hknbsrn.mjs +0 -48
  502. package/dist/chunks/autoUpdater-1.0.8-n0axyces.mjs +0 -1
  503. package/dist/chunks/backgroundHousekeeping-1.0.8-tthnkm6t.mjs +0 -1
  504. package/dist/chunks/branch-1.0.8-v0vyzjd1.mjs +0 -4
  505. package/dist/chunks/bridge-1.0.8-9em7eyw2.mjs +0 -2
  506. package/dist/chunks/bridgeConfig-1.0.8-rc3gw5mw.mjs +0 -1
  507. package/dist/chunks/bridgeEnabled-1.0.8-mmzmxjzj.mjs +0 -1
  508. package/dist/chunks/bridgeMain-1.0.8-kys2mqca.mjs +0 -88
  509. package/dist/chunks/bridgePointer-1.0.8-ky397f5d.mjs +0 -1
  510. package/dist/chunks/btw-1.0.8-ppch37et.mjs +0 -1
  511. package/dist/chunks/buddy-1.0.8-3j0jmxqv.mjs +0 -3
  512. package/dist/chunks/cacache-1.0.8-npx6886e.mjs +0 -1
  513. package/dist/chunks/cache-probe-1.0.8-q0q9v06f.mjs +0 -21
  514. package/dist/chunks/cacheStats-1.0.8-8g3sbes5.mjs +0 -4
  515. package/dist/chunks/caches-1.0.8-c44ykbdq.mjs +0 -1
  516. package/dist/chunks/claudeDesktop-1.0.8-3718a4er.mjs +0 -1
  517. package/dist/chunks/claudemd-1.0.8-mrm97672.mjs +0 -1
  518. package/dist/chunks/clear-1.0.8-60s1dmkm.mjs +0 -1
  519. package/dist/chunks/clearTerminal-1.0.8-s7tt8cvq.mjs +0 -1
  520. package/dist/chunks/cli-1.0.8-0g25h6r5.mjs +0 -3
  521. package/dist/chunks/cli-1.0.8-0j3a18cb.mjs +0 -2
  522. package/dist/chunks/cli-1.0.8-0w29g9sk.mjs +0 -4
  523. package/dist/chunks/cli-1.0.8-1r6dnkqd.mjs +0 -45
  524. package/dist/chunks/cli-1.0.8-1ss6x3zt.mjs +0 -2
  525. package/dist/chunks/cli-1.0.8-1tmgp7jd.mjs +0 -2
  526. package/dist/chunks/cli-1.0.8-2tcfa3h7.mjs +0 -26
  527. package/dist/chunks/cli-1.0.8-2tqdqypv.mjs +0 -2
  528. package/dist/chunks/cli-1.0.8-2tz4jekt.mjs +0 -2
  529. package/dist/chunks/cli-1.0.8-2vmb9a3w.mjs +0 -2
  530. package/dist/chunks/cli-1.0.8-2yyas23w.mjs +0 -2
  531. package/dist/chunks/cli-1.0.8-330tdbma.mjs +0 -2
  532. package/dist/chunks/cli-1.0.8-34678988.mjs +0 -2
  533. package/dist/chunks/cli-1.0.8-3cz8c904.mjs +0 -2
  534. package/dist/chunks/cli-1.0.8-3j90qb52.mjs +0 -2
  535. package/dist/chunks/cli-1.0.8-3tw1xf7y.mjs +0 -2
  536. package/dist/chunks/cli-1.0.8-3vh4nftm.mjs +0 -7
  537. package/dist/chunks/cli-1.0.8-3w4np76x.mjs +0 -2
  538. package/dist/chunks/cli-1.0.8-45e9fjb4.mjs +0 -21
  539. package/dist/chunks/cli-1.0.8-4a1exx1w.mjs +0 -2
  540. package/dist/chunks/cli-1.0.8-4vzmdadp.mjs +0 -2
  541. package/dist/chunks/cli-1.0.8-4wgaqcjn.mjs +0 -42
  542. package/dist/chunks/cli-1.0.8-53cy4zte.mjs +0 -34
  543. package/dist/chunks/cli-1.0.8-592dqckn.mjs +0 -12
  544. package/dist/chunks/cli-1.0.8-5awx1w8e.mjs +0 -25
  545. package/dist/chunks/cli-1.0.8-5dyqgt8m.mjs +0 -15
  546. package/dist/chunks/cli-1.0.8-5gn5a7p3.mjs +0 -2
  547. package/dist/chunks/cli-1.0.8-5mzwqxg2.mjs +0 -5
  548. package/dist/chunks/cli-1.0.8-5r4z4nzj.mjs +0 -9
  549. package/dist/chunks/cli-1.0.8-5wfqemy1.mjs +0 -17
  550. package/dist/chunks/cli-1.0.8-5wwge1jc.mjs +0 -3
  551. package/dist/chunks/cli-1.0.8-628ypgq9.mjs +0 -4
  552. package/dist/chunks/cli-1.0.8-63tfdt8q.mjs +0 -2
  553. package/dist/chunks/cli-1.0.8-693zfwne.mjs +0 -2
  554. package/dist/chunks/cli-1.0.8-6fz5dc6p.mjs +0 -2
  555. package/dist/chunks/cli-1.0.8-6hge9cq0.mjs +0 -2
  556. package/dist/chunks/cli-1.0.8-6q1p5cvf.mjs +0 -2
  557. package/dist/chunks/cli-1.0.8-74y9exyb.mjs +0 -2
  558. package/dist/chunks/cli-1.0.8-74zbkhyt.mjs +0 -67
  559. package/dist/chunks/cli-1.0.8-75t3aews.mjs +0 -2
  560. package/dist/chunks/cli-1.0.8-75ta9404.mjs +0 -2
  561. package/dist/chunks/cli-1.0.8-7b6c3csb.mjs +0 -2
  562. package/dist/chunks/cli-1.0.8-7khq3d03.mjs +0 -2
  563. package/dist/chunks/cli-1.0.8-7p8001bq.mjs +0 -2
  564. package/dist/chunks/cli-1.0.8-7tm0v9g4.mjs +0 -2
  565. package/dist/chunks/cli-1.0.8-845srnq2.mjs +0 -2
  566. package/dist/chunks/cli-1.0.8-8aa4g8k7.mjs +0 -9
  567. package/dist/chunks/cli-1.0.8-8bymhd85.mjs +0 -2
  568. package/dist/chunks/cli-1.0.8-8d0pym8n.mjs +0 -4
  569. package/dist/chunks/cli-1.0.8-8eace15k.mjs +0 -2
  570. package/dist/chunks/cli-1.0.8-8f8079r1.mjs +0 -2
  571. package/dist/chunks/cli-1.0.8-8g4cyspe.mjs +0 -2
  572. package/dist/chunks/cli-1.0.8-9az1bj5r.mjs +0 -2
  573. package/dist/chunks/cli-1.0.8-9cg23m77.mjs +0 -2
  574. package/dist/chunks/cli-1.0.8-9d98s5n7.mjs +0 -2
  575. package/dist/chunks/cli-1.0.8-9e91trv9.mjs +0 -4
  576. package/dist/chunks/cli-1.0.8-9fsgsfsr.mjs +0 -2
  577. package/dist/chunks/cli-1.0.8-9kjmxaz9.mjs +0 -2
  578. package/dist/chunks/cli-1.0.8-9ten5rvg.mjs +0 -3
  579. package/dist/chunks/cli-1.0.8-9y02shjc.mjs +0 -6
  580. package/dist/chunks/cli-1.0.8-a227an7n.mjs +0 -4
  581. package/dist/chunks/cli-1.0.8-a5h5dhvb.mjs +0 -2
  582. package/dist/chunks/cli-1.0.8-a95nzf63.mjs +0 -3
  583. package/dist/chunks/cli-1.0.8-aac9erft.mjs +0 -18
  584. package/dist/chunks/cli-1.0.8-abdc5b5p.mjs +0 -12
  585. package/dist/chunks/cli-1.0.8-acrtv429.mjs +0 -2
  586. package/dist/chunks/cli-1.0.8-ah0px9dq.mjs +0 -2
  587. package/dist/chunks/cli-1.0.8-apm2cwth.mjs +0 -2
  588. package/dist/chunks/cli-1.0.8-b1a558ty.mjs +0 -2
  589. package/dist/chunks/cli-1.0.8-b3rgrfhx.mjs +0 -2
  590. package/dist/chunks/cli-1.0.8-bce7mfng.mjs +0 -2
  591. package/dist/chunks/cli-1.0.8-bf89pdxw.mjs +0 -3
  592. package/dist/chunks/cli-1.0.8-by017547.mjs +0 -2
  593. package/dist/chunks/cli-1.0.8-c1m2f995.mjs +0 -2
  594. package/dist/chunks/cli-1.0.8-ch5nmk6z.mjs +0 -6
  595. package/dist/chunks/cli-1.0.8-ckzwfn2p.mjs +0 -2
  596. package/dist/chunks/cli-1.0.8-cnp4f1p9.mjs +0 -2
  597. package/dist/chunks/cli-1.0.8-cvanywgv.mjs +0 -4
  598. package/dist/chunks/cli-1.0.8-czw324tt.mjs +0 -2
  599. package/dist/chunks/cli-1.0.8-djnb6kg8.mjs +0 -2
  600. package/dist/chunks/cli-1.0.8-dnyn56hh.mjs +0 -2
  601. package/dist/chunks/cli-1.0.8-dtv7cx85.mjs +0 -2
  602. package/dist/chunks/cli-1.0.8-e1je8bbg.mjs +0 -2
  603. package/dist/chunks/cli-1.0.8-e1rqh3t5.mjs +0 -6
  604. package/dist/chunks/cli-1.0.8-e226v5zv.mjs +0 -2
  605. package/dist/chunks/cli-1.0.8-ebmqnhat.mjs +0 -2
  606. package/dist/chunks/cli-1.0.8-ecej8h97.mjs +0 -2
  607. package/dist/chunks/cli-1.0.8-eqnts1fr.mjs +0 -8
  608. package/dist/chunks/cli-1.0.8-erf5fgz4.mjs +0 -133
  609. package/dist/chunks/cli-1.0.8-erzw5831.mjs +0 -133
  610. package/dist/chunks/cli-1.0.8-evcjjrhq.mjs +0 -2
  611. package/dist/chunks/cli-1.0.8-ewrnp0r9.mjs +0 -2
  612. package/dist/chunks/cli-1.0.8-ezvghx0v.mjs +0 -2
  613. package/dist/chunks/cli-1.0.8-f149d1z0.mjs +0 -2
  614. package/dist/chunks/cli-1.0.8-f46gq37z.mjs +0 -2
  615. package/dist/chunks/cli-1.0.8-fch83jc9.mjs +0 -2
  616. package/dist/chunks/cli-1.0.8-fmf0f85n.mjs +0 -2
  617. package/dist/chunks/cli-1.0.8-fnnr43c2.mjs +0 -2
  618. package/dist/chunks/cli-1.0.8-fnwydrx1.mjs +0 -3
  619. package/dist/chunks/cli-1.0.8-frbc2pan.mjs +0 -2
  620. package/dist/chunks/cli-1.0.8-fs06q8cs.mjs +0 -2
  621. package/dist/chunks/cli-1.0.8-g2934g2e.mjs +0 -2
  622. package/dist/chunks/cli-1.0.8-g8tpbbvt.mjs +0 -3
  623. package/dist/chunks/cli-1.0.8-g9h4ay1q.mjs +0 -2
  624. package/dist/chunks/cli-1.0.8-gmf61bcb.mjs +0 -2
  625. package/dist/chunks/cli-1.0.8-gsr9wqaw.mjs +0 -39
  626. package/dist/chunks/cli-1.0.8-gv80trp6.mjs +0 -2
  627. package/dist/chunks/cli-1.0.8-h44d6jh3.mjs +0 -2
  628. package/dist/chunks/cli-1.0.8-hbgss955.mjs +0 -2
  629. package/dist/chunks/cli-1.0.8-hgreyqck.mjs +0 -2
  630. package/dist/chunks/cli-1.0.8-hkkcv1tv.mjs +0 -2
  631. package/dist/chunks/cli-1.0.8-htq95mje.mjs +0 -2
  632. package/dist/chunks/cli-1.0.8-hy7rca6f.mjs +0 -3
  633. package/dist/chunks/cli-1.0.8-jy0q2dkm.mjs +0 -2
  634. package/dist/chunks/cli-1.0.8-jy7hzejg.mjs +0 -2
  635. package/dist/chunks/cli-1.0.8-k7vkjf05.mjs +0 -2
  636. package/dist/chunks/cli-1.0.8-k90vtehz.mjs +0 -2
  637. package/dist/chunks/cli-1.0.8-ke76gxzw.mjs +0 -199
  638. package/dist/chunks/cli-1.0.8-kfv9esqs.mjs +0 -3
  639. package/dist/chunks/cli-1.0.8-kh51d8mn.mjs +0 -2
  640. package/dist/chunks/cli-1.0.8-kxhxnt9t.mjs +0 -2
  641. package/dist/chunks/cli-1.0.8-kzrdbzd1.mjs +0 -2
  642. package/dist/chunks/cli-1.0.8-kzyrncv0.mjs +0 -2
  643. package/dist/chunks/cli-1.0.8-m2w20tkx.mjs +0 -2
  644. package/dist/chunks/cli-1.0.8-m6fhqq8r.mjs +0 -2
  645. package/dist/chunks/cli-1.0.8-m9cg4s2e.mjs +0 -2
  646. package/dist/chunks/cli-1.0.8-mbhxente.mjs +0 -2
  647. package/dist/chunks/cli-1.0.8-mhhby5pn.mjs +0 -6
  648. package/dist/chunks/cli-1.0.8-mn87n778.mjs +0 -2
  649. package/dist/chunks/cli-1.0.8-mrepsey6.mjs +0 -12
  650. package/dist/chunks/cli-1.0.8-n2thtekm.mjs +0 -2
  651. package/dist/chunks/cli-1.0.8-n4rd5y17.mjs +0 -2
  652. package/dist/chunks/cli-1.0.8-nmrvp3xa.mjs +0 -2
  653. package/dist/chunks/cli-1.0.8-nyq2vcvp.mjs +0 -18
  654. package/dist/chunks/cli-1.0.8-p2tp1j0a.mjs +0 -2
  655. package/dist/chunks/cli-1.0.8-p4egaq4j.mjs +0 -5
  656. package/dist/chunks/cli-1.0.8-p8h84zc9.mjs +0 -3
  657. package/dist/chunks/cli-1.0.8-pbxke3zm.mjs +0 -24
  658. package/dist/chunks/cli-1.0.8-pemd6sje.mjs +0 -2
  659. package/dist/chunks/cli-1.0.8-pzesgrb2.mjs +0 -2
  660. package/dist/chunks/cli-1.0.8-q2myd223.mjs +0 -2
  661. package/dist/chunks/cli-1.0.8-q6x8n8kc.mjs +0 -2
  662. package/dist/chunks/cli-1.0.8-qbrw3wf3.mjs +0 -3
  663. package/dist/chunks/cli-1.0.8-qcf0zmve.mjs +0 -50
  664. package/dist/chunks/cli-1.0.8-qhcghw02.mjs +0 -2
  665. package/dist/chunks/cli-1.0.8-qjcxwb3c.mjs +0 -2
  666. package/dist/chunks/cli-1.0.8-qss5sph3.mjs +0 -59
  667. package/dist/chunks/cli-1.0.8-qzqze1a1.mjs +0 -2
  668. package/dist/chunks/cli-1.0.8-r3ecr05v.mjs +0 -2
  669. package/dist/chunks/cli-1.0.8-r4zbpasa.mjs +0 -24
  670. package/dist/chunks/cli-1.0.8-rdd0jr2h.mjs +0 -2
  671. package/dist/chunks/cli-1.0.8-rg1csg40.mjs +0 -2
  672. package/dist/chunks/cli-1.0.8-rh93fw0p.mjs +0 -2
  673. package/dist/chunks/cli-1.0.8-rna8rhza.mjs +0 -2
  674. package/dist/chunks/cli-1.0.8-rnkrr7ma.mjs +0 -2
  675. package/dist/chunks/cli-1.0.8-rxf0zjys.mjs +0 -2
  676. package/dist/chunks/cli-1.0.8-rxfx9v7j.mjs +0 -2
  677. package/dist/chunks/cli-1.0.8-s5kcxz2r.mjs +0 -4
  678. package/dist/chunks/cli-1.0.8-s6nsgb78.mjs +0 -2
  679. package/dist/chunks/cli-1.0.8-sbf6n56q.mjs +0 -2
  680. package/dist/chunks/cli-1.0.8-se674t5h.mjs +0 -4
  681. package/dist/chunks/cli-1.0.8-secda9xj.mjs +0 -2
  682. package/dist/chunks/cli-1.0.8-sqbaxhfc.mjs +0 -16
  683. package/dist/chunks/cli-1.0.8-swq5n54q.mjs +0 -2
  684. package/dist/chunks/cli-1.0.8-swts6q29.mjs +0 -2
  685. package/dist/chunks/cli-1.0.8-szvwf6r4.mjs +0 -2
  686. package/dist/chunks/cli-1.0.8-t5jg9csm.mjs +0 -2
  687. package/dist/chunks/cli-1.0.8-tdhxr84n.mjs +0 -3
  688. package/dist/chunks/cli-1.0.8-tfjhtagk.mjs +0 -2
  689. package/dist/chunks/cli-1.0.8-tpazbzcz.mjs +0 -2
  690. package/dist/chunks/cli-1.0.8-tq72b6bb.mjs +0 -2
  691. package/dist/chunks/cli-1.0.8-tqf6s7ht.mjs +0 -58
  692. package/dist/chunks/cli-1.0.8-tz68cg1p.mjs +0 -2
  693. package/dist/chunks/cli-1.0.8-v1rafynv.mjs +0 -2
  694. package/dist/chunks/cli-1.0.8-v75s19rg.mjs +0 -2
  695. package/dist/chunks/cli-1.0.8-vb0by9ay.mjs +0 -2
  696. package/dist/chunks/cli-1.0.8-vhjjjs1z.mjs +0 -24
  697. package/dist/chunks/cli-1.0.8-vka62cmh.mjs +0 -2
  698. package/dist/chunks/cli-1.0.8-vvy0bc0g.mjs +0 -1
  699. package/dist/chunks/cli-1.0.8-vztgm8r0.mjs +0 -2
  700. package/dist/chunks/cli-1.0.8-w5wjckph.mjs +0 -25
  701. package/dist/chunks/cli-1.0.8-w6atgaqw.mjs +0 -2
  702. package/dist/chunks/cli-1.0.8-wm0h5bqt.mjs +0 -3
  703. package/dist/chunks/cli-1.0.8-x1387pp6.mjs +0 -2
  704. package/dist/chunks/cli-1.0.8-x2z1s2gm.mjs +0 -2
  705. package/dist/chunks/cli-1.0.8-x3bjpevp.mjs +0 -12
  706. package/dist/chunks/cli-1.0.8-x4hcncpt.mjs +0 -2
  707. package/dist/chunks/cli-1.0.8-xcqdbka0.mjs +0 -2
  708. package/dist/chunks/cli-1.0.8-xhz9dm09.mjs +0 -2
  709. package/dist/chunks/cli-1.0.8-xka5xbz5.mjs +0 -2
  710. package/dist/chunks/cli-1.0.8-xv5yp3w6.mjs +0 -2
  711. package/dist/chunks/cli-1.0.8-xxrng2p1.mjs +0 -15
  712. package/dist/chunks/cli-1.0.8-xzp5af2t.mjs +0 -2
  713. package/dist/chunks/cli-1.0.8-y7jd923h.mjs +0 -2
  714. package/dist/chunks/cli-1.0.8-yb3vesbt.mjs +0 -4
  715. package/dist/chunks/cli-1.0.8-yc4a0111.mjs +0 -20
  716. package/dist/chunks/cli-1.0.8-ycxmnmhs.mjs +0 -3
  717. package/dist/chunks/cli-1.0.8-ykwgcdbt.mjs +0 -5476
  718. package/dist/chunks/cli-1.0.8-yzc0z6ex.mjs +0 -2
  719. package/dist/chunks/cli-1.0.8-z49w3x0w.mjs +0 -4
  720. package/dist/chunks/cli-1.0.8-z6x3zsb0.mjs +0 -2
  721. package/dist/chunks/cli-1.0.8-z79r5re2.mjs +0 -17
  722. package/dist/chunks/cli-1.0.8-z7v2b551.mjs +0 -2
  723. package/dist/chunks/cli-1.0.8-z96bbp08.mjs +0 -6
  724. package/dist/chunks/cli-1.0.8-zh2ygfav.mjs +0 -2
  725. package/dist/chunks/cli-1.0.8-zjckzq5j.mjs +0 -18
  726. package/dist/chunks/cli-1.0.8-znefv1yp.mjs +0 -2
  727. package/dist/chunks/cli-1.0.8-zza8ns8c.mjs +0 -15
  728. package/dist/chunks/client-1.0.8-n7dt1rfw.mjs +0 -1
  729. package/dist/chunks/color-1.0.8-jxfasz8x.mjs +0 -1
  730. package/dist/chunks/compact-1.0.8-jnbzy2qh.mjs +0 -3
  731. package/dist/chunks/config-1.0.8-p850nj3c.mjs +0 -1
  732. package/dist/chunks/config-1.0.8-xg117aq2.mjs +0 -1
  733. package/dist/chunks/constants-1.0.8-ms4fbs66.mjs +0 -1
  734. package/dist/chunks/context-1.0.8-tb27h7kb.mjs +0 -1
  735. package/dist/chunks/context-noninteractive-1.0.8-1ry2t8be.mjs +0 -1
  736. package/dist/chunks/conversation-1.0.8-v96pn05v.mjs +0 -1
  737. package/dist/chunks/copilotHeaders-1.0.8-cs9jt8ks.mjs +0 -1
  738. package/dist/chunks/copy-1.0.8-g8d8msxn.mjs +0 -9
  739. package/dist/chunks/cost-1.0.8-kx2ejbds.mjs +0 -1
  740. package/dist/chunks/createSSHSession-1.0.8-2wvpn7y4.mjs +0 -1
  741. package/dist/chunks/createSession-1.0.8-ecm6dynn.mjs +0 -1
  742. package/dist/chunks/debug-1.0.8-cphv9b4j.mjs +0 -1
  743. package/dist/chunks/defaultActionDeps-1.0.8-2k34bnzt.mjs +0 -1446
  744. package/dist/chunks/desktop-1.0.8-w6qk81xg.mjs +0 -1
  745. package/dist/chunks/detectRepository-1.0.8-q2e17deh.mjs +0 -1
  746. package/dist/chunks/detection-1.0.8-adg3pmtx.mjs +0 -1
  747. package/dist/chunks/diff-1.0.8-kcsv429q.mjs +0 -1
  748. package/dist/chunks/doctor-1.0.8-4807n5ga.mjs +0 -1
  749. package/dist/chunks/doctorDiagnostic-1.0.8-thmvp0a8.mjs +0 -1
  750. package/dist/chunks/earlyInput-1.0.8-hhf06cvs.mjs +0 -1
  751. package/dist/chunks/effort-1.0.8-k9jy349z.mjs +0 -10
  752. package/dist/chunks/engine-1.0.8-swnh66g9.mjs +0 -1
  753. package/dist/chunks/envLessBridgeConfig-1.0.8-8066f8x3.mjs +0 -1
  754. package/dist/chunks/envUtils-1.0.8-hvdz25s8.mjs +0 -1
  755. package/dist/chunks/environmentSelection-1.0.8-dgef2ag8.mjs +0 -1
  756. package/dist/chunks/environments-1.0.8-8kxx7cf7.mjs +0 -1
  757. package/dist/chunks/errors-1.0.8-yrb0dfde.mjs +0 -1
  758. package/dist/chunks/exampleCommands-1.0.8-2fp656s9.mjs +0 -1
  759. package/dist/chunks/exit-1.0.8-axxrxks1.mjs +0 -1
  760. package/dist/chunks/explorer-1.0.8-txzsk7g4.mjs +0 -1
  761. package/dist/chunks/export-1.0.8-yxhs2z6f.mjs +0 -2
  762. package/dist/chunks/extra-usage-1.0.8-mkde8ry2.mjs +0 -1
  763. package/dist/chunks/extra-usage-noninteractive-1.0.8-zq1zsj4c.mjs +0 -1
  764. package/dist/chunks/fast-1.0.8-dm74897t.mjs +0 -1
  765. package/dist/chunks/feedback-1.0.8-wnsh14ya.mjs +0 -14
  766. package/dist/chunks/firstPartyEventLogger-1.0.8-xp13dv5e.mjs +0 -1
  767. package/dist/chunks/git-1.0.8-emhr4f0a.mjs +0 -1
  768. package/dist/chunks/githubModelsCredentials-1.0.8-q88vb6k1.mjs +0 -1
  769. package/dist/chunks/goal-1.0.8-vx7pfbph.mjs +0 -4
  770. package/dist/chunks/grove-1.0.8-4vn920ab.mjs +0 -1
  771. package/dist/chunks/growthbook-1.0.8-ktn0scz1.mjs +0 -1
  772. package/dist/chunks/headless-1.0.8-kgkf00rm.mjs +0 -2
  773. package/dist/chunks/heapdump-1.0.8-e5g8ycqp.mjs +0 -6
  774. package/dist/chunks/help-1.0.8-g5kftejd.mjs +0 -1
  775. package/dist/chunks/hookChains-1.0.8-jnd1g9vp.mjs +0 -3
  776. package/dist/chunks/hooks-1.0.8-d343gmd5.mjs +0 -1
  777. package/dist/chunks/hooks-1.0.8-xq482xcs.mjs +0 -79
  778. package/dist/chunks/ide-1.0.8-4veg8hzd.mjs +0 -3
  779. package/dist/chunks/image-processor-napi-1.0.8-93bk96t4.mjs +0 -1
  780. package/dist/chunks/inboundAttachments-1.0.8-zkj9tf58.mjs +0 -1
  781. package/dist/chunks/index-1.0.8-0pnvq37m.mjs +0 -2
  782. package/dist/chunks/index-1.0.8-1pa1v81a.mjs +0 -1
  783. package/dist/chunks/index-1.0.8-464f1j1b.mjs +0 -1
  784. package/dist/chunks/index-1.0.8-4zsx151v.mjs +0 -1
  785. package/dist/chunks/index-1.0.8-7wqrymcz.mjs +0 -2
  786. package/dist/chunks/index-1.0.8-8qzz6s1v.mjs +0 -1
  787. package/dist/chunks/index-1.0.8-91cpv5tb.mjs +0 -9
  788. package/dist/chunks/index-1.0.8-9x499a6f.mjs +0 -1
  789. package/dist/chunks/index-1.0.8-aqm7z1xs.mjs +0 -1
  790. package/dist/chunks/index-1.0.8-bha1edzd.mjs +0 -1
  791. package/dist/chunks/index-1.0.8-bhzqmht2.mjs +0 -1
  792. package/dist/chunks/index-1.0.8-dh80510b.mjs +0 -1
  793. package/dist/chunks/index-1.0.8-hdnvwr7c.mjs +0 -1
  794. package/dist/chunks/index-1.0.8-ht187zbt.mjs +0 -17
  795. package/dist/chunks/index-1.0.8-jj36eqgv.mjs +0 -1
  796. package/dist/chunks/index-1.0.8-p16qr0gk.mjs +0 -1
  797. package/dist/chunks/index-1.0.8-pejsn3j4.mjs +0 -1
  798. package/dist/chunks/index-1.0.8-pzn6kwcz.mjs +0 -1
  799. package/dist/chunks/index-1.0.8-szryar06.mjs +0 -9
  800. package/dist/chunks/index-1.0.8-thkaetpe.mjs +0 -5
  801. package/dist/chunks/index-1.0.8-tnpscb0d.mjs +0 -1
  802. package/dist/chunks/index-1.0.8-xxdv7dxk.mjs +0 -1
  803. package/dist/chunks/index-1.0.8-z5xdfxxw.mjs +0 -30
  804. package/dist/chunks/init-1.0.8-krd7wa3v.mjs +0 -1
  805. package/dist/chunks/initReplBridge-1.0.8-ftx1k41m.mjs +0 -1
  806. package/dist/chunks/ink-1.0.8-pteq28sp.mjs +0 -1
  807. package/dist/chunks/insights-1.0.8-mb2z8g5h.mjs +0 -870
  808. package/dist/chunks/install-1.0.8-s99z78an.mjs +0 -1
  809. package/dist/chunks/install-github-app-1.0.8-r07c7fc8.mjs +0 -149
  810. package/dist/chunks/install-slack-app-1.0.8-mq0zjdf6.mjs +0 -1
  811. package/dist/chunks/instrumentation-1.0.8-00jpcry8.mjs +0 -1
  812. package/dist/chunks/interactiveHelpers-1.0.8-3z1ey7fr.mjs +0 -1
  813. package/dist/chunks/keybindings-1.0.8-wenkty39.mjs +0 -2
  814. package/dist/chunks/knowledge-1.0.8-cjdkk8mb.mjs +0 -2
  815. package/dist/chunks/latestVersionCache-1.0.8-rncrmhd0.mjs +0 -1
  816. package/dist/chunks/loadAgentsDir-1.0.8-9ry9xbfw.mjs +0 -1
  817. package/dist/chunks/loadPluginHooks-1.0.8-5e422tv0.mjs +0 -1
  818. package/dist/chunks/loadPluginHooks-1.0.8-gw0mb3vq.mjs +0 -1
  819. package/dist/chunks/log-1.0.8-bhyqzqd4.mjs +0 -1
  820. package/dist/chunks/main-1.0.8-sv9em0tk.mjs +0 -1
  821. package/dist/chunks/managedEnv-1.0.8-ey5201g9.mjs +0 -1
  822. package/dist/chunks/mcp-1.0.8-0wkq1z2f.mjs +0 -1
  823. package/dist/chunks/mcp-1.0.8-hft3ww8h.mjs +0 -17
  824. package/dist/chunks/mcp-1.0.8-k2y8akh4.mjs +0 -4
  825. package/dist/chunks/mcpb-1.0.8-6d4d5qg6.mjs +0 -1
  826. package/dist/chunks/memory-1.0.8-bhfq1tpv.mjs +0 -3
  827. package/dist/chunks/model-1.0.8-9x1n1hs4.mjs +0 -2
  828. package/dist/chunks/model-1.0.8-f30q5v3y.mjs +0 -1
  829. package/dist/chunks/node-1.0.8-z64w4mf3.mjs +0 -12
  830. package/dist/chunks/oauth-1.0.8-7vjm8xxp.mjs +0 -1
  831. package/dist/chunks/openaiShim-1.0.8-dxqbym7v.mjs +0 -14
  832. package/dist/chunks/output-style-1.0.8-j3vsn3xx.mjs +0 -1
  833. package/dist/chunks/package-ZZWOLTXM-1.0.8-57wby5pw.mjs +0 -1
  834. package/dist/chunks/parseConnectUrl-1.0.8-fa21hp3j.mjs +0 -1
  835. package/dist/chunks/parser-1.0.8-eddksp6m.mjs +0 -1
  836. package/dist/chunks/passes-1.0.8-82cxmwxv.mjs +0 -1
  837. package/dist/chunks/permissions-1.0.8-9qwtkcvw.mjs +0 -1
  838. package/dist/chunks/permissions-1.0.8-hkpezdb6.mjs +0 -3
  839. package/dist/chunks/plan-1.0.8-t7cypg7z.mjs +0 -1
  840. package/dist/chunks/plist-1.0.8-tx4wgdc5.mjs +0 -1
  841. package/dist/chunks/plugin-1.0.8-fpfj5qcx.mjs +0 -29
  842. package/dist/chunks/pluginStartupCheck-1.0.8-htw7er4z.mjs +0 -1
  843. package/dist/chunks/plugins-1.0.8-89t24bsm.mjs +0 -9
  844. package/dist/chunks/preActionHook-1.0.8-caxsc3mp.mjs +0 -2
  845. package/dist/chunks/print-1.0.8-491vxbzs.mjs +0 -57
  846. package/dist/chunks/privacy-settings-1.0.8-m25zra7r.mjs +0 -1
  847. package/dist/chunks/process-1.0.8-3tzpsdmr.mjs +0 -1
  848. package/dist/chunks/processBashCommand-1.0.8-czb8ax1e.mjs +0 -1
  849. package/dist/chunks/processSlashCommand-1.0.8-z2qz58yf.mjs +0 -9
  850. package/dist/chunks/prompt-1.0.8-2bbvxeh7.mjs +0 -1
  851. package/dist/chunks/prompt-1.0.8-ftnsddxg.mjs +0 -1
  852. package/dist/chunks/prompts-1.0.8-7jmnssxc.mjs +0 -1
  853. package/dist/chunks/protocolHandler-1.0.8-y3rebjd9.mjs +0 -13
  854. package/dist/chunks/provider-1.0.8-zrx7vyqk.mjs +0 -2
  855. package/dist/chunks/providerProfiles-1.0.8-n4b3xs5v.mjs +0 -1
  856. package/dist/chunks/providerValidation-1.0.8-j9gx7a1v.mjs +0 -6
  857. package/dist/chunks/rate-limit-options-1.0.8-084n6z58.mjs +0 -1
  858. package/dist/chunks/registerSubcommands-1.0.8-e9k91bmz.mjs +0 -34
  859. package/dist/chunks/registry-1.0.8-p8bc2ppg.mjs +0 -1
  860. package/dist/chunks/release-notes-1.0.8-wdtevpan.mjs +0 -5
  861. package/dist/chunks/reload-plugins-1.0.8-crrx8jkj.mjs +0 -2
  862. package/dist/chunks/remote-env-1.0.8-yb4czxha.mjs +0 -1
  863. package/dist/chunks/remoteBridgeCore-1.0.8-cg38st7c.mjs +0 -1
  864. package/dist/chunks/remoteSession-1.0.8-g9cx4dmb.mjs +0 -1
  865. package/dist/chunks/rename-1.0.8-c263drxy.mjs +0 -1
  866. package/dist/chunks/replBridgeHandle-1.0.8-51065xd1.mjs +0 -1
  867. package/dist/chunks/replLauncher-1.0.8-n5f7d6tk.mjs +0 -1
  868. package/dist/chunks/resume-1.0.8-20r9g9a8.mjs +0 -2
  869. package/dist/chunks/rewind-1.0.8-1shxcx6h.mjs +0 -1
  870. package/dist/chunks/rootOptions-1.0.8-v3mryhnd.mjs +0 -1
  871. package/dist/chunks/sandbox-adapter-1.0.8-db8n3sf2.mjs +0 -1
  872. package/dist/chunks/sandbox-toggle-1.0.8-8ysakwfc.mjs +0 -1
  873. package/dist/chunks/session-1.0.8-nf98ege7.mjs +0 -2
  874. package/dist/chunks/sessionDiscovery-1.0.8-j7e3zz3z.mjs +0 -1
  875. package/dist/chunks/sessionFileAccessHooks-1.0.8-tywx0fhs.mjs +0 -1
  876. package/dist/chunks/sessionStorage-1.0.8-3jncs1jd.mjs +0 -1
  877. package/dist/chunks/settings-1.0.8-ferv6mr5.mjs +0 -1
  878. package/dist/chunks/setup-1.0.8-r7jm4921.mjs +0 -5
  879. package/dist/chunks/sinks-1.0.8-w2zqhs5t.mjs +0 -1
  880. package/dist/chunks/skills-1.0.8-c2re0407.mjs +0 -1
  881. package/dist/chunks/startupProfiler-1.0.8-m7x42s2c.mjs +0 -1
  882. package/dist/chunks/startupUpdateCheck-1.0.8-hnq9gbsm.mjs +0 -1
  883. package/dist/chunks/state-1.0.8-mszmr9fy.mjs +0 -1
  884. package/dist/chunks/stats-1.0.8-xah6pcq3.mjs +0 -6
  885. package/dist/chunks/status-1.0.8-cb5dxyy1.mjs +0 -1
  886. package/dist/chunks/stickers-1.0.8-vr13mnk0.mjs +0 -1
  887. package/dist/chunks/subprocessEnv-1.0.8-rqxgszbc.mjs +0 -1
  888. package/dist/chunks/tasks-1.0.8-v1meznm5.mjs +0 -1
  889. package/dist/chunks/teamHelpers-1.0.8-zs8qgyey.mjs +0 -1
  890. package/dist/chunks/teammateModeSnapshot-1.0.8-828qsec1.mjs +0 -1
  891. package/dist/chunks/teleport-1.0.8-aszfnv2s.mjs +0 -1
  892. package/dist/chunks/terminalSetup-1.0.8-9n57sf46.mjs +0 -1
  893. package/dist/chunks/theme-1.0.8-da67zfgn.mjs +0 -1
  894. package/dist/chunks/thinkback-1.0.8-p4ne9wck.mjs +0 -1
  895. package/dist/chunks/thinkback-play-1.0.8-kz09z4aa.mjs +0 -1
  896. package/dist/chunks/toolPool-1.0.8-rbawjenc.mjs +0 -1
  897. package/dist/chunks/toolSearch-1.0.8-drw7db57.mjs +0 -1
  898. package/dist/chunks/tools-1.0.8-51cw7jhr.mjs +0 -1
  899. package/dist/chunks/trustedDevice-1.0.8-y6484dbh.mjs +0 -1
  900. package/dist/chunks/turndown.cjs-1.0.8-07rx7x03.mjs +0 -69
  901. package/dist/chunks/types-1.0.8-svkpkerr.mjs +0 -1
  902. package/dist/chunks/ultrareviewCommand-1.0.8-fxpy87j7.mjs +0 -4
  903. package/dist/chunks/update-1.0.8-r5hsx0vn.mjs +0 -88
  904. package/dist/chunks/upgrade-1.0.8-rfjr944q.mjs +0 -1
  905. package/dist/chunks/upload-1.0.8-xb3qq931.mjs +0 -7
  906. package/dist/chunks/upstreamproxy-1.0.8-enmg2k32.mjs +0 -14
  907. package/dist/chunks/url-handler-napi-1.0.8-4xafghrm.mjs +0 -1
  908. package/dist/chunks/usage-1.0.8-x3yk026j.mjs +0 -1
  909. package/dist/chunks/util-1.0.8-g8szktmn.mjs +0 -1
  910. package/dist/chunks/utils-1.0.8-qkwh1by0.mjs +0 -1
  911. package/dist/chunks/vim-1.0.8-qv0fhjmv.mjs +0 -1
  912. package/dist/chunks/watcher-1.0.8-y0ye7hc6.mjs +0 -1
  913. package/dist/chunks/wiki-1.0.8-3ydvpt0c.mjs +0 -132
  914. package/dist/chunks/workflows-1.0.8-1fj4wp4z.mjs +0 -1
  915. package/dist/chunks/worktree-1.0.8-x68tgvcc.mjs +0 -1
  916. package/dist/chunks/worktreeModeEnabled-1.0.8-3e98qmek.mjs +0 -1
  917. package/dist/chunks/wrapper-1.0.8-atewpqqc.mjs +0 -7
@@ -0,0 +1,16 @@
1
+ import{Q8 as P2,S8 as x8}from"./cli-1.0.10-hh3gv5p7.mjs";import{U8 as h,V8 as dZ}from"./cli-1.0.10-aqy1tjb5.mjs";import{e9 as d5,g9 as w8}from"./cli-1.0.10-fh0ndq5n.mjs";import{Bda as B0,F_ as N5,H_ as tZ,Ica as o1,Kda as n4,Mda as iZ,Mfa as m5,Nda as I1,Nea as i,Oda as u8,Ofa as W4,Pea as e1,Qea as xZ,Rca as GZ,Uea as Z4,Ufa as c5,V9 as T4,W9 as a,Waa as y1,X9 as K2,Xaa as f8,Xfa as L,Y9 as b0,Z9 as M4,_9 as a2,_fa as $0,e_ as R0,f_ as G1,hfa as V4,iba as s1,jea as d,jfa as $4,kga as N,mda as P,mfa as b2,nfa as lZ,oda as j2,oea as p5,p_ as D5,pea as C,rda as Q0,s_ as nZ,sda as M,sea as K,sga as a0,yea as r1,zba as zZ}from"./cli-1.0.10-j0e7nj85.mjs";import{Eha as v1,sha as A0,uha as P4}from"./cli-1.0.10-ebk3tx3x.mjs";import{Iia as I5,Jia as d4,Kia as j0,Mia as z8,Nia as G8,Pia as b,Qia as M0}from"./cli-1.0.10-vr6qr3sv.mjs";import{Ria as x,Uia as B2}from"./cli-1.0.10-hkdbtrdk.mjs";import{Cja as cZ,Gja as i2,Kja as T8,Uja as z,Wja as d0,Xja as Z0,yja as L5}from"./cli-1.0.10-pd2mt28b.mjs";import{ska as p,uka as q1,zka as V1}from"./cli-1.0.10-z6340h71.mjs";import{Cka as K5,Fka as F,Hka as u,Jka as k2,Mka as c4,Pka as g}from"./cli-1.0.10-3g4c94ey.mjs";import{Gna as a1,Goa as J1,Hoa as Q1,Ioa as X1,Joa as Y1,Kna as k4,Pna as I0,Qna as J2,Voa as x2,ioa as f,pma as Y0,poa as _1,qma as w1,sna as p1,sqa as J0}from"./cli-1.0.10-wg9nsp2f.mjs";import{Rqa as I,Sqa as l0}from"./cli-1.0.10-ta2k7fvc.mjs";import{Era as q2,mra as k}from"./cli-1.0.10-6k8wfwnm.mjs";import{_ra as y0,asa as c2,bsa as R,csa as e}from"./cli-1.0.10-byd1s52c.mjs";function T5(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:V}=$.shift();try{let G=await Z.apply(V,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 M5=()=>{};function C5(Z,$){return Z.find((J)=>J.includes($))??null}async function A5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=k2(),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 P2(),...J&&{requestHandler:new(await import("./index-1.0.10-0k08n5bq.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.10-t6nhh2kg.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 m$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=k2(),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 P2(),...J&&{requestHandler:new(await import("./index-1.0.10-0k08n5bq.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.10-t6nhh2kg.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 B8(Z){return Z.startsWith("anthropic.")}function H8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function R8(Z){let $=H8(Z);for(let J of j8)if($.startsWith(`${J}.anthropic.`))return J;return}function d$(Z,$){let J=R8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(B8(Z))return`${$}.${Z}`;return Z}var S5,c$,j8;var h5=R(()=>{l0();n();g();a0();x8();S5=I(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}});c$=I(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}});j8=["us","eu","apac","global"]});var E2,_2,v2,y2,I2,T2,M2,S2,C2,s0,o0,r0,A2,h2,f2,G0,t$,f5;var u2=R(()=>{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"},v2={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"},y2={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"},I2={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"},T2={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"},M2={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"},S2={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"},s0={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:v2,haiku45:y2,sonnet35:_2,sonnet37:E2,sonnet40:I2,sonnet45:T2,sonnet46:h2,sonnet5:f2,opus40:M2,opus41:S2,opus45:C2,opus46:s0,opus47:o0,opus48:r0,fable5:A2},t$=Object.values(G0).map((Z)=>Z.firstParty),f5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function u5(){return Object.values(e0)}var e0,g2;var p2=R(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};c2(_0,{prefetchCopilotModelCatalog:()=>n2,normalizeBareCopilotModelId:()=>d2,getEffectiveCopilotModels:()=>U8,getCopilotDisplayName:()=>b8,getCatalogCopilotMaxOutputTokens:()=>P8,getCatalogCopilotContextWindow:()=>k8,getCachedCopilotCatalog:()=>N8,fetchCopilotModelCatalog:()=>t5,copilotModelSupportsAnthropicMessages:()=>O8,_setCopilotCatalogForTesting:()=>E8});function E0(){let Z=L();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 K8(){if(g5)return;g5=!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 L8(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:L8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function t5(){let Z=L();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 V=new Set,G=[];for(let B of q.data){let H=D8(B);if(!H||V.has(H.model.id))continue;V.add(H.model.id),G.push(H)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(X)}}function n2(){K8();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 U8(){if(n5()){let Z=t?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return u5()}function $2(Z){if(!n5())return;let $=d2(Z);return t.find((J)=>J.model.id===$)}function b8(Z){let $=d2(Z);return $2($)?.model.name??e0[$]?.name}function O8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function k8(Z){return $2(Z)?.model.limit.context}function P8(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,g5=!1;var v0=R(()=>{$0();w8();c5();i();Z0();p2()});function W(){let Z=L();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 JJ(){return W()==="firstParty"}function _8(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(v0(),y0(_0)),X=Q(J);if(X!==null)return X}catch{}return!0}function QJ(Z){let $=L()?.transport??"anthropic";if(!v8.has($))return!1;if($==="github_copilot"&&_8(Z))return!1;return!0}function XJ(){return W()}function YJ(){let Z=L();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 v8;var l=R(()=>{$0();v8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of l5)J[Q]=G0[Q][$];return J}async function y8(){let Z=Q2("bedrock"),$;try{$=await S5()}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 I8(){if(I0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}a5()}function j(){let Z=I0();if(Z===null)return I8(),i5(Q2(W()));return i5(Z)}async function HJ(){if(I0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}await a5()}var l5,a5;var Y2=R(()=>{J0();a0();M5();B0();h5();u2();l();l5=Object.keys(G0);a5=T5(async()=>{if(I0()!==null)return;try{let Z=await y8();J2(Z)}catch(Z){N(Z)}})});function LJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(O())return!1;let $=T0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=K(),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 DJ(){if(s5!==null)return s5;if(!O())return!1;let Z=v();if(Z==="max"||Z==="pro")return!0;let J=K().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var s5=null;var o5=R(()=>{n();i();g()});function OJ(Z){return Z}function kJ(){return!1}function r5(){return null}function e5(){return!1}var Z1=R(()=>{o5()});async function TJ(){let $=K().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${b().BASE_API_URL}/api/claude_cli_profile`;try{return(await k.get(Q,{headers:{"x-api-key":J,"anthropic-beta":j0},params:{account_uuid:$},timeout:1e4})).data}catch(X){N(X)}}async function H0(Z){let $=`${b().BASE_API_URL}/api/oauth/profile`;try{return(await k.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){N(J)}}var t2=R(()=>{q2();M0();n();i();a0()});import{mkdirSync as M8,writeFileSync as S8}from"fs";function h8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{M8(V2,{recursive:!0,mode:448}),S8(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 V=parseInt(q,10);if(Number.isNaN(V))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/${V}`:`/proc/self/fd/${V}`,H=G.readFileSync(B,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),X(H),h8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${V}: ${p(G)}`,{level:"error"});let B=$1($,J);return X(B),B}}function W2(){return W1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C8,label:"OAuth token",getCached:J1,setCached:Q1})}function l2(){return W1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:A8,label:"API key",getCached:X1,setCached:Y1})}var V2="/home/claude/.claude/remote",C8,A8,gJ;var z1=R(()=>{J0();Z0();g();V1();T8();C8=`${V2}/.oauth_token`,A8=`${V2}/.api_key`,gJ=`${V2}/.session_ingress_token`});async function x1(){if(process.platform==="darwin"){let Z=a();if((await R0(`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 B1=R(()=>{G1();a2()});function tJ(Z){return Z?.name==="CredentialsProviderError"}function j1(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 s2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function H1(){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 R1=R(()=>{Z0()});class S{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!S.instance)S.instance=new S;return S.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(S.instance)S.instance.changed.clear(),S.instance=null}}var F1=R(()=>{w1()});var G2="claude-code-20250219",K1="interleaved-thinking-2025-05-14",S0="context-1m-2025-08-07",L1="context-management-2025-06-27",D1="structured-outputs-2025-12-15",o2="web-search-2025-03-05",N1="advanced-tool-use-2025-11-20",U1="tool-search-tool-2025-10-19",sJ="effort-2025-11-24",oJ="task-budgets-2026-03-13",b1="prompt-caching-scope-2026-01-05",rJ="extended-cache-ttl-2025-04-11",eJ="fast-mode-2026-02-01",O1="redact-thinking-2026-02-12",k1="thinking-token-count-2026-05-13",P1="token-efficient-tools-2026-03-28",Z3="afk-mode-2026-01-31",$3="advisor-tool-2026-03-01",r2,J3;var e2=R(()=>{r2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),J3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(W()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function T1(){if(!A())return!1;return p8()===null}function g8(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 p8(){if(W()!=="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(!y1()&&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(!P("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=g8(_.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function D3(){return"opus"+(f0()?"[1m]":"")}function N3(Z){if(!A())return!1;if(!T1())return!1;if(!M1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function M1(Z){if(!A())return!1;let $=Z??h0(),J=T($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function m8(){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 O3(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:$}),S1.emit(Z,$)}function k3(){w0={status:"active"}}function P3(){if(_.status==="disabled")return;_={status:"disabled",reason:"preference"},j2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),$5.emit(!1)}function c8(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 d8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function _3(Z){let $=c8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!d8(Z))j2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));A1.emit($)}function n8(){return m8().status==="cooldown"}function v3(Z,$){let J=A()&&T1()&&!!$&&M1(Z);if(J&&n8())return"cooldown";if(J)return"on";return"off"}async function t8(Z){let $=`${b().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":j0}:{"x-api-key":Z.apiKey};return(await k.get($,{headers:J})).data}function I3(){if(!A())return;if(_.status!=="pending")return;_=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function T3(){if(I1())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){_=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-E1<i8){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 t8(q)};async function X(){try{let Y;try{Y=await Q()}catch(V){if(k.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await J5(B),Y=await Q();else throw V}else throw V}let q=_.status!=="pending"?_.status==="enabled":K().penguinModeOrgEnabled;if(_=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},q!==Y.enabled){if(!Y.enabled)j2("userSettings",{fastMode:void 0});C((V)=>({...V,penguinModeOrgEnabled:Y.enabled})),$5.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){_=K().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 L3="Opus 4.7",w0,Z5=!1,S1,C1,U3,b3,A1,E3,_,$5,y3,i8=30000,E1=0,C0=null;var h1=R(()=>{q2();M0();v1();J0();B2();n();f8();i();Z0();g();F0();l();u8();B0();w1();w0={status:"active"},S1=Y0(),C1=Y0(),U3=S1.subscribe,b3=C1.subscribe;A1=Y0(),E3=A1.subscribe;_={status:"pending"},$5=Y0(),y3=$5.subscribe});function ZZ(Z){for(let $ of e8)if($.pattern.test(Z))return $.cost;return}function Q5(Z){if(A()&&Z)return a8;return L0}function $Z(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 JZ(Z,$){let J=U(Z);if(J===D(s0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let X=$.speed==="fast";return Q5(X)}let Q=u1[J];if(!Q){let X=ZZ(Z);if(X)return X;return QZ(Z,J),u1[U(h0())]??r8}return Q}function QZ(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),p1()}function XZ(Z,$){let J=JZ(Z,$);return $Z(J,$)}function u3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return XZ(Z,J)}function g1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function m1(Z){return`${g1(Z.inputTokens)}/${g1(Z.outputTokens)} per Mtok`}var K0,f1,L0,l8,a8,s8,o8,r8,e8,u1;var c1=R(()=>{B2();J0();h1();u2();F0();K0={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},L0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},l8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},a8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},s8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},o8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},r8=L0,e8=[{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}}];u1={[D(v2.firstParty)]:s8,[D(y2.firstParty)]:o8,[D(_2.firstParty)]:K0,[D(E2.firstParty)]:K0,[D(I2.firstParty)]:K0,[D(T2.firstParty)]:K0,[D(h2.firstParty)]:K0,[D(f2.firstParty)]:K0,[D(M2.firstParty)]:f1,[D(S2.firstParty)]:f1,[D(C2.firstParty)]:L0,[D(s0.firstParty)]:L0,[D(o0.firstParty)]:L0,[D(r0.firstParty)]:L0,[D(A2.firstParty)]:l8}});function m(Z){return YZ.includes(Z)}function D0(Z){return qZ.includes(Z)}var YZ,qZ;var X5=R(()=>{YZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];qZ=["sonnet","opus","haiku"]});function VZ(Z,$){if(Z.includes($))return!0;if(m(Z))return T(Z).toLowerCase().includes($);return!1}function d1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function WZ(Z,$){let J=m(Z)?T(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 $=M()||{},{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)&&VZ(X,q))return!0;if(m(X)){let q=T(X).toLowerCase();if(Y.includes(q))return!0}for(let q of Y)if(!D0(q)&&m(q)){if(T(q).toLowerCase()===X)return!0}for(let q of Y)if(!D0(q)&&!m(q)){if(WZ(X,q))return!0}return!1}var i1=R(()=>{B0();X5();F0();Y2()});function H2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function U0(){let Z=L();if(!Z?.model)return;return e1(Z.model)}function G9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return J4()}function x9(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function Y5(){let Z,$=a1();if($!==void 0)Z=$;else{let J=M()||{},Q=H2(J.model),Y=U0()||Q||void 0,q=r1(),V=H2(q.activeModelForProject);if(V){let G=Z4()?.id,B=q.activeModelForProjectProfileId;Z=B===void 0||B===G?V:Y}else Z=Y}if(Z&&!t1(Z))return;return Z}function B9(){let Z=Y5();if(Z!==void 0&&Z!==null)return T(Z);return Q4()}function BZ(){return N0()}function N0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return j().opus46;return j().opus48}function u0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return j().sonnet45;return j().sonnet5}function J4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=U0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function j9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(Y5()==="opusplan"&&$==="plan"&&!Q)return N0();if(Y5()==="haiku"&&$==="plan")return u0();return J}function h0(){let Z=U0();if(W()==="github"){let $=M()||{};return H2($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(R2())return N0()+(f0()?"[1m]":"");if(w2())return N0()+(f0()?"[1m]":"");return u0()}function Q4(){return T(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 U(Z){return D(X2(Z))}function jZ(Z=!1){if(R2()||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 H9(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return Y4(T(Z))}function l1(Z){if(W()!=="firstParty")return"";let $=m1(Q5(Z));return` ·${Z?` (${s1})`:""} ${$}`}function f0(){if(V0()||W5()||W()!=="firstParty")return!1;if(O()&&v()===null)return!1;return!0}function R9(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(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g2[Z])return g2[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(v0(),y0(_0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case 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 w9(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=H2(Z);if(!$)return u0();let J=$.toLowerCase(),Q=s(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return u0()+(Q?"[1m]":"");case"sonnet":return u0()+(Q?"[1m]":"");case"haiku":return J4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return BZ();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(W()==="firstParty"&&RZ(X)&&wZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function F9(Z,$){if(s(Z)||!s($))return Z;if(q5(T(Z)))return Z+"[1m]";return Z}function RZ(Z){return HZ.includes(Z)}function wZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function K9(Z){if(Z===null){if(O())return`Default (${jZ()})`;return`Default (${Q4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function L9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=U(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 D9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function N9(Z){let $=U(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var HZ;var F0=R(()=>{J0();$0();i();$4();n();V5();g();xZ();Y2();c1();B0();l();zZ();i1();X5();GZ();p2();HZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function z5(Z){return}async function b9(){}var q4=()=>{};var j4={};c2(j4,{prefetchOpenAICompatibleModels:()=>PZ,getDiscoveredContextWindow:()=>FZ,discoverOpenAICompatibleModelOptions:()=>B4});function FZ(Z){return G4.get(Z)}function KZ(){return(L()?.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 LZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function DZ(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(LZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(x4(Z))J["api-key"]=$;return J}function NZ(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 UZ(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 bZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function OZ(Z,$){let J=new Set;for(let Q of Z)try{let X=await k.get(Q,{headers:$,timeout:z4}),Y=[];for(let q of X.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let G=q.name?.trim()||V,B=q.context_length??null;if(B&&B>0)G4.set(V,B);let H=B?` · ${bZ(B)}`:"";Y.push({value:V,label:G,description:`${V}${H}`})}if(Y.length>0)return Y.sort((q,V)=>{let G=String(q.value).split("/")[0]??"",B=String(V.value).split("/")[0]??"",H=G.localeCompare(B);return H!==0?H:String(q.value).localeCompare(String(V.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function kZ(Z,$){try{let J=await k.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 B4(){if(W()!=="openai")return[];let Z=KZ(),$=DZ(Z),J=await OZ(NZ(Z),$);if(J.length>0)return J;let Q=UZ(Z);if(Q)return kZ(Q,$);return[]}function PZ(){if(g0)return g0;return g0=(async()=>{if(!W4()?.startsWith("openai:"))return;try{let $=await B4();if($.length>0)V4($)}catch{}finally{g0=null}})(),g0}var z4=5000,G4,g0=null;var H4=R(()=>{q2();$0();c5();Z0();l();$4();G4=new Map});function w4(Z,$,J){let Q=L()?.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=R4($,J);if(X!==void 0)return X;return R4(Z,J)}function R4(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){try{let{getDiscoveredContextWindow:J}=(H4(),y0(j4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=w4(EZ,vZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(v0(),y0(_0));return J(Z)}catch{return}}function K4(Z){let $=w4(_Z,yZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(v0(),y0(_0));return J(Z)}catch{return}}var EZ,_Z,vZ,yZ;var L4=R(()=>{$0();EZ={"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,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},_Z={"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,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},vZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),yZ=(()=>{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=L()?.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 s(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function q5(Z){if(V0())return!1;let $=U(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 c9(Z,$){if(s(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."),IZ}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()&&(U(Z).includes("fable-5")||U(Z).includes("sonnet-5")))return 1e6;if($?.includes(S0)&&q5(Z))return 1e6;if(SZ(Z))return 1e6;return G5}function SZ(Z){if(V0())return!1;if(s(Z))return!1;if(!U(Z).includes("sonnet-4-6"))return!1;return K().clientDataCache?.coral_reef_sonnet==="true"}function d9(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 n9(Z){let $,J;if(D4()){let Y=K4(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=U(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 $=TZ,J=MZ;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,IZ,g9=20000,TZ=32000,MZ=64000,p9=8000,m9=64000;var V5=R(()=>{e2();$0();i();g();F0();q4();L4();IZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var CZ,N4;var U4=R(()=>{l0();l();CZ=[{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=I((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of CZ){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 AZ(Z){let $=[],J=[];for(let Q of Z)if(E4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function zQ(Z){if(!Z||Z.length===0)return;if(O()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=AZ(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 b4(Z){let $=N4(Z,"interleaved_thinking");if($!==void 0)return $;let J=U(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function hZ(Z){let $=U(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function fZ(Z){let $=U(Z),J=W();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 uZ(Z){let $=U(Z),J=W();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 GQ(Z){let $=U(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 xQ(){let Z=W();if(Z==="vertex"||Z==="bedrock")return U1;return N1}function O4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function BQ(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function jQ(Z,$){let J=[..._4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=k4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function v4(){x5.cache?.clear?.(),_4.cache?.clear?.(),gZ.cache?.clear?.()}var E4,x5,_4,gZ;var y4=R(()=>{l0();v1();J0();e2();M0();n();V5();g();F0();U4();l();B0();E4=[S0];x5=I((Z)=>{let $=[],J=U(Z).includes("haiku"),Q=W(),X=O4();if(!J)$.push(G2);if(O())$.push(j0);if(s(Z))$.push(S0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&b4(Z))$.push(K1);if(X&&b4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(O1),$.push(k1);let Y=fZ(Z);if(O4()&&Y)$.push(L1);let q=P4("tengu_tool_pear"),V=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(X&&uZ(Z)&&q)$.push(D1);if(X&&V)$.push(P1);if(Q==="vertex"&&hZ(Z))$.push(o2);if(Q==="foundry")$.push(o2);if(X)$.push(b1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),_4=I((Z)=>{let $=x5(Z);if(W()==="bedrock")return $.filter((J)=>!r2.has(J));return $}),gZ=I((Z)=>{return x5(Z).filter((J)=>r2.has(J))})});import{execFile as pZ}from"child_process";function I4(Z){return new Promise(($)=>{pZ("security",["find-generic-password","-a",K2(),"-w","-s",Z],{encoding:"utf-8",timeout:mZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function KQ(){if(process.platform!=="darwin"||F2||u())return;let Z=I4(a(T4)),$=I4(a());F2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)M4(J.stdout);if(!Q.timedOut)B5={stdout:Q.stdout}})}async function LQ(){if(F2)await F2}function S4(){return B5}function j5(){B5=null}var mZ=1e4,B5=null,F2=null;var C4=R(()=>{g();a2()});function H5(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((V,G,B)=>{V?.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 UQ(){return h4}function f4(){h4.clear()}var h4;var u4=R(()=>{h4=new Map});var T$={};c2(T$,{validateForceLoginOrg:()=>I$,saveOAuthTokensIfNeeded:()=>J8,saveApiKey:()=>v5,removeApiKey:()=>K$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>Z8,refreshAwsAuth:()=>r4,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>H$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>R$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>Q$,isUsing3PServices:()=>U2,isTeamSubscriber:()=>O$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>W5,isOverageProvisioningAllowed:()=>U$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>q8,isMaxSubscriber:()=>R2,isGcpAuthRefreshFromProjectSettings:()=>E5,isEnterpriseSubscriber:()=>k$,isCustomApiKeyApproved:()=>F$,isConsumerSubscriber:()=>v$,isClaudeAISubscriber:()=>O,isAwsCredentialExportFromProjectSettings:()=>k5,isAwsAuthRefreshFromProjectSettings:()=>b5,isAnthropicAuthEnabled:()=>P0,is1PApiCustomer:()=>N$,hasProfileScope:()=>q0,hasOpusAccess:()=>b$,hasAnthropicApiKeyAuth:()=>eZ,handleOAuth401Error:()=>J5,getSubscriptionType:()=>v,getSubscriptionName:()=>X8,getRateLimitTier:()=>Q8,getOtelHeadersFromHelper:()=>E$,getOauthAccountInfo:()=>N2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>T0,getApiKeyHelperElapsedMs:()=>Z$,getApiKeyFromConfigOrMacOSKeychain:()=>O2,getApiKeyFromApiKeyHelperCached:()=>w5,getApiKeyFromApiKeyHelper:()=>o4,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>y$,clearOAuthTokenCache:()=>y5,clearGcpCredentialsCache:()=>j$,clearAwsCredentialsCache:()=>W$,clearApiKeyHelperCache:()=>J$,checkGcpCredentialsValid:()=>e4,checkAndRefreshOAuthTokenIfNeeded:()=>t0,calculateApiKeyHelperTTL:()=>s4});import{exec as l4}from"child_process";import{mkdir as aZ,stat as sZ}from"fs/promises";import{join as oZ}from"path";function D2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function P0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=U2(),J=(M()||{}).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 T0(){if(u()){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(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function eZ(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=L();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null: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(!U2()&&!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&&!U2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&K().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=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=O2();if(Y)return Y;return{key:null,source:"none"}}function o(){if(u())return P("flagSettings")?.apiKeyHelper;return(M()||{}).apiKeyHelper}function a4(){let Z=o();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function U5(){return(M()||{}).awsAuthRefresh}function b5(){let Z=U5();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function O5(){return(M()||{}).awsCredentialExport}function k5(){let Z=O5();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function s4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return rZ}function Z$(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function o4(Z){if(!o())return null;let $=s4();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!c)c={promise:g4(Z,!1,O0),startedAt:null};return y.value}if(c)return c.promise;return c={promise:g4(Z,!0,O0),startedAt:Date.now()},c.promise}async function g4(Z,$,J){try{let Q=await $$(Z);if(J!==O0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==O0)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"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===O0)c=null}}async function $$(Z){let $=o();if(!$)return null;if(a4()){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 R0($,{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 y?.value??null}function J$(){O0++,y=null,c=null}function Q$(Z){if(a4()&&!d())return;o4(Z)}async function Y$(){let Z=U5();if(!Z)return!1;if(b5()){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 s2(),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 $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:q$});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 V=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(V),$.endAuthentication(!1),J(!1)}})})}async function V$(){let Z=O5();if(!Z)return null;if(k5()){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 s2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await R0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=L5($.stdout.trim());if(!j1(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 W$(){z0.cache.clear()}function P5(){return(M()||{}).gcpAuthRefresh}function E5(){let Z=P5();if(!Z)return!1;let $=P("projectSettings"),J=P("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=H5(z$).then(()=>{throw new V8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function x$(){let Z=P5();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 $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:B$});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 V=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(V),$.endAuthentication(!1),J(!1)}})})}function j$(){_5.cache.clear()}function H$(){if(!P5())return;if(E5()){if(!d()&&!f())return}_5()}function R$(){let Z=U5(),$=O5();if(!Z&&!$)return;if(b5()||k5()){if(!d()&&!f())return}z0(),j()}function w$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function v5(Z){if(!w$(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=a(),X=K2(),Y=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
2
+ `;await R0("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??[]}}}),O2.cache.clear?.(),j5()}function F$(Z){let $=K(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function K$(){await $8(),C((Z)=>({...Z,primaryApiKey:void 0})),O2.cache.clear?.(),j5()}async function $8(){try{await x1()}catch(Z){N(Z)}}function J8(Z){if(!k0(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 $=b2(),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?.(),v4(),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 y5(){w.cache?.clear?.(),b0()}async function L$(){try{let{mtimeMs:Z}=await sZ(oZ(K5(),".credentials.json"));if(Z!==p4)p4=Z,y5()}catch{w.cache?.clear?.()}}function J5(Z){let $=R5.get(Z);if($)return $;let J=D$(Z).finally(()=>{R5.delete(Z)});return R5.set(Z,J),J}async function D$(Z){y5();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(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await b2().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 L$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),b0();let X=await c0();if(!X?.refreshToken||!m0(X.expiresAt))return!1;let Y=K5();await aZ(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(V){if(V.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await H5(1000+Math.random()*1000),F5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return N(V),x("tengu_oauth_token_refresh_lock_error",{error:p(V)}),!1}try{w.cache?.clear?.(),b0();let V=await c0();if(!V?.refreshToken||!m0(V.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await t4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return J8(G),w.cache?.clear?.(),b0(),!0}catch(V){N(V),w.cache?.clear?.(),b0();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 O(){if(!P0())return!1;return k0(w()?.scopes)}function q0(){return w()?.scopes?.includes(d4)??!1}function N$(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(O())return!1;return!0}function N2(){return P0()?K().oauthAccount:void 0}function U$(){let $=N2()?.billingType;if(!O()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function b$(){let Z=v();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function v(){if(e5())return r5();if(!P0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function R2(){return v()==="max"}function O$(){return v()==="team"}function w2(){return v()==="team"&&Q8()==="default_claude_max_5x"}function k$(){return v()==="enterprise"}function W5(){return v()==="pro"}function Q8(){if(!P0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function X8(){switch(v()){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 U2(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function Y8(){return(M()||{}).otelHeadersHelper}function q8(){let Z=Y8();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function E$(){let Z=Y8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||P$.toString());if(L2&&Date.now()-m4<$)return L2;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=L5(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 L2=Q,m4=Date.now(),L2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function _$(Z){return Z==="max"||Z==="pro"}function v$(){let Z=v();return O()&&Z!==null&&_$(Z)}function y$(){if(W()!=="firstParty")return;let{source:$}=T0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(O())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 I$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!P0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await t0();let $=w();if(!$)return{valid:!0};let{source:J}=T0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await H0($.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 rZ=300000,y=null,c=null,O0=0,X$=3600000,q$=180000,z0,z$=5000,G$=3600000,B$=180000,_5,O2,w,p4=0,R5,p0=null,L2=null,m4=0,P$=1740000,V8;var n=R(()=>{dZ();G1();l0();M0();B2();Y2();l();J0();$0();Z1();i4();t2();z1();B1();R1();F1();y4();i();Z0();g();V1();nZ();iZ();a0();tZ();lZ();C4();a2();B0();A4();cZ();u4();z0=N5(async()=>{let Z=await Y$(),$=await V$();if(Z||$)await H1();return $},X$);_5=N5(async()=>{return await x$()},G$);O2=I(()=>{if(u())return null;if(process.platform==="darwin"){let $=S4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=a();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=K();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=I(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=b2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});R5=new Map;V8=class V8 extends Error{}});function k0(Z){return Boolean(Z?.includes(I5))}function M$(Z){return Z?.split(" ").filter(Boolean)??[]}function B7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:q,loginHint:V,loginMethod:G}){let B=X?b().CLAUDE_AI_AUTHORIZE_URL:b().CONSOLE_AUTHORIZE_URL,H=new URL(B);H.searchParams.append("code","true"),H.searchParams.append("client_id",b().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?b().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=Y?[I5]:G8;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),q)H.searchParams.append("orgUUID",q);if(V)H.searchParams.append("login_hint",V);if(G)H.searchParams.append("login_method",G);return H.toString()}async function j7(Z,$,J,Q,X=!1,Y){let q={grant_type:"authorization_code",code:Z,redirect_uri:X?b().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:b().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)q.expires_in=Y;let V=await k.post(b().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("tengu_oauth_token_exchange_success",{}),V.data}async function t4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:b().CLIENT_ID,scope:(($?.length)?$:z8).join(" ")};try{let Q=await k.post(b().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:V}=X,G=Date.now()+V*1000,B=M$(X.scope);x("tengu_oauth_token_refresh_success",{});let H=K(),W0=w(),E=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await S$(Y);if(E&&H.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=k.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 H7(Z){let $=await k.get(b().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!K().oauthAccount)throw Error("OAuth account information not found in config");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 R7(Z){try{let $=await k.post(b().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await v5(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 S$(Z){let $=await H0(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 w7(){let $=K().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let X=(await H0(J))?.organization?.uuid;if(!X)return null;return X}async function F7(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!K().oauthAccount)W8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await t0();let X=K();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!O()||!q0())return!1;let Y=w();if(Y?.accessToken){let q=await H0(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:V}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:V};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=R(()=>{q2();B2();M0();n();i();Z0();t2()});
16
+ export{KQ as q4,LQ as r4,C4 as s4,T5 as t4,M5 as u4,m$ as v4,c$ as w4,B8 as x4,R8 as y4,d$ as z4,h5 as A4,s0 as B4,o0 as C4,G0 as D4,u2 as E4,n2 as F4,U8 as G4,v0 as H4,W as I4,JJ as J4,_8 as K4,QJ as L4,XJ as M4,YJ as N4,l as O4,j as P4,HJ as Q4,Y2 as R4,LJ as S4,DJ as T4,o5 as U4,OJ as V4,kJ as W4,Z1 as X4,TJ as Y4,H0 as Z4,t2 as _4,k0 as $4,M$ as a5,B7 as b5,j7 as c5,t4 as d5,H7 as e5,R7 as f5,m0 as g5,S$ as h5,w7 as i5,F7 as j5,W8 as k5,i4 as l5,gJ as m5,h8 as n5,$1 as o5,z1 as p5,z2 as q5,B1 as r5,tJ as s5,R1 as t5,S as u5,F1 as v5,S0 as w5,L1 as x5,D1 as y5,sJ as z5,oJ as A5,b1 as B5,rJ as C5,eJ as D5,O1 as E5,Z3 as F5,$3 as G5,J3 as H5,e2 as I5,A as J5,T1 as K5,p8 as L5,L3 as M5,D3 as N5,N3 as O5,M1 as P5,U3 as Q5,b3 as R5,m8 as S5,O3 as T5,k3 as U5,P3 as V5,E3 as W5,_3 as X5,n8 as Y5,v3 as Z5,y3 as _5,I3 as $5,T3 as a6,h1 as b6,K0 as c6,l8 as d6,s8 as e6,o8 as f6,Q5 as g6,XZ as h6,u3 as i6,m1 as j6,c1 as k6,YZ as l6,X5 as m6,t1 as n6,i1 as o6,G9 as p6,x9 as q6,Y5 as r6,B9 as s6,BZ as t6,N0 as u6,u0 as v6,J4 as w6,j9 as x6,h0 as y6,Q4 as z6,D as A6,U as B6,jZ as C6,H9 as D6,l1 as E6,f0 as F6,R9 as G6,X4 as H6,Y4 as I6,w9 as J6,T as K6,F9 as L6,wZ as M6,K9 as N6,L9 as O6,D9 as P6,N9 as Q6,F0 as R6,b9 as S6,q4 as T6,B4 as U6,PZ as V6,H4 as W6,g9 as X6,p9 as Y6,m9 as Z6,V0 as _6,s as $6,c9 as a7,SZ as b7,d9 as c7,n9 as d7,V5 as e7,N4 as f7,U4 as g7,zQ as h7,uZ as i7,GQ as j7,xQ as k7,O4 as l7,BQ as m7,_4 as n7,gZ as o7,jQ as p7,v4 as q7,y4 as r7,H5 as s7,A4 as t7,UQ as u7,f4 as v7,u4 as w7,P0 as x7,T0 as y7,X0 as z7,eZ as A7,n0 as B7,o as C7,b5 as D7,k5 as E7,s4 as F7,Z$ as G7,o4 as H7,w5 as I7,J$ as J7,Q$ as K7,r4 as L7,z0 as M7,W$ as N7,E5 as O7,e4 as P7,Z8 as Q7,_5 as R7,j$ as S7,H$ as T7,R$ as U7,O2 as V7,v5 as W7,F$ as X7,K$ as Y7,J8 as Z7,w as _7,y5 as $7,J5 as a8,c0 as b8,t0 as c8,O as d8,q0 as e8,N$ as f8,N2 as g8,U$ as h8,b$ as i8,v as j8,R2 as k8,O$ as l8,w2 as m8,k$ as n8,W5 as o8,Q8 as p8,X8 as q8,U2 as r8,q8 as s8,E$ as t8,v$ as u8,y$ as v8,I$ as w8,T$ as x8,n as y8};
@@ -0,0 +1,2 @@
1
+ import{PR as R,_J as Y,pm as W,sm as P,uk as Q,vk as I}from"./cli-1.0.10-wqjsz7wa.mjs";import{vga as B,wga as f}from"./cli-1.0.10-yzdn65j0.mjs";import{Gia as F,kia as H,lia as J}from"./cli-1.0.10-dsx0vt1p.mjs";import{sqa as $,tma as v}from"./cli-1.0.10-wg9nsp2f.mjs";import{bsa as Z}from"./cli-1.0.10-byd1s52c.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
+ export{S as bf,V as cf,X as df,r as ef,w as ff,T as gf,G as hf};
@@ -0,0 +1,2 @@
1
+ import{jf as H,mf as A}from"./cli-1.0.10-5vy47pkm.mjs";import{Af as L,Df as P,Ff as _}from"./cli-1.0.10-ky6sqp4h.mjs";import{Era as F,mra as U}from"./cli-1.0.10-6k8wfwnm.mjs";F();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class C extends Error{status;errorType;constructor(J,K,$){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=$}}function y(J){function K(q){J.onDebug?.(q)}let $=0,W=100;function Z(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},X=J.getTrustedDeviceToken?.();if(X)z["X-Trusted-Device-Token"]=X;return z}function D(){let q=J.getAccessToken();if(!q)throw Error(H);return q}async function M(q,z){let X=D(),Q=await q(X);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(X)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let V=D(),N=await q(V);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:Z(X),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${L({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${L(z.data)}`),z.data},async pollForWork(q,z,X,Q){j(q,"environmentId");let Y=$;$=0;let V=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:Z(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:X,validateStatus:(N)=>N<500});if(G(V.status,V.data,"Poll"),!V.data){if($=Y+1,$===1||$%W===0)K(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${$} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),K(`[bridge:api] <<< ${L(V.data)}`),V.data},async acknowledgeWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${X}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:X},{headers:Z(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((X)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let X=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:Z(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(X.status,X.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${X.status}`)},async heartbeatWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,X){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${L({events:[z]})}`),K(`[bridge:api] <<< ${L(Q.data)}`)}}}function G(J,K,$){if(J===200||J===204)return;let W=P(K),Z=B(K);switch(J){case 401:throw new C(`${$}: Authentication failed (401)${W?`: ${W}`:""}. ${H}`,401,Z);case 403:throw new C(S(Z)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${$}: Access denied (403)${W?`: ${W}`:""}. Check your organization permissions.`,403,Z);case 404:throw new C(W??`${$}: Not found (404). Remote Control may not be available for this organization.`,404,Z);case 410:throw new C(W??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,Z??"environment_expired");case 429:throw Error(`${$}: Rate limited (429). Polling too frequently.`);default:throw Error(`${$}: Failed with status ${J}${W?`: ${W}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function h(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function f(J){let K=new AbortController;function $(){K.abort(),K=new AbortController}function W(){let Z=new AbortController,D=()=>Z.abort();if(J.aborted||K.signal.aborted)return Z.abort(),{signal:Z.signal,cleanup:()=>{}};J.addEventListener("abort",D,{once:!0});let M=K.signal;return M.addEventListener("abort",D,{once:!0}),{signal:Z.signal,cleanup:()=>{J.removeEventListener("abort",D),M.removeEventListener("abort",D)}}}return{signal:W,wake:$}}
2
+ export{j as Cb,C as Db,y as Eb,S as Fb,h as Gb,f as Hb};
@@ -0,0 +1,17 @@
1
+ import{l7 as x,r7 as K}from"./cli-1.0.10-x6xcvx11.mjs";import{Bda as J,rda as w}from"./cli-1.0.10-j0e7nj85.mjs";import{Eha as I,sha as v}from"./cli-1.0.10-ebk3tx3x.mjs";import{Fka as q,Pka as G}from"./cli-1.0.10-3g4c94ey.mjs";import{bsa as z}from"./cli-1.0.10-byd1s52c.mjs";function W(b){return b.type==="advisor_tool_result"||b.type==="server_tool_use"&&b.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDE_CODE_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let b=j();return k()&&!N()&&b.baseModel&&b.advisorModel?{baseModel:b.baseModel,advisorModel:b.advisorModel}:void 0}function Z(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-5")||h.includes("sonnet-4-6")}function $(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-5")||h.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(b){let h=b.iterations;if(!h)return[];return h.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
2
+
3
+ You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
4
+
5
+ Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
6
+
7
+ Also call advisor:
8
+ - When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
9
+ - When stuck -- errors recurring, approach not converging, results that don't fit.
10
+ - When considering a change of approach.
11
+
12
+ On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
13
+
14
+ Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
15
+
16
+ If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
17
+ export{W as PU,k as QU,N as RU,X as SU,Z as TU,$ as UU,B as VU,D as WU,F as XU,O as YU};
@@ -0,0 +1,2 @@
1
+ import{C0 as Y,E0 as u,gZ as u2,h1 as e2,pZ as Z}from"./cli-1.0.10-j1c6sy8q.mjs";import{Q3 as t,R3 as o,S3 as U}from"./cli-1.0.10-b42che8r.mjs";import{aba as X,cba as j}from"./cli-1.0.10-j0e7nj85.mjs";import{Zra as s}from"./cli-1.0.10-byd1s52c.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.0.10"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.0.10"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.0.10"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.0.10"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
+ export{c2 as ba};
@@ -0,0 +1,2 @@
1
+ import{h4 as N,m4 as $}from"./cli-1.0.10-ewwwn978.mjs";import{_7 as M,i5 as L,l5 as Y,y8 as Z}from"./cli-1.0.10-x6xcvx11.mjs";import{kga as Q,sga as X}from"./cli-1.0.10-j0e7nj85.mjs";import{Pia as J,Qia as V}from"./cli-1.0.10-vr6qr3sv.mjs";import{rka as P,zka as S}from"./cli-1.0.10-z6340h71.mjs";import{Era as W,mra as K}from"./cli-1.0.10-6k8wfwnm.mjs";import{bsa as R}from"./cli-1.0.10-byd1s52c.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
2
+ export{C as MW,j as NW,b as OW};
@@ -0,0 +1,3 @@
1
+ import{M as A}from"./cli-1.0.10-v10zh0fh.mjs";import{bga as $,cga as F,iga as z,jga as H,sga as P}from"./cli-1.0.10-j0e7nj85.mjs";import{Cja as w,Gja as V,Kja as C,Uja as X,Via as _,Wia as N,Xia as B,Xja as E,Zia as W,xja as O}from"./cli-1.0.10-pd2mt28b.mjs";import{sqa as L,tma as Z}from"./cli-1.0.10-wg9nsp2f.mjs";import{Era as y,mra as q}from"./cli-1.0.10-6k8wfwnm.mjs";y();L();N();F();W();E();C();P();w();import{dirname as I,join as x}from"path";var T=z(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
2
+ `)},flush:K.flush,dispose:K.dispose}}var R=new Map;function M(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function f(G,K){}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(q.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(U)}function k(){H({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function e(){k(),A()}
3
+ export{e as x};
@@ -0,0 +1,3 @@
1
+ import{c2 as k,e2 as w}from"./cli-1.0.10-ke4netv4.mjs";import{e8 as j,y8 as v}from"./cli-1.0.10-x6xcvx11.mjs";import{Dha as h,Eha as s,sha as d}from"./cli-1.0.10-ebk3tx3x.mjs";import{Pka as q}from"./cli-1.0.10-3g4c94ey.mjs";import{bsa as p}from"./cli-1.0.10-byd1s52c.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
+ Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
3
+ export{x as DW,O as EW,P as FW,Q as GW,R as HW,U as IW,W as JW,X as KW,z as LW};