@claudiolabs/claudin 0.6.13 → 0.7.0

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 (891) hide show
  1. package/dist/chunks/AgentTool-0.7.0-9peg6t20.mjs +1 -0
  2. package/dist/chunks/App-0.7.0-q5hygb50.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.7.0-pdj2vakp.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.7.0-190csm4h.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.7.0-khhh5rz9.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.7.0-4n7jcjsf.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.0-vf636a5p.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.7.0-z9h5bckg.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.7.0-3kqmdg48.mjs +7 -0
  10. package/dist/chunks/Doctor-0.7.0-gep401wn.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.7.0-2t408ngs.mjs +6 -0
  12. package/dist/chunks/Grove-0.7.0-3knq53k5.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.7.0-by807q13.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.7.0-maxj2b37.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.7.0-2atqejbc.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.7.0-wqtqgs70.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.7.0-xe2s643k.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.7.0-4tbbvacv.mjs +1 -0
  19. package/dist/chunks/REPL-0.7.0-tvn2epfh.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.7.0-6ycqmhh2.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.7.0-xwjwtj2z.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.7.0-mwbsjw08.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.7.0-szdbz9rf.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.7.0-sg1whfhh.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.7.0-jdkh4z1a.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.7.0-f557bcbq.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.7.0-gfmvgcwc.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.7.0-vvs597t9.mjs +1 -0
  29. package/dist/chunks/add-dir-0.7.0-tqy1qj7k.mjs +1 -0
  30. package/dist/chunks/agents-0.7.0-7mz67ymz.mjs +110 -0
  31. package/dist/chunks/agents-0.7.0-rzfq4nj1.mjs +3 -0
  32. package/dist/chunks/api-0.7.0-3ddtm43n.mjs +1 -0
  33. package/dist/chunks/asciicast-0.7.0-4hfhh3bz.mjs +1 -0
  34. package/dist/chunks/assistant-0.7.0-hq9qp39j.mjs +1 -0
  35. package/dist/chunks/auth-0.7.0-j0ecrgmw.mjs +1 -0
  36. package/dist/chunks/auth-0.7.0-q33dw9jq.mjs +1 -0
  37. package/dist/chunks/autoMode-0.7.0-jt8mnf1a.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.7.0-pk6cxrr5.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.7.0-n50bjkpa.mjs +1 -0
  40. package/dist/chunks/branch-0.7.0-2nvgp1ch.mjs +4 -0
  41. package/dist/chunks/bridge-0.7.0-n76zrpx7.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.7.0-wavdtzat.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.7.0-eqjw3fax.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.7.0-7n73zfpq.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.7.0-49x6tn3y.mjs +1 -0
  46. package/dist/chunks/btw-0.7.0-d2cavbgh.mjs +1 -0
  47. package/dist/chunks/buddy-0.7.0-3r0qt58d.mjs +3 -0
  48. package/dist/chunks/cacache-0.7.0-tsq5tf6t.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.7.0-521yf1je.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.7.0-xrpkvgry.mjs +4 -0
  51. package/dist/chunks/caches-0.7.0-khrzrs38.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.7.0-9vm9zdzp.mjs +1 -0
  53. package/dist/chunks/claudemd-0.7.0-06x6wykt.mjs +1 -0
  54. package/dist/chunks/clear-0.7.0-0hkt8avg.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.7.0-np2er6we.mjs +1 -0
  56. package/dist/chunks/cli-0.7.0-0bzz8t89.mjs +2 -0
  57. package/dist/chunks/cli-0.7.0-0cp32djm.mjs +2 -0
  58. package/dist/chunks/cli-0.7.0-0hzevdxp.mjs +8 -0
  59. package/dist/chunks/cli-0.7.0-0r9dgw51.mjs +3 -0
  60. package/dist/chunks/cli-0.7.0-0vdrrv1g.mjs +2 -0
  61. package/dist/chunks/cli-0.7.0-154gmfg4.mjs +2 -0
  62. package/dist/chunks/cli-0.7.0-15wmymmf.mjs +2 -0
  63. package/dist/chunks/cli-0.7.0-19swb9c9.mjs +2 -0
  64. package/dist/chunks/cli-0.7.0-1b6xe3b3.mjs +3 -0
  65. package/dist/chunks/cli-0.7.0-1evcxwvq.mjs +9 -0
  66. package/dist/chunks/cli-0.7.0-1tb38zvv.mjs +2 -0
  67. package/dist/chunks/cli-0.7.0-1vvj7vh2.mjs +4 -0
  68. package/dist/chunks/cli-0.7.0-21zw08ne.mjs +4 -0
  69. package/dist/chunks/cli-0.7.0-24z25c8v.mjs +2 -0
  70. package/dist/chunks/cli-0.7.0-252v8s5n.mjs +20 -0
  71. package/dist/chunks/cli-0.7.0-29zphpz9.mjs +2 -0
  72. package/dist/chunks/cli-0.7.0-2cdwx892.mjs +3 -0
  73. package/dist/chunks/cli-0.7.0-2etvr47t.mjs +24 -0
  74. package/dist/chunks/cli-0.7.0-2nytysyy.mjs +2 -0
  75. package/dist/chunks/cli-0.7.0-383nrwhr.mjs +18 -0
  76. package/dist/chunks/cli-0.7.0-3fnqxks0.mjs +5 -0
  77. package/dist/chunks/cli-0.7.0-3knzsvn6.mjs +2 -0
  78. package/dist/chunks/cli-0.7.0-3n9nagt9.mjs +2 -0
  79. package/dist/chunks/cli-0.7.0-3stm3k7p.mjs +12 -0
  80. package/dist/chunks/cli-0.7.0-3xtc467b.mjs +2 -0
  81. package/dist/chunks/cli-0.7.0-48ycf0c3.mjs +2 -0
  82. package/dist/chunks/cli-0.7.0-48yfvx4w.mjs +2 -0
  83. package/dist/chunks/cli-0.7.0-49k0drxj.mjs +2 -0
  84. package/dist/chunks/cli-0.7.0-4d58csqr.mjs +2 -0
  85. package/dist/chunks/cli-0.7.0-4s9f320h.mjs +2 -0
  86. package/dist/chunks/cli-0.7.0-4t41vxc0.mjs +2 -0
  87. package/dist/chunks/cli-0.7.0-4z8583dp.mjs +2 -0
  88. package/dist/chunks/cli-0.7.0-4z9nwzzv.mjs +2 -0
  89. package/dist/chunks/cli-0.7.0-4zvtjdd8.mjs +2 -0
  90. package/dist/chunks/cli-0.7.0-5df67dbk.mjs +2 -0
  91. package/dist/chunks/cli-0.7.0-5fx679he.mjs +2 -0
  92. package/dist/chunks/cli-0.7.0-5ktz31fq.mjs +67 -0
  93. package/dist/chunks/cli-0.7.0-5yvefnpr.mjs +3 -0
  94. package/dist/chunks/cli-0.7.0-68mgyfr7.mjs +2 -0
  95. package/dist/chunks/cli-0.7.0-6v89j1h0.mjs +2 -0
  96. package/dist/chunks/cli-0.7.0-747esby6.mjs +2 -0
  97. package/dist/chunks/cli-0.7.0-7c24mbsm.mjs +2 -0
  98. package/dist/chunks/cli-0.7.0-7g132rdj.mjs +5420 -0
  99. package/dist/chunks/cli-0.7.0-83nm3wtf.mjs +2 -0
  100. package/dist/chunks/cli-0.7.0-89798mg3.mjs +2 -0
  101. package/dist/chunks/cli-0.7.0-8begebnr.mjs +3 -0
  102. package/dist/chunks/cli-0.7.0-8p56ked8.mjs +2 -0
  103. package/dist/chunks/cli-0.7.0-8qwe028y.mjs +2 -0
  104. package/dist/chunks/cli-0.7.0-9jzkqcfv.mjs +16 -0
  105. package/dist/chunks/cli-0.7.0-9mk6sjcz.mjs +4 -0
  106. package/dist/chunks/cli-0.7.0-9p8vefz6.mjs +18 -0
  107. package/dist/chunks/cli-0.7.0-a088q8ep.mjs +2 -0
  108. package/dist/chunks/cli-0.7.0-a0dt04a7.mjs +2 -0
  109. package/dist/chunks/cli-0.7.0-a7rry8ha.mjs +2 -0
  110. package/dist/chunks/cli-0.7.0-ad4z1hfv.mjs +50 -0
  111. package/dist/chunks/cli-0.7.0-aewz8nz4.mjs +2 -0
  112. package/dist/chunks/cli-0.7.0-apkk9390.mjs +3 -0
  113. package/dist/chunks/cli-0.7.0-asw5nd1q.mjs +2 -0
  114. package/dist/chunks/cli-0.7.0-avczxk44.mjs +2 -0
  115. package/dist/chunks/cli-0.7.0-avw5kb07.mjs +2 -0
  116. package/dist/chunks/cli-0.7.0-ba1xb8x3.mjs +4 -0
  117. package/dist/chunks/cli-0.7.0-bacjkqga.mjs +2 -0
  118. package/dist/chunks/cli-0.7.0-bn0k1nzk.mjs +2 -0
  119. package/dist/chunks/cli-0.7.0-cb16hgkh.mjs +2 -0
  120. package/dist/chunks/cli-0.7.0-cjxpqpns.mjs +3 -0
  121. package/dist/chunks/cli-0.7.0-ct2kfpct.mjs +2 -0
  122. package/dist/chunks/cli-0.7.0-cwxeffcg.mjs +2 -0
  123. package/dist/chunks/cli-0.7.0-d56bajvn.mjs +2 -0
  124. package/dist/chunks/cli-0.7.0-d5bt2ahd.mjs +2 -0
  125. package/dist/chunks/cli-0.7.0-d6h4eqtj.mjs +2 -0
  126. package/dist/chunks/cli-0.7.0-d8vr3j93.mjs +2 -0
  127. package/dist/chunks/cli-0.7.0-dem9bmt6.mjs +2 -0
  128. package/dist/chunks/cli-0.7.0-dpaewdhn.mjs +2 -0
  129. package/dist/chunks/cli-0.7.0-dszmq0g3.mjs +2 -0
  130. package/dist/chunks/cli-0.7.0-dtxyc2mt.mjs +2 -0
  131. package/dist/chunks/cli-0.7.0-dxnyr5rv.mjs +2 -0
  132. package/dist/chunks/cli-0.7.0-dyhamqem.mjs +2 -0
  133. package/dist/chunks/cli-0.7.0-e1esnrzt.mjs +42 -0
  134. package/dist/chunks/cli-0.7.0-e1mycvjk.mjs +2 -0
  135. package/dist/chunks/cli-0.7.0-e39zcyhp.mjs +4 -0
  136. package/dist/chunks/cli-0.7.0-e6mves6r.mjs +2 -0
  137. package/dist/chunks/cli-0.7.0-eayr3nfv.mjs +2 -0
  138. package/dist/chunks/cli-0.7.0-ecwta6mh.mjs +2 -0
  139. package/dist/chunks/cli-0.7.0-eddwmcdn.mjs +2 -0
  140. package/dist/chunks/cli-0.7.0-es6y6s82.mjs +12 -0
  141. package/dist/chunks/cli-0.7.0-ewbn59cm.mjs +2 -0
  142. package/dist/chunks/cli-0.7.0-ewcemx0m.mjs +2 -0
  143. package/dist/chunks/cli-0.7.0-f62gcsfa.mjs +2 -0
  144. package/dist/chunks/cli-0.7.0-f7mqc27p.mjs +6 -0
  145. package/dist/chunks/cli-0.7.0-ffy8few4.mjs +3 -0
  146. package/dist/chunks/cli-0.7.0-ft5gef81.mjs +2 -0
  147. package/dist/chunks/cli-0.7.0-ftjagwyg.mjs +2 -0
  148. package/dist/chunks/cli-0.7.0-fxv77y2t.mjs +12 -0
  149. package/dist/chunks/cli-0.7.0-g2ekvm09.mjs +6 -0
  150. package/dist/chunks/cli-0.7.0-g46gs4dx.mjs +2 -0
  151. package/dist/chunks/cli-0.7.0-g5qxznar.mjs +2 -0
  152. package/dist/chunks/cli-0.7.0-gafgf0er.mjs +2 -0
  153. package/dist/chunks/cli-0.7.0-gkssrwr6.mjs +34 -0
  154. package/dist/chunks/cli-0.7.0-h6kfhzzd.mjs +193 -0
  155. package/dist/chunks/cli-0.7.0-hmjg8yfx.mjs +2 -0
  156. package/dist/chunks/cli-0.7.0-hrtdae85.mjs +6 -0
  157. package/dist/chunks/cli-0.7.0-hxf1ckjt.mjs +12 -0
  158. package/dist/chunks/cli-0.7.0-hxph4t80.mjs +2 -0
  159. package/dist/chunks/cli-0.7.0-j4jzhywr.mjs +3 -0
  160. package/dist/chunks/cli-0.7.0-je29e78f.mjs +2 -0
  161. package/dist/chunks/cli-0.7.0-jmsrj8j2.mjs +4 -0
  162. package/dist/chunks/cli-0.7.0-jvkyhn8x.mjs +2 -0
  163. package/dist/chunks/cli-0.7.0-k3qqc7gx.mjs +2 -0
  164. package/dist/chunks/cli-0.7.0-k7w5n7pe.mjs +2 -0
  165. package/dist/chunks/cli-0.7.0-kkpf8bhn.mjs +2 -0
  166. package/dist/chunks/cli-0.7.0-kngw06pw.mjs +4 -0
  167. package/dist/chunks/cli-0.7.0-kp7f47zq.mjs +2 -0
  168. package/dist/chunks/cli-0.7.0-kpfe5dkw.mjs +2 -0
  169. package/dist/chunks/cli-0.7.0-kr6jdp53.mjs +133 -0
  170. package/dist/chunks/cli-0.7.0-kw0wp8vs.mjs +2 -0
  171. package/dist/chunks/cli-0.7.0-kw554ntj.mjs +3 -0
  172. package/dist/chunks/cli-0.7.0-m07xma4d.mjs +2 -0
  173. package/dist/chunks/cli-0.7.0-m6ysmj08.mjs +39 -0
  174. package/dist/chunks/cli-0.7.0-mea2neea.mjs +133 -0
  175. package/dist/chunks/cli-0.7.0-mn3gdwp2.mjs +17 -0
  176. package/dist/chunks/cli-0.7.0-mnbdk339.mjs +3 -0
  177. package/dist/chunks/cli-0.7.0-n0s94kev.mjs +2 -0
  178. package/dist/chunks/cli-0.7.0-n0twknfk.mjs +2 -0
  179. package/dist/chunks/cli-0.7.0-na9s209m.mjs +2 -0
  180. package/dist/chunks/cli-0.7.0-p96azep2.mjs +7 -0
  181. package/dist/chunks/cli-0.7.0-p9c7eask.mjs +2 -0
  182. package/dist/chunks/cli-0.7.0-p9q4x3f1.mjs +59 -0
  183. package/dist/chunks/cli-0.7.0-pbs0cx53.mjs +2 -0
  184. package/dist/chunks/cli-0.7.0-petmjdha.mjs +2 -0
  185. package/dist/chunks/cli-0.7.0-pf2fr5cc.mjs +4 -0
  186. package/dist/chunks/cli-0.7.0-pfcabga3.mjs +2 -0
  187. package/dist/chunks/cli-0.7.0-ppqzq0zp.mjs +2 -0
  188. package/dist/chunks/cli-0.7.0-q5sbn5b2.mjs +4 -0
  189. package/dist/chunks/cli-0.7.0-q70ex7jy.mjs +2 -0
  190. package/dist/chunks/cli-0.7.0-qeg8v19s.mjs +2 -0
  191. package/dist/chunks/cli-0.7.0-qftredzy.mjs +2 -0
  192. package/dist/chunks/cli-0.7.0-qmckaxpm.mjs +2 -0
  193. package/dist/chunks/cli-0.7.0-r8g195r8.mjs +15 -0
  194. package/dist/chunks/cli-0.7.0-rmprwgax.mjs +2 -0
  195. package/dist/chunks/cli-0.7.0-rnahtcw9.mjs +5 -0
  196. package/dist/chunks/cli-0.7.0-rxhbb3ca.mjs +2 -0
  197. package/dist/chunks/cli-0.7.0-s0b5jjrj.mjs +2 -0
  198. package/dist/chunks/cli-0.7.0-s14kw5d6.mjs +2 -0
  199. package/dist/chunks/cli-0.7.0-s4at7t0q.mjs +2 -0
  200. package/dist/chunks/cli-0.7.0-s8rt9fpg.mjs +2 -0
  201. package/dist/chunks/cli-0.7.0-s9hgep30.mjs +3 -0
  202. package/dist/chunks/cli-0.7.0-sbwhas5a.mjs +18 -0
  203. package/dist/chunks/cli-0.7.0-tcxmyk2w.mjs +2 -0
  204. package/dist/chunks/cli-0.7.0-tjpp46xm.mjs +2 -0
  205. package/dist/chunks/cli-0.7.0-tvwks6zm.mjs +2 -0
  206. package/dist/chunks/cli-0.7.0-twxrndmz.mjs +4 -0
  207. package/dist/chunks/cli-0.7.0-v6ceqq5f.mjs +2 -0
  208. package/dist/chunks/cli-0.7.0-v7hc34ad.mjs +2 -0
  209. package/dist/chunks/cli-0.7.0-v92q5ffm.mjs +2 -0
  210. package/dist/chunks/cli-0.7.0-vf7bbn80.mjs +5 -0
  211. package/dist/chunks/cli-0.7.0-vfzbn5qv.mjs +2 -0
  212. package/dist/chunks/cli-0.7.0-vp89ypch.mjs +24 -0
  213. package/dist/chunks/cli-0.7.0-vvb9pc7x.mjs +3 -0
  214. package/dist/chunks/cli-0.7.0-vzpjsnyh.mjs +2 -0
  215. package/dist/chunks/cli-0.7.0-vzvrhx5c.mjs +2 -0
  216. package/dist/chunks/cli-0.7.0-w0nw2kkk.mjs +17 -0
  217. package/dist/chunks/cli-0.7.0-wb82h4c2.mjs +2 -0
  218. package/dist/chunks/cli-0.7.0-wf8v2b4s.mjs +15 -0
  219. package/dist/chunks/cli-0.7.0-wgy69726.mjs +2 -0
  220. package/dist/chunks/cli-0.7.0-wm0enq59.mjs +2 -0
  221. package/dist/chunks/cli-0.7.0-wntkecma.mjs +2 -0
  222. package/dist/chunks/cli-0.7.0-wspeyepj.mjs +2 -0
  223. package/dist/chunks/cli-0.7.0-wvpty7mm.mjs +2 -0
  224. package/dist/chunks/cli-0.7.0-wxynfqax.mjs +2 -0
  225. package/dist/chunks/cli-0.7.0-wzjrm1a0.mjs +2 -0
  226. package/dist/chunks/cli-0.7.0-x1xdxk52.mjs +2 -0
  227. package/dist/chunks/cli-0.7.0-x2vc8nds.mjs +2 -0
  228. package/dist/chunks/cli-0.7.0-xb864qfd.mjs +2 -0
  229. package/dist/chunks/cli-0.7.0-xfxprc47.mjs +2 -0
  230. package/dist/chunks/cli-0.7.0-xpzg1xfc.mjs +2 -0
  231. package/dist/chunks/cli-0.7.0-xvjaw51n.mjs +15 -0
  232. package/dist/chunks/cli-0.7.0-y003ay15.mjs +2 -0
  233. package/dist/chunks/cli-0.7.0-y6nkrrpn.mjs +2 -0
  234. package/dist/chunks/cli-0.7.0-ybdk9aq6.mjs +21 -0
  235. package/dist/chunks/cli-0.7.0-ybwa4x6g.mjs +2 -0
  236. package/dist/chunks/cli-0.7.0-ycew6bek.mjs +2 -0
  237. package/dist/chunks/cli-0.7.0-ye6sm33j.mjs +2 -0
  238. package/dist/chunks/cli-0.7.0-ytqbgtvc.mjs +2 -0
  239. package/dist/chunks/cli-0.7.0-yts7snkm.mjs +45 -0
  240. package/dist/chunks/cli-0.7.0-yw6r7fw4.mjs +58 -0
  241. package/dist/chunks/cli-0.7.0-z15a5zq0.mjs +2 -0
  242. package/dist/chunks/cli-0.7.0-z7sydqy8.mjs +2 -0
  243. package/dist/chunks/cli-0.7.0-z93va7tf.mjs +2 -0
  244. package/dist/chunks/cli-0.7.0-zd1q68sv.mjs +2 -0
  245. package/dist/chunks/cli-0.7.0-zdbaf370.mjs +10 -0
  246. package/dist/chunks/cli-0.7.0-zf3jaceq.mjs +2 -0
  247. package/dist/chunks/cli-0.7.0-zh93d2ez.mjs +2 -0
  248. package/dist/chunks/cli-0.7.0-zjfpqpke.mjs +1 -0
  249. package/dist/chunks/cli-0.7.0-zmfejrs2.mjs +25 -0
  250. package/dist/chunks/cli-0.7.0-zn444tdk.mjs +2 -0
  251. package/dist/chunks/cli-0.7.0-zqv149an.mjs +6 -0
  252. package/dist/chunks/cli-0.7.0-zscdr61q.mjs +2 -0
  253. package/dist/chunks/cli-0.7.0-ztc21898.mjs +2 -0
  254. package/dist/chunks/client-0.7.0-mxq1x2gd.mjs +1 -0
  255. package/dist/chunks/color-0.7.0-q8kx1h5f.mjs +1 -0
  256. package/dist/chunks/compact-0.7.0-wej8t29a.mjs +3 -0
  257. package/dist/chunks/config-0.7.0-1vqyzdss.mjs +1 -0
  258. package/dist/chunks/config-0.7.0-29b2exhr.mjs +1 -0
  259. package/dist/chunks/constants-0.7.0-cwe25jjg.mjs +1 -0
  260. package/dist/chunks/context-0.7.0-wzkh0ek3.mjs +1 -0
  261. package/dist/chunks/context-noninteractive-0.7.0-3knrv7yy.mjs +1 -0
  262. package/dist/chunks/conversation-0.7.0-5gwkat1n.mjs +1 -0
  263. package/dist/chunks/copilotHeaders-0.7.0-k7qbvwa0.mjs +1 -0
  264. package/dist/chunks/copy-0.7.0-g9547w2e.mjs +9 -0
  265. package/dist/chunks/cost-0.7.0-g07zzraf.mjs +1 -0
  266. package/dist/chunks/createSSHSession-0.7.0-x69ccesr.mjs +1 -0
  267. package/dist/chunks/createSession-0.7.0-eythrhrd.mjs +1 -0
  268. package/dist/chunks/debug-0.7.0-grf8etmz.mjs +1 -0
  269. package/dist/chunks/defaultActionDeps-0.7.0-3msvjhye.mjs +1367 -0
  270. package/dist/chunks/desktop-0.7.0-qv2bt4fq.mjs +1 -0
  271. package/dist/chunks/detectRepository-0.7.0-8kzz057x.mjs +1 -0
  272. package/dist/chunks/detection-0.7.0-d8z59p8p.mjs +1 -0
  273. package/dist/chunks/diff-0.7.0-wx4fgtnt.mjs +1 -0
  274. package/dist/chunks/doctor-0.7.0-dzm456q1.mjs +1 -0
  275. package/dist/chunks/doctorDiagnostic-0.7.0-jysj36mx.mjs +1 -0
  276. package/dist/chunks/earlyInput-0.7.0-31tzwhjp.mjs +1 -0
  277. package/dist/chunks/effort-0.7.0-w94qsmp1.mjs +10 -0
  278. package/dist/chunks/envLessBridgeConfig-0.7.0-2vzfvw7j.mjs +1 -0
  279. package/dist/chunks/envUtils-0.7.0-wak5qkkv.mjs +1 -0
  280. package/dist/chunks/environmentSelection-0.7.0-xe6h6x4v.mjs +1 -0
  281. package/dist/chunks/environments-0.7.0-cdxqsbrp.mjs +1 -0
  282. package/dist/chunks/errors-0.7.0-hrt3tamp.mjs +1 -0
  283. package/dist/chunks/exampleCommands-0.7.0-v49vtt40.mjs +1 -0
  284. package/dist/chunks/exit-0.7.0-xpc13d1z.mjs +1 -0
  285. package/dist/chunks/explorer-0.7.0-yy3jawy1.mjs +1 -0
  286. package/dist/chunks/export-0.7.0-689scwyv.mjs +2 -0
  287. package/dist/chunks/extra-usage-0.7.0-675a7x8f.mjs +1 -0
  288. package/dist/chunks/extra-usage-noninteractive-0.7.0-2h542mq6.mjs +1 -0
  289. package/dist/chunks/fast-0.7.0-dwxy8xan.mjs +1 -0
  290. package/dist/chunks/feedback-0.7.0-kms98grz.mjs +14 -0
  291. package/dist/chunks/firstPartyEventLogger-0.7.0-5gy0hbjg.mjs +1 -0
  292. package/dist/chunks/git-0.7.0-bsn50mym.mjs +1 -0
  293. package/dist/chunks/githubModelsCredentials-0.7.0-f9n1jk8g.mjs +1 -0
  294. package/dist/chunks/goal-0.7.0-ben8pbys.mjs +4 -0
  295. package/dist/chunks/grove-0.7.0-5vca5g43.mjs +1 -0
  296. package/dist/chunks/growthbook-0.7.0-ged09pjv.mjs +1 -0
  297. package/dist/chunks/headless-0.7.0-6gxn4ya0.mjs +2 -0
  298. package/dist/chunks/heapdump-0.7.0-jbnb1enq.mjs +6 -0
  299. package/dist/chunks/help-0.7.0-s11djcbq.mjs +1 -0
  300. package/dist/chunks/hookChains-0.7.0-q104805z.mjs +3 -0
  301. package/dist/chunks/hooks-0.7.0-3tzcnyt1.mjs +1 -0
  302. package/dist/chunks/hooks-0.7.0-m0qzy27a.mjs +79 -0
  303. package/dist/chunks/ide-0.7.0-rqh7pczf.mjs +3 -0
  304. package/dist/chunks/image-processor-napi-0.7.0-t874vmrb.mjs +1 -0
  305. package/dist/chunks/inboundAttachments-0.7.0-9h4k1v8p.mjs +1 -0
  306. package/dist/chunks/index-0.7.0-0pb4fykd.mjs +1 -0
  307. package/dist/chunks/index-0.7.0-339ebzg3.mjs +1 -0
  308. package/dist/chunks/index-0.7.0-3qc9y7vs.mjs +1 -0
  309. package/dist/chunks/index-0.7.0-8xaka5b5.mjs +1 -0
  310. package/dist/chunks/index-0.7.0-aghbrz36.mjs +1 -0
  311. package/dist/chunks/index-0.7.0-asx0vcnp.mjs +1 -0
  312. package/dist/chunks/index-0.7.0-at8f760s.mjs +2 -0
  313. package/dist/chunks/index-0.7.0-aw15r8m5.mjs +1 -0
  314. package/dist/chunks/index-0.7.0-b95077ct.mjs +1 -0
  315. package/dist/chunks/index-0.7.0-etmdkstm.mjs +1 -0
  316. package/dist/chunks/index-0.7.0-fhnz63fp.mjs +1 -0
  317. package/dist/chunks/index-0.7.0-fx8935ev.mjs +5 -0
  318. package/dist/chunks/index-0.7.0-hwyk7tea.mjs +30 -0
  319. package/dist/chunks/index-0.7.0-nb6m1jch.mjs +1 -0
  320. package/dist/chunks/index-0.7.0-p4n8wp5y.mjs +9 -0
  321. package/dist/chunks/index-0.7.0-rbb0bwpy.mjs +1 -0
  322. package/dist/chunks/index-0.7.0-rq05kg71.mjs +17 -0
  323. package/dist/chunks/index-0.7.0-vk7vxjae.mjs +1 -0
  324. package/dist/chunks/index-0.7.0-wjsr1d6k.mjs +2 -0
  325. package/dist/chunks/index-0.7.0-x03pfhyx.mjs +9 -0
  326. package/dist/chunks/index-0.7.0-y22a1z29.mjs +1 -0
  327. package/dist/chunks/index-0.7.0-yx3335f1.mjs +1 -0
  328. package/dist/chunks/index-0.7.0-zsw19y1x.mjs +1 -0
  329. package/dist/chunks/init-0.7.0-f0taef1q.mjs +1 -0
  330. package/dist/chunks/initReplBridge-0.7.0-wcvxy8w8.mjs +1 -0
  331. package/dist/chunks/ink-0.7.0-xpha78d8.mjs +1 -0
  332. package/dist/chunks/insights-0.7.0-x0rwvydg.mjs +870 -0
  333. package/dist/chunks/install-0.7.0-ncp2pec7.mjs +1 -0
  334. package/dist/chunks/install-github-app-0.7.0-trt9558z.mjs +149 -0
  335. package/dist/chunks/install-slack-app-0.7.0-kjz97cdh.mjs +1 -0
  336. package/dist/chunks/instrumentation-0.7.0-bey09njh.mjs +1 -0
  337. package/dist/chunks/interactiveHelpers-0.7.0-1qs1kree.mjs +1 -0
  338. package/dist/chunks/keybindings-0.7.0-ekf19qhh.mjs +2 -0
  339. package/dist/chunks/knowledge-0.7.0-adck5x26.mjs +2 -0
  340. package/dist/chunks/latestVersionCache-0.7.0-ark5pmnp.mjs +1 -0
  341. package/dist/chunks/loadAgentsDir-0.7.0-5ae7wa3t.mjs +1 -0
  342. package/dist/chunks/loadPluginHooks-0.7.0-vhwhvb6f.mjs +1 -0
  343. package/dist/chunks/loadPluginHooks-0.7.0-xb4qdrg0.mjs +1 -0
  344. package/dist/chunks/log-0.7.0-6mtk9ch7.mjs +1 -0
  345. package/dist/chunks/main-0.7.0-v0y4hrdm.mjs +1 -0
  346. package/dist/chunks/managedEnv-0.7.0-n64hpsst.mjs +1 -0
  347. package/dist/chunks/mcp-0.7.0-2j3bkwz5.mjs +1 -0
  348. package/dist/chunks/mcp-0.7.0-rqwvyycg.mjs +4 -0
  349. package/dist/chunks/mcp-0.7.0-t0pqt6hy.mjs +17 -0
  350. package/dist/chunks/mcpb-0.7.0-wmg0861b.mjs +1 -0
  351. package/dist/chunks/memory-0.7.0-gfe3p8h2.mjs +3 -0
  352. package/dist/chunks/model-0.7.0-anb8mgtp.mjs +2 -0
  353. package/dist/chunks/model-0.7.0-jxz0n7g1.mjs +1 -0
  354. package/dist/chunks/node-0.7.0-4sagcnk2.mjs +12 -0
  355. package/dist/chunks/oauth-0.7.0-n3tj8amn.mjs +1 -0
  356. package/dist/chunks/openaiShim-0.7.0-9bq5572t.mjs +14 -0
  357. package/dist/chunks/output-style-0.7.0-wmxwqrx6.mjs +1 -0
  358. package/dist/chunks/package-GCDC7LJR-0.7.0-fke68t3z.mjs +1 -0
  359. package/dist/chunks/parseConnectUrl-0.7.0-p5aq0xy4.mjs +1 -0
  360. package/dist/chunks/parser-0.7.0-a4qhvrn9.mjs +1 -0
  361. package/dist/chunks/passes-0.7.0-4wxjh63r.mjs +1 -0
  362. package/dist/chunks/permissions-0.7.0-cth9pb19.mjs +3 -0
  363. package/dist/chunks/permissions-0.7.0-nxre3gew.mjs +1 -0
  364. package/dist/chunks/plan-0.7.0-0t3hxxwf.mjs +1 -0
  365. package/dist/chunks/plist-0.7.0-ptbkp7b8.mjs +1 -0
  366. package/dist/chunks/plugin-0.7.0-4zewdh7s.mjs +29 -0
  367. package/dist/chunks/pluginStartupCheck-0.7.0-3zvpdbjz.mjs +1 -0
  368. package/dist/chunks/plugins-0.7.0-dyrrfzzb.mjs +9 -0
  369. package/dist/chunks/preActionHook-0.7.0-agzbsqyv.mjs +2 -0
  370. package/dist/chunks/print-0.7.0-m81z10rw.mjs +57 -0
  371. package/dist/chunks/privacy-settings-0.7.0-qvrhcvbv.mjs +1 -0
  372. package/dist/chunks/process-0.7.0-4rnq2g80.mjs +1 -0
  373. package/dist/chunks/processBashCommand-0.7.0-htmch7xm.mjs +1 -0
  374. package/dist/chunks/processSlashCommand-0.7.0-gj7mbd0a.mjs +9 -0
  375. package/dist/chunks/prompt-0.7.0-2d4qsrq9.mjs +1 -0
  376. package/dist/chunks/prompt-0.7.0-rkefqrwh.mjs +1 -0
  377. package/dist/chunks/prompts-0.7.0-ty3k4n75.mjs +1 -0
  378. package/dist/chunks/protocolHandler-0.7.0-aqsa4ph2.mjs +13 -0
  379. package/dist/chunks/provider-0.7.0-yw5h323y.mjs +2 -0
  380. package/dist/chunks/providerProfiles-0.7.0-vdm0m870.mjs +1 -0
  381. package/dist/chunks/providerValidation-0.7.0-rtzpgzra.mjs +6 -0
  382. package/dist/chunks/rate-limit-options-0.7.0-dqtjdpft.mjs +1 -0
  383. package/dist/chunks/registerSubcommands-0.7.0-r5wmbkz9.mjs +34 -0
  384. package/dist/chunks/registry-0.7.0-jjaxz6ve.mjs +1 -0
  385. package/dist/chunks/release-notes-0.7.0-h6me5mww.mjs +5 -0
  386. package/dist/chunks/reload-plugins-0.7.0-vtr0cnwe.mjs +2 -0
  387. package/dist/chunks/remote-env-0.7.0-h013vass.mjs +1 -0
  388. package/dist/chunks/remoteBridgeCore-0.7.0-fmh34c6f.mjs +1 -0
  389. package/dist/chunks/remoteSession-0.7.0-40yqbh78.mjs +1 -0
  390. package/dist/chunks/rename-0.7.0-wqs6kjb7.mjs +1 -0
  391. package/dist/chunks/replBridgeHandle-0.7.0-d192ahyh.mjs +1 -0
  392. package/dist/chunks/replLauncher-0.7.0-gtmcyxgm.mjs +1 -0
  393. package/dist/chunks/resume-0.7.0-6cy3j2e8.mjs +2 -0
  394. package/dist/chunks/rewind-0.7.0-kepxqnvs.mjs +1 -0
  395. package/dist/chunks/rootOptions-0.7.0-00ekm71j.mjs +1 -0
  396. package/dist/chunks/sandbox-adapter-0.7.0-env8r2gg.mjs +1 -0
  397. package/dist/chunks/sandbox-toggle-0.7.0-wk296sbw.mjs +1 -0
  398. package/dist/chunks/session-0.7.0-qbmq7k37.mjs +2 -0
  399. package/dist/chunks/sessionDiscovery-0.7.0-xf03hmpk.mjs +1 -0
  400. package/dist/chunks/sessionFileAccessHooks-0.7.0-gw8qw3zp.mjs +1 -0
  401. package/dist/chunks/sessionStorage-0.7.0-vcyz3dw7.mjs +1 -0
  402. package/dist/chunks/settings-0.7.0-3k9dr8ys.mjs +1 -0
  403. package/dist/chunks/setup-0.7.0-9ync2tk7.mjs +5 -0
  404. package/dist/chunks/sinks-0.7.0-g1bwkwh0.mjs +1 -0
  405. package/dist/chunks/skills-0.7.0-hjdx42cr.mjs +1 -0
  406. package/dist/chunks/startupProfiler-0.7.0-b32wtvbf.mjs +1 -0
  407. package/dist/chunks/startupUpdateCheck-0.7.0-m55han8a.mjs +1 -0
  408. package/dist/chunks/state-0.7.0-g9nbt1zn.mjs +1 -0
  409. package/dist/chunks/stats-0.7.0-429ntw0k.mjs +6 -0
  410. package/dist/chunks/status-0.7.0-h19n5a31.mjs +1 -0
  411. package/dist/chunks/stickers-0.7.0-q34hs61c.mjs +1 -0
  412. package/dist/chunks/subprocessEnv-0.7.0-gz4xjdce.mjs +1 -0
  413. package/dist/chunks/tasks-0.7.0-e2rrgr6x.mjs +1 -0
  414. package/dist/chunks/teamHelpers-0.7.0-jss9q0ak.mjs +1 -0
  415. package/dist/chunks/teammateModeSnapshot-0.7.0-c7ekrdae.mjs +1 -0
  416. package/dist/chunks/teleport-0.7.0-n0h6pqs8.mjs +1 -0
  417. package/dist/chunks/terminalSetup-0.7.0-ycw8nd2k.mjs +1 -0
  418. package/dist/chunks/theme-0.7.0-2dzcdk7a.mjs +1 -0
  419. package/dist/chunks/thinkback-0.7.0-9xhfd6ab.mjs +1 -0
  420. package/dist/chunks/thinkback-play-0.7.0-yqj7b8tt.mjs +1 -0
  421. package/dist/chunks/toolPool-0.7.0-xes3fby4.mjs +1 -0
  422. package/dist/chunks/toolSearch-0.7.0-wkaae53k.mjs +1 -0
  423. package/dist/chunks/tools-0.7.0-7qjq03x9.mjs +1 -0
  424. package/dist/chunks/trustedDevice-0.7.0-0jcs8sag.mjs +1 -0
  425. package/dist/chunks/turndown.cjs-0.7.0-evvr9k3e.mjs +69 -0
  426. package/dist/chunks/types-0.7.0-7t30qdm7.mjs +1 -0
  427. package/dist/chunks/ultrareviewCommand-0.7.0-mt2gyqrs.mjs +4 -0
  428. package/dist/chunks/update-0.7.0-d79xsjyx.mjs +86 -0
  429. package/dist/chunks/upgrade-0.7.0-29j99fm4.mjs +1 -0
  430. package/dist/chunks/upload-0.7.0-c88xwfr6.mjs +7 -0
  431. package/dist/chunks/upstreamproxy-0.7.0-qha2t9zm.mjs +14 -0
  432. package/dist/chunks/url-handler-napi-0.7.0-d2khwe8w.mjs +1 -0
  433. package/dist/chunks/usage-0.7.0-fz211dwp.mjs +1 -0
  434. package/dist/chunks/util-0.7.0-kre9h9qa.mjs +1 -0
  435. package/dist/chunks/utils-0.7.0-vw4eq452.mjs +1 -0
  436. package/dist/chunks/vim-0.7.0-2tzpxf7d.mjs +1 -0
  437. package/dist/chunks/watcher-0.7.0-dbb0csvt.mjs +1 -0
  438. package/dist/chunks/wiki-0.7.0-etkhyz2p.mjs +132 -0
  439. package/dist/chunks/worktree-0.7.0-ntn0xdnq.mjs +1 -0
  440. package/dist/chunks/worktreeModeEnabled-0.7.0-h5ak3bk5.mjs +1 -0
  441. package/dist/chunks/wrapper-0.7.0-zvn0r75t.mjs +7 -0
  442. package/dist/claudin-vscode.vsix +0 -0
  443. package/dist/cli.mjs +2 -2
  444. package/package.json +14 -14
  445. package/dist/chunks/AgentTool-0.6.13-372t6jvm.mjs +0 -1
  446. package/dist/chunks/App-0.6.13-qvfyfba9.mjs +0 -1
  447. package/dist/chunks/ApproveApiKey-0.6.13-6nmfyyev.mjs +0 -1
  448. package/dist/chunks/AssistantSessionChooser-0.6.13-b6yfhres.mjs +0 -1
  449. package/dist/chunks/AutoModeOptInDialog-0.6.13-dyqtw95c.mjs +0 -1
  450. package/dist/chunks/BypassPermissionsModeDialog-0.6.13-5pgva0rj.mjs +0 -1
  451. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.13-waw1tn55.mjs +0 -1
  452. package/dist/chunks/ConsoleOAuthFlow-0.6.13-hjwa1fbn.mjs +0 -1
  453. package/dist/chunks/DiffDialog-0.6.13-dk52swdy.mjs +0 -7
  454. package/dist/chunks/Doctor-0.6.13-1a58bmer.mjs +0 -1
  455. package/dist/chunks/ExplorerDialog-0.6.13-2jsr1kdp.mjs +0 -6
  456. package/dist/chunks/Grove-0.6.13-ndwmcy2m.mjs +0 -1
  457. package/dist/chunks/ITermBackend-0.6.13-nf00ba9t.mjs +0 -1
  458. package/dist/chunks/InvalidConfigDialog-0.6.13-5tjcywmj.mjs +0 -1
  459. package/dist/chunks/InvalidSettingsDialog-0.6.13-hfvttszy.mjs +0 -1
  460. package/dist/chunks/MigrationDialog-0.6.13-8kny4cnv.mjs +0 -1
  461. package/dist/chunks/Onboarding-0.6.13-kq8ksp1e.mjs +0 -1
  462. package/dist/chunks/ProviderManager-0.6.13-qk3hqkes.mjs +0 -1
  463. package/dist/chunks/REPL-0.6.13-61en5qve.mjs +0 -1
  464. package/dist/chunks/ResumeConversation-0.6.13-3fqxexjm.mjs +0 -1
  465. package/dist/chunks/SnapshotUpdateDialog-0.6.13-62cd6tth.mjs +0 -1
  466. package/dist/chunks/TeleportProgress-0.6.13-15xb363h.mjs +0 -1
  467. package/dist/chunks/TeleportRepoMismatchDialog-0.6.13-dsedgexe.mjs +0 -1
  468. package/dist/chunks/TeleportResumeWrapper-0.6.13-9j8hn55r.mjs +0 -1
  469. package/dist/chunks/TmuxBackend-0.6.13-8vwnn7q5.mjs +0 -9
  470. package/dist/chunks/ToolSearchTool-0.6.13-zh1xxj19.mjs +0 -1
  471. package/dist/chunks/TrustDialog-0.6.13-bxhrfq4g.mjs +0 -1
  472. package/dist/chunks/activeProvider-0.6.13-czzs1epn.mjs +0 -1
  473. package/dist/chunks/add-dir-0.6.13-j5n5k274.mjs +0 -1
  474. package/dist/chunks/agents-0.6.13-0m0b4n5a.mjs +0 -3
  475. package/dist/chunks/agents-0.6.13-v7mba2z1.mjs +0 -110
  476. package/dist/chunks/api-0.6.13-1s3mg09p.mjs +0 -1
  477. package/dist/chunks/asciicast-0.6.13-3mbwg05w.mjs +0 -1
  478. package/dist/chunks/assistant-0.6.13-bg17bbaf.mjs +0 -1
  479. package/dist/chunks/auth-0.6.13-586trvnj.mjs +0 -1
  480. package/dist/chunks/auth-0.6.13-jkzs3jr4.mjs +0 -1
  481. package/dist/chunks/autoMode-0.6.13-9sxgpw8z.mjs +0 -48
  482. package/dist/chunks/autoUpdater-0.6.13-0rtsfmyq.mjs +0 -1
  483. package/dist/chunks/backgroundHousekeeping-0.6.13-dfn3gpk2.mjs +0 -1
  484. package/dist/chunks/branch-0.6.13-nncg27cq.mjs +0 -4
  485. package/dist/chunks/bridge-0.6.13-p1vtbdeq.mjs +0 -2
  486. package/dist/chunks/bridgeConfig-0.6.13-99p1h4gg.mjs +0 -1
  487. package/dist/chunks/bridgeEnabled-0.6.13-jxfgwjry.mjs +0 -1
  488. package/dist/chunks/bridgeMain-0.6.13-fthkw7s3.mjs +0 -88
  489. package/dist/chunks/bridgePointer-0.6.13-zs37h6xx.mjs +0 -1
  490. package/dist/chunks/btw-0.6.13-hhztcxbv.mjs +0 -1
  491. package/dist/chunks/buddy-0.6.13-0j9feqm5.mjs +0 -3
  492. package/dist/chunks/cacache-0.6.13-kqpn2432.mjs +0 -1
  493. package/dist/chunks/cache-probe-0.6.13-d98620ds.mjs +0 -21
  494. package/dist/chunks/cacheStats-0.6.13-yktwg0rm.mjs +0 -4
  495. package/dist/chunks/caches-0.6.13-5s0az6ex.mjs +0 -1
  496. package/dist/chunks/claudeDesktop-0.6.13-ecqnvr2j.mjs +0 -1
  497. package/dist/chunks/claudemd-0.6.13-yae0af2s.mjs +0 -1
  498. package/dist/chunks/clear-0.6.13-nqy8a9yn.mjs +0 -1
  499. package/dist/chunks/clearTerminal-0.6.13-72xf6n5m.mjs +0 -1
  500. package/dist/chunks/cli-0.6.13-004msxtb.mjs +0 -2
  501. package/dist/chunks/cli-0.6.13-03nk0m3d.mjs +0 -24
  502. package/dist/chunks/cli-0.6.13-05yxsqtw.mjs +0 -2
  503. package/dist/chunks/cli-0.6.13-0602v59h.mjs +0 -2
  504. package/dist/chunks/cli-0.6.13-0fqa9efa.mjs +0 -2
  505. package/dist/chunks/cli-0.6.13-0k53jyws.mjs +0 -2
  506. package/dist/chunks/cli-0.6.13-0q2ceerc.mjs +0 -2
  507. package/dist/chunks/cli-0.6.13-0xg54q0q.mjs +0 -3
  508. package/dist/chunks/cli-0.6.13-15925v1q.mjs +0 -2
  509. package/dist/chunks/cli-0.6.13-17fmkp6v.mjs +0 -3
  510. package/dist/chunks/cli-0.6.13-1ax2v1qb.mjs +0 -24
  511. package/dist/chunks/cli-0.6.13-1hj4de9z.mjs +0 -18
  512. package/dist/chunks/cli-0.6.13-1jhzkjnr.mjs +0 -2
  513. package/dist/chunks/cli-0.6.13-1pb6yp4f.mjs +0 -2
  514. package/dist/chunks/cli-0.6.13-27ey3345.mjs +0 -17
  515. package/dist/chunks/cli-0.6.13-2999v1f0.mjs +0 -5
  516. package/dist/chunks/cli-0.6.13-2d7gmnka.mjs +0 -2
  517. package/dist/chunks/cli-0.6.13-2k50jqzf.mjs +0 -2
  518. package/dist/chunks/cli-0.6.13-2s33ahe4.mjs +0 -5420
  519. package/dist/chunks/cli-0.6.13-31zhsxsz.mjs +0 -2
  520. package/dist/chunks/cli-0.6.13-35rszksn.mjs +0 -2
  521. package/dist/chunks/cli-0.6.13-3812a7q8.mjs +0 -34
  522. package/dist/chunks/cli-0.6.13-3c8w16xp.mjs +0 -3
  523. package/dist/chunks/cli-0.6.13-3w1r3c0v.mjs +0 -2
  524. package/dist/chunks/cli-0.6.13-45x35nyh.mjs +0 -2
  525. package/dist/chunks/cli-0.6.13-46hqxeb7.mjs +0 -2
  526. package/dist/chunks/cli-0.6.13-4hknb5dd.mjs +0 -2
  527. package/dist/chunks/cli-0.6.13-50wr9g3w.mjs +0 -2
  528. package/dist/chunks/cli-0.6.13-56b3061c.mjs +0 -18
  529. package/dist/chunks/cli-0.6.13-56j5q7d2.mjs +0 -42
  530. package/dist/chunks/cli-0.6.13-5gh7ptbm.mjs +0 -4
  531. package/dist/chunks/cli-0.6.13-5qvssn7h.mjs +0 -2
  532. package/dist/chunks/cli-0.6.13-5t9gd5mv.mjs +0 -2
  533. package/dist/chunks/cli-0.6.13-643zsnv9.mjs +0 -2
  534. package/dist/chunks/cli-0.6.13-667dsr1w.mjs +0 -2
  535. package/dist/chunks/cli-0.6.13-77hs0qtg.mjs +0 -2
  536. package/dist/chunks/cli-0.6.13-79mne5jt.mjs +0 -2
  537. package/dist/chunks/cli-0.6.13-7c9n56f7.mjs +0 -2
  538. package/dist/chunks/cli-0.6.13-7ga8d4j1.mjs +0 -2
  539. package/dist/chunks/cli-0.6.13-7pva2mmr.mjs +0 -3
  540. package/dist/chunks/cli-0.6.13-7vd0kdw5.mjs +0 -2
  541. package/dist/chunks/cli-0.6.13-82datd4w.mjs +0 -2
  542. package/dist/chunks/cli-0.6.13-86pqnjyd.mjs +0 -2
  543. package/dist/chunks/cli-0.6.13-881js45c.mjs +0 -2
  544. package/dist/chunks/cli-0.6.13-8t0ttrk7.mjs +0 -2
  545. package/dist/chunks/cli-0.6.13-8ws8a2xy.mjs +0 -3
  546. package/dist/chunks/cli-0.6.13-949racwr.mjs +0 -7
  547. package/dist/chunks/cli-0.6.13-94nwan0d.mjs +0 -2
  548. package/dist/chunks/cli-0.6.13-97cs7c2r.mjs +0 -2
  549. package/dist/chunks/cli-0.6.13-9h9fp7zs.mjs +0 -2
  550. package/dist/chunks/cli-0.6.13-9wktvaax.mjs +0 -50
  551. package/dist/chunks/cli-0.6.13-ac8nyfp1.mjs +0 -58
  552. package/dist/chunks/cli-0.6.13-aekttw5a.mjs +0 -2
  553. package/dist/chunks/cli-0.6.13-ajc8203j.mjs +0 -2
  554. package/dist/chunks/cli-0.6.13-axsf5w7q.mjs +0 -2
  555. package/dist/chunks/cli-0.6.13-aztg2ca1.mjs +0 -2
  556. package/dist/chunks/cli-0.6.13-b3zncvcq.mjs +0 -16
  557. package/dist/chunks/cli-0.6.13-b55baxv4.mjs +0 -2
  558. package/dist/chunks/cli-0.6.13-bthkgbv5.mjs +0 -2
  559. package/dist/chunks/cli-0.6.13-c3452432.mjs +0 -5
  560. package/dist/chunks/cli-0.6.13-cc118njq.mjs +0 -2
  561. package/dist/chunks/cli-0.6.13-cc2eb8bm.mjs +0 -2
  562. package/dist/chunks/cli-0.6.13-cwm0q4km.mjs +0 -2
  563. package/dist/chunks/cli-0.6.13-cxnnt8b1.mjs +0 -2
  564. package/dist/chunks/cli-0.6.13-d2rfg5mp.mjs +0 -2
  565. package/dist/chunks/cli-0.6.13-da6fhpes.mjs +0 -133
  566. package/dist/chunks/cli-0.6.13-dada1afp.mjs +0 -6
  567. package/dist/chunks/cli-0.6.13-dayy1aa4.mjs +0 -2
  568. package/dist/chunks/cli-0.6.13-dh1skxhh.mjs +0 -2
  569. package/dist/chunks/cli-0.6.13-dvfmqzm9.mjs +0 -2
  570. package/dist/chunks/cli-0.6.13-e1t2dda2.mjs +0 -2
  571. package/dist/chunks/cli-0.6.13-ea52zrzt.mjs +0 -2
  572. package/dist/chunks/cli-0.6.13-eaev9cr7.mjs +0 -2
  573. package/dist/chunks/cli-0.6.13-erzcm5hv.mjs +0 -2
  574. package/dist/chunks/cli-0.6.13-esv4y00y.mjs +0 -2
  575. package/dist/chunks/cli-0.6.13-etytm730.mjs +0 -2
  576. package/dist/chunks/cli-0.6.13-ew05qjsa.mjs +0 -4
  577. package/dist/chunks/cli-0.6.13-f58v0vk7.mjs +0 -6
  578. package/dist/chunks/cli-0.6.13-f67v536f.mjs +0 -59
  579. package/dist/chunks/cli-0.6.13-f6qwz2h0.mjs +0 -2
  580. package/dist/chunks/cli-0.6.13-fkaxh655.mjs +0 -2
  581. package/dist/chunks/cli-0.6.13-fspszw8w.mjs +0 -2
  582. package/dist/chunks/cli-0.6.13-fw6m0fbm.mjs +0 -10
  583. package/dist/chunks/cli-0.6.13-fxj1zytn.mjs +0 -2
  584. package/dist/chunks/cli-0.6.13-fy3vgkpz.mjs +0 -2
  585. package/dist/chunks/cli-0.6.13-fzzdrhms.mjs +0 -4
  586. package/dist/chunks/cli-0.6.13-g65dfg11.mjs +0 -6
  587. package/dist/chunks/cli-0.6.13-gkfcc3c2.mjs +0 -2
  588. package/dist/chunks/cli-0.6.13-gpb93cvz.mjs +0 -2
  589. package/dist/chunks/cli-0.6.13-grrshx1z.mjs +0 -2
  590. package/dist/chunks/cli-0.6.13-gsfs6kre.mjs +0 -2
  591. package/dist/chunks/cli-0.6.13-gyq9mepg.mjs +0 -2
  592. package/dist/chunks/cli-0.6.13-h3ymv3nd.mjs +0 -2
  593. package/dist/chunks/cli-0.6.13-h5dej6se.mjs +0 -3
  594. package/dist/chunks/cli-0.6.13-hd0sd535.mjs +0 -193
  595. package/dist/chunks/cli-0.6.13-hp0r1ftj.mjs +0 -12
  596. package/dist/chunks/cli-0.6.13-hx71w6e6.mjs +0 -3
  597. package/dist/chunks/cli-0.6.13-hxfvksxq.mjs +0 -2
  598. package/dist/chunks/cli-0.6.13-j6mr3jmk.mjs +0 -4
  599. package/dist/chunks/cli-0.6.13-jhhmjq66.mjs +0 -133
  600. package/dist/chunks/cli-0.6.13-jjx7jq0w.mjs +0 -2
  601. package/dist/chunks/cli-0.6.13-jmzvtd06.mjs +0 -2
  602. package/dist/chunks/cli-0.6.13-jrdsk8wb.mjs +0 -3
  603. package/dist/chunks/cli-0.6.13-k0kyv254.mjs +0 -2
  604. package/dist/chunks/cli-0.6.13-kd5h1s1s.mjs +0 -2
  605. package/dist/chunks/cli-0.6.13-kdm4832x.mjs +0 -2
  606. package/dist/chunks/cli-0.6.13-kekrwb08.mjs +0 -45
  607. package/dist/chunks/cli-0.6.13-kmg491hy.mjs +0 -2
  608. package/dist/chunks/cli-0.6.13-kqq5n5q3.mjs +0 -12
  609. package/dist/chunks/cli-0.6.13-kxjmrbfd.mjs +0 -3
  610. package/dist/chunks/cli-0.6.13-m4pb5k9v.mjs +0 -2
  611. package/dist/chunks/cli-0.6.13-me17wefv.mjs +0 -2
  612. package/dist/chunks/cli-0.6.13-mreqrsw2.mjs +0 -2
  613. package/dist/chunks/cli-0.6.13-mt7jkjdp.mjs +0 -39
  614. package/dist/chunks/cli-0.6.13-mxr0y1kd.mjs +0 -2
  615. package/dist/chunks/cli-0.6.13-n4qwe0a1.mjs +0 -2
  616. package/dist/chunks/cli-0.6.13-n67mrj2g.mjs +0 -15
  617. package/dist/chunks/cli-0.6.13-n9fz7y3a.mjs +0 -4
  618. package/dist/chunks/cli-0.6.13-nqd696hv.mjs +0 -2
  619. package/dist/chunks/cli-0.6.13-nvcr131g.mjs +0 -4
  620. package/dist/chunks/cli-0.6.13-p02kfjzd.mjs +0 -8
  621. package/dist/chunks/cli-0.6.13-p2k33k0d.mjs +0 -2
  622. package/dist/chunks/cli-0.6.13-p5xafpx4.mjs +0 -3
  623. package/dist/chunks/cli-0.6.13-pa4yv2ra.mjs +0 -2
  624. package/dist/chunks/cli-0.6.13-pbk4h5n3.mjs +0 -3
  625. package/dist/chunks/cli-0.6.13-pezf5r7h.mjs +0 -2
  626. package/dist/chunks/cli-0.6.13-pmwrb4jf.mjs +0 -2
  627. package/dist/chunks/cli-0.6.13-prh9py3z.mjs +0 -2
  628. package/dist/chunks/cli-0.6.13-pyh5s43x.mjs +0 -2
  629. package/dist/chunks/cli-0.6.13-q161snt1.mjs +0 -2
  630. package/dist/chunks/cli-0.6.13-q2ssb82w.mjs +0 -2
  631. package/dist/chunks/cli-0.6.13-q4spcjyn.mjs +0 -2
  632. package/dist/chunks/cli-0.6.13-q8qzja14.mjs +0 -2
  633. package/dist/chunks/cli-0.6.13-qbn7xx3z.mjs +0 -2
  634. package/dist/chunks/cli-0.6.13-qemvn3t7.mjs +0 -4
  635. package/dist/chunks/cli-0.6.13-qfh8s56n.mjs +0 -2
  636. package/dist/chunks/cli-0.6.13-qj9zpvjy.mjs +0 -2
  637. package/dist/chunks/cli-0.6.13-qtea9rcg.mjs +0 -2
  638. package/dist/chunks/cli-0.6.13-qyd73z97.mjs +0 -2
  639. package/dist/chunks/cli-0.6.13-r043ksv1.mjs +0 -1
  640. package/dist/chunks/cli-0.6.13-r1exgbp8.mjs +0 -4
  641. package/dist/chunks/cli-0.6.13-r2w3m6g9.mjs +0 -2
  642. package/dist/chunks/cli-0.6.13-r4z5mchw.mjs +0 -2
  643. package/dist/chunks/cli-0.6.13-r7gkf1df.mjs +0 -2
  644. package/dist/chunks/cli-0.6.13-rkm2drsy.mjs +0 -6
  645. package/dist/chunks/cli-0.6.13-s2vxndky.mjs +0 -2
  646. package/dist/chunks/cli-0.6.13-s3r638fw.mjs +0 -2
  647. package/dist/chunks/cli-0.6.13-s9rv2pr3.mjs +0 -4
  648. package/dist/chunks/cli-0.6.13-sa8gmxxv.mjs +0 -3
  649. package/dist/chunks/cli-0.6.13-t5bkdhfz.mjs +0 -2
  650. package/dist/chunks/cli-0.6.13-tbg0cceg.mjs +0 -15
  651. package/dist/chunks/cli-0.6.13-tecj2x0d.mjs +0 -2
  652. package/dist/chunks/cli-0.6.13-tfaydn5r.mjs +0 -2
  653. package/dist/chunks/cli-0.6.13-tj2kvtza.mjs +0 -2
  654. package/dist/chunks/cli-0.6.13-tss2yk53.mjs +0 -2
  655. package/dist/chunks/cli-0.6.13-tvy6tmhe.mjs +0 -2
  656. package/dist/chunks/cli-0.6.13-tyd40vcz.mjs +0 -2
  657. package/dist/chunks/cli-0.6.13-tzsj5e1c.mjs +0 -17
  658. package/dist/chunks/cli-0.6.13-v05nfcar.mjs +0 -2
  659. package/dist/chunks/cli-0.6.13-v160yjcc.mjs +0 -2
  660. package/dist/chunks/cli-0.6.13-v2vt3snq.mjs +0 -2
  661. package/dist/chunks/cli-0.6.13-v7kg9gbp.mjs +0 -2
  662. package/dist/chunks/cli-0.6.13-v824ppa4.mjs +0 -3
  663. package/dist/chunks/cli-0.6.13-v83qp6b0.mjs +0 -2
  664. package/dist/chunks/cli-0.6.13-v8ksdm64.mjs +0 -2
  665. package/dist/chunks/cli-0.6.13-vkbwqnxx.mjs +0 -2
  666. package/dist/chunks/cli-0.6.13-vv2qqj0d.mjs +0 -2
  667. package/dist/chunks/cli-0.6.13-vxq8z40t.mjs +0 -2
  668. package/dist/chunks/cli-0.6.13-w039mymy.mjs +0 -2
  669. package/dist/chunks/cli-0.6.13-w0qrn825.mjs +0 -2
  670. package/dist/chunks/cli-0.6.13-w1jqswyq.mjs +0 -2
  671. package/dist/chunks/cli-0.6.13-w91d8mwx.mjs +0 -2
  672. package/dist/chunks/cli-0.6.13-waf5mvv3.mjs +0 -5
  673. package/dist/chunks/cli-0.6.13-wer1zp9j.mjs +0 -20
  674. package/dist/chunks/cli-0.6.13-wtc8585b.mjs +0 -2
  675. package/dist/chunks/cli-0.6.13-x28t8s6n.mjs +0 -2
  676. package/dist/chunks/cli-0.6.13-xc81kqm2.mjs +0 -2
  677. package/dist/chunks/cli-0.6.13-xdedyafk.mjs +0 -12
  678. package/dist/chunks/cli-0.6.13-xf37gba3.mjs +0 -21
  679. package/dist/chunks/cli-0.6.13-xkw3qe38.mjs +0 -2
  680. package/dist/chunks/cli-0.6.13-xpjrhgmy.mjs +0 -2
  681. package/dist/chunks/cli-0.6.13-y1j0jnkt.mjs +0 -2
  682. package/dist/chunks/cli-0.6.13-y20earfr.mjs +0 -2
  683. package/dist/chunks/cli-0.6.13-y4v6kta5.mjs +0 -2
  684. package/dist/chunks/cli-0.6.13-y6xnb20z.mjs +0 -28
  685. package/dist/chunks/cli-0.6.13-y8bhbkcr.mjs +0 -2
  686. package/dist/chunks/cli-0.6.13-yamxpaqw.mjs +0 -67
  687. package/dist/chunks/cli-0.6.13-ykg1yrfj.mjs +0 -2
  688. package/dist/chunks/cli-0.6.13-yrjy4at4.mjs +0 -2
  689. package/dist/chunks/cli-0.6.13-ytn0a18c.mjs +0 -2
  690. package/dist/chunks/cli-0.6.13-ywdbvmgd.mjs +0 -2
  691. package/dist/chunks/cli-0.6.13-z8s5yfv6.mjs +0 -9
  692. package/dist/chunks/cli-0.6.13-zcy8dsbx.mjs +0 -25
  693. package/dist/chunks/cli-0.6.13-zd9jp62z.mjs +0 -15
  694. package/dist/chunks/cli-0.6.13-ze0ah657.mjs +0 -4
  695. package/dist/chunks/cli-0.6.13-zktd03aq.mjs +0 -2
  696. package/dist/chunks/cli-0.6.13-zw3t7bxg.mjs +0 -2
  697. package/dist/chunks/client-0.6.13-apag8p3w.mjs +0 -1
  698. package/dist/chunks/color-0.6.13-m7e3xes9.mjs +0 -1
  699. package/dist/chunks/compact-0.6.13-064k380y.mjs +0 -3
  700. package/dist/chunks/config-0.6.13-2gskfa7r.mjs +0 -1
  701. package/dist/chunks/config-0.6.13-m7tbch3j.mjs +0 -1
  702. package/dist/chunks/constants-0.6.13-bq183whd.mjs +0 -1
  703. package/dist/chunks/context-0.6.13-4jm66js8.mjs +0 -1
  704. package/dist/chunks/context-noninteractive-0.6.13-2c2pa7c4.mjs +0 -1
  705. package/dist/chunks/conversation-0.6.13-gb8qd0a6.mjs +0 -1
  706. package/dist/chunks/copilotHeaders-0.6.13-sdz00vtr.mjs +0 -1
  707. package/dist/chunks/copy-0.6.13-11ksdws3.mjs +0 -9
  708. package/dist/chunks/cost-0.6.13-ht9hjse5.mjs +0 -1
  709. package/dist/chunks/createSSHSession-0.6.13-9nj8wxrq.mjs +0 -1
  710. package/dist/chunks/createSession-0.6.13-zx0ak0ar.mjs +0 -1
  711. package/dist/chunks/debug-0.6.13-1b2b2vfp.mjs +0 -1
  712. package/dist/chunks/defaultActionDeps-0.6.13-4ypccnwe.mjs +0 -1367
  713. package/dist/chunks/desktop-0.6.13-5jae65dg.mjs +0 -1
  714. package/dist/chunks/detectRepository-0.6.13-e3va8684.mjs +0 -1
  715. package/dist/chunks/detection-0.6.13-5kdd4ryt.mjs +0 -1
  716. package/dist/chunks/diff-0.6.13-3qr723e3.mjs +0 -1
  717. package/dist/chunks/doctor-0.6.13-ykby6vex.mjs +0 -1
  718. package/dist/chunks/doctorDiagnostic-0.6.13-m5tnyxr2.mjs +0 -1
  719. package/dist/chunks/earlyInput-0.6.13-e90ax06h.mjs +0 -1
  720. package/dist/chunks/effort-0.6.13-tqkv5tt7.mjs +0 -10
  721. package/dist/chunks/envLessBridgeConfig-0.6.13-m8pp5emf.mjs +0 -1
  722. package/dist/chunks/envUtils-0.6.13-6q29pewb.mjs +0 -1
  723. package/dist/chunks/environmentSelection-0.6.13-ajfa3pm0.mjs +0 -1
  724. package/dist/chunks/environments-0.6.13-gpjjpygt.mjs +0 -1
  725. package/dist/chunks/errors-0.6.13-amqhpv1w.mjs +0 -1
  726. package/dist/chunks/exampleCommands-0.6.13-yscjfr02.mjs +0 -1
  727. package/dist/chunks/exit-0.6.13-aex1mh9r.mjs +0 -1
  728. package/dist/chunks/explorer-0.6.13-g670396m.mjs +0 -1
  729. package/dist/chunks/export-0.6.13-zytxcpn5.mjs +0 -2
  730. package/dist/chunks/extra-usage-0.6.13-js9s3mpg.mjs +0 -1
  731. package/dist/chunks/extra-usage-noninteractive-0.6.13-1y21hfpz.mjs +0 -1
  732. package/dist/chunks/fast-0.6.13-eqx76m6v.mjs +0 -1
  733. package/dist/chunks/feedback-0.6.13-b2yh5zgv.mjs +0 -14
  734. package/dist/chunks/firstPartyEventLogger-0.6.13-29x54d6r.mjs +0 -1
  735. package/dist/chunks/git-0.6.13-r45r70q4.mjs +0 -1
  736. package/dist/chunks/githubModelsCredentials-0.6.13-3saqxp80.mjs +0 -1
  737. package/dist/chunks/goal-0.6.13-jm5f9y8r.mjs +0 -4
  738. package/dist/chunks/grove-0.6.13-9vr9ry8t.mjs +0 -1
  739. package/dist/chunks/growthbook-0.6.13-r6367yym.mjs +0 -1
  740. package/dist/chunks/headless-0.6.13-gfageb5h.mjs +0 -2
  741. package/dist/chunks/heapdump-0.6.13-m8g832m5.mjs +0 -6
  742. package/dist/chunks/help-0.6.13-781b4zzf.mjs +0 -1
  743. package/dist/chunks/hookChains-0.6.13-ztaa33k2.mjs +0 -3
  744. package/dist/chunks/hooks-0.6.13-2vp3h6tg.mjs +0 -1
  745. package/dist/chunks/hooks-0.6.13-ma0g96bd.mjs +0 -79
  746. package/dist/chunks/ide-0.6.13-ev74eqfz.mjs +0 -3
  747. package/dist/chunks/image-processor-napi-0.6.13-1yfk6729.mjs +0 -1
  748. package/dist/chunks/inboundAttachments-0.6.13-15y4n0ap.mjs +0 -1
  749. package/dist/chunks/index-0.6.13-22g8yp33.mjs +0 -1
  750. package/dist/chunks/index-0.6.13-3d9rd6ba.mjs +0 -1
  751. package/dist/chunks/index-0.6.13-3yrze12y.mjs +0 -2
  752. package/dist/chunks/index-0.6.13-4mx71hjt.mjs +0 -2
  753. package/dist/chunks/index-0.6.13-68g8rnf9.mjs +0 -1
  754. package/dist/chunks/index-0.6.13-6t8yz88d.mjs +0 -1
  755. package/dist/chunks/index-0.6.13-af1dgcmj.mjs +0 -1
  756. package/dist/chunks/index-0.6.13-afmvxwx2.mjs +0 -1
  757. package/dist/chunks/index-0.6.13-by0wfak3.mjs +0 -9
  758. package/dist/chunks/index-0.6.13-cx9jy8c2.mjs +0 -1
  759. package/dist/chunks/index-0.6.13-fd4kgsd2.mjs +0 -1
  760. package/dist/chunks/index-0.6.13-jte6phkv.mjs +0 -1
  761. package/dist/chunks/index-0.6.13-m632g3gy.mjs +0 -1
  762. package/dist/chunks/index-0.6.13-mwpm4arf.mjs +0 -5
  763. package/dist/chunks/index-0.6.13-nwvcwdkk.mjs +0 -30
  764. package/dist/chunks/index-0.6.13-nwy6gtkk.mjs +0 -1
  765. package/dist/chunks/index-0.6.13-ptnyngf8.mjs +0 -1
  766. package/dist/chunks/index-0.6.13-q3shbg14.mjs +0 -1
  767. package/dist/chunks/index-0.6.13-qbgadtxv.mjs +0 -1
  768. package/dist/chunks/index-0.6.13-sv4q66cp.mjs +0 -1
  769. package/dist/chunks/index-0.6.13-waxz0ekk.mjs +0 -1
  770. package/dist/chunks/index-0.6.13-why7ggz3.mjs +0 -9
  771. package/dist/chunks/index-0.6.13-y16k48ab.mjs +0 -1
  772. package/dist/chunks/init-0.6.13-4hnytb22.mjs +0 -1
  773. package/dist/chunks/initReplBridge-0.6.13-7zgngybp.mjs +0 -1
  774. package/dist/chunks/ink-0.6.13-tzqbb17q.mjs +0 -1
  775. package/dist/chunks/insights-0.6.13-jydg844c.mjs +0 -870
  776. package/dist/chunks/install-0.6.13-n2sd9y79.mjs +0 -1
  777. package/dist/chunks/install-github-app-0.6.13-e0f07703.mjs +0 -149
  778. package/dist/chunks/install-slack-app-0.6.13-bf4yjq6t.mjs +0 -1
  779. package/dist/chunks/instrumentation-0.6.13-adfxdg5f.mjs +0 -1
  780. package/dist/chunks/interactiveHelpers-0.6.13-xp328y9v.mjs +0 -1
  781. package/dist/chunks/keybindings-0.6.13-ktc3mjr7.mjs +0 -2
  782. package/dist/chunks/knowledge-0.6.13-187esqxd.mjs +0 -2
  783. package/dist/chunks/latestVersionCache-0.6.13-m4bhcjqa.mjs +0 -1
  784. package/dist/chunks/loadAgentsDir-0.6.13-6zpt11ke.mjs +0 -1
  785. package/dist/chunks/loadPluginHooks-0.6.13-828skfe0.mjs +0 -1
  786. package/dist/chunks/loadPluginHooks-0.6.13-aft854e2.mjs +0 -1
  787. package/dist/chunks/log-0.6.13-k8w72xt1.mjs +0 -1
  788. package/dist/chunks/main-0.6.13-g9fjc6sv.mjs +0 -1
  789. package/dist/chunks/managedEnv-0.6.13-gqrx16t7.mjs +0 -1
  790. package/dist/chunks/mcp-0.6.13-dyg98wmq.mjs +0 -1
  791. package/dist/chunks/mcp-0.6.13-mzkm1215.mjs +0 -4
  792. package/dist/chunks/mcp-0.6.13-zkt6y77x.mjs +0 -17
  793. package/dist/chunks/mcpb-0.6.13-dre8w2ra.mjs +0 -1
  794. package/dist/chunks/memory-0.6.13-atsckryz.mjs +0 -3
  795. package/dist/chunks/model-0.6.13-0atttv57.mjs +0 -1
  796. package/dist/chunks/model-0.6.13-2jvx0cgc.mjs +0 -2
  797. package/dist/chunks/node-0.6.13-x2bbeer9.mjs +0 -12
  798. package/dist/chunks/oauth-0.6.13-57mmwqmy.mjs +0 -1
  799. package/dist/chunks/openaiShim-0.6.13-yb751f6g.mjs +0 -14
  800. package/dist/chunks/output-style-0.6.13-m28me769.mjs +0 -1
  801. package/dist/chunks/package-FMOR3ELU-0.6.13-dfhez176.mjs +0 -1
  802. package/dist/chunks/parseConnectUrl-0.6.13-6ckj0vmf.mjs +0 -1
  803. package/dist/chunks/parser-0.6.13-cmp0vgjm.mjs +0 -1
  804. package/dist/chunks/passes-0.6.13-q60h610m.mjs +0 -1
  805. package/dist/chunks/permissions-0.6.13-9cf5bca2.mjs +0 -3
  806. package/dist/chunks/permissions-0.6.13-nqms1fh9.mjs +0 -1
  807. package/dist/chunks/plan-0.6.13-jnph14bx.mjs +0 -1
  808. package/dist/chunks/plist-0.6.13-fwm9pvp5.mjs +0 -1
  809. package/dist/chunks/plugin-0.6.13-4hpbymfw.mjs +0 -29
  810. package/dist/chunks/pluginStartupCheck-0.6.13-yftpxhh1.mjs +0 -1
  811. package/dist/chunks/plugins-0.6.13-jkptkxsv.mjs +0 -9
  812. package/dist/chunks/preActionHook-0.6.13-jxg6wxk8.mjs +0 -2
  813. package/dist/chunks/print-0.6.13-7cpe5d4z.mjs +0 -57
  814. package/dist/chunks/privacy-settings-0.6.13-5a5rxfdv.mjs +0 -1
  815. package/dist/chunks/process-0.6.13-38dsvzca.mjs +0 -1
  816. package/dist/chunks/processBashCommand-0.6.13-2hx0q8zw.mjs +0 -1
  817. package/dist/chunks/processSlashCommand-0.6.13-5r7afr4g.mjs +0 -9
  818. package/dist/chunks/prompt-0.6.13-pafq1qab.mjs +0 -1
  819. package/dist/chunks/prompt-0.6.13-y81g0m1b.mjs +0 -1
  820. package/dist/chunks/prompts-0.6.13-702ak30b.mjs +0 -1
  821. package/dist/chunks/protocolHandler-0.6.13-t8f8haqj.mjs +0 -13
  822. package/dist/chunks/provider-0.6.13-2sx115qq.mjs +0 -2
  823. package/dist/chunks/providerProfiles-0.6.13-f8x8hr6k.mjs +0 -1
  824. package/dist/chunks/providerValidation-0.6.13-tf07v3tj.mjs +0 -6
  825. package/dist/chunks/rate-limit-options-0.6.13-aensbess.mjs +0 -1
  826. package/dist/chunks/registerSubcommands-0.6.13-656h79d4.mjs +0 -34
  827. package/dist/chunks/registry-0.6.13-pstf339a.mjs +0 -1
  828. package/dist/chunks/release-notes-0.6.13-hrppyszt.mjs +0 -5
  829. package/dist/chunks/reload-plugins-0.6.13-je6wrn33.mjs +0 -2
  830. package/dist/chunks/remote-env-0.6.13-z246d03z.mjs +0 -1
  831. package/dist/chunks/remoteBridgeCore-0.6.13-ynnqhw07.mjs +0 -1
  832. package/dist/chunks/remoteSession-0.6.13-mv8v6s9c.mjs +0 -1
  833. package/dist/chunks/rename-0.6.13-xpt0c85z.mjs +0 -1
  834. package/dist/chunks/replBridgeHandle-0.6.13-rrpbzf13.mjs +0 -1
  835. package/dist/chunks/replLauncher-0.6.13-waeszqvx.mjs +0 -1
  836. package/dist/chunks/resume-0.6.13-sr7y57a2.mjs +0 -2
  837. package/dist/chunks/rewind-0.6.13-8czd98jc.mjs +0 -1
  838. package/dist/chunks/rootOptions-0.6.13-9h4cq5pq.mjs +0 -1
  839. package/dist/chunks/sandbox-adapter-0.6.13-hs1rvj4e.mjs +0 -1
  840. package/dist/chunks/sandbox-toggle-0.6.13-8j9r0wf9.mjs +0 -1
  841. package/dist/chunks/session-0.6.13-83jr96cj.mjs +0 -2
  842. package/dist/chunks/sessionDiscovery-0.6.13-wvzp1v01.mjs +0 -1
  843. package/dist/chunks/sessionFileAccessHooks-0.6.13-4fkbba35.mjs +0 -1
  844. package/dist/chunks/sessionStorage-0.6.13-rswa4zsd.mjs +0 -1
  845. package/dist/chunks/settings-0.6.13-6t3fk1ch.mjs +0 -1
  846. package/dist/chunks/setup-0.6.13-q8jrvatq.mjs +0 -5
  847. package/dist/chunks/sinks-0.6.13-zatt5gaw.mjs +0 -1
  848. package/dist/chunks/skills-0.6.13-3c0whjxb.mjs +0 -1
  849. package/dist/chunks/startupProfiler-0.6.13-cphqp37f.mjs +0 -1
  850. package/dist/chunks/startupUpdateCheck-0.6.13-hstp7str.mjs +0 -1
  851. package/dist/chunks/state-0.6.13-257cjw4h.mjs +0 -1
  852. package/dist/chunks/stats-0.6.13-cg0xacnc.mjs +0 -6
  853. package/dist/chunks/status-0.6.13-cefspgtr.mjs +0 -1
  854. package/dist/chunks/stickers-0.6.13-6e4t4ej1.mjs +0 -1
  855. package/dist/chunks/subprocessEnv-0.6.13-am2fa4tp.mjs +0 -1
  856. package/dist/chunks/tasks-0.6.13-2v9gfhwe.mjs +0 -1
  857. package/dist/chunks/teamHelpers-0.6.13-nesaxh5h.mjs +0 -1
  858. package/dist/chunks/teammateModeSnapshot-0.6.13-s8fahdkf.mjs +0 -1
  859. package/dist/chunks/teleport-0.6.13-15chrxd3.mjs +0 -1
  860. package/dist/chunks/terminalSetup-0.6.13-45tchntj.mjs +0 -1
  861. package/dist/chunks/theme-0.6.13-xzb35tqq.mjs +0 -1
  862. package/dist/chunks/thinkback-0.6.13-t9v5q33p.mjs +0 -1
  863. package/dist/chunks/thinkback-play-0.6.13-3zft02zv.mjs +0 -1
  864. package/dist/chunks/toolPool-0.6.13-v9s7e0g9.mjs +0 -1
  865. package/dist/chunks/toolSearch-0.6.13-yx9rjn17.mjs +0 -1
  866. package/dist/chunks/tools-0.6.13-heefxcxe.mjs +0 -1
  867. package/dist/chunks/trustedDevice-0.6.13-x08npyhs.mjs +0 -1
  868. package/dist/chunks/turndown.cjs-0.6.13-tqfk5xkj.mjs +0 -69
  869. package/dist/chunks/types-0.6.13-26eegce9.mjs +0 -1
  870. package/dist/chunks/ultrareviewCommand-0.6.13-pg8b86h2.mjs +0 -4
  871. package/dist/chunks/update-0.6.13-tj94pp6r.mjs +0 -86
  872. package/dist/chunks/upgrade-0.6.13-3qy3gqyq.mjs +0 -1
  873. package/dist/chunks/upload-0.6.13-jgydpvy4.mjs +0 -7
  874. package/dist/chunks/upstreamproxy-0.6.13-3jmepw2f.mjs +0 -14
  875. package/dist/chunks/url-handler-napi-0.6.13-cqr9xp6y.mjs +0 -1
  876. package/dist/chunks/usage-0.6.13-whrgny68.mjs +0 -1
  877. package/dist/chunks/util-0.6.13-dcwcf9pm.mjs +0 -1
  878. package/dist/chunks/utils-0.6.13-jybbphy0.mjs +0 -1
  879. package/dist/chunks/vim-0.6.13-rt1g3nw1.mjs +0 -1
  880. package/dist/chunks/watcher-0.6.13-jr5jxn5j.mjs +0 -1
  881. package/dist/chunks/wiki-0.6.13-pt6cr77j.mjs +0 -132
  882. package/dist/chunks/worktree-0.6.13-efnvp677.mjs +0 -1
  883. package/dist/chunks/worktreeModeEnabled-0.6.13-zdfe46d8.mjs +0 -1
  884. package/dist/chunks/wrapper-0.6.13-w672jy5j.mjs +0 -7
  885. /package/dist/chunks/{cli-0.6.13-s9yqkgwe.mjs → cli-0.7.0-59h7jbfm.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.13-e3h2z83b.mjs → cli-0.7.0-5vszg5ys.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.13-tsz6mx5f.mjs → cli-0.7.0-76wj8x34.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.13-rmzzvjt2.mjs → cli-0.7.0-brqbb2d5.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.13-p839x5sj.mjs → cli-0.7.0-jt2afswt.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.6.13-h2yxttam.mjs → cli-0.7.0-m9eza7ry.mjs} +0 -0
  891. /package/dist/chunks/{cli-0.6.13-1dwgndg5.mjs → cli-0.7.0-z555y4ap.mjs} +0 -0
@@ -1,16 +0,0 @@
1
- import{W6 as k2,Y6 as x8}from"./cli-0.6.13-hp0r1ftj.mjs";import{$6 as mZ,_6 as h}from"./cli-0.6.13-g65dfg11.mjs";import{k7 as d5,m7 as w8}from"./cli-0.6.13-n4qwe0a1.mjs";import{$7 as I4,$_ as S1,Cca as r1,E$ as VZ,Gba as j0,L8 as N5,N8 as dZ,Naa as o1,Pba as n4,Pda as m5,Rba as nZ,Rca as i,Rda as W4,Sba as v1,Tba as h8,Tca as e1,Uca as zZ,Waa as WZ,Xda as c5,Zca as Z4,_da as K,a$ as A8,a8 as s,b8 as L2,bea as $0,c8 as O0,d8 as y4,e8 as s2,k8 as H0,l8 as G1,lda as V4,n$ as a1,nca as d,nda as $4,nea as N,qda as O2,rba as k,rda as tZ,sca as p5,tba as B2,tca as C,v8 as D5,vea as s0,wba as Q0,wca as L,xba as y,y8 as cZ}from"./cli-0.6.13-hd0sd535.mjs";import{Hfa as M1,vfa as A0,xfa as k4}from"./cli-0.6.13-m4pb5k9v.mjs";import{Mga as v5,Nga as d4,Oga as B0,Qga as z8,Rga as G8,Tga as O,Uga as y0}from"./cli-0.6.13-s2vxndky.mjs";import{Vga as x,Yga as j2}from"./cli-0.6.13-prh9py3z.mjs";import{$ha as Z0,Cha as K5,Gha as pZ,Kha as i2,Oha as S8,Yha as z,_ha as d0}from"./cli-0.6.13-dada1afp.mjs";import{qia as p,sia as q1,xia as V1}from"./cli-0.6.13-ze0ah657.mjs";import{Aia as L5,Dia as F,Fia as g,Hia as P2,Kia as c4,Nia as u}from"./cli-0.6.13-qyd73z97.mjs";import{Cla as s1,Cma as J1,Dma as Q1,Ema as X1,Fma as Y1,Gla as P4,Lla as v0,Mla as J2,Rma as x2,ema as f,lma as _1,nka as Y0,oka as w1,ola as p1,ooa as J0}from"./cli-0.6.13-me17wefv.mjs";import{Noa as v,Ooa as l0}from"./cli-0.6.13-dvfmqzm9.mjs";import{Bpa as q2,jpa as P}from"./cli-0.6.13-y6xnb20z.mjs";import{Spa as S0,Upa as c2,Vpa as H,Wpa as e}from"./cli-0.6.13-5qvssn7h.mjs";function I5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:q,context:W}=$.shift();try{let G=await Z.apply(W,X);Y(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,q)=>{$.push({args:X,resolve:Y,reject:q,context:this}),Q()})}}var y5=()=>{};function C5(Z,$){return Z.find((J)=>J.includes($))??null}async function A5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=P2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await k2(),...J&&{requestHandler:new(await import("./index-0.6.13-3d9rd6ba.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.6.13-y16k48ab.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function u$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=P2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await k2(),...J&&{requestHandler:new(await import("./index-0.6.13-3d9rd6ba.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.6.13-y16k48ab.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function j8(Z){return Z.startsWith("anthropic.")}function R8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function H8(Z){let $=R8(Z);for(let J of B8)if($.startsWith(`${J}.anthropic.`))return J;return}function m$(Z,$){let J=H8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(j8(Z))return`${$}.${Z}`;return Z}var T5,p$,B8;var h5=H(()=>{l0();n();u();s0();x8();T5=v(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw N(X),X}});p$=v(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let q=Y.modelArn.lastIndexOf("/");return q>=0?Y.modelArn.substring(q+1):Y.modelArn}catch($){return N($),null}});B8=["us","eu","apac","global"]});var E2,_2,M2,S2,v2,I2,y2,T2,C2,a0,o0,r0,A2,h2,f2,G0,d$,f5;var g2=H(()=>{E2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},M2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},S2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},v2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},I2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},y2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},T2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},C2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},a0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},o0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},r0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},A2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},h2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},f2={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},G0={haiku35:M2,haiku45:S2,sonnet35:_2,sonnet37:E2,sonnet40:v2,sonnet45:I2,sonnet46:h2,sonnet5:f2,opus40:y2,opus41:T2,opus45:C2,opus46:a0,opus47:o0,opus48:r0,fable5:A2},d$=Object.values(G0).map((Z)=>Z.firstParty),f5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function g5(){return Object.values(e0)}var e0,u2;var p2=H(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},u2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};c2(_0,{prefetchCopilotModelCatalog:()=>n2,normalizeBareCopilotModelId:()=>d2,getEffectiveCopilotModels:()=>b8,getCopilotDisplayName:()=>O8,getCatalogCopilotMaxOutputTokens:()=>k8,getCatalogCopilotContextWindow:()=>P8,getCachedCopilotCatalog:()=>N8,fetchCopilotModelCatalog:()=>t5,copilotModelSupportsAnthropicMessages:()=>U8,_setCopilotCatalogForTesting:()=>E8});function E0(){let Z=K();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function n5(){if(!t)return!1;let Z=E0();return Z!==null&&x0===Z}function L8(){if(u5)return;u5=!0,p5(()=>{let Z=E0();if(Z&&x0!==Z)n2()})}function d2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),X=Q.indexOf("/");return X===-1?Q:Q.slice(X+1)}function K8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function D8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},X=Z.capabilities?.supports??{},Y=X.vision===!0||Boolean(Q.vision),q=X.adaptive_thinking===!0||Array.isArray(X.reasoning_effort)||typeof X.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:Y,reasoning:q,tool_call:X.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:Y?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:K8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function t5(){let Z=K();if(Z?.transport!=="github_copilot")return null;if(m5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,X=setTimeout(()=>Q.abort(),F8);try{let Y=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...d5},signal:Q.signal});if(!Y.ok)return null;let q=await Y.json();if(!Array.isArray(q?.data))return null;let W=new Set,G=[];for(let B of q.data){let R=D8(B);if(!R||W.has(R.model.id))continue;W.add(R.model.id),G.push(R)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(X)}}function n2(){L8();let Z=E0();if(!Z)return;if(t&&x0!==Z)t=null,x0=null;if(Z2){if(m2===Z)return;Z2.finally(()=>n2());return}m2=Z,Z2=t5().then(($)=>{if($&&E0()===Z)t=$,x0=Z}).finally(()=>{Z2=null,m2=null})}function N8(){return t}function b8(){if(n5()){let Z=t?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return g5()}function $2(Z){if(!n5())return;let $=d2(Z);return t.find((J)=>J.model.id===$)}function O8(Z){let $=d2(Z);return $2($)?.model.name??e0[$]?.name}function U8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function P8(Z){return $2(Z)?.model.limit.context}function k8(Z){return $2(Z)?.model.limit.output}function E8(Z){t=Z,x0=Z?E0():null}var F8=5000,t=null,x0=null,Z2=null,m2=null,u5=!1;var M0=H(()=>{$0();w8();c5();i();Z0();p2()});function V(){let Z=K();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function ZJ(){return V()==="firstParty"}function $J(Z){let $=K();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(M0(),S0(_0)),X=Q(J);if(X!==null)return X}catch{}return!0}function JJ(){return V()}function QJ(){let Z=K();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var l=H(()=>{$0()});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of l5)J[Q]=G0[Q][$];return J}async function _8(){let Z=Q2("bedrock"),$;try{$=await T5()}catch(Q){return N(Q),Z}if(!$?.length)return Z;let J={};for(let Q of l5){let X=G0[Q].firstParty;J[Q]=C5($,X)||Z[Q]}return J}function i5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=f5[Q];if(Y&&X)J[Y]=X}return J}function X2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M8(){if(v0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}s5()}function j(){let Z=v0();if(Z===null)return M8(),i5(Q2(V()));return i5(Z)}async function jJ(){if(v0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}await s5()}var l5,s5;var Y2=H(()=>{J0();s0();y5();j0();h5();g2();l();l5=Object.keys(G0);s5=I5(async()=>{if(v0()!==null)return;try{let Z=await _8();J2(Z)}catch(Z){N(Z)}})});function FJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(U())return!1;let $=I0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function LJ(){if(a5!==null)return a5;if(!U())return!1;let Z=M();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var a5=null;var o5=H(()=>{n();i();u()});function bJ(Z){return Z}function OJ(){return!1}function r5(){return null}function e5(){return!1}var Z1=H(()=>{o5()});async function SJ(){let $=L().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${O().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(X){N(X)}}async function R0(Z){let $=`${O().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){N(J)}}var t2=H(()=>{q2();y0();n();i();s0()});import{mkdirSync as v8,writeFileSync as I8}from"fs";function C8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{v8(V2,{recursive:!0,mode:448}),I8(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function $1(Z,$){try{let Q=i2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!q1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function W1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let q=process.env[Z];if(!q){let G=$1($,J);return X(G),G}let W=parseInt(q,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),X(null),null;try{let G=i2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,R=G.readFileSync(B,{encoding:"utf8"}).trim();if(!R)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),X(R),C8($,R,J),R}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=$1($,J);return X(B),B}}function W2(){return W1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:y8,label:"OAuth token",getCached:J1,setCached:Q1})}function l2(){return W1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:T8,label:"API key",getCached:X1,setCached:Y1})}var V2="/home/claude/.claude/remote",y8,T8,fJ;var z1=H(()=>{J0();Z0();u();V1();S8();y8=`${V2}/.oauth_token`,T8=`${V2}/.api_key`,fJ=`${V2}/.session_ingress_token`});async function x1(){if(process.platform==="darwin"){let Z=s();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function z2(Z){return Z.slice(-20)}var j1=H(()=>{G1();s2()});function dJ(Z){return Z?.name==="CredentialsProviderError"}function B1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function a2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function R1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var H1=H(()=>{Z0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(T.instance)T.instance.changed.clear(),T.instance=null}}var F1=H(()=>{w1()});var G2="claude-code-20250219",L1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",K1="context-management-2025-06-27",D1="structured-outputs-2025-12-15",o2="web-search-2025-03-05",N1="advanced-tool-use-2025-11-20",b1="tool-search-tool-2025-10-19",lJ="effort-2025-11-24",sJ="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",aJ="extended-cache-ttl-2025-04-11",oJ="fast-mode-2026-02-01",U1="redact-thinking-2026-02-12",P1="thinking-token-count-2026-05-13",k1="token-efficient-tools-2026-03-28",rJ="afk-mode-2026-01-31",eJ="advisor-tool-2026-03-01",r2,Z3;var e2=H(()=>{r2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),Z3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(V()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function I1(){if(!A())return!1;return g8()===null}function f8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function g8(){if(V()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=A0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!S1()&&A0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&x2()&&!_1()){if(!k("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(_.status==="disabled"){if(_.reason==="network_error"||_.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=f8(_.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function L3(){return"opus"+(f0()?"[1m]":"")}function K3(Z){if(!A())return!1;if(!I1())return!1;if(!y1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function y1(Z){if(!A())return!1;let $=Z??h0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function u8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!Z5)z("Fast mode cooldown expired, re-enabling fast mode"),Z5=!0,C1.emit();w0={status:"active"}}return w0}function b3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},Z5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),T1.emit(Z,$)}function O3(){w0={status:"active"}}function U3(){if(_.status==="disabled")return;_={status:"disabled",reason:"preference"},B2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),$5.emit(!1)}function p8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function m8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function k3(Z){let $=p8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!m8(Z))B2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));A1.emit($)}function c8(){return u8().status==="cooldown"}function E3(Z,$){let J=A()&&I1()&&!!$&&y1(Z);if(J&&c8())return"cooldown";if(J)return"on";return"off"}async function d8(Z){let $=`${O().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function M3(){if(!A())return;if(_.status!=="pending")return;_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function S3(){if(v1())return;if(!A())return;if(C0)return z("Fast mode prefetch in progress, returning in-flight promise"),C0;let Z=X0();if(!(w()?.accessToken&&q0())&&!Z){_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-E1<n8){z("Skipping fast mode prefetch, fetched recently");return}E1=J;let Q=async()=>{let Y=w(),q=Y?.accessToken&&q0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return d8(q)};async function X(){try{let Y;try{Y=await Q()}catch(W){if(P.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await J5(B),Y=await Q();else throw W}else throw W}let q=_.status!=="pending"?_.status==="enabled":L().penguinModeOrgEnabled;if(_=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},q!==Y.enabled){if(!Y.enabled)B2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:Y.enabled})),$5.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${_.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{C0=null}}return C0=X(),C0}var F3="Opus 4.7",w0,Z5=!1,T1,C1,D3,N3,A1,P3,_,$5,_3,n8=30000,E1=0,C0=null;var h1=H(()=>{q2();y0();M1();J0();j2();n();A8();i();Z0();u();F0();l();h8();j0();w1();w0={status:"active"},T1=Y0(),C1=Y0(),D3=T1.subscribe,N3=C1.subscribe;A1=Y0(),P3=A1.subscribe;_={status:"pending"},$5=Y0(),_3=$5.subscribe});function r8(Z){for(let $ of o8)if($.pattern.test(Z))return $.cost;return}function Q5(Z){if(A()&&Z)return i8;return K0}function e8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,X=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+X+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function ZZ(Z,$){let J=b(Z);if(J===D(a0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let X=$.speed==="fast";return Q5(X)}let Q=g1[J];if(!Q){let X=r8(Z);if(X)return X;return $Z(Z,J),g1[b(h0())]??a8}return Q}function $Z(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),p1()}function JZ(Z,$){let J=ZZ(Z,$);return e8(J,$)}function h3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return JZ(Z,J)}function u1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function m1(Z){return`${u1(Z.inputTokens)}/${u1(Z.outputTokens)} per Mtok`}var L0,f1,K0,t8,i8,l8,s8,a8,o8,g1;var c1=H(()=>{j2();J0();h1();g2();F0();L0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},f1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},K0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},t8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},l8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},s8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},a8=K0,o8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];g1={[D(M2.firstParty)]:l8,[D(S2.firstParty)]:s8,[D(_2.firstParty)]:L0,[D(E2.firstParty)]:L0,[D(v2.firstParty)]:L0,[D(I2.firstParty)]:L0,[D(h2.firstParty)]:L0,[D(f2.firstParty)]:L0,[D(y2.firstParty)]:f1,[D(T2.firstParty)]:f1,[D(C2.firstParty)]:K0,[D(a0.firstParty)]:K0,[D(o0.firstParty)]:K0,[D(r0.firstParty)]:K0,[D(A2.firstParty)]:t8}});function m(Z){return QZ.includes(Z)}function D0(Z){return XZ.includes(Z)}var QZ,XZ;var X5=H(()=>{QZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];XZ=["sonnet","opus","haiku"]});function YZ(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function d1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function qZ(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(d1(J,$))return!0;if(!$.startsWith("claude-")&&d1(J,`claude-${$}`))return!0;return!1}function n1(Z,$){for(let J of $){if(D0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function t1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=X2(Z).trim().toLowerCase(),Y=J.map((q)=>q.trim().toLowerCase());if(Y.includes(X)){if(!D0(X)||!n1(X,Y))return!0}for(let q of Y)if(D0(q)&&!n1(q,Y)&&YZ(X,q))return!0;if(m(X)){let q=I(X).toLowerCase();if(Y.includes(q))return!0}for(let q of Y)if(!D0(q)&&m(q)){if(I(q).toLowerCase()===X)return!0}for(let q of Y)if(!D0(q)&&!m(q)){if(qZ(X,q))return!0}return!1}var i1=H(()=>{j0();X5();F0();Y2()});function R2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function b0(){let Z=K();if(!Z?.model)return;return e1(Z.model)}function W7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"codexspark";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return J4()}function z7(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function Y5(){let Z,$=s1();if($!==void 0)Z=$;else{let J=y()||{},Q=R2(J.model),X=b0();if(Z4()!==void 0)Z=R2(r1().activeModelForProject)||void 0;else Z=X||Q||void 0}if(Z&&!t1(Z))return;return Z}function G7(){let Z=Y5();if(Z!==void 0&&Z!==null)return I(Z);return Q4()}function GZ(){return N0()}function N0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.5-pro";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.7";if(V()!=="firstParty")return j().opus46;return j().opus48}function g0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"mistral-medium-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5";if(V()!=="firstParty")return j().sonnet45;return j().sonnet5}function J4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=b0();if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function x7(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(Y5()==="opusplan"&&$==="plan"&&!Q)return N0();if(Y5()==="haiku"&&$==="plan")return g0();return J}function h0(){let Z=b0();if(V()==="github"){let $=y()||{};return R2($.model)||Z||"github:copilot"}if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(H2())return N0()+(f0()?"[1m]":"");if(w2())return N0()+(f0()?"[1m]":"");return g0()}function Q4(){return I(h0())}function D(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return D(X2(Z))}function xZ(Z=!1){if(H2()||w2()){if(f0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?l1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?l1(!0):""}`}return"Sonnet 5 · Best for everyday tasks"}function j7(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return Y4(I(Z))}function l1(Z){if(V()!=="firstParty")return"";let $=m1(Q5(Z));return` ·${Z?` (${a1})`:""} ${$}`}function f0(){if(V0()||W5()||V()!=="firstParty")return!1;if(U()&&M()===null)return!1;return!0}function B7(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return o1(Z);return Y4(Z)}function X4(Z){if(V()==="openai"||V()==="gemini"||V()==="codex"||V()==="github"){if(u2[Z])return u2[Z];if(V()==="github"){let{getCopilotDisplayName:$}=(M0(),S0(_0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet5:return"Sonnet 5";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function Y4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function R7(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=R2(Z);if(!$)return g0();let J=$.toLowerCase(),Q=a(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return g0()+(Q?"[1m]":"");case"sonnet":return g0()+(Q?"[1m]":"");case"haiku":return J4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return GZ();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(X==="fable"||X==="fable5")return j().fable5;if(V()==="firstParty"&&BZ(X)&&RZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function H7(Z,$){if(a(Z)||!a($))return Z;if(q5(I(Z)))return Z+"[1m]";return Z}function BZ(Z){return jZ.includes(Z)}function RZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function w7(Z){if(Z===null){if(U())return`Default (${xZ()})`;return`Default (${Q4()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function F7(Z){if(V()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function L7(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function K7(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var jZ;var F0=H(()=>{J0();$0();i();$4();n();V5();u();zZ();Y2();c1();j0();l();VZ();i1();X5();WZ();p2();jZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function z5(Z){return}async function N7(){}var q4=()=>{};var B4={};c2(B4,{prefetchOpenAICompatibleModels:()=>UZ,getDiscoveredContextWindow:()=>HZ,discoverOpenAICompatibleModelOptions:()=>j4});function HZ(Z){return G4.get(Z)}function wZ(){return(K()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function x4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function FZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function LZ(Z){let $=K()?.apiKey?.trim();if(!$)return{};if(FZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(x4(Z))J["api-key"]=$;return J}function KZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&x4(Z)?(Y)=>{try{let q=new URL(Y);return q.searchParams.set("api-version",Q),q.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function DZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function NZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function bZ(Z,$){let J=new Set;for(let Q of Z)try{let X=await P.get(Q,{headers:$,timeout:z4}),Y=[];for(let q of X.data?.data??[]){let W=q.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=q.name?.trim()||W,B=q.context_length??null;if(B&&B>0)G4.set(W,B);let R=B?` · ${NZ(B)}`:"";Y.push({value:W,label:G,description:`${W}${R}`})}if(Y.length>0)return Y.sort((q,W)=>{let G=String(q.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",R=G.localeCompare(B);return R!==0?R:String(q.value).localeCompare(String(W.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function OZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:z4}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function j4(){if(V()!=="openai")return[];let Z=wZ(),$=LZ(Z),J=await bZ(KZ(Z),$);if(J.length>0)return J;let Q=DZ(Z);if(Q)return OZ(Q,$);return[]}function UZ(){if(u0)return u0;return u0=(async()=>{if(!W4()?.startsWith("openai:"))return;try{let $=await j4();if($.length>0)V4($)}catch{}finally{u0=null}})(),u0}var z4=5000,G4,u0=null;var R4=H(()=>{q2();$0();c5();Z0();l();$4();G4=new Map});function w4(Z,$,J){let Q=K()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=H4($,J);if(X!==void 0)return X;return H4(Z,J)}function H4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function F4(Z){let $=w4(PZ,EZ,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(R4(),S0(B4)),Q=J(Z);if(Q!==void 0)return Q}catch{}try{let{getCatalogCopilotContextWindow:J}=(M0(),S0(_0));return J(Z)}catch{return}}function L4(Z){let $=w4(kZ,_Z,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(M0(),S0(_0));return J(Z)}catch{return}}var PZ,kZ,EZ,_Z;var K4=H(()=>{$0();PZ={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},kZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},EZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),_Z=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function D4(){let Z=K()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function a(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function q5(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function p7(Z,$){if(a(Z))return 1e6;if(D4()){let Q=F4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),MZ}let J=z5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>G5&&V0())return G5;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")))return 1e6;if($?.includes(T0)&&q5(Z))return 1e6;if(IZ(Z))return 1e6;return G5}function IZ(Z){if(V0())return!1;if(a(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function m7(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function c7(Z){let $,J;if(D4()){let Y=L4(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=SZ,J=vZ;let X=z5(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var G5=200000,MZ,f7=20000,SZ=32000,vZ=64000,g7=8000,u7=64000;var V5=H(()=>{e2();$0();i();u();F0();q4();K4();MZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var yZ,N4;var b4=H(()=>{l0();l();yZ=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],N4=v((Z,$)=>{if(V()==="firstParty")return;let J=Z.toLowerCase();for(let Q of yZ){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function TZ(Z){let $=[],J=[];for(let Q of Z)if(E4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function V9(Z){if(!Z||Z.length===0)return;if(U()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=TZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${E4.join(", ")}`);return $.length>0?$:void 0}function O4(Z){let $=N4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=V();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function CZ(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function AZ(Z){let $=b(Z),J=V();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function hZ(Z){let $=b(Z),J=V();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function W9(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function z9(){let Z=V();if(Z==="vertex"||Z==="bedrock")return b1;return N1}function U4(){return(V()==="firstParty"||V()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function G9(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return V()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function x9(Z,$){let J=[..._4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=P4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function M4(){x5.cache?.clear?.(),_4.cache?.clear?.(),fZ.cache?.clear?.()}var E4,x5,_4,fZ;var S4=H(()=>{l0();M1();J0();e2();y0();n();V5();u();F0();b4();l();j0();E4=[T0];x5=v((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=V(),X=U4();if(!J)$.push(G2);if(U())$.push(B0);if(a(Z))$.push(T0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&O4(Z))$.push(L1);if(X&&O4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(U1),$.push(P1);let Y=AZ(Z);if(U4()&&Y)$.push(K1);let q=k4("tengu_tool_pear"),W=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(X&&hZ(Z)&&q)$.push(D1);if(X&&W)$.push(k1);if(Q==="vertex"&&CZ(Z))$.push(o2);if(Q==="foundry")$.push(o2);if(X)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),_4=v((Z)=>{let $=x5(Z);if(V()==="bedrock")return $.filter((J)=>!r2.has(J));return $}),fZ=v((Z)=>{return x5(Z).filter((J)=>r2.has(J))})});import{execFile as gZ}from"child_process";function v4(Z){return new Promise(($)=>{gZ("security",["find-generic-password","-a",L2(),"-w","-s",Z],{encoding:"utf-8",timeout:uZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function w9(){if(process.platform!=="darwin"||F2||g())return;let Z=v4(s(I4)),$=v4(s());F2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)y4(J.stdout);if(!Q.timedOut)j5={stdout:Q.stdout}})}async function F9(){if(F2)await F2}function T4(){return j5}function B5(){j5=null}var uZ=1e4,j5=null,F2=null;var C4=H(()=>{u();s2()});function R5(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)Y.unref()})}var A4=()=>{};function D9(){return h4}function f4(){h4.clear()}var h4;var g4=H(()=>{h4=new Map});var S$={};c2(S$,{validateForceLoginOrg:()=>M$,saveOAuthTokensIfNeeded:()=>J8,saveApiKey:()=>M5,removeApiKey:()=>w$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>Z8,refreshAwsAuth:()=>r4,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>j$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>B$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>$$,isUsing3PServices:()=>b2,isTeamSubscriber:()=>b$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>W5,isOverageProvisioningAllowed:()=>D$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>q8,isMaxSubscriber:()=>H2,isGcpAuthRefreshFromProjectSettings:()=>E5,isEnterpriseSubscriber:()=>O$,isCustomApiKeyApproved:()=>H$,isConsumerSubscriber:()=>E$,isClaudeAISubscriber:()=>U,isAwsCredentialExportFromProjectSettings:()=>P5,isAwsAuthRefreshFromProjectSettings:()=>O5,isAnthropicAuthEnabled:()=>k0,is1PApiCustomer:()=>K$,hasProfileScope:()=>q0,hasOpusAccess:()=>N$,hasAnthropicApiKeyAuth:()=>oZ,handleOAuth401Error:()=>J5,getSubscriptionType:()=>M,getSubscriptionName:()=>X8,getRateLimitTier:()=>Q8,getOtelHeadersFromHelper:()=>P$,getOauthAccountInfo:()=>N2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>I0,getApiKeyHelperElapsedMs:()=>rZ,getApiKeyFromConfigOrMacOSKeychain:()=>U2,getApiKeyFromApiKeyHelperCached:()=>w5,getApiKeyFromApiKeyHelper:()=>o4,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>_$,clearOAuthTokenCache:()=>S5,clearGcpCredentialsCache:()=>x$,clearAwsCredentialsCache:()=>q$,clearApiKeyHelperCache:()=>Z$,checkGcpCredentialsValid:()=>e4,checkAndRefreshOAuthTokenIfNeeded:()=>t0,calculateApiKeyHelperTTL:()=>a4});import{exec as l4}from"child_process";import{mkdir as iZ,stat as lZ}from"fs/promises";import{join as sZ}from"path";function D2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function k0(){if(g())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=b2(),J=(y()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!D2()||Y&&!D2())}function I0(){if(g()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(o()&&!D2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(P0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function oZ(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=K();if(q?.transport!=="anthropic")return;let W=q.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:w5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=c4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=l2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!b2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!b2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&L().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:w5(),source:"apiKeyHelper"}}let Y=U2();if(Y)return Y;return{key:null,source:"none"}}function o(){if(g())return k("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function s4(){let Z=o();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function b5(){return(y()||{}).awsAuthRefresh}function O5(){let Z=b5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function U5(){return(y()||{}).awsCredentialExport}function P5(){let Z=U5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function a4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return aZ}function rZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function o4(Z){if(!o())return null;let $=a4();if(S){if(Date.now()-S.timestamp<$)return S.value;if(!c)c={promise:u4(Z,!1,U0),startedAt:null};return S.value}if(c)return c.promise;return c={promise:u4(Z,!0,U0),startedAt:Date.now()},c.promise}async function u4(Z,$,J){try{let Q=await eZ(Z);if(J!==U0)return Q;if(Q!==null)S={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==U0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&S&&S.value!==" ")return S={...S,timestamp:Date.now()},S.value;return S={value:" ",timestamp:Date.now()}," "}finally{if(J===U0)c=null}}async function eZ(Z){let $=o();if(!$)return null;if(s4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",Y),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function w5(){return S?.value??null}function Z$(){U0++,S=null,c=null}function $$(Z){if(s4()&&!d())return;o4(Z)}async function Q$(){let Z=b5();if(!Z)return!1;if(O5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return r4(Z)}}function r4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:X$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function Y$(){let Z=U5();if(!Z)return null;if(P5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=K5($.stdout.trim());if(!B1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function q$(){z0.cache.clear()}function k5(){return(y()||{}).gcpAuthRefresh}function E5(){let Z=k5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function e4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=R5(V$).then(()=>{throw new V8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function z$(){let Z=k5();if(!Z)return!1;if(E5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await e4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Z8(Z)}function Z8(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:G$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function x$(){_5.cache.clear()}function j$(){if(!k5())return;if(E5()){if(!d()&&!f())return}_5()}function B$(){let Z=b5(),$=U5();if(!Z&&!$)return;if(O5()||P5()){if(!d()&&!f())return}z0(),j()}function R$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function M5(Z){if(!R$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await $8();let $=!1;if(process.platform==="darwin")try{let Q=s(),X=L2(),Y=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
2
- `;await H0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){N(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=z2(Z);C((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U2.cache.clear?.(),B5()}function H$(Z){let $=L(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function w$(){await $8(),C((Z)=>({...Z,primaryApiKey:void 0})),U2.cache.clear?.(),B5()}async function $8(){try{await x1()}catch(Z){N(Z)}}function J8(Z){if(!P0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=O2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),M4(),f4(),Y}catch(Q){return N(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function S5(){w.cache?.clear?.(),O0()}async function F$(){try{let{mtimeMs:Z}=await lZ(sZ(L5(),".credentials.json"));if(Z!==p4)p4=Z,S5()}catch{w.cache?.clear?.()}}function J5(Z){let $=H5.get(Z);if($)return $;let J=L$(Z).finally(()=>{H5.delete(Z)});return H5.set(Z,J),J}async function L$(Z){S5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return t0(0,!0)}async function c0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await O2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return N(Z),null}}function t0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=F5(Z,$).finally(()=>{p0=null}),p0}return F5(Z,$)}async function F5(Z,$){await F$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!P0(Q.scopes))return!1;w.cache?.clear?.(),O0();let X=await c0();if(!X?.refreshToken||!m0(X.expiresAt))return!1;let Y=L5();await iZ(Y,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await n4(Y),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await R5(1000+Math.random()*1000),F5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return N(W),x("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),O0();let W=await c0();if(!W?.refreshToken||!m0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await t4(W.refreshToken,{scopes:P0(W.scopes)?void 0:W.scopes});return J8(G),w.cache?.clear?.(),O0(),!0}catch(W){N(W),w.cache?.clear?.(),O0();let G=await c0();if(G&&!m0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await q(),x("tengu_oauth_token_refresh_lock_released",{})}}function U(){if(!k0())return!1;return P0(w()?.scopes)}function q0(){return w()?.scopes?.includes(d4)??!1}function K$(){{let Z=K()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(U())return!1;return!0}function N2(){return k0()?L().oauthAccount:void 0}function D$(){let $=N2()?.billingType;if(!U()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function N$(){let Z=M();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function M(){if(e5())return r5();if(!k0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H2(){return M()==="max"}function b$(){return M()==="team"}function w2(){return M()==="team"&&Q8()==="default_claude_max_5x"}function O$(){return M()==="enterprise"}function W5(){return M()==="pro"}function Q8(){if(!k0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function X8(){switch(M()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function b2(){let Z=K()?.transport;if(!Z)return!1;return Z!=="anthropic"}function Y8(){return(y()||{}).otelHeadersHelper}function q8(){let Z=Y8();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function P$(){let Z=Y8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||U$.toString());if(K2&&Date.now()-m4<$)return K2;if(q8()){if(!d())return{}}try{let J=D5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=K5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return K2=Q,m4=Date.now(),K2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function k$(Z){return Z==="max"||Z==="pro"}function E$(){let Z=M();return U()&&Z!==null&&k$(Z)}function _$(){if(V()!=="firstParty")return;let{source:$}=I0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(U())J.subscription=X8();else J.tokenSource=$;let{key:Q,source:X}=n0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let q=N2()?.organizationName;if(q)J.organization=q}let Y=N2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function M$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!k0())return{valid:!0};let Z=k("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await t0();let $=w();if(!$)return{valid:!0};let{source:J}=I0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await R0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
- This machine requires organization ${Z} but the profile could not be fetched.
4
- This may be a network error, or the token may lack the user:profile scope required for
5
- verification (tokens from 'claude setup-token' do not include this scope).
6
- Try again, or obtain a full-scope token via 'claude auth login'.`};let Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
- different organization than required by this machine's managed settings.
8
-
9
- Required organization: ${Z}
10
- Token organization: ${Y}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var aZ=300000,S=null,c=null,U0=0,J$=3600000,X$=180000,z0,V$=5000,W$=3600000,G$=180000,_5,U2,w,p4=0,H5,p0=null,K2=null,m4=0,U$=1740000,V8;var n=H(()=>{mZ();G1();l0();y0();j2();Y2();l();J0();$0();Z1();i4();t2();z1();j1();H1();F1();S4();i();Z0();u();V1();cZ();nZ();s0();dZ();tZ();C4();s2();j0();A4();pZ();g4();z0=N5(async()=>{let Z=await Q$(),$=await Y$();if(Z||$)await R1();return $},J$);_5=N5(async()=>{return await z$()},W$);U2=v(()=>{if(g())return null;if(process.platform==="darwin"){let $=T4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=s();try{let Q=D5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){N(Q)}}}let Z=L();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=v(()=>{if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=O2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});H5=new Map;V8=class V8 extends Error{}});function P0(Z){return Boolean(Z?.includes(v5))}function v$(Z){return Z?.split(" ").filter(Boolean)??[]}function GQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:q,loginHint:W,loginMethod:G}){let B=X?O().CLAUDE_AI_AUTHORIZE_URL:O().CONSOLE_AUTHORIZE_URL,R=new URL(B);R.searchParams.append("code","true"),R.searchParams.append("client_id",O().CLIENT_ID),R.searchParams.append("response_type","code"),R.searchParams.append("redirect_uri",Q?O().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=Y?[v5]:G8;if(R.searchParams.append("scope",W0.join(" ")),R.searchParams.append("code_challenge",Z),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("state",$),q)R.searchParams.append("orgUUID",q);if(W)R.searchParams.append("login_hint",W);if(G)R.searchParams.append("login_method",G);return R.toString()}async function xQ(Z,$,J,Q,X=!1,Y){let q={grant_type:"authorization_code",code:Z,redirect_uri:X?O().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:O().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)q.expires_in=Y;let W=await P.post(O().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return x("tengu_oauth_token_exchange_success",{}),W.data}async function t4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:O().CLIENT_ID,scope:(($?.length)?$:z8).join(" ")};try{let Q=await P.post(O().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:q=Z,expires_in:W}=X,G=Date.now()+W*1000,B=v$(X.scope);x("tengu_oauth_token_refresh_success",{});let R=L(),W0=w(),E=R.oauthAccount?.billingType!==void 0&&R.oauthAccount?.accountCreatedAt!==void 0&&R.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await I$(Y);if(E&&R.oauthAccount){let r={};if(E.displayName!==void 0)r.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)r.billingType=E.billingType;if(E.accountCreatedAt!==void 0)r.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(r).length>0)C((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...r}:i0.oauthAccount}))}return{accessToken:Y,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??W0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function jQ(Z){let $=await P.get(O().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!L().oauthAccount)throw Error("OAuth account information not found in config");C((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function BQ(Z){try{let $=await P.post(O().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await M5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function I$(Z){let $=await R0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function RQ(){let $=L().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let X=(await R0(J))?.organization?.uuid;if(!X)return null;return X}async function HQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!L().oauthAccount)W8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await t0();let X=L();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!U()||!q0())return!1;let Y=w();if(Y?.accessToken){let q=await R0(Y.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return W8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function W8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var i4=H(()=>{q2();j2();y0();n();i();Z0();t2()});
16
- export{w9 as x2,F9 as y2,C4 as z2,I5 as A2,y5 as B2,u$ as C2,p$ as D2,j8 as E2,H8 as F2,m$ as G2,h5 as H2,a0 as I2,o0 as J2,G0 as K2,g2 as L2,n2 as M2,b8 as N2,M0 as O2,V as P2,ZJ as Q2,$J as R2,JJ as S2,QJ as T2,l as U2,j as V2,jJ as W2,Y2 as X2,FJ as Y2,LJ as Z2,o5 as _2,bJ as $2,OJ as a3,Z1 as b3,SJ as c3,R0 as d3,t2 as e3,P0 as f3,v$ as g3,GQ as h3,xQ as i3,t4 as j3,jQ as k3,BQ as l3,m0 as m3,I$ as n3,RQ as o3,HQ as p3,W8 as q3,i4 as r3,fJ as s3,C8 as t3,$1 as u3,z1 as v3,z2 as w3,j1 as x3,dJ as y3,H1 as z3,T as A3,F1 as B3,T0 as C3,K1 as D3,D1 as E3,lJ as F3,sJ as G3,O1 as H3,aJ as I3,oJ as J3,U1 as K3,rJ as L3,eJ as M3,Z3 as N3,e2 as O3,A as P3,I1 as Q3,g8 as R3,F3 as S3,L3 as T3,K3 as U3,y1 as V3,D3 as W3,N3 as X3,u8 as Y3,b3 as Z3,O3 as _3,U3 as $3,P3 as a4,k3 as b4,c8 as c4,E3 as d4,_3 as e4,M3 as f4,S3 as g4,h1 as h4,L0 as i4,t8 as j4,l8 as k4,s8 as l4,Q5 as m4,JZ as n4,h3 as o4,m1 as p4,c1 as q4,QZ as r4,X5 as s4,t1 as t4,i1 as u4,W7 as v4,z7 as w4,Y5 as x4,G7 as y4,GZ as z4,N0 as A4,g0 as B4,J4 as C4,x7 as D4,h0 as E4,Q4 as F4,D as G4,b as H4,xZ as I4,j7 as J4,l1 as K4,f0 as L4,B7 as M4,X4 as N4,Y4 as O4,R7 as P4,I as Q4,H7 as R4,RZ as S4,w7 as T4,F7 as U4,L7 as V4,K7 as W4,F0 as X4,N7 as Y4,q4 as Z4,j4 as _4,UZ as $4,R4 as a5,f7 as b5,g7 as c5,u7 as d5,V0 as e5,a as f5,p7 as g5,IZ as h5,m7 as i5,c7 as j5,V5 as k5,N4 as l5,b4 as m5,V9 as n5,hZ as o5,W9 as p5,z9 as q5,U4 as r5,G9 as s5,_4 as t5,fZ as u5,x9 as v5,M4 as w5,S4 as x5,R5 as y5,A4 as z5,D9 as A5,f4 as B5,g4 as C5,k0 as D5,I0 as E5,X0 as F5,oZ as G5,n0 as H5,o as I5,O5 as J5,P5 as K5,a4 as L5,rZ as M5,o4 as N5,w5 as O5,Z$ as P5,$$ as Q5,r4 as R5,z0 as S5,q$ as T5,E5 as U5,e4 as V5,Z8 as W5,_5 as X5,x$ as Y5,j$ as Z5,B$ as _5,U2 as $5,M5 as a6,H$ as b6,w$ as c6,J8 as d6,w as e6,S5 as f6,J5 as g6,c0 as h6,t0 as i6,U as j6,q0 as k6,K$ as l6,N2 as m6,D$ as n6,N$ as o6,M as p6,H2 as q6,b$ as r6,w2 as s6,O$ as t6,W5 as u6,Q8 as v6,X8 as w6,b2 as x6,q8 as y6,P$ as z6,E$ as A6,_$ as B6,M$ as C6,S$ as D6,n as E6};
@@ -1,2 +0,0 @@
1
- import{HL as Q,IL as $}from"./cli-0.6.13-2s33ahe4.mjs";import{$ia as P,_ia as V,aka as W,bka as E}from"./cli-0.6.13-me17wefv.mjs";import{Vpa as L}from"./cli-0.6.13-5qvssn7h.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
- export{v as Zc,C as _c};
@@ -1,2 +0,0 @@
1
- import{nd as Z,od as _,pd as $,sd as O}from"./cli-0.6.13-pyh5s43x.mjs";import{Jd as Y,Od as x}from"./cli-0.6.13-n9fz7y3a.mjs";import{dK as U,iK as W,nK as S,oK as X,yK as V}from"./cli-0.6.13-2s33ahe4.mjs";import{$ha as K,Yha as R}from"./cli-0.6.13-dada1afp.mjs";import{qia as Q,xia as C}from"./cli-0.6.13-ze0ah657.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
- export{F as Ia};
@@ -1,5 +0,0 @@
1
- import{$n as D,LE as F,ME as y,PE as S,VE as o,do as r}from"./cli-0.6.13-2s33ahe4.mjs";import{FX as A,GX as l,HX as z,IX as O}from"./cli-0.6.13-f67v536f.mjs";import{O8 as x,P8 as d,R8 as b,S8 as g}from"./cli-0.6.13-hd0sd535.mjs";import{$ha as I,Eha as k,Gha as p,Kha as L,Oha as c,Yha as V}from"./cli-0.6.13-dada1afp.mjs";import{Noa as T,Ooa as C}from"./cli-0.6.13-dvfmqzm9.mjs";import{Vpa as w}from"./cli-0.6.13-5qvssn7h.mjs";import{spawn as G,spawnSync as _}from"child_process";import{basename as R}from"path";function u(q){return!!b(q)}function N(q){let H=R(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function m(q,H,B){if(!B)return[H];if(f.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=N(B);if(Q){let W=m(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>V(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&P.test(R(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=_(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=_(X,M,W)}if(Z.error)return V(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,P,f,v;var j=w(()=>{C();O();I();g();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],P=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,f=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>u(H))})});function a(q){return N(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=s[J]??J;return x(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${D(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=y(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Nq(q,H){let B=L(),J=A();try{let X=H?S(q,H):q;k(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
2
- `)&&!Q.endsWith(`
3
-
4
- `))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var s;var t=w(()=>{o();O();j();d();c();r();p();l();s={code:"code -w",subl:"subl --wait"}});
5
- export{Qq as pg,v as qg,j as rg,i as sg,Nq as tg,t as ug};
@@ -1,2 +0,0 @@
1
- import{Sr as I,Vr as X}from"./cli-0.6.13-2s33ahe4.mjs";import{Dia as H,Nia as W}from"./cli-0.6.13-qyd73z97.mjs";import{Vpa as V}from"./cli-0.6.13-5qvssn7h.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
2
- export{q as Fc,F as Gc,K as Hc,Q as Ic,R as Jc,_ as Kc,j as Lc,Y as Mc};
@@ -1,2 +0,0 @@
1
- import{RX as u2,RZ as e2,_X as Z,kZ as Y,mZ as u}from"./cli-0.6.13-f67v536f.mjs";import{X1 as t,Y1 as o,Z1 as U}from"./cli-0.6.13-fy3vgkpz.mjs";import{f$ as X,h$ as j}from"./cli-0.6.13-hd0sd535.mjs";import{Rpa as s}from"./cli-0.6.13-5qvssn7h.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.6.13"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.6.13"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","0.6.13"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","0.6.13"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
- export{c2 as O};
@@ -1,2 +0,0 @@
1
- import{Hh as g,Ih as Uf}from"./cli-0.6.13-kdm4832x.mjs";import{Mh as A,Oh as Kf}from"./cli-0.6.13-1hj4de9z.mjs";import{AC as jf,BR as k,Fj as w,Gj as zf,Gw as M,Hw as $f,Kl as Jf,LB as c,MB as bf,SP as l,WD as v,Wl as N,am as Qf,au as m,bE as Df,bS as Hf,bu as Zf,cS as d,fs as h,gs as Yf,hR as S,il as Bf,im as L,jl as Gf,nm as Vf,pl as y,qu as C,sQ as Ff,sj as W,uR as p,uu as T,wB as I,wr as E,xC as u,xr as P,yr as Xf,yu as _f}from"./cli-0.6.13-2s33ahe4.mjs";import{nea as R,vea as ff}from"./cli-0.6.13-hd0sd535.mjs";import{Vga as O,Yga as e}from"./cli-0.6.13-prh9py3z.mjs";import{dna as H,ooa as s,qla as F,rka as U,ska as q,xka as x}from"./cli-0.6.13-me17wefv.mjs";import{Spa as K,Vpa as t}from"./cli-0.6.13-5qvssn7h.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await I("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(M(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),c(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:m(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await u("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();$f();Df();Yf();zf();_f();Zf();Ff();ff();Kf();Qf();bf();jf();d();Xf();Vf();Jf();Uf()});
2
- export{lf as Fh,xf as Gh};
@@ -1,2 +0,0 @@
1
- import{Xa as d}from"./cli-0.6.13-p839x5sj.mjs";import{$t as zj,AR as p,BR as X,Bs as qj,Ej as O,Gj as o,Kl as s,LB as I,MB as Jj,RP as Qj,St as k,Vt as V,Xl as y,am as t,bu as Bj,cS as Vj,gR as m,hR as S,iR as A,kS as F,oP as f,om as E,pl as P,pm as e,pw as D,qk as $,ql as R,qw as Hj,rk as n,su as w,tR as c,tu as C,xk as v,yS as Xj,yk as r,yu as Gj,zs as h}from"./cli-0.6.13-2s33ahe4.mjs";import{PT as W,bU as jj}from"./cli-0.6.13-v7kg9gbp.mjs";import{ZV as x,aW as Kj}from"./cli-0.6.13-03nk0m3d.mjs";import{Q4 as T,X4 as u}from"./cli-0.6.13-b3zncvcq.mjs";import{fga as Z,gga as i}from"./cli-0.6.13-gpb93cvz.mjs";import{$ha as l,Yha as b}from"./cli-0.6.13-dada1afp.mjs";import{Cla as M,Ela as N,Kna as K,ooa as g,rka as U,uka as _,zka as Y}from"./cli-0.6.13-me17wefv.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Bj();Kj();i();l();qj();Qj();u();t();n();Jj();Vj();jj();Hj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=D().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!w(Q))C(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
2
- export{aj as ua,Pj as va,Rj as wa,Ej as xa,gj as ya,lj as za};
@@ -1,2 +0,0 @@
1
- import{$o as _,DK as m,EK as h,IK as c,Wo as L,Xo as D,Yo as O,ap as S,jK as R,nK as b,qK as w,wK as M,yK as P}from"./cli-0.6.13-2s33ahe4.mjs";import{Gba as E,faa as x,naa as T,nea as N,rba as B,tba as A,vea as j,wba as C}from"./cli-0.6.13-hd0sd535.mjs";import{fga as U,gga as v}from"./cli-0.6.13-gpb93cvz.mjs";import{$ha as F,Yha as G}from"./cli-0.6.13-dada1afp.mjs";import{Vpa as y}from"./cli-0.6.13-5qvssn7h.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{v();F();j();E();D();P();b();S();c();T()});
2
- export{qq as Pd,zq as Qd,Jq as Rd,Kq as Sd,p as Td,Qq as Ud,Vq as Vd,a as Wd};