@claudiolabs/claudin 1.1.29 → 1.1.30

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 (919) hide show
  1. package/dist/chunks/AgentTool-1.1.30-3wq8zzaa.mjs +1 -0
  2. package/dist/chunks/App-1.1.30-ywb53g2c.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.30-wtpe9n8e.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.30-776xks64.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.30-bjm91hx0.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.30-rcy7msd9.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.30-bexsqxcb.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.30-jfhq3h4z.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.30-kqds97f2.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.30-48qzfckm.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.30-tfv4wc5m.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.30-z31ecx5v.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.30-f17w1kzx.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.30-fzajgngq.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.30-15c4h452.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.30-xajg2p3r.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.30-8jrhxd1r.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.30-74pzzw1d.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.30-8bmshptz.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.30-v5fnwt30.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.30-v55nsv7g.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.30-2hg56v1b.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.30-r2hwd3a6.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.30-y6hny4s2.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.30-cq18pvam.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.30-qp3cr0fk.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.30-ydaqb760.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.30-gta8twv0.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.30-rxcmv28v.mjs +1 -0
  30. package/dist/chunks/agents-1.1.30-d5hxfnnt.mjs +3 -0
  31. package/dist/chunks/agents-1.1.30-q3f25044.mjs +110 -0
  32. package/dist/chunks/api-1.1.30-30hng0e4.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.30-mhcedd5b.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.30-1zxsr09t.mjs +1 -0
  35. package/dist/chunks/auth-1.1.30-mmymct98.mjs +1 -0
  36. package/dist/chunks/auth-1.1.30-ntfwzwxz.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.30-9jd1avyj.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.30-8cnp296z.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.30-f0wbf5ha.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.30-b7t4y9th.mjs +1 -0
  41. package/dist/chunks/branch-1.1.30-x77nhthz.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.30-scfmh172.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.30-8hd92b6p.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.30-n5c6p8kd.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.30-9cpc29zx.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.30-gsa0eerc.mjs +1 -0
  47. package/dist/chunks/btw-1.1.30-gyh84rd1.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.30-vzfs4xt1.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.30-qjppzj5p.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.30-w1c0ekr4.mjs +4 -0
  51. package/dist/chunks/caches-1.1.30-6rye5cdg.mjs +1 -0
  52. package/dist/chunks/cd-1.1.30-tn402589.mjs +3 -0
  53. package/dist/chunks/claudeDesktop-1.1.30-sm5ncwqz.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.30-36eyf63s.mjs +1 -0
  55. package/dist/chunks/clear-1.1.30-p5p9kp96.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.30-nrdembs6.mjs +1 -0
  57. package/dist/chunks/cli-1.1.30-053d5ph7.mjs +2 -0
  58. package/dist/chunks/cli-1.1.30-092dkm0p.mjs +2 -0
  59. package/dist/chunks/cli-1.1.30-0e0e9msg.mjs +17 -0
  60. package/dist/chunks/cli-1.1.30-0fz758j0.mjs +2 -0
  61. package/dist/chunks/cli-1.1.30-0qcyzbs1.mjs +2 -0
  62. package/dist/chunks/cli-1.1.30-0yafp3ky.mjs +2 -0
  63. package/dist/chunks/cli-1.1.30-1j4dyr5r.mjs +2 -0
  64. package/dist/chunks/cli-1.1.30-1k2bwved.mjs +3 -0
  65. package/dist/chunks/cli-1.1.30-1qczaqkt.mjs +2 -0
  66. package/dist/chunks/cli-1.1.30-1wfffyq2.mjs +2 -0
  67. package/dist/chunks/cli-1.1.30-1xmhk219.mjs +2 -0
  68. package/dist/chunks/cli-1.1.30-1ybfyckn.mjs +2 -0
  69. package/dist/chunks/cli-1.1.30-1zsgv3yp.mjs +2 -0
  70. package/dist/chunks/cli-1.1.30-2af3eeg6.mjs +2 -0
  71. package/dist/chunks/cli-1.1.30-2hw4vdpg.mjs +2 -0
  72. package/dist/chunks/cli-1.1.30-2pqs37e0.mjs +3 -0
  73. package/dist/chunks/cli-1.1.30-2y4yj9sd.mjs +2 -0
  74. package/dist/chunks/cli-1.1.30-2yd2af56.mjs +50 -0
  75. package/dist/chunks/cli-1.1.30-2zq3aea6.mjs +2 -0
  76. package/dist/chunks/cli-1.1.30-322advqh.mjs +4 -0
  77. package/dist/chunks/cli-1.1.30-3b1nw95m.mjs +2 -0
  78. package/dist/chunks/cli-1.1.30-3c6j35rs.mjs +2 -0
  79. package/dist/chunks/cli-1.1.30-3x86c2pa.mjs +24 -0
  80. package/dist/chunks/cli-1.1.30-489cr054.mjs +2 -0
  81. package/dist/chunks/cli-1.1.30-4d90v0pd.mjs +6 -0
  82. package/dist/chunks/cli-1.1.30-4kytbyxq.mjs +15 -0
  83. package/dist/chunks/cli-1.1.30-4t03vay7.mjs +2 -0
  84. package/dist/chunks/cli-1.1.30-4wqfr0ya.mjs +2 -0
  85. package/dist/chunks/cli-1.1.30-4zrfbe17.mjs +2 -0
  86. package/dist/chunks/cli-1.1.30-51kze0eh.mjs +2 -0
  87. package/dist/chunks/cli-1.1.30-569esepc.mjs +60 -0
  88. package/dist/chunks/cli-1.1.30-57b410qh.mjs +25 -0
  89. package/dist/chunks/cli-1.1.30-5cc6nada.mjs +2 -0
  90. package/dist/chunks/cli-1.1.30-5f76gnk2.mjs +2 -0
  91. package/dist/chunks/cli-1.1.30-5j2mdj81.mjs +2 -0
  92. package/dist/chunks/cli-1.1.30-5pn20fxz.mjs +2 -0
  93. package/dist/chunks/cli-1.1.30-5r9pakw5.mjs +2 -0
  94. package/dist/chunks/cli-1.1.30-63ndyxgm.mjs +2 -0
  95. package/dist/chunks/cli-1.1.30-6eaj3n76.mjs +9 -0
  96. package/dist/chunks/cli-1.1.30-6phpx599.mjs +2 -0
  97. package/dist/chunks/cli-1.1.30-6pp4z5px.mjs +2 -0
  98. package/dist/chunks/cli-1.1.30-7a064pfm.mjs +2 -0
  99. package/dist/chunks/cli-1.1.30-7bdj31x8.mjs +2 -0
  100. package/dist/chunks/cli-1.1.30-7dtpd1ra.mjs +2 -0
  101. package/dist/chunks/cli-1.1.30-7h45a0x6.mjs +6 -0
  102. package/dist/chunks/cli-1.1.30-7ma427qh.mjs +8 -0
  103. package/dist/chunks/cli-1.1.30-7q8f7mp7.mjs +2 -0
  104. package/dist/chunks/cli-1.1.30-84cemtwn.mjs +4 -0
  105. package/dist/chunks/cli-1.1.30-87zsgch6.mjs +21 -0
  106. package/dist/chunks/cli-1.1.30-8a5gwcde.mjs +2 -0
  107. package/dist/chunks/cli-1.1.30-8e36e2c1.mjs +2 -0
  108. package/dist/chunks/cli-1.1.30-8hcc4gax.mjs +15 -0
  109. package/dist/chunks/cli-1.1.30-8t3c3a4k.mjs +20 -0
  110. package/dist/chunks/cli-1.1.30-8vr9ea9g.mjs +2 -0
  111. package/dist/chunks/cli-1.1.30-8zyep40e.mjs +2 -0
  112. package/dist/chunks/cli-1.1.30-902jyjpx.mjs +2 -0
  113. package/dist/chunks/cli-1.1.30-917y0q4m.mjs +2 -0
  114. package/dist/chunks/cli-1.1.30-92t0b3hs.mjs +2 -0
  115. package/dist/chunks/cli-1.1.30-94vhzqcd.mjs +2 -0
  116. package/dist/chunks/cli-1.1.30-9685r12p.mjs +2 -0
  117. package/dist/chunks/cli-1.1.30-9h8mm4pg.mjs +2 -0
  118. package/dist/chunks/cli-1.1.30-9m8jc7as.mjs +4 -0
  119. package/dist/chunks/cli-1.1.30-9rn8qz9x.mjs +2 -0
  120. package/dist/chunks/cli-1.1.30-9s9qp1m7.mjs +2 -0
  121. package/dist/chunks/cli-1.1.30-a1phf5vm.mjs +2 -0
  122. package/dist/chunks/cli-1.1.30-a2ww16zh.mjs +2 -0
  123. package/dist/chunks/cli-1.1.30-a2xctbvc.mjs +18 -0
  124. package/dist/chunks/cli-1.1.30-amecp2v0.mjs +3 -0
  125. package/dist/chunks/cli-1.1.30-aqvjv0jh.mjs +4 -0
  126. package/dist/chunks/cli-1.1.30-aw93z4yt.mjs +2 -0
  127. package/dist/chunks/cli-1.1.30-b1mqmct7.mjs +4 -0
  128. package/dist/chunks/cli-1.1.30-bfqnz691.mjs +2 -0
  129. package/dist/chunks/cli-1.1.30-bgrp9j3q.mjs +2 -0
  130. package/dist/chunks/cli-1.1.30-bwdw42tf.mjs +24 -0
  131. package/dist/chunks/cli-1.1.30-bzjamz5p.mjs +2 -0
  132. package/dist/chunks/cli-1.1.30-c0b5kmhr.mjs +2 -0
  133. package/dist/chunks/cli-1.1.30-c2e2yeaj.mjs +2 -0
  134. package/dist/chunks/cli-1.1.30-c44kpd39.mjs +2 -0
  135. package/dist/chunks/cli-1.1.30-c70p43p6.mjs +133 -0
  136. package/dist/chunks/cli-1.1.30-c9xtenrd.mjs +2 -0
  137. package/dist/chunks/cli-1.1.30-ca1a9ntm.mjs +2 -0
  138. package/dist/chunks/cli-1.1.30-cb34mrvh.mjs +2 -0
  139. package/dist/chunks/cli-1.1.30-cgcdnarw.mjs +2 -0
  140. package/dist/chunks/cli-1.1.30-cjetc80p.mjs +2 -0
  141. package/dist/chunks/cli-1.1.30-cwc68erm.mjs +2 -0
  142. package/dist/chunks/cli-1.1.30-d3n6dp6r.mjs +2 -0
  143. package/dist/chunks/cli-1.1.30-d8chymja.mjs +2 -0
  144. package/dist/chunks/cli-1.1.30-d9sphwgb.mjs +3 -0
  145. package/dist/chunks/cli-1.1.30-dbbhdfn1.mjs +2 -0
  146. package/dist/chunks/cli-1.1.30-dv38qw87.mjs +3 -0
  147. package/dist/chunks/cli-1.1.30-e0fcx44n.mjs +2 -0
  148. package/dist/chunks/cli-1.1.30-e15hq24m.mjs +2 -0
  149. package/dist/chunks/cli-1.1.30-eg5krttf.mjs +2 -0
  150. package/dist/chunks/cli-1.1.30-ehk76t59.mjs +2 -0
  151. package/dist/chunks/cli-1.1.30-em031y3s.mjs +2 -0
  152. package/dist/chunks/cli-1.1.30-endh0hmx.mjs +2 -0
  153. package/dist/chunks/cli-1.1.30-ensp6hjk.mjs +2 -0
  154. package/dist/chunks/cli-1.1.30-erqva8zn.mjs +2 -0
  155. package/dist/chunks/cli-1.1.30-etnn22zf.mjs +2 -0
  156. package/dist/chunks/cli-1.1.30-f6tarbyn.mjs +2 -0
  157. package/dist/chunks/cli-1.1.30-f8qnd0hw.mjs +20 -0
  158. package/dist/chunks/cli-1.1.30-f9cckkn6.mjs +7 -0
  159. package/dist/chunks/cli-1.1.30-f9tp1b8r.mjs +6 -0
  160. package/dist/chunks/cli-1.1.30-facztg9n.mjs +133 -0
  161. package/dist/chunks/cli-1.1.30-fct5wt67.mjs +2 -0
  162. package/dist/chunks/cli-1.1.30-fm4mj7wy.mjs +2 -0
  163. package/dist/chunks/cli-1.1.30-fpa799y4.mjs +3 -0
  164. package/dist/chunks/cli-1.1.30-fzan6qjf.mjs +2 -0
  165. package/dist/chunks/cli-1.1.30-g17zgmea.mjs +3 -0
  166. package/dist/chunks/cli-1.1.30-g3qd3ec3.mjs +2 -0
  167. package/dist/chunks/cli-1.1.30-g4c9mx6r.mjs +2 -0
  168. package/dist/chunks/cli-1.1.30-g9qsgq1r.mjs +2 -0
  169. package/dist/chunks/cli-1.1.30-gdmbygdz.mjs +2 -0
  170. package/dist/chunks/cli-1.1.30-gev0f31f.mjs +24 -0
  171. package/dist/chunks/cli-1.1.30-gk8x7f6m.mjs +2 -0
  172. package/dist/chunks/cli-1.1.30-gncy6j5b.mjs +2 -0
  173. package/dist/chunks/cli-1.1.30-gv4z21b9.mjs +4 -0
  174. package/dist/chunks/cli-1.1.30-gvp1pabq.mjs +2 -0
  175. package/dist/chunks/cli-1.1.30-h5yj1axw.mjs +6 -0
  176. package/dist/chunks/cli-1.1.30-h9pfkdf2.mjs +2 -0
  177. package/dist/chunks/cli-1.1.30-ha9qd4n4.mjs +2 -0
  178. package/dist/chunks/cli-1.1.30-he73pyqy.mjs +2 -0
  179. package/dist/chunks/cli-1.1.30-hncb22wm.mjs +2 -0
  180. package/dist/chunks/cli-1.1.30-hxy861gq.mjs +2 -0
  181. package/dist/chunks/cli-1.1.30-j29r8pgr.mjs +4 -0
  182. package/dist/chunks/cli-1.1.30-j2wahkcp.mjs +6 -0
  183. package/dist/chunks/cli-1.1.30-j46p2me4.mjs +3 -0
  184. package/dist/chunks/cli-1.1.30-jb34rbbt.mjs +7 -0
  185. package/dist/chunks/cli-1.1.30-jevxd0jk.mjs +2 -0
  186. package/dist/chunks/cli-1.1.30-jgxnrbme.mjs +2 -0
  187. package/dist/chunks/cli-1.1.30-jvqc1jfc.mjs +2 -0
  188. package/dist/chunks/cli-1.1.30-jyvb3jrk.mjs +3 -0
  189. package/dist/chunks/cli-1.1.30-kx2svwf6.mjs +2 -0
  190. package/dist/chunks/cli-1.1.30-kzbhw1mf.mjs +2 -0
  191. package/dist/chunks/cli-1.1.30-m5fx6y02.mjs +2 -0
  192. package/dist/chunks/cli-1.1.30-m5ta5zwh.mjs +2 -0
  193. package/dist/chunks/cli-1.1.30-m62yy9h8.mjs +2 -0
  194. package/dist/chunks/cli-1.1.30-mebteknr.mjs +206 -0
  195. package/dist/chunks/cli-1.1.30-mef66hvr.mjs +10 -0
  196. package/dist/chunks/cli-1.1.30-mgj06132.mjs +2 -0
  197. package/dist/chunks/cli-1.1.30-mpmg84pk.mjs +3 -0
  198. package/dist/chunks/cli-1.1.30-mz5a585j.mjs +9 -0
  199. package/dist/chunks/cli-1.1.30-n306djbd.mjs +2 -0
  200. package/dist/chunks/cli-1.1.30-naaxghkh.mjs +2 -0
  201. package/dist/chunks/cli-1.1.30-nhfsct38.mjs +2 -0
  202. package/dist/chunks/cli-1.1.30-p3m6d618.mjs +2 -0
  203. package/dist/chunks/cli-1.1.30-p63h2njx.mjs +42 -0
  204. package/dist/chunks/cli-1.1.30-p6bsj13y.mjs +2 -0
  205. package/dist/chunks/cli-1.1.30-pc2wp50b.mjs +5504 -0
  206. package/dist/chunks/cli-1.1.30-pc6nevmd.mjs +2 -0
  207. package/dist/chunks/cli-1.1.30-pez1sh7w.mjs +2 -0
  208. package/dist/chunks/cli-1.1.30-pg6jbgcq.mjs +12 -0
  209. package/dist/chunks/cli-1.1.30-pgx35gqd.mjs +2 -0
  210. package/dist/chunks/cli-1.1.30-pw08jvvr.mjs +3 -0
  211. package/dist/chunks/cli-1.1.30-pzp496y6.mjs +2 -0
  212. package/dist/chunks/cli-1.1.30-q00wdmf9.mjs +2 -0
  213. package/dist/chunks/cli-1.1.30-q51sf5gk.mjs +2 -0
  214. package/dist/chunks/cli-1.1.30-q8sd13v9.mjs +2 -0
  215. package/dist/chunks/cli-1.1.30-q8xgmv1x.mjs +39 -0
  216. package/dist/chunks/cli-1.1.30-qcwzchrc.mjs +2 -0
  217. package/dist/chunks/cli-1.1.30-qdnzwgr7.mjs +2 -0
  218. package/dist/chunks/cli-1.1.30-qjdmnkfj.mjs +2 -0
  219. package/dist/chunks/cli-1.1.30-qm4vn98q.mjs +2 -0
  220. package/dist/chunks/cli-1.1.30-qn71nvqn.mjs +2 -0
  221. package/dist/chunks/cli-1.1.30-qykdr3bk.mjs +2 -0
  222. package/dist/chunks/cli-1.1.30-r4ap6bq3.mjs +4 -0
  223. package/dist/chunks/cli-1.1.30-rdbwn1xc.mjs +2 -0
  224. package/dist/chunks/cli-1.1.30-rdgv4qpw.mjs +2 -0
  225. package/dist/chunks/cli-1.1.30-s2b0zbj0.mjs +1 -0
  226. package/dist/chunks/cli-1.1.30-s7f7x42j.mjs +2 -0
  227. package/dist/chunks/cli-1.1.30-sdxgwxfm.mjs +2 -0
  228. package/dist/chunks/cli-1.1.30-sgm7bcet.mjs +58 -0
  229. package/dist/chunks/cli-1.1.30-sr3wnzt7.mjs +17 -0
  230. package/dist/chunks/cli-1.1.30-syea4bx7.mjs +2 -0
  231. package/dist/chunks/cli-1.1.30-t27wxks6.mjs +6 -0
  232. package/dist/chunks/cli-1.1.30-tc8vq728.mjs +15 -0
  233. package/dist/chunks/cli-1.1.30-tcz89gqa.mjs +2 -0
  234. package/dist/chunks/cli-1.1.30-tt85hxby.mjs +25 -0
  235. package/dist/chunks/cli-1.1.30-ty0pw373.mjs +24 -0
  236. package/dist/chunks/cli-1.1.30-vcexen3n.mjs +2 -0
  237. package/dist/chunks/cli-1.1.30-vda14n5e.mjs +2 -0
  238. package/dist/chunks/cli-1.1.30-vf6wrqmh.mjs +2 -0
  239. package/dist/chunks/cli-1.1.30-vhh5kt6v.mjs +2 -0
  240. package/dist/chunks/cli-1.1.30-vrgnzjd2.mjs +2 -0
  241. package/dist/chunks/cli-1.1.30-w9wdamqc.mjs +34 -0
  242. package/dist/chunks/cli-1.1.30-wfs29rd9.mjs +12 -0
  243. package/dist/chunks/cli-1.1.30-wgmdrp34.mjs +2 -0
  244. package/dist/chunks/cli-1.1.30-wjx6yhry.mjs +2 -0
  245. package/dist/chunks/cli-1.1.30-wmpgbhw0.mjs +16 -0
  246. package/dist/chunks/cli-1.1.30-x76str7r.mjs +3 -0
  247. package/dist/chunks/cli-1.1.30-x8wzmxay.mjs +2 -0
  248. package/dist/chunks/cli-1.1.30-x960htw5.mjs +2 -0
  249. package/dist/chunks/cli-1.1.30-xhk0n48x.mjs +2 -0
  250. package/dist/chunks/cli-1.1.30-xqb55m51.mjs +2 -0
  251. package/dist/chunks/cli-1.1.30-xrrzhx6s.mjs +5 -0
  252. package/dist/chunks/cli-1.1.30-xxvagrpc.mjs +2 -0
  253. package/dist/chunks/cli-1.1.30-ycv7a9hg.mjs +2 -0
  254. package/dist/chunks/cli-1.1.30-ygdwz4ed.mjs +4 -0
  255. package/dist/chunks/cli-1.1.30-yt59tc1t.mjs +2 -0
  256. package/dist/chunks/cli-1.1.30-yw5qpt76.mjs +2 -0
  257. package/dist/chunks/cli-1.1.30-yy92v8yq.mjs +63 -0
  258. package/dist/chunks/cli-1.1.30-z1e7k65a.mjs +5 -0
  259. package/dist/chunks/cli-1.1.30-z9xfs5zq.mjs +2 -0
  260. package/dist/chunks/cli-1.1.30-zfz29t3v.mjs +3 -0
  261. package/dist/chunks/cli-1.1.30-zj3nk96z.mjs +2 -0
  262. package/dist/chunks/cli-1.1.30-zm2e2zvb.mjs +2 -0
  263. package/dist/chunks/cli-1.1.30-zpss0nht.mjs +3 -0
  264. package/dist/chunks/cli-1.1.30-zxkfqcvj.mjs +2 -0
  265. package/dist/chunks/cli-1.1.30-zych8w4z.mjs +45 -0
  266. package/dist/chunks/client-1.1.30-6xd07jrd.mjs +1 -0
  267. package/dist/chunks/color-1.1.30-yhxh49s0.mjs +1 -0
  268. package/dist/chunks/compact-1.1.30-wxxb111z.mjs +3 -0
  269. package/dist/chunks/config-1.1.30-4gdp5w7v.mjs +1 -0
  270. package/dist/chunks/config-1.1.30-s02sv9vf.mjs +1 -0
  271. package/dist/chunks/constants-1.1.30-g1xm727k.mjs +1 -0
  272. package/dist/chunks/context-1.1.30-pepgc836.mjs +1 -0
  273. package/dist/chunks/context-noninteractive-1.1.30-ahdmm09h.mjs +1 -0
  274. package/dist/chunks/conversation-1.1.30-93marv3a.mjs +1 -0
  275. package/dist/chunks/copilotHeaders-1.1.30-ypx3j03s.mjs +1 -0
  276. package/dist/chunks/copy-1.1.30-bsfx33za.mjs +9 -0
  277. package/dist/chunks/cost-1.1.30-rhgx2a0h.mjs +1 -0
  278. package/dist/chunks/createSSHSession-1.1.30-p5qve4c1.mjs +1 -0
  279. package/dist/chunks/createSession-1.1.30-rwvvv9na.mjs +1 -0
  280. package/dist/chunks/debug-1.1.30-j1zw0q5b.mjs +1 -0
  281. package/dist/chunks/defaultActionDeps-1.1.30-5gkcnqp5.mjs +1481 -0
  282. package/dist/chunks/desktop-1.1.30-rwbfgek7.mjs +1 -0
  283. package/dist/chunks/detectRepository-1.1.30-2xwvggy6.mjs +1 -0
  284. package/dist/chunks/detection-1.1.30-kkar89w6.mjs +1 -0
  285. package/dist/chunks/diff-1.1.30-t1r0x9g4.mjs +1 -0
  286. package/dist/chunks/doctor-1.1.30-cvqts45f.mjs +1 -0
  287. package/dist/chunks/doctorDiagnostic-1.1.30-smg0046q.mjs +1 -0
  288. package/dist/chunks/earlyInput-1.1.30-cpx4e858.mjs +1 -0
  289. package/dist/chunks/effort-1.1.30-jdxyeqz7.mjs +13 -0
  290. package/dist/chunks/engine-1.1.30-8qhtasfe.mjs +1 -0
  291. package/dist/chunks/envLessBridgeConfig-1.1.30-jnz4sy6x.mjs +1 -0
  292. package/dist/chunks/envUtils-1.1.30-y5dyaydm.mjs +1 -0
  293. package/dist/chunks/environmentSelection-1.1.30-w1z47qad.mjs +1 -0
  294. package/dist/chunks/environments-1.1.30-sjscvfn9.mjs +1 -0
  295. package/dist/chunks/errors-1.1.30-7cmbc98j.mjs +1 -0
  296. package/dist/chunks/exampleCommands-1.1.30-jx9hvt2q.mjs +1 -0
  297. package/dist/chunks/execFileNoThrow-1.1.30-dqrsra7k.mjs +1 -0
  298. package/dist/chunks/exit-1.1.30-m2yzbcth.mjs +1 -0
  299. package/dist/chunks/explorer-1.1.30-5tat30es.mjs +1 -0
  300. package/dist/chunks/export-1.1.30-545a0v8x.mjs +2 -0
  301. package/dist/chunks/extra-usage-1.1.30-5k9b4t6b.mjs +1 -0
  302. package/dist/chunks/extra-usage-noninteractive-1.1.30-h5fqbtg3.mjs +1 -0
  303. package/dist/chunks/fast-1.1.30-91wr1vy4.mjs +1 -0
  304. package/dist/chunks/feedback-1.1.30-36xrb399.mjs +14 -0
  305. package/dist/chunks/firstPartyEventLogger-1.1.30-be1ke8r3.mjs +1 -0
  306. package/dist/chunks/git-1.1.30-sxa8xf85.mjs +1 -0
  307. package/dist/chunks/githubModelsCredentials-1.1.30-m7a8kdwg.mjs +1 -0
  308. package/dist/chunks/goal-1.1.30-71sj2735.mjs +4 -0
  309. package/dist/chunks/growthbook-1.1.30-rx44zvrq.mjs +1 -0
  310. package/dist/chunks/headless-1.1.30-h98t9mfb.mjs +2 -0
  311. package/dist/chunks/heapdump-1.1.30-82m1rvjw.mjs +6 -0
  312. package/dist/chunks/help-1.1.30-vnsg1001.mjs +1 -0
  313. package/dist/chunks/hookChains-1.1.30-tc5ff3xr.mjs +3 -0
  314. package/dist/chunks/hooks-1.1.30-2sctf45c.mjs +79 -0
  315. package/dist/chunks/hooks-1.1.30-707b390t.mjs +1 -0
  316. package/dist/chunks/ide-1.1.30-e8neepsj.mjs +3 -0
  317. package/dist/chunks/image-processor-napi-1.1.30-gcqgfeec.mjs +1 -0
  318. package/dist/chunks/import-1.1.30-g0p9rj63.mjs +261 -0
  319. package/dist/chunks/inboundAttachments-1.1.30-a5p4ftqg.mjs +1 -0
  320. package/dist/chunks/index-1.1.30-00d73fwg.mjs +1 -0
  321. package/dist/chunks/index-1.1.30-0sdck5q1.mjs +9 -0
  322. package/dist/chunks/index-1.1.30-38597fv3.mjs +5 -0
  323. package/dist/chunks/index-1.1.30-3z58evcj.mjs +1 -0
  324. package/dist/chunks/index-1.1.30-5k081eyt.mjs +1 -0
  325. package/dist/chunks/index-1.1.30-8n15b4e3.mjs +2 -0
  326. package/dist/chunks/index-1.1.30-9nx8fm72.mjs +1 -0
  327. package/dist/chunks/index-1.1.30-9zfyk995.mjs +23 -0
  328. package/dist/chunks/index-1.1.30-ba27qy75.mjs +1 -0
  329. package/dist/chunks/index-1.1.30-cddndqaa.mjs +1 -0
  330. package/dist/chunks/index-1.1.30-cnbcr7zp.mjs +1 -0
  331. package/dist/chunks/index-1.1.30-f65yg5kz.mjs +9 -0
  332. package/dist/chunks/index-1.1.30-fwvhky1a.mjs +1 -0
  333. package/dist/chunks/index-1.1.30-hmnpjmd5.mjs +1 -0
  334. package/dist/chunks/index-1.1.30-nemv1gaj.mjs +1 -0
  335. package/dist/chunks/index-1.1.30-pnpy7v0s.mjs +1 -0
  336. package/dist/chunks/index-1.1.30-q4x054c8.mjs +2 -0
  337. package/dist/chunks/index-1.1.30-racdqjba.mjs +1 -0
  338. package/dist/chunks/index-1.1.30-scb66j47.mjs +1 -0
  339. package/dist/chunks/index-1.1.30-tfz6950h.mjs +30 -0
  340. package/dist/chunks/index-1.1.30-tx381qq5.mjs +1 -0
  341. package/dist/chunks/index-1.1.30-w4zhj1qd.mjs +1 -0
  342. package/dist/chunks/index-1.1.30-xxh224ea.mjs +1 -0
  343. package/dist/chunks/init-1.1.30-txzpz2vm.mjs +1 -0
  344. package/dist/chunks/initReplBridge-1.1.30-hkrhwfr3.mjs +1 -0
  345. package/dist/chunks/ink-1.1.30-av1t4b54.mjs +1 -0
  346. package/dist/chunks/insights-1.1.30-nbs0zndp.mjs +870 -0
  347. package/dist/chunks/install-1.1.30-kd3vnaat.mjs +1 -0
  348. package/dist/chunks/install-github-app-1.1.30-ea78ytf6.mjs +149 -0
  349. package/dist/chunks/install-slack-app-1.1.30-v2q1py01.mjs +1 -0
  350. package/dist/chunks/instrumentation-1.1.30-20686d7h.mjs +1 -0
  351. package/dist/chunks/interactiveHelpers-1.1.30-rd0zzjyp.mjs +1 -0
  352. package/dist/chunks/keybindings-1.1.30-157aap7w.mjs +2 -0
  353. package/dist/chunks/knowledge-1.1.30-4mcx1txk.mjs +2 -0
  354. package/dist/chunks/latestVersionCache-1.1.30-65qvjpys.mjs +1 -0
  355. package/dist/chunks/loadAgentsDir-1.1.30-nfrca2zv.mjs +1 -0
  356. package/dist/chunks/loadPluginHooks-1.1.30-wa8regkc.mjs +1 -0
  357. package/dist/chunks/log-1.1.30-nh81h0jz.mjs +1 -0
  358. package/dist/chunks/main-1.1.30-87zf4enf.mjs +1 -0
  359. package/dist/chunks/managedEnv-1.1.30-p38nd6r6.mjs +1 -0
  360. package/dist/chunks/mcp-1.1.30-egynhffm.mjs +17 -0
  361. package/dist/chunks/mcp-1.1.30-gaz9mgmq.mjs +4 -0
  362. package/dist/chunks/mcp-1.1.30-r6q89d8c.mjs +1 -0
  363. package/dist/chunks/mcpb-1.1.30-qxpx83j6.mjs +1 -0
  364. package/dist/chunks/memory-1.1.30-72gbfb3b.mjs +77 -0
  365. package/dist/chunks/model-1.1.30-7nsbqqvm.mjs +2 -0
  366. package/dist/chunks/model-1.1.30-f7d6dbt2.mjs +1 -0
  367. package/dist/chunks/node-1.1.30-nbnhkya6.mjs +15 -0
  368. package/dist/chunks/node-1.1.30-vaaf7x0g.mjs +1 -0
  369. package/dist/chunks/oauth-1.1.30-g201gbyg.mjs +1 -0
  370. package/dist/chunks/openaiShim-1.1.30-rz4xax1e.mjs +14 -0
  371. package/dist/chunks/output-style-1.1.30-ms4eck90.mjs +1 -0
  372. package/dist/chunks/package-D2QZMRW7-1.1.30-08c7mgpt.mjs +1 -0
  373. package/dist/chunks/parseConnectUrl-1.1.30-bd7ade4m.mjs +1 -0
  374. package/dist/chunks/parser-1.1.30-qe7n0vnw.mjs +1 -0
  375. package/dist/chunks/passes-1.1.30-3cz64bpa.mjs +1 -0
  376. package/dist/chunks/permissions-1.1.30-28z7ax7g.mjs +3 -0
  377. package/dist/chunks/permissions-1.1.30-vgtb4qf9.mjs +1 -0
  378. package/dist/chunks/plan-1.1.30-s865r5b5.mjs +1 -0
  379. package/dist/chunks/plist-1.1.30-pxa62mce.mjs +1 -0
  380. package/dist/chunks/plugin-1.1.30-6apj9sf8.mjs +29 -0
  381. package/dist/chunks/pluginStartupCheck-1.1.30-gmcab9kx.mjs +1 -0
  382. package/dist/chunks/plugins-1.1.30-40c7sagf.mjs +9 -0
  383. package/dist/chunks/preActionHook-1.1.30-q2g48qsk.mjs +2 -0
  384. package/dist/chunks/print-1.1.30-drvg0v0c.mjs +57 -0
  385. package/dist/chunks/process-1.1.30-f6y2msx6.mjs +1 -0
  386. package/dist/chunks/processBashCommand-1.1.30-5bzgcejg.mjs +1 -0
  387. package/dist/chunks/processSlashCommand-1.1.30-2bwd1kpt.mjs +9 -0
  388. package/dist/chunks/prompt-1.1.30-9rbbx5vr.mjs +1 -0
  389. package/dist/chunks/prompt-1.1.30-phmv317m.mjs +1 -0
  390. package/dist/chunks/prompts-1.1.30-1myv5ewh.mjs +1 -0
  391. package/dist/chunks/protocolHandler-1.1.30-d6jkd0dk.mjs +13 -0
  392. package/dist/chunks/provider-1.1.30-cwkzb2t8.mjs +2 -0
  393. package/dist/chunks/providerProfiles-1.1.30-qe0y7b6e.mjs +1 -0
  394. package/dist/chunks/providerValidation-1.1.30-rzg2nkx3.mjs +6 -0
  395. package/dist/chunks/rate-limit-options-1.1.30-4q04y9f7.mjs +1 -0
  396. package/dist/chunks/registerSubcommands-1.1.30-k3ar1dyg.mjs +26 -0
  397. package/dist/chunks/registry-1.1.30-epdyxcsa.mjs +1 -0
  398. package/dist/chunks/release-notes-1.1.30-k11yp5hh.mjs +5 -0
  399. package/dist/chunks/reload-plugins-1.1.30-n7qhqqr3.mjs +2 -0
  400. package/dist/chunks/remote-env-1.1.30-f8e03jpx.mjs +1 -0
  401. package/dist/chunks/remoteBridgeCore-1.1.30-fqankvvx.mjs +1 -0
  402. package/dist/chunks/remoteSession-1.1.30-fc5x1bz4.mjs +1 -0
  403. package/dist/chunks/rename-1.1.30-vw8eyfha.mjs +1 -0
  404. package/dist/chunks/replBridgeHandle-1.1.30-bagtg7fm.mjs +1 -0
  405. package/dist/chunks/replLauncher-1.1.30-318vaq80.mjs +1 -0
  406. package/dist/chunks/resume-1.1.30-jrj1wpvj.mjs +2 -0
  407. package/dist/chunks/rewind-1.1.30-z97mdn25.mjs +1 -0
  408. package/dist/chunks/rootOptions-1.1.30-ybrgmmyy.mjs +1 -0
  409. package/dist/chunks/runWorkflowHeadless-1.1.30-w3gn8w75.mjs +10 -0
  410. package/dist/chunks/sandbox-adapter-1.1.30-4rd9w5by.mjs +1 -0
  411. package/dist/chunks/sandbox-toggle-1.1.30-zmtfq25w.mjs +1 -0
  412. package/dist/chunks/session-1.1.30-sbykpbav.mjs +2 -0
  413. package/dist/chunks/sessionDiscovery-1.1.30-dd680nx7.mjs +1 -0
  414. package/dist/chunks/sessionFileAccessHooks-1.1.30-4rhdr018.mjs +1 -0
  415. package/dist/chunks/sessionStorage-1.1.30-cwb5a83p.mjs +1 -0
  416. package/dist/chunks/settings-1.1.30-xxee6nzb.mjs +1 -0
  417. package/dist/chunks/setup-1.1.30-p2wwqw6v.mjs +12 -0
  418. package/dist/chunks/sinks-1.1.30-phkc3yep.mjs +1 -0
  419. package/dist/chunks/skills-1.1.30-vsg5twx1.mjs +1 -0
  420. package/dist/chunks/startupProfiler-1.1.30-wa0xbx1z.mjs +1 -0
  421. package/dist/chunks/startupUpdateCheck-1.1.30-9cgnvwtt.mjs +1 -0
  422. package/dist/chunks/state-1.1.30-ge0kb9gr.mjs +1 -0
  423. package/dist/chunks/stats-1.1.30-n5w7ehyg.mjs +1 -0
  424. package/dist/chunks/status-1.1.30-snsvg4xb.mjs +1 -0
  425. package/dist/chunks/stickers-1.1.30-7ffpw08c.mjs +1 -0
  426. package/dist/chunks/subprocessEnv-1.1.30-5efpmhgz.mjs +1 -0
  427. package/dist/chunks/tasks-1.1.30-ykgkx7d8.mjs +1 -0
  428. package/dist/chunks/teamHelpers-1.1.30-cjjzmnj6.mjs +1 -0
  429. package/dist/chunks/teammateModeSnapshot-1.1.30-e2mh88ze.mjs +1 -0
  430. package/dist/chunks/teleport-1.1.30-9y1akw6m.mjs +1 -0
  431. package/dist/chunks/terminalSetup-1.1.30-mwbzfrfc.mjs +1 -0
  432. package/dist/chunks/theme-1.1.30-9dqykgv2.mjs +1 -0
  433. package/dist/chunks/thinkback-1.1.30-3pbzqt97.mjs +1 -0
  434. package/dist/chunks/thinkback-play-1.1.30-83akae4q.mjs +1 -0
  435. package/dist/chunks/toolPool-1.1.30-3kvrwtxa.mjs +1 -0
  436. package/dist/chunks/toolSearch-1.1.30-s60zcj4t.mjs +1 -0
  437. package/dist/chunks/tools-1.1.30-by0ddhf4.mjs +1 -0
  438. package/dist/chunks/trustedDevice-1.1.30-ecq2hfrc.mjs +1 -0
  439. package/dist/chunks/turndown.cjs-1.1.30-m5hyejns.mjs +69 -0
  440. package/dist/chunks/types-1.1.30-mrv5q877.mjs +1 -0
  441. package/dist/chunks/ultrareviewCommand-1.1.30-5etzjedp.mjs +4 -0
  442. package/dist/chunks/update-1.1.30-ax60cy72.mjs +72 -0
  443. package/dist/chunks/upgrade-1.1.30-hrny7f12.mjs +1 -0
  444. package/dist/chunks/upload-1.1.30-s0z8kw2s.mjs +7 -0
  445. package/dist/chunks/upstreamproxy-1.1.30-tkvbafsh.mjs +14 -0
  446. package/dist/chunks/url-handler-napi-1.1.30-enhczdhm.mjs +1 -0
  447. package/dist/chunks/usage-1.1.30-ew9dakf2.mjs +1 -0
  448. package/dist/chunks/util-1.1.30-knp77fm5.mjs +1 -0
  449. package/dist/chunks/utils-1.1.30-74ykpfac.mjs +1 -0
  450. package/dist/chunks/vim-1.1.30-y01vnb23.mjs +1 -0
  451. package/dist/chunks/watchLoop-1.1.30-sjecqqx4.mjs +13 -0
  452. package/dist/chunks/watcher-1.1.30-qnfq5sma.mjs +1 -0
  453. package/dist/chunks/wiki-1.1.30-qddcp6x2.mjs +132 -0
  454. package/dist/chunks/workflows-1.1.30-j5wcb76g.mjs +1 -0
  455. package/dist/chunks/worktree-1.1.30-m6gvqkc9.mjs +1 -0
  456. package/dist/chunks/worktreeModeEnabled-1.1.30-nma5ggmd.mjs +1 -0
  457. package/dist/chunks/wrapper-1.1.30-c8vm3try.mjs +7 -0
  458. package/dist/cli.mjs +2 -2
  459. package/package.json +9 -9
  460. package/dist/chunks/AgentTool-1.1.29-awhbrkah.mjs +0 -1
  461. package/dist/chunks/App-1.1.29-pm1xvr3g.mjs +0 -1
  462. package/dist/chunks/ApproveApiKey-1.1.29-c44twxse.mjs +0 -1
  463. package/dist/chunks/AssistantSessionChooser-1.1.29-f11by8v4.mjs +0 -1
  464. package/dist/chunks/AutoModeOptInDialog-1.1.29-vnqj2te2.mjs +0 -1
  465. package/dist/chunks/BypassPermissionsModeDialog-1.1.29-z2ah9t9j.mjs +0 -1
  466. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.29-30pn689g.mjs +0 -1
  467. package/dist/chunks/ConsoleOAuthFlow-1.1.29-sja8s9ck.mjs +0 -1
  468. package/dist/chunks/DiffDialog-1.1.29-k98h1gzp.mjs +0 -6
  469. package/dist/chunks/Doctor-1.1.29-ab8tjfg7.mjs +0 -1
  470. package/dist/chunks/ExplorerDialog-1.1.29-16y5q4ta.mjs +0 -6
  471. package/dist/chunks/ITermBackend-1.1.29-rk6hjgv2.mjs +0 -1
  472. package/dist/chunks/InvalidConfigDialog-1.1.29-kwjexf2x.mjs +0 -1
  473. package/dist/chunks/InvalidSettingsDialog-1.1.29-479a268q.mjs +0 -1
  474. package/dist/chunks/MigrationDialog-1.1.29-vshc8a59.mjs +0 -1
  475. package/dist/chunks/Onboarding-1.1.29-snkzzfjw.mjs +0 -1
  476. package/dist/chunks/ProviderManager-1.1.29-x67swksb.mjs +0 -1
  477. package/dist/chunks/REPL-1.1.29-yw76hfjs.mjs +0 -1
  478. package/dist/chunks/ResumeConversation-1.1.29-033m6wha.mjs +0 -1
  479. package/dist/chunks/SnapshotUpdateDialog-1.1.29-kbtx0xa6.mjs +0 -1
  480. package/dist/chunks/TeleportProgress-1.1.29-dq4fkj22.mjs +0 -1
  481. package/dist/chunks/TeleportRepoMismatchDialog-1.1.29-x5fsxqa3.mjs +0 -1
  482. package/dist/chunks/TeleportResumeWrapper-1.1.29-18h9wdn7.mjs +0 -1
  483. package/dist/chunks/TmuxBackend-1.1.29-42z37x43.mjs +0 -9
  484. package/dist/chunks/ToolSearchTool-1.1.29-dkk7q8sf.mjs +0 -1
  485. package/dist/chunks/TrustDialog-1.1.29-944b5g4w.mjs +0 -1
  486. package/dist/chunks/activeProvider-1.1.29-j7qknp7t.mjs +0 -1
  487. package/dist/chunks/add-dir-1.1.29-na3kdm45.mjs +0 -1
  488. package/dist/chunks/agentTypes-1.1.29-fjjae3tn.mjs +0 -1
  489. package/dist/chunks/agents-1.1.29-gdcf24kq.mjs +0 -110
  490. package/dist/chunks/agents-1.1.29-hbyggbar.mjs +0 -3
  491. package/dist/chunks/api-1.1.29-tb280rgw.mjs +0 -1
  492. package/dist/chunks/asciicast-1.1.29-69mc9agv.mjs +0 -1
  493. package/dist/chunks/assistant-1.1.29-qmvynqfb.mjs +0 -1
  494. package/dist/chunks/auth-1.1.29-k2h0c136.mjs +0 -1
  495. package/dist/chunks/auth-1.1.29-mkh8s4y7.mjs +0 -1
  496. package/dist/chunks/autoMode-1.1.29-5enddc49.mjs +0 -52
  497. package/dist/chunks/autoModeSetup-1.1.29-p4hp4dv6.mjs +0 -44
  498. package/dist/chunks/autoUpdater-1.1.29-sk8rt0mh.mjs +0 -1
  499. package/dist/chunks/backgroundHousekeeping-1.1.29-qxt8xakt.mjs +0 -1
  500. package/dist/chunks/branch-1.1.29-0zwfdt6s.mjs +0 -4
  501. package/dist/chunks/bridge-1.1.29-ee6b7cck.mjs +0 -2
  502. package/dist/chunks/bridgeConfig-1.1.29-4wseqmtn.mjs +0 -1
  503. package/dist/chunks/bridgeEnabled-1.1.29-2r501b1s.mjs +0 -1
  504. package/dist/chunks/bridgeMain-1.1.29-sk2e5ssh.mjs +0 -88
  505. package/dist/chunks/bridgePointer-1.1.29-mjz0jnns.mjs +0 -1
  506. package/dist/chunks/btw-1.1.29-arf7x19m.mjs +0 -1
  507. package/dist/chunks/buddy-1.1.29-awsva6y8.mjs +0 -3
  508. package/dist/chunks/cache-probe-1.1.29-67egf5jw.mjs +0 -21
  509. package/dist/chunks/cacheStats-1.1.29-yk1h4vdq.mjs +0 -4
  510. package/dist/chunks/caches-1.1.29-8ryyt679.mjs +0 -1
  511. package/dist/chunks/cd-1.1.29-w9gepxqm.mjs +0 -3
  512. package/dist/chunks/claudeDesktop-1.1.29-7g8vpmk4.mjs +0 -1
  513. package/dist/chunks/claudemd-1.1.29-z00d07f9.mjs +0 -1
  514. package/dist/chunks/clear-1.1.29-aj6vgn4b.mjs +0 -1
  515. package/dist/chunks/clearTerminal-1.1.29-95xqw9gq.mjs +0 -1
  516. package/dist/chunks/cli-1.1.29-0kfg7hf8.mjs +0 -2
  517. package/dist/chunks/cli-1.1.29-0rnfn0gy.mjs +0 -2
  518. package/dist/chunks/cli-1.1.29-0s73ykp6.mjs +0 -3
  519. package/dist/chunks/cli-1.1.29-0tf52nkw.mjs +0 -8
  520. package/dist/chunks/cli-1.1.29-0v2ryegc.mjs +0 -2
  521. package/dist/chunks/cli-1.1.29-0vpcc8vm.mjs +0 -2
  522. package/dist/chunks/cli-1.1.29-11hr4111.mjs +0 -2
  523. package/dist/chunks/cli-1.1.29-13gvy0m9.mjs +0 -25
  524. package/dist/chunks/cli-1.1.29-153rxzts.mjs +0 -2
  525. package/dist/chunks/cli-1.1.29-17kpfbq0.mjs +0 -2
  526. package/dist/chunks/cli-1.1.29-1dqp4d2w.mjs +0 -2
  527. package/dist/chunks/cli-1.1.29-1pqjxrp8.mjs +0 -2
  528. package/dist/chunks/cli-1.1.29-20bcsb6f.mjs +0 -15
  529. package/dist/chunks/cli-1.1.29-23gv5dgk.mjs +0 -2
  530. package/dist/chunks/cli-1.1.29-247v5hpd.mjs +0 -2
  531. package/dist/chunks/cli-1.1.29-252q86ck.mjs +0 -2
  532. package/dist/chunks/cli-1.1.29-27h8nqm5.mjs +0 -2
  533. package/dist/chunks/cli-1.1.29-29svre2k.mjs +0 -133
  534. package/dist/chunks/cli-1.1.29-2e5s8gsb.mjs +0 -24
  535. package/dist/chunks/cli-1.1.29-2ezms0yf.mjs +0 -2
  536. package/dist/chunks/cli-1.1.29-2hejf6pj.mjs +0 -2
  537. package/dist/chunks/cli-1.1.29-2mcxe125.mjs +0 -2
  538. package/dist/chunks/cli-1.1.29-2sjtk1zb.mjs +0 -2
  539. package/dist/chunks/cli-1.1.29-2tyhgmxe.mjs +0 -2
  540. package/dist/chunks/cli-1.1.29-2yev8mxw.mjs +0 -6
  541. package/dist/chunks/cli-1.1.29-31y8na35.mjs +0 -2
  542. package/dist/chunks/cli-1.1.29-34nqdrk5.mjs +0 -2
  543. package/dist/chunks/cli-1.1.29-35kpvqby.mjs +0 -4
  544. package/dist/chunks/cli-1.1.29-3776marx.mjs +0 -9
  545. package/dist/chunks/cli-1.1.29-37j436rz.mjs +0 -2
  546. package/dist/chunks/cli-1.1.29-3dnft82a.mjs +0 -2
  547. package/dist/chunks/cli-1.1.29-3fcr0sm5.mjs +0 -2
  548. package/dist/chunks/cli-1.1.29-3s4wcn65.mjs +0 -4
  549. package/dist/chunks/cli-1.1.29-40v483aw.mjs +0 -58
  550. package/dist/chunks/cli-1.1.29-4ahf2sg4.mjs +0 -2
  551. package/dist/chunks/cli-1.1.29-4bemzx23.mjs +0 -2
  552. package/dist/chunks/cli-1.1.29-4p953chd.mjs +0 -2
  553. package/dist/chunks/cli-1.1.29-4pdnzc5j.mjs +0 -2
  554. package/dist/chunks/cli-1.1.29-4q271q7a.mjs +0 -2
  555. package/dist/chunks/cli-1.1.29-4w9b7g8h.mjs +0 -3
  556. package/dist/chunks/cli-1.1.29-4xqgqvwm.mjs +0 -2
  557. package/dist/chunks/cli-1.1.29-4yztmbcx.mjs +0 -17
  558. package/dist/chunks/cli-1.1.29-55khgk00.mjs +0 -9
  559. package/dist/chunks/cli-1.1.29-566mygcr.mjs +0 -2
  560. package/dist/chunks/cli-1.1.29-57e9kkv7.mjs +0 -12
  561. package/dist/chunks/cli-1.1.29-57f3k3fp.mjs +0 -5
  562. package/dist/chunks/cli-1.1.29-5bm4np8j.mjs +0 -2
  563. package/dist/chunks/cli-1.1.29-5gydp5n7.mjs +0 -6
  564. package/dist/chunks/cli-1.1.29-5mpj7dft.mjs +0 -2
  565. package/dist/chunks/cli-1.1.29-5p2zzfpq.mjs +0 -4
  566. package/dist/chunks/cli-1.1.29-5pbjmqzt.mjs +0 -2
  567. package/dist/chunks/cli-1.1.29-5svhj1v0.mjs +0 -18
  568. package/dist/chunks/cli-1.1.29-6g47vtst.mjs +0 -2
  569. package/dist/chunks/cli-1.1.29-6kvtrk8a.mjs +0 -2
  570. package/dist/chunks/cli-1.1.29-6mbq5wth.mjs +0 -3
  571. package/dist/chunks/cli-1.1.29-6ngsfhk3.mjs +0 -17
  572. package/dist/chunks/cli-1.1.29-6q1q5fa3.mjs +0 -2
  573. package/dist/chunks/cli-1.1.29-6qykmvew.mjs +0 -2
  574. package/dist/chunks/cli-1.1.29-6t6n6ctd.mjs +0 -2
  575. package/dist/chunks/cli-1.1.29-71e5px3b.mjs +0 -2
  576. package/dist/chunks/cli-1.1.29-740d0ga1.mjs +0 -2
  577. package/dist/chunks/cli-1.1.29-79tgwbnn.mjs +0 -2
  578. package/dist/chunks/cli-1.1.29-7p975zzx.mjs +0 -2
  579. package/dist/chunks/cli-1.1.29-7peev9wq.mjs +0 -3
  580. package/dist/chunks/cli-1.1.29-7pfvq0z6.mjs +0 -60
  581. package/dist/chunks/cli-1.1.29-7vrxybxh.mjs +0 -15
  582. package/dist/chunks/cli-1.1.29-834b4680.mjs +0 -2
  583. package/dist/chunks/cli-1.1.29-8398r1x1.mjs +0 -2
  584. package/dist/chunks/cli-1.1.29-842m4sds.mjs +0 -2
  585. package/dist/chunks/cli-1.1.29-84fpb4zk.mjs +0 -2
  586. package/dist/chunks/cli-1.1.29-89nqwnk6.mjs +0 -3
  587. package/dist/chunks/cli-1.1.29-8c371c3k.mjs +0 -2
  588. package/dist/chunks/cli-1.1.29-8dsnjzad.mjs +0 -2
  589. package/dist/chunks/cli-1.1.29-8eeh9yez.mjs +0 -2
  590. package/dist/chunks/cli-1.1.29-8k2xw0ns.mjs +0 -16
  591. package/dist/chunks/cli-1.1.29-8s0k2ydg.mjs +0 -2
  592. package/dist/chunks/cli-1.1.29-995n5c8r.mjs +0 -2
  593. package/dist/chunks/cli-1.1.29-9fkgjjzm.mjs +0 -2
  594. package/dist/chunks/cli-1.1.29-9n8sz71q.mjs +0 -6
  595. package/dist/chunks/cli-1.1.29-9qc9kyz8.mjs +0 -6
  596. package/dist/chunks/cli-1.1.29-9s3rafev.mjs +0 -2
  597. package/dist/chunks/cli-1.1.29-9s9kgzze.mjs +0 -2
  598. package/dist/chunks/cli-1.1.29-a1p2bm8x.mjs +0 -4
  599. package/dist/chunks/cli-1.1.29-a6pnwve8.mjs +0 -206
  600. package/dist/chunks/cli-1.1.29-aa81cr7r.mjs +0 -2
  601. package/dist/chunks/cli-1.1.29-aazftc8x.mjs +0 -4
  602. package/dist/chunks/cli-1.1.29-ajwqka67.mjs +0 -2
  603. package/dist/chunks/cli-1.1.29-akx5bp37.mjs +0 -2
  604. package/dist/chunks/cli-1.1.29-am1n3767.mjs +0 -5553
  605. package/dist/chunks/cli-1.1.29-aptcshv0.mjs +0 -2
  606. package/dist/chunks/cli-1.1.29-ar7jahd2.mjs +0 -2
  607. package/dist/chunks/cli-1.1.29-bpvwqqqm.mjs +0 -3
  608. package/dist/chunks/cli-1.1.29-bzfhb58d.mjs +0 -21
  609. package/dist/chunks/cli-1.1.29-c67xmzgw.mjs +0 -2
  610. package/dist/chunks/cli-1.1.29-c7eatffy.mjs +0 -7
  611. package/dist/chunks/cli-1.1.29-ccmw3ns3.mjs +0 -2
  612. package/dist/chunks/cli-1.1.29-cgska4m2.mjs +0 -2
  613. package/dist/chunks/cli-1.1.29-cjy4bmpv.mjs +0 -2
  614. package/dist/chunks/cli-1.1.29-cwngf5s4.mjs +0 -2
  615. package/dist/chunks/cli-1.1.29-df0crs3h.mjs +0 -2
  616. package/dist/chunks/cli-1.1.29-dfra4ygt.mjs +0 -2
  617. package/dist/chunks/cli-1.1.29-dpzd32s9.mjs +0 -2
  618. package/dist/chunks/cli-1.1.29-dseazhey.mjs +0 -34
  619. package/dist/chunks/cli-1.1.29-e7b3rw2q.mjs +0 -2
  620. package/dist/chunks/cli-1.1.29-enk5zgkk.mjs +0 -2
  621. package/dist/chunks/cli-1.1.29-eq7p29fp.mjs +0 -2
  622. package/dist/chunks/cli-1.1.29-erh6v56f.mjs +0 -2
  623. package/dist/chunks/cli-1.1.29-es8f8tm1.mjs +0 -2
  624. package/dist/chunks/cli-1.1.29-ex9733z1.mjs +0 -2
  625. package/dist/chunks/cli-1.1.29-f103mqc1.mjs +0 -133
  626. package/dist/chunks/cli-1.1.29-f56z0kjj.mjs +0 -2
  627. package/dist/chunks/cli-1.1.29-f8qh0czy.mjs +0 -24
  628. package/dist/chunks/cli-1.1.29-fhwjnhs2.mjs +0 -12
  629. package/dist/chunks/cli-1.1.29-fsht50yz.mjs +0 -2
  630. package/dist/chunks/cli-1.1.29-g2g0bf6s.mjs +0 -2
  631. package/dist/chunks/cli-1.1.29-g9nssmee.mjs +0 -2
  632. package/dist/chunks/cli-1.1.29-gd1bzvdb.mjs +0 -20
  633. package/dist/chunks/cli-1.1.29-gfwfhh3b.mjs +0 -4
  634. package/dist/chunks/cli-1.1.29-gfyabc3h.mjs +0 -2
  635. package/dist/chunks/cli-1.1.29-gycpj0z6.mjs +0 -2
  636. package/dist/chunks/cli-1.1.29-h1ej5qf0.mjs +0 -2
  637. package/dist/chunks/cli-1.1.29-h4fg85xm.mjs +0 -2
  638. package/dist/chunks/cli-1.1.29-hez6jzkx.mjs +0 -2
  639. package/dist/chunks/cli-1.1.29-hsa1qk75.mjs +0 -2
  640. package/dist/chunks/cli-1.1.29-j17q2nnf.mjs +0 -2
  641. package/dist/chunks/cli-1.1.29-j3n6rxnx.mjs +0 -2
  642. package/dist/chunks/cli-1.1.29-k0yj3sf0.mjs +0 -2
  643. package/dist/chunks/cli-1.1.29-kcfqkdev.mjs +0 -24
  644. package/dist/chunks/cli-1.1.29-kd96jtpb.mjs +0 -2
  645. package/dist/chunks/cli-1.1.29-kjbjanmr.mjs +0 -2
  646. package/dist/chunks/cli-1.1.29-krg96g94.mjs +0 -2
  647. package/dist/chunks/cli-1.1.29-ksekfz16.mjs +0 -3
  648. package/dist/chunks/cli-1.1.29-kywbej24.mjs +0 -3
  649. package/dist/chunks/cli-1.1.29-m4bwjmrm.mjs +0 -2
  650. package/dist/chunks/cli-1.1.29-m4j21s8k.mjs +0 -3
  651. package/dist/chunks/cli-1.1.29-m7rehwdd.mjs +0 -58
  652. package/dist/chunks/cli-1.1.29-mcacd7ag.mjs +0 -2
  653. package/dist/chunks/cli-1.1.29-mn3z3w8e.mjs +0 -2
  654. package/dist/chunks/cli-1.1.29-mwntmkzh.mjs +0 -39
  655. package/dist/chunks/cli-1.1.29-mxtxy5qg.mjs +0 -2
  656. package/dist/chunks/cli-1.1.29-mxxghqnd.mjs +0 -2
  657. package/dist/chunks/cli-1.1.29-nkb4dq83.mjs +0 -2
  658. package/dist/chunks/cli-1.1.29-nn0hkwgq.mjs +0 -2
  659. package/dist/chunks/cli-1.1.29-nx6ynaex.mjs +0 -6
  660. package/dist/chunks/cli-1.1.29-nxbgdt4q.mjs +0 -2
  661. package/dist/chunks/cli-1.1.29-nxvs12dw.mjs +0 -2
  662. package/dist/chunks/cli-1.1.29-pbydvpcy.mjs +0 -7
  663. package/dist/chunks/cli-1.1.29-pf67dsfj.mjs +0 -42
  664. package/dist/chunks/cli-1.1.29-pwsznt80.mjs +0 -2
  665. package/dist/chunks/cli-1.1.29-q4fv8e5e.mjs +0 -2
  666. package/dist/chunks/cli-1.1.29-q7nywp06.mjs +0 -2
  667. package/dist/chunks/cli-1.1.29-q9atby2h.mjs +0 -2
  668. package/dist/chunks/cli-1.1.29-qqcjvb8v.mjs +0 -3
  669. package/dist/chunks/cli-1.1.29-qyg6dttd.mjs +0 -2
  670. package/dist/chunks/cli-1.1.29-qz5zy9rd.mjs +0 -4
  671. package/dist/chunks/cli-1.1.29-ra7737c1.mjs +0 -2
  672. package/dist/chunks/cli-1.1.29-rah0vfkh.mjs +0 -1
  673. package/dist/chunks/cli-1.1.29-rbtgtxtr.mjs +0 -2
  674. package/dist/chunks/cli-1.1.29-rcf2pvf2.mjs +0 -2
  675. package/dist/chunks/cli-1.1.29-rd1s45en.mjs +0 -24
  676. package/dist/chunks/cli-1.1.29-rfz718th.mjs +0 -6
  677. package/dist/chunks/cli-1.1.29-rn9a55ga.mjs +0 -2
  678. package/dist/chunks/cli-1.1.29-rnrvwymv.mjs +0 -2
  679. package/dist/chunks/cli-1.1.29-rse83jw9.mjs +0 -2
  680. package/dist/chunks/cli-1.1.29-s7njwf37.mjs +0 -15
  681. package/dist/chunks/cli-1.1.29-s8attyep.mjs +0 -2
  682. package/dist/chunks/cli-1.1.29-sb5dzja5.mjs +0 -2
  683. package/dist/chunks/cli-1.1.29-scf5dmr2.mjs +0 -50
  684. package/dist/chunks/cli-1.1.29-sgfpybka.mjs +0 -2
  685. package/dist/chunks/cli-1.1.29-smn5dd7n.mjs +0 -2
  686. package/dist/chunks/cli-1.1.29-snxnt4nr.mjs +0 -2
  687. package/dist/chunks/cli-1.1.29-t64smfse.mjs +0 -2
  688. package/dist/chunks/cli-1.1.29-tf20f72b.mjs +0 -2
  689. package/dist/chunks/cli-1.1.29-tg84q1yd.mjs +0 -20
  690. package/dist/chunks/cli-1.1.29-tyew653x.mjs +0 -3
  691. package/dist/chunks/cli-1.1.29-tz817yh8.mjs +0 -2
  692. package/dist/chunks/cli-1.1.29-v4wsvara.mjs +0 -2
  693. package/dist/chunks/cli-1.1.29-v6y1118n.mjs +0 -4
  694. package/dist/chunks/cli-1.1.29-v9bvr1aw.mjs +0 -5
  695. package/dist/chunks/cli-1.1.29-vd6b2ckm.mjs +0 -2
  696. package/dist/chunks/cli-1.1.29-vmmpxa0v.mjs +0 -2
  697. package/dist/chunks/cli-1.1.29-vp3z0245.mjs +0 -2
  698. package/dist/chunks/cli-1.1.29-vr34j6s2.mjs +0 -3
  699. package/dist/chunks/cli-1.1.29-vv1sy2ya.mjs +0 -25
  700. package/dist/chunks/cli-1.1.29-vws4vx43.mjs +0 -2
  701. package/dist/chunks/cli-1.1.29-vybx7rvs.mjs +0 -10
  702. package/dist/chunks/cli-1.1.29-we6vghby.mjs +0 -2
  703. package/dist/chunks/cli-1.1.29-wscghnfp.mjs +0 -2
  704. package/dist/chunks/cli-1.1.29-wv5r6reg.mjs +0 -2
  705. package/dist/chunks/cli-1.1.29-wxg06wve.mjs +0 -2
  706. package/dist/chunks/cli-1.1.29-xfcy5e42.mjs +0 -2
  707. package/dist/chunks/cli-1.1.29-xfhxkzzh.mjs +0 -2
  708. package/dist/chunks/cli-1.1.29-xftqnjy0.mjs +0 -4
  709. package/dist/chunks/cli-1.1.29-xjh2k6ex.mjs +0 -3
  710. package/dist/chunks/cli-1.1.29-xrwps5rg.mjs +0 -3
  711. package/dist/chunks/cli-1.1.29-y3v15ehz.mjs +0 -2
  712. package/dist/chunks/cli-1.1.29-yddrcp23.mjs +0 -2
  713. package/dist/chunks/cli-1.1.29-ykat6ksh.mjs +0 -2
  714. package/dist/chunks/cli-1.1.29-ymcd1d05.mjs +0 -2
  715. package/dist/chunks/cli-1.1.29-ypgjht1s.mjs +0 -2
  716. package/dist/chunks/cli-1.1.29-yv3r7f00.mjs +0 -2
  717. package/dist/chunks/cli-1.1.29-zb1qmpq0.mjs +0 -45
  718. package/dist/chunks/cli-1.1.29-ze1sanxc.mjs +0 -2
  719. package/dist/chunks/cli-1.1.29-zf1md9se.mjs +0 -2
  720. package/dist/chunks/cli-1.1.29-zh2qqpcy.mjs +0 -2
  721. package/dist/chunks/cli-1.1.29-zqccyb2h.mjs +0 -2
  722. package/dist/chunks/client-1.1.29-abnv29yp.mjs +0 -1
  723. package/dist/chunks/color-1.1.29-h2d0ea1p.mjs +0 -1
  724. package/dist/chunks/compact-1.1.29-071ysk4h.mjs +0 -3
  725. package/dist/chunks/config-1.1.29-jhy41xna.mjs +0 -1
  726. package/dist/chunks/config-1.1.29-wzvad2ns.mjs +0 -1
  727. package/dist/chunks/constants-1.1.29-5536grwb.mjs +0 -1
  728. package/dist/chunks/context-1.1.29-qxvktpnx.mjs +0 -1
  729. package/dist/chunks/context-noninteractive-1.1.29-rypt767r.mjs +0 -1
  730. package/dist/chunks/conversation-1.1.29-yr51bv23.mjs +0 -1
  731. package/dist/chunks/copilotHeaders-1.1.29-h3z6avxk.mjs +0 -1
  732. package/dist/chunks/copy-1.1.29-ze2g86qn.mjs +0 -9
  733. package/dist/chunks/cost-1.1.29-bn9nefss.mjs +0 -1
  734. package/dist/chunks/createSSHSession-1.1.29-5fe73ss4.mjs +0 -1
  735. package/dist/chunks/createSession-1.1.29-rscwvwx3.mjs +0 -1
  736. package/dist/chunks/debug-1.1.29-hsa8740f.mjs +0 -1
  737. package/dist/chunks/defaultActionDeps-1.1.29-nrkya6cw.mjs +0 -1534
  738. package/dist/chunks/desktop-1.1.29-wzh1a3fx.mjs +0 -1
  739. package/dist/chunks/detectRepository-1.1.29-tgssqtyy.mjs +0 -1
  740. package/dist/chunks/detection-1.1.29-f3hp0x2s.mjs +0 -1
  741. package/dist/chunks/diff-1.1.29-h7fm7n04.mjs +0 -1
  742. package/dist/chunks/doctor-1.1.29-5ccr1m55.mjs +0 -1
  743. package/dist/chunks/doctorDiagnostic-1.1.29-vmnf895k.mjs +0 -1
  744. package/dist/chunks/earlyInput-1.1.29-d0ktjabf.mjs +0 -1
  745. package/dist/chunks/effort-1.1.29-xxzxaym4.mjs +0 -13
  746. package/dist/chunks/engine-1.1.29-9ekq4v2g.mjs +0 -1
  747. package/dist/chunks/envLessBridgeConfig-1.1.29-8c9jjpjy.mjs +0 -1
  748. package/dist/chunks/envUtils-1.1.29-593t90q5.mjs +0 -1
  749. package/dist/chunks/environmentSelection-1.1.29-g5qpphd9.mjs +0 -1
  750. package/dist/chunks/environments-1.1.29-x2aa2eet.mjs +0 -1
  751. package/dist/chunks/errors-1.1.29-jgx19cvb.mjs +0 -1
  752. package/dist/chunks/exampleCommands-1.1.29-wxzjn2xw.mjs +0 -1
  753. package/dist/chunks/execFileNoThrow-1.1.29-hexzsnhv.mjs +0 -1
  754. package/dist/chunks/exit-1.1.29-h788x2yv.mjs +0 -1
  755. package/dist/chunks/explorer-1.1.29-wtr7bga1.mjs +0 -1
  756. package/dist/chunks/export-1.1.29-42ve1rgm.mjs +0 -2
  757. package/dist/chunks/extra-usage-1.1.29-y1e1m369.mjs +0 -1
  758. package/dist/chunks/extra-usage-noninteractive-1.1.29-gq3g80nm.mjs +0 -1
  759. package/dist/chunks/fast-1.1.29-h6r42366.mjs +0 -1
  760. package/dist/chunks/feedback-1.1.29-st43crhj.mjs +0 -14
  761. package/dist/chunks/firstPartyEventLogger-1.1.29-ckcepqgc.mjs +0 -1
  762. package/dist/chunks/git-1.1.29-j563zwhc.mjs +0 -1
  763. package/dist/chunks/githubModelsCredentials-1.1.29-vk8m9ket.mjs +0 -1
  764. package/dist/chunks/goal-1.1.29-p7hzmh24.mjs +0 -4
  765. package/dist/chunks/growthbook-1.1.29-3549rcjz.mjs +0 -1
  766. package/dist/chunks/headless-1.1.29-5vx8fpbe.mjs +0 -2
  767. package/dist/chunks/heapdump-1.1.29-rp203g47.mjs +0 -6
  768. package/dist/chunks/help-1.1.29-3y5b0e2g.mjs +0 -1
  769. package/dist/chunks/hookChains-1.1.29-ga4rejj3.mjs +0 -3
  770. package/dist/chunks/hooks-1.1.29-b38tdtzk.mjs +0 -1
  771. package/dist/chunks/hooks-1.1.29-ygwx2459.mjs +0 -79
  772. package/dist/chunks/ide-1.1.29-67nmghjh.mjs +0 -3
  773. package/dist/chunks/image-processor-napi-1.1.29-z1xa8jsd.mjs +0 -1
  774. package/dist/chunks/import-1.1.29-627psf8x.mjs +0 -261
  775. package/dist/chunks/inboundAttachments-1.1.29-9dtr0d37.mjs +0 -1
  776. package/dist/chunks/index-1.1.29-101dgedk.mjs +0 -9
  777. package/dist/chunks/index-1.1.29-3mknam1s.mjs +0 -1
  778. package/dist/chunks/index-1.1.29-3rjcfsf3.mjs +0 -1
  779. package/dist/chunks/index-1.1.29-4ye92se8.mjs +0 -1
  780. package/dist/chunks/index-1.1.29-568ncn0w.mjs +0 -1
  781. package/dist/chunks/index-1.1.29-5zbg7qfm.mjs +0 -1
  782. package/dist/chunks/index-1.1.29-6pe6cr8p.mjs +0 -1
  783. package/dist/chunks/index-1.1.29-cpvbfs32.mjs +0 -5
  784. package/dist/chunks/index-1.1.29-e90xbdas.mjs +0 -23
  785. package/dist/chunks/index-1.1.29-efsdrxv3.mjs +0 -1
  786. package/dist/chunks/index-1.1.29-gy6pctgv.mjs +0 -1
  787. package/dist/chunks/index-1.1.29-jghqwznd.mjs +0 -1
  788. package/dist/chunks/index-1.1.29-k42kw8w5.mjs +0 -1
  789. package/dist/chunks/index-1.1.29-kvaapa6z.mjs +0 -1
  790. package/dist/chunks/index-1.1.29-mwtftmry.mjs +0 -9
  791. package/dist/chunks/index-1.1.29-q7ydx0h2.mjs +0 -2
  792. package/dist/chunks/index-1.1.29-r4y0qs9x.mjs +0 -1
  793. package/dist/chunks/index-1.1.29-rgsmqr6q.mjs +0 -1
  794. package/dist/chunks/index-1.1.29-tfnnf0k2.mjs +0 -1
  795. package/dist/chunks/index-1.1.29-v640rrh6.mjs +0 -1
  796. package/dist/chunks/index-1.1.29-v7vcnkxr.mjs +0 -30
  797. package/dist/chunks/index-1.1.29-xwekv48p.mjs +0 -2
  798. package/dist/chunks/index-1.1.29-z8a1fx6p.mjs +0 -1
  799. package/dist/chunks/init-1.1.29-h07twh7g.mjs +0 -1
  800. package/dist/chunks/initReplBridge-1.1.29-ae1e53vd.mjs +0 -1
  801. package/dist/chunks/ink-1.1.29-jkk9zn2g.mjs +0 -1
  802. package/dist/chunks/insights-1.1.29-awyethqq.mjs +0 -870
  803. package/dist/chunks/install-1.1.29-yhkejpep.mjs +0 -1
  804. package/dist/chunks/install-github-app-1.1.29-jsrj24s4.mjs +0 -149
  805. package/dist/chunks/install-slack-app-1.1.29-gts768ac.mjs +0 -1
  806. package/dist/chunks/instrumentation-1.1.29-mhgk5gm7.mjs +0 -1
  807. package/dist/chunks/interactiveHelpers-1.1.29-nz689brn.mjs +0 -1
  808. package/dist/chunks/keybindings-1.1.29-gh9axh60.mjs +0 -2
  809. package/dist/chunks/knowledge-1.1.29-hfwtr4gz.mjs +0 -2
  810. package/dist/chunks/latestVersionCache-1.1.29-hfeprnvk.mjs +0 -1
  811. package/dist/chunks/loadAgentsDir-1.1.29-m2np7bm8.mjs +0 -1
  812. package/dist/chunks/loadPluginHooks-1.1.29-zpz05b3t.mjs +0 -1
  813. package/dist/chunks/log-1.1.29-fw86q3jh.mjs +0 -1
  814. package/dist/chunks/main-1.1.29-w3b4z9p1.mjs +0 -1
  815. package/dist/chunks/managedEnv-1.1.29-r7qb1f8v.mjs +0 -1
  816. package/dist/chunks/mcp-1.1.29-jyq80had.mjs +0 -4
  817. package/dist/chunks/mcp-1.1.29-rj6rmrwj.mjs +0 -17
  818. package/dist/chunks/mcp-1.1.29-v1dw736k.mjs +0 -1
  819. package/dist/chunks/mcpb-1.1.29-2eqhsr4h.mjs +0 -1
  820. package/dist/chunks/memory-1.1.29-f9bfe5q1.mjs +0 -77
  821. package/dist/chunks/model-1.1.29-3cbf7nj8.mjs +0 -1
  822. package/dist/chunks/model-1.1.29-65mwx0jt.mjs +0 -2
  823. package/dist/chunks/node-1.1.29-9gdbqzzb.mjs +0 -15
  824. package/dist/chunks/node-1.1.29-g8j45zsn.mjs +0 -1
  825. package/dist/chunks/oauth-1.1.29-rzdyddzx.mjs +0 -1
  826. package/dist/chunks/openaiShim-1.1.29-3v0weah8.mjs +0 -14
  827. package/dist/chunks/output-style-1.1.29-kh5kpq0r.mjs +0 -1
  828. package/dist/chunks/package-OS7RONXY-1.1.29-wartca0p.mjs +0 -1
  829. package/dist/chunks/parseConnectUrl-1.1.29-1pk3egnf.mjs +0 -1
  830. package/dist/chunks/parser-1.1.29-j664c2gz.mjs +0 -1
  831. package/dist/chunks/passes-1.1.29-daz9sxtn.mjs +0 -1
  832. package/dist/chunks/permissions-1.1.29-2t8t5tw7.mjs +0 -1
  833. package/dist/chunks/permissions-1.1.29-yrdqzbx5.mjs +0 -3
  834. package/dist/chunks/plan-1.1.29-bz008b9p.mjs +0 -1
  835. package/dist/chunks/plist-1.1.29-35acgftn.mjs +0 -1
  836. package/dist/chunks/plugin-1.1.29-8f04719q.mjs +0 -29
  837. package/dist/chunks/pluginStartupCheck-1.1.29-xb113h6m.mjs +0 -1
  838. package/dist/chunks/plugins-1.1.29-qvtkwvvz.mjs +0 -9
  839. package/dist/chunks/preActionHook-1.1.29-y3pz26pa.mjs +0 -2
  840. package/dist/chunks/print-1.1.29-efswnrv9.mjs +0 -57
  841. package/dist/chunks/process-1.1.29-58f1e2bp.mjs +0 -1
  842. package/dist/chunks/processBashCommand-1.1.29-d1jsv2w2.mjs +0 -1
  843. package/dist/chunks/processSlashCommand-1.1.29-b3y0q14a.mjs +0 -9
  844. package/dist/chunks/prompt-1.1.29-62tsknn0.mjs +0 -1
  845. package/dist/chunks/prompt-1.1.29-jhbfphh7.mjs +0 -1
  846. package/dist/chunks/prompts-1.1.29-3z4c3ek4.mjs +0 -1
  847. package/dist/chunks/protocolHandler-1.1.29-rdwh19s1.mjs +0 -13
  848. package/dist/chunks/provider-1.1.29-3zvq773g.mjs +0 -2
  849. package/dist/chunks/providerProfiles-1.1.29-607et4qp.mjs +0 -1
  850. package/dist/chunks/providerValidation-1.1.29-yenzyrfm.mjs +0 -6
  851. package/dist/chunks/rate-limit-options-1.1.29-298ja1r1.mjs +0 -1
  852. package/dist/chunks/registerSubcommands-1.1.29-4jd1spvm.mjs +0 -26
  853. package/dist/chunks/registry-1.1.29-m25stkr0.mjs +0 -1
  854. package/dist/chunks/release-notes-1.1.29-22baamfx.mjs +0 -5
  855. package/dist/chunks/reload-plugins-1.1.29-phv53y08.mjs +0 -2
  856. package/dist/chunks/remote-env-1.1.29-2ey2vymh.mjs +0 -1
  857. package/dist/chunks/remoteBridgeCore-1.1.29-eafsxes0.mjs +0 -1
  858. package/dist/chunks/remoteSession-1.1.29-hs2wyhc3.mjs +0 -1
  859. package/dist/chunks/rename-1.1.29-75kb3avp.mjs +0 -1
  860. package/dist/chunks/replBridgeHandle-1.1.29-dz6hhgez.mjs +0 -1
  861. package/dist/chunks/replLauncher-1.1.29-09a6pk1q.mjs +0 -1
  862. package/dist/chunks/resume-1.1.29-685rb92g.mjs +0 -2
  863. package/dist/chunks/rewind-1.1.29-7nw7f08p.mjs +0 -1
  864. package/dist/chunks/rootOptions-1.1.29-9cr8rvbr.mjs +0 -1
  865. package/dist/chunks/runWorkflowHeadless-1.1.29-xmaezf6n.mjs +0 -10
  866. package/dist/chunks/sandbox-adapter-1.1.29-db9nwpd6.mjs +0 -1
  867. package/dist/chunks/sandbox-toggle-1.1.29-wzeynybm.mjs +0 -1
  868. package/dist/chunks/session-1.1.29-m8fppsh2.mjs +0 -2
  869. package/dist/chunks/sessionDiscovery-1.1.29-ast9gceq.mjs +0 -1
  870. package/dist/chunks/sessionFileAccessHooks-1.1.29-h1eqvpq2.mjs +0 -1
  871. package/dist/chunks/sessionStorage-1.1.29-aykc0gmj.mjs +0 -1
  872. package/dist/chunks/settings-1.1.29-0c2fyzj5.mjs +0 -1
  873. package/dist/chunks/setup-1.1.29-y2wjm0r9.mjs +0 -12
  874. package/dist/chunks/sinks-1.1.29-5rs2f8yn.mjs +0 -1
  875. package/dist/chunks/skills-1.1.29-cp2813x4.mjs +0 -1
  876. package/dist/chunks/startupProfiler-1.1.29-kh45g8fh.mjs +0 -1
  877. package/dist/chunks/startupUpdateCheck-1.1.29-82s33sqm.mjs +0 -1
  878. package/dist/chunks/state-1.1.29-p67vvgkh.mjs +0 -1
  879. package/dist/chunks/stats-1.1.29-by56pge2.mjs +0 -1
  880. package/dist/chunks/status-1.1.29-hw493zns.mjs +0 -1
  881. package/dist/chunks/stickers-1.1.29-8s1sjy27.mjs +0 -1
  882. package/dist/chunks/subprocessEnv-1.1.29-qz9p5e81.mjs +0 -1
  883. package/dist/chunks/tasks-1.1.29-337vzgbz.mjs +0 -1
  884. package/dist/chunks/teamHelpers-1.1.29-85qvaaf6.mjs +0 -1
  885. package/dist/chunks/teammateModeSnapshot-1.1.29-k78c522w.mjs +0 -1
  886. package/dist/chunks/teleport-1.1.29-c44n1v9b.mjs +0 -1
  887. package/dist/chunks/terminalSetup-1.1.29-rrwvk8ab.mjs +0 -1
  888. package/dist/chunks/theme-1.1.29-y04xza5k.mjs +0 -1
  889. package/dist/chunks/thinkback-1.1.29-s3hjbm7q.mjs +0 -1
  890. package/dist/chunks/thinkback-play-1.1.29-2bhrtfq9.mjs +0 -1
  891. package/dist/chunks/toolPool-1.1.29-gfpcfj2x.mjs +0 -1
  892. package/dist/chunks/toolSearch-1.1.29-vfnsb7j0.mjs +0 -1
  893. package/dist/chunks/tools-1.1.29-w11mxfwv.mjs +0 -1
  894. package/dist/chunks/trustedDevice-1.1.29-qwyypx3m.mjs +0 -1
  895. package/dist/chunks/turndown.cjs-1.1.29-yxqqz6t4.mjs +0 -69
  896. package/dist/chunks/types-1.1.29-2v59e63g.mjs +0 -1
  897. package/dist/chunks/ultrareviewCommand-1.1.29-a115pcna.mjs +0 -4
  898. package/dist/chunks/update-1.1.29-3zmwqt73.mjs +0 -72
  899. package/dist/chunks/upgrade-1.1.29-xpe0b67z.mjs +0 -1
  900. package/dist/chunks/upload-1.1.29-d3tkf4nc.mjs +0 -7
  901. package/dist/chunks/upstreamproxy-1.1.29-fqatj32w.mjs +0 -14
  902. package/dist/chunks/url-handler-napi-1.1.29-9w1d0vdc.mjs +0 -1
  903. package/dist/chunks/usage-1.1.29-6mr5tsjn.mjs +0 -1
  904. package/dist/chunks/util-1.1.29-94aahqex.mjs +0 -1
  905. package/dist/chunks/utils-1.1.29-jg1xnwx8.mjs +0 -1
  906. package/dist/chunks/vim-1.1.29-hf5m1934.mjs +0 -1
  907. package/dist/chunks/watchLoop-1.1.29-7z8smp5m.mjs +0 -13
  908. package/dist/chunks/watcher-1.1.29-qeqe2296.mjs +0 -1
  909. package/dist/chunks/wiki-1.1.29-cr99gpcx.mjs +0 -132
  910. package/dist/chunks/workflows-1.1.29-v6f0e3am.mjs +0 -1
  911. package/dist/chunks/worktree-1.1.29-qf1zfstj.mjs +0 -1
  912. package/dist/chunks/worktreeModeEnabled-1.1.29-qxpsmfqy.mjs +0 -1
  913. package/dist/chunks/wrapper-1.1.29-b7y6s4vd.mjs +0 -7
  914. /package/dist/chunks/{cli-1.1.29-v507w0kc.mjs → cli-1.1.30-2cmsx74f.mjs} +0 -0
  915. /package/dist/chunks/{cli-1.1.29-8zfk7gyk.mjs → cli-1.1.30-dy1jvt4f.mjs} +0 -0
  916. /package/dist/chunks/{cli-1.1.29-09pf4n9h.mjs → cli-1.1.30-fa5djn9v.mjs} +0 -0
  917. /package/dist/chunks/{cli-1.1.29-skjcgaw2.mjs → cli-1.1.30-s27erhy7.mjs} +0 -0
  918. /package/dist/chunks/{cli-1.1.29-vk67t66v.mjs → cli-1.1.30-vxh27fdj.mjs} +0 -0
  919. /package/dist/chunks/{cli-1.1.29-h0m93zmw.mjs → cli-1.1.30-y1pn2vb5.mjs} +0 -0
@@ -1,15 +0,0 @@
1
- import{$2 as qJ,c3 as VJ}from"./cli-1.1.29-1dqp4d2w.mjs";import{Cga as m,Hca as U,Jca as E,Oca as ZJ,Qca as TJ,Saa as YJ,T$ as W,Taa as jJ,U$ as f,aia as q,dfa as $J,ega as w,iia as u,qfa as AJ}from"./cli-1.1.29-a6pnwve8.mjs";import{Eka as F,Hka as xJ}from"./cli-1.1.29-gycpj0z6.mjs";import{Hla as K,Kla as NJ,kla as b,lla as x,pla as P,tla as y,xla as D}from"./cli-1.1.29-rfz718th.mjs";import{Rla as QJ,gma as M,hma as B,kma as n,mma as T}from"./cli-1.1.29-v6y1118n.mjs";import{Ama as k,pma as O}from"./cli-1.1.29-79tgwbnn.mjs";import{Wta as j}from"./cli-1.1.29-4xqgqvwm.mjs";import{access as d,chmod as BJ,writeFile as GJ}from"fs/promises";import{homedir as h}from"os";import{join as v}from"path";function A(){return v(O(),"local")}function RJ(J=h()){return v(J,".claude","local")}function p(J){let Q=J?.homeDir??h(),Y=J?.configHomeDir??O();return Array.from(new Set([v(Y,"local"),RJ(Q)]))}function c(J){return[v(J,"node_modules",".bin","claudin"),v(J,"node_modules",".bin","claude")]}function _J(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return v(A(),"claudin")}function rJ(){return _J(U())}async function I(J,Q,Y){try{return await GJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function OJ(){try{let J=A();await y().mkdir(J),await I(v(J,"package.json"),b({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await I(Q,`#!/bin/sh
2
- exec "${J}/node_modules/.bin/claudin" "$@"`,493))await BJ(Q,493);return!0}catch(J){return q(J),!1}}async function JQ(J,Q){try{if(!await OJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return w(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function QQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),!0}catch{}return!1}async function YQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),J}catch{}return null}function ZQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var g=j(()=>{E();m();k();T();f();D();u();P()});import{open as MJ,readFile as yJ,stat as UJ}from"fs/promises";import{homedir as t}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??t(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function a(J){let Q=!1;return{filtered:J.filter((Z)=>{if(s.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await yJ(J,{encoding:"utf8"})).split(`
3
- `)}catch(Q){if(n(Q))return null;throw Q}}async function l(J,Q){let Y=await MJ(J,"w");try{await Y.writeFile(Q.join(`
4
- `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function wJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(s.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function HQ(J){let Q=await wJ(J);if(!Q)return null;let Y=J?.homedir??t(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await UJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var s;var o=j(()=>{T();g();s=/^\s*alias\s+claude\s*=/});import{constants as KJ}from"fs";import{access as WJ,readFile as CJ,stat as SJ,writeFile as i}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function LJ(){let J=U();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function XJ(){return LJ()?"bun":"npm"}function zJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function kJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function e(J){try{let Q=await CJ(H(J,"package.json"),"utf8"),Y=x(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!B(Q))q(Q);return null}}function r(J){return J==="bun"?Promise.resolve(zJ()):kJ()}async function bJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await r(Z);if(!$)return;let X=await e($);if(!X)return;let R=await r(J),_=R?await e(R):null;if(_&&X===_)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let N=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(N.code!==0){q(new G(`Failed to refresh the ${Z} global install at ${$}: ${N.stdout} ${N.stderr}`));return}if(Z==="bun")await HJ();Y?.(`Repaired old version ${X} at ${$}`)}async function PJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!IJ.test(Y.error??""))return q(new G(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new G(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function HJ(){let J=zJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await WJ(Q,KJ.F_OK)}catch(Z){if(!B(Z))q(Z);return!1}try{if((await SJ(Y)).size>FJ)return!1}catch(Z){if(!B(Z))return q(Z),!1}if(!await PJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function IQ(){}async function kQ(){return}async function bQ(){return}function PQ(J){let Y=$J()?.minimumVersion;if(!Y)return!1;let Z=!qJ(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function vJ(){return H(O(),".update.lock")}async function DJ(){let J=y(),Q=vJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<JJ)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<JJ)return!1;await J.unlink(Q)}catch($){if(!B($))return q($),!1}}catch(Y){if(!B(Y))return q(Y),!1}try{return await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function fJ(){let J=y(),Q=vJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(B(Y))return;q(Y)}}async function EJ(){let J=XJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function mJ(){try{let J=await EJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await WJ(J,KJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new G("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function DQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function fQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=x(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function EQ(J){return null}async function mQ(){return{latest:null,stable:null}}async function uQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return x(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function dQ(J,Q){if(!await DJ())return q(new G("Another process is currently installing an update")),F("",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{await uJ();let Y=XJ();if(Y==="npm"&&ZJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),F("",{currentVersion:"99.0.0"}),console.error(`
5
- Error: Windows NPM detected in WSL
6
-
7
- You're running Claudin in WSL but using the Windows NPM installation from /mnt/c/.
8
- This configuration is not supported for updates.
9
-
10
- To fix this issue:
11
- 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
- 2. Make sure Linux NPM is in your PATH before the Windows version
13
- 3. Try updating again with 'claudin update'
14
- `),"install_failed";let{hasPermissions:Z}=await mJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",R=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(R.code!==0){let _=new G(`Failed to install new version of claude: ${R.stdout} ${R.stderr}`);return q(_),"install_failed"}return await HJ(),await bJ(Y,$,Q?.onProgress),w((_)=>({..._,installMethod:"global"})),"success"}finally{await fJ()}}async function uJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=a(Y);if($)await l(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var G,FJ=4096,IJ,JJ=300000;var dJ=j(()=>{xJ();E();m();NJ();TJ();k();T();f();D();u();jJ();VJ();AJ();o();P();G=class G extends QJ{};IJ=/ENOENT/i});
15
- export{rJ as pU,JQ as qU,QQ as rU,YQ as sU,ZQ as tU,g as uU,S as vU,a as wU,L as xU,l as yU,wJ as zU,HQ as AU,o as BU,zJ as CU,HJ as DU,IQ as EU,kQ as FU,bQ as GU,PQ as HU,vJ as IU,mJ as JU,DQ as KU,fQ as LU,EQ as MU,mQ as NU,uQ as OU,dQ as PU,dJ as QU};
@@ -1,2 +0,0 @@
1
- import{Tc as _,Vc as P}from"./cli-1.1.29-rbtgtxtr.mjs";import{of as Z,pf as y}from"./cli-1.1.29-fhwjnhs2.mjs";import{Gx as X,Kx as K,Ux as Y,Wx as A}from"./cli-1.1.29-am1n3767.mjs";import{CY as C,zY as V}from"./cli-1.1.29-6qykmvew.mjs";import{c5 as H,e5 as Q}from"./cli-1.1.29-nxvs12dw.mjs";import{f5 as W}from"./cli-1.1.29-aptcshv0.mjs";import{lia as L,mia as M}from"./cli-1.1.29-5p2zzfpq.mjs";import{Sta as T,Wta as U}from"./cli-1.1.29-4xqgqvwm.mjs";function b({children:q}){let{bindings:D}=Y(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function j(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function v(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let B=(w)=>_(H(X,{children:H(b,{children:H(Z,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=j(w);for(let w=0;w<N;w+=I){let O=await B([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await v(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var x=U(()=>{M();y();C();A();K();P();Q();J=T(W(),1)});
2
- export{l as hc,x as ic};
@@ -1,2 +0,0 @@
1
- import{QX as H,SX as M}from"./cli-1.1.29-9fkgjjzm.mjs";import{_ea as B,dfa as D,hca as y,qca as K,qfa as L}from"./cli-1.1.29-a6pnwve8.mjs";import{Wta as J}from"./cli-1.1.29-4xqgqvwm.mjs";async function Z(){let b=await H();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let x=D()?.remote?.defaultEnvironmentId,z=b.find((q)=>q.kind!=="bridge")??b[0],A=null;if(x){let q=b.find((k)=>k.environment_id===x);if(q){z=q;for(let k=y.length-1;k>=0;k--){let w=y[k];if(!w||w==="flagSettings")continue;if(B(w)?.remote?.defaultEnvironmentId===x){A=w;break}}}}return{availableEnvironments:b,selectedEnvironment:z,selectedEnvironmentSource:A}}var P=J(()=>{K();L();M()});
2
- export{Z as lc,P as mc};
@@ -1,2 +0,0 @@
1
- import{H as F}from"./cli-1.1.29-skjcgaw2.mjs";import{R as k}from"./cli-1.1.29-0tf52nkw.mjs";import{yb as x}from"./cli-1.1.29-aazftc8x.mjs";import{zb as O}from"./cli-1.1.29-we6vghby.mjs";import{Ap as d,lU as b,mU as p,vp as G,wp as U,zp as L}from"./cli-1.1.29-am1n3767.mjs";import{_U as R,bV as u}from"./cli-1.1.29-zf1md9se.mjs";import{P9 as m,Y5 as Y,c6 as D,f8 as j,g8 as z,i9 as w,j9 as E}from"./cli-1.1.29-8k2xw0ns.mjs";import{Cfa as X,Dfa as B,Nha as $,Qha as M}from"./cli-1.1.29-a6pnwve8.mjs";import{Qja as _,Sja as I}from"./cli-1.1.29-4bemzx23.mjs";import{Hla as K,Kla as y}from"./cli-1.1.29-rfz718th.mjs";import{fma as V,mma as v}from"./cli-1.1.29-v6y1118n.mjs";import{Ama as C,sma as J,uma as N}from"./cli-1.1.29-79tgwbnn.mjs";import{gta as W,yta as A}from"./cli-1.1.29-2e5s8gsb.mjs";C();u();p();M();m();d();I();A();y();v();D();B();var T=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let S of P.server.remotes??[]){let Q=h(S.url);if(Q)H.add(Q)}T=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}z();U();function Xq(){if(J(process.env.CLAUDIN_EXIT_AFTER_FIRST_RENDER)||N())return;R(),b(),k(),x();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDIN_SKIP_BEDROCK_AUTH))E();if(q==="vertex"&&!J(process.env.CLAUDIN_SKIP_VERTEX_AUTH))w();if(L(_(),AbortSignal.timeout(3000),[]),F(),Z(),j(),G.initialize(),!N())O.initialize()}
2
- export{Xq as F};
@@ -1,2 +0,0 @@
1
- import{Wta as H}from"./cli-1.1.29-4xqgqvwm.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
- export{F as Pia,K as Qia,M as Ria,N as Sia,O as Tia,P as Uia,J as Via};
@@ -1,3 +0,0 @@
1
- import{a3 as k,c3 as w}from"./cli-1.1.29-1dqp4d2w.mjs";import{P9 as v,v9 as j}from"./cli-1.1.29-8k2xw0ns.mjs";import{gja as d,rja as h,sja as s}from"./cli-1.1.29-252q86ck.mjs";import{Ama as q}from"./cli-1.1.29-79tgwbnn.mjs";import{Wta as p}from"./cli-1.1.29-4xqgqvwm.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
- Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
3
- export{x as PW,O as QW,P as RW,Q as SW,R as TW,U as UW,W as VW,X as WW,z as XW};
@@ -1,2 +0,0 @@
1
- import{FZ as u2,J1 as e2,OZ as Z,c1 as Y,e1 as u}from"./cli-1.1.29-7pfvq0z6.mjs";import{c5 as t,d5 as o,e5 as U}from"./cli-1.1.29-nxvs12dw.mjs";import{Oca as X,Qca as j}from"./cli-1.1.29-a6pnwve8.mjs";import{Sta as s}from"./cli-1.1.29-4xqgqvwm.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,O,R,k,A,a,I,i,V;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.29"," "]})]}),O=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),R=t(u,{children:" "}),k=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),l[2]=c,l[3]=O,l[4]=R,l[5]=k,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=V;else c=l[2],O=l[3],R=l[4],k=l[5],A=l[6],a=l[7],I=l[8],i=l[9],V=l[10];let M;if(l[11]===Symbol.for("react.memo_cache_sentinel"))M=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=M;else M=l[11];let E,W;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),W=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=W;else E=l[12],W=l[13];let N;if(l[14]===Symbol.for("react.memo_cache_sentinel"))N=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=N;else N=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 P;if(l[16]===Symbol.for("react.memo_cache_sentinel"))P=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=P;else P=l[16];let v;if(l[17]===Symbol.for("react.memo_cache_sentinel"))v=t(Y,{width:K,children:o(u,{children:[c,O,R,k,A,a,I,i,V,M,E,W,N,L,P,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=v;else v=l[17];return v}let B,r,D,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))B=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.29"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),D=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=B,l[19]=r,l[20]=D,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else B=l[18],r=l[19],D=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 p;if(l[34]===Symbol.for("react.memo_cache_sentinel"))p=t(Y,{width:K,children:o(u,{children:[B,r,D,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=p;else p=l[34];return p}function t2(l){let e=Q.c(44),{theme:B,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(B)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.1.29"," "]}),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 V,M,E,W,N,L,P,v;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),W=t(u,{children:" "}),N=t(u,{children:" "}),L=t(u,{children:" "}),P=t(u,{children:" ░░░░░░ "}),v=t(u,{children:" ░░░ ░░░░░░░░░░ "}),V=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),e[5]=V,e[6]=M,e[7]=E,e[8]=W,e[9]=N,e[10]=L,e[11]=P,e[12]=v;else V=e[5],M=e[6],E=e[7],W=e[8],N=e[9],L=e[10],P=e[11],v=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,W,N,L,P,v,V,M,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.1.29"," "]}),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,p;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:" ░░░░░░░░ "}),p=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=p;else C=e[33],S=e[34],w=e[35],g=e[36],p=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 O;if(e[39]===Symbol.for("react.memo_cache_sentinel"))O=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]=O;else O=e[39];let R;if(e[40]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=R;else R=e[40];let k;if(e[41]===Symbol.for("react.memo_cache_sentinel"))k=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]=k;else k=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,p,c,O,R,k]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
- export{c2 as _};
@@ -1,2 +0,0 @@
1
- import{dh as g,eh as Uf}from"./cli-1.1.29-gfyabc3h.mjs";import{ih as A,kh as Kf}from"./cli-1.1.29-5svhj1v0.mjs";import{$C as I,$m as Qf,$s as Yf,JS as Ff,Jm as Jf,KT as Hf,LT as d,MC as M,ND as u,PE as c,QD as bf,QE as jf,Vl as Bf,Vm as N,Wl as Gf,_s as h,aD as $f,dF as v,eT as S,ek as W,hS as l,kF as Df,ln as L,ls as E,lz as C,ms as P,ns as Xf,nv as m,om as y,ov as Zf,pz as T,qn as Vf,rT as p,rk as w,sk as zf,tz as _f,yT as k}from"./cli-1.1.29-am1n3767.mjs";import{aia as R,iia as ff}from"./cli-1.1.29-a6pnwve8.mjs";import{Eka as O,Hka as e}from"./cli-1.1.29-gycpj0z6.mjs";import{Uqa as H,dsa as s,eoa as U,foa as q,fpa as F,koa as x}from"./cli-1.1.29-dfra4ygt.mjs";import{Tta as K,Wta as t}from"./cli-1.1.29-4xqgqvwm.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 M("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("",{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),I(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:c(),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();Zf();Df();Yf();zf();_f();jf();Ff();ff();Kf();Qf();$f();bf();d();Xf();Vf();Jf();Uf()});
2
- export{lf as bh,xf as ch};
@@ -1,2 +0,0 @@
1
- import{Hx as C,Kx as X}from"./cli-1.1.29-am1n3767.mjs";import{f5 as W}from"./cli-1.1.29-aptcshv0.mjs";import{M7 as I,Z7 as J,e8 as V}from"./cli-1.1.29-8k2xw0ns.mjs";import{Zia as H,sja as T}from"./cli-1.1.29-252q86ck.mjs";import{Sta as P,Wta as Q}from"./cli-1.1.29-4xqgqvwm.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
- export{v as Pd,Y as Qd};
@@ -1,16 +0,0 @@
1
- import{f_ as P5,h_ as R7}from"./cli-1.1.29-57e9kkv7.mjs";import{j_ as A,k_ as e8}from"./cli-1.1.29-5gydp5n7.mjs";import{u_ as a2,w_ as D7}from"./cli-1.1.29-71e5px3b.mjs";import{A$ as s5,Bfa as JZ,Bha as l2,Cfa as S1,Cga as $0,Dea as H8,Dfa as m7,Ega as Z4,Eha as G4,F$ as H0,Fga as R8,G$ as H1,Ica as M1,Jca as p7,Jga as $4,Kha as s2,Nha as L,Qha as J0,R$ as v2,U$ as ZZ,Wca as z2,Yga as B4,_ea as P,_fa as c,_ga as J4,afa as x5,aia as k,bha as N5,cha as QZ,dfa as N,dga as n2,ega as S,faa as P2,haa as $Z,hga as D,iia as n0,lda as G8,nga as e1,qfa as x0,uea as o1,v$ as A4,w$ as t,x$ as K5,y$ as L0,z$ as C4,zfa as s4}from"./cli-1.1.29-a6pnwve8.mjs";import{gja as M0,ija as h4,sja as T1}from"./cli-1.1.29-252q86ck.mjs";import{Aka as H7,Cka as U,Dka as _0,vka as A2,wka as l4,xka as B0,zka as G7}from"./cli-1.1.29-3dnft82a.mjs";import{Eka as x,Hka as z5}from"./cli-1.1.29-gycpj0z6.mjs";import{Hla as z,Jla as m0,Kla as Z0,lla as U2,pla as o8,tla as n5,xla as S7}from"./cli-1.1.29-rfz718th.mjs";import{fma as g,hma as z1,mma as x1}from"./cli-1.1.29-v6y1118n.mjs";import{Ama as d,pma as N2,sma as K,uma as u,wma as v5}from"./cli-1.1.29-79tgwbnn.mjs";import{Apa as y0,Bpa as Z5,Gqa as j5,Vpa as C,aoa as Y0,aqa as I1,boa as D1,dpa as d1,dsa as Q0,rpa as r1,rqa as X1,sqa as V1,tqa as W1,uqa as j1,vpa as _4}from"./cli-1.1.29-dfra4ygt.mjs";import{Csa as h,Dsa as t0}from"./cli-1.1.29-4pdnzc5j.mjs";import{gta as v,yta as Y5}from"./cli-1.1.29-2e5s8gsb.mjs";import{Tta as E0,Vta as c5,Wta as R,Xta as r}from"./cli-1.1.29-4xqgqvwm.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:q,reject:X,context:V}=$.shift();try{let j=await Z.apply(V,Y);q(j)}catch(j){X(j)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((q,X)=>{$.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.29-4ye92se8.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.29-jghqwznd.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function rZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.29-4ye92se8.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.29-jghqwznd.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function w7(Z){return Z.startsWith("anthropic.")}function K7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function L7(Z){let $=K7(Z);for(let J of F7)if($.startsWith(`${J}.anthropic.`))return J;return}function eZ(Z,$){let J=L7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(w7(Z))return`${$}.${Z}`;return Z}var g2,oZ,F7;var c2=R(()=>{t0();o();d();n0();R7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await Z.send(Y);if(q.inferenceProfileSummaries)J.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});oZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch($){return k($),null}});F7=["us","eu","apac","global"]});var O5,E5,y5,_5,h5,I5,T5,M5,S5,l0,s0,a0,N0,f5,A5,C5,U0,d2;var u5=R(()=>{O5={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",mistral:"mistral-medium-latest"},E5={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",mistral:"mistral-medium-latest"},y5={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",mistral:"ministral-3b-latest"},_5={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",mistral:"ministral-3b-latest"},h5={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",mistral:"mistral-medium-latest"},I5={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",mistral:"mistral-medium-latest"},T5={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",mistral:"devstral-latest"},M5={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",mistral:"devstral-latest"},S5={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",mistral:"devstral-latest"},l0={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",mistral:"devstral-latest"},s0={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",mistral:"devstral-latest"},a0={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",mistral:"devstral-latest"},N0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f5={firstParty:"claude-fable-5-1",bedrock:"anthropic.claude-fable-5-1",vertex:"claude-fable-5-1",foundry:"claude-fable-5-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",mistral:"devstral-latest"},A5={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",mistral:"mistral-medium-latest"},C5={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"},U0={haiku35:y5,haiku45:_5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:A5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:N0,fable51:f5},d2=Object.fromEntries(Object.entries(U0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"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}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var P0={};c5(P0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>v7,getCopilotDisplayName:()=>P7,getCatalogCopilotMaxOutputTokens:()=>y7,getCatalogCopilotContextWindow:()=>E7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>O7,_setCopilotCatalogForTesting:()=>_7});function v0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=v0();return Z!==null&&z0===Z}function k7(){if(t2)return;t2=!0,n2(()=>{let Z=v0();if(Z&&z0!==Z)i5()})}function d5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function N7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function U7(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["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:N7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),b7);try{let q=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let V=new Set,j=[];for(let G of X.data){let H=U7(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),j.push(H)}return j.length>0?j:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i5(){k7();let Z=v0();if(!Z)return;if(e&&z0!==Z)e=null,z0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&v0()===Z)e=$,z0=Z}).finally(()=>{o0=null,m5=null})}function v7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function P7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function O7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function E7(Z){return e0(Z)?.model.limit.context}function y7(Z){return e0(Z)?.model.limit.output}function _7(Z){e=Z,z0=Z?v0():null}var b7=5000,e=null,z0=null,o0=null,m5=null,t2=!1;var O0=R(()=>{J0();D7();s2();$0();Z0();p5()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function z$(){return W()==="firstParty"}function h7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(O0(),E0(P0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function x$(Z){let $=L()?.transport??"anthropic";if(!I7.has($))return!1;if($==="github_copilot"&&h7(Z))return!1;return!0}function B$(){return W()}function G$(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var I7;var i=R(()=>{J0();I7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=U0[Q][$];return J}async function T7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=U0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let q=d2[Q];if(q&&Y)J[q]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return M7(),e2($5(W()));return e2(Z)}async function k$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();n0();u2();x0();c2();u5();i();Z1=Object.keys(U0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await T7();Z5(Z)}catch(Z){k(Z)}})});function U$(Z){return Z}function v$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function I$(){let $=D().oauthAccount?.accountUuid,J=h0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var t5=R(()=>{Y5();_0();o();$0();n0()});import{mkdirSync as f7,writeFileSync as A7}from"fs";function g7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(q5,{recursive:!0,mode:448}),A7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function q1(Z,$){try{let Q=n5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!z1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[Z];if(!X){let j=q1($,J);return Y(j),j}let V=parseInt(X,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let j=n5(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=j.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),g7($,H,J),H}catch(j){z(`Failed to read ${J} from file descriptor ${V}: ${g(j)}`,{level:"error"});let G=q1($,J);return Y(G),G}}function X5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C7,label:"OAuth token",getCached:X1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:u7,label:"API key",getCached:W1,setCached:j1})}var q5="/home/claude/.claude/remote",C7,u7,g$;var G1=R(()=>{Q0();Z0();d();x1();S7();C7=`${q5}/.oauth_token`,u7=`${q5}/.api_key`,g$=`${q5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=t();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 V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function t$(Z){return Z?.name==="CredentialsProviderError"}function F1(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 a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){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 L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.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(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",I0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",a$="effort-2025-11-24",r$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",o$="extended-cache-ttl-2025-04-11",e$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",y1="thinking-token-count-2026-05-13",_1="token-efficient-tools-2026-03-28",ZJ="afk-mode-2026-01-31",$J="advisor-tool-2026-03-01",o5,JJ;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),JJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function f1(){if(!I())return!1;return d7()===null}function c7(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 d7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=M0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&M0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&j5()&&!I1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=c7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function DJ(){let Z=B5(X0());return"opus"+(J2()&&!Z?"[1m]":"")}function bJ(Z){if(!I())return!1;if(!f1())return!1;if(!A1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function A1(Z){if(!I())return!1;let $=Z??S0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function i7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function UJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function vJ(){R0={status:"active"}}function PJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},x5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(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 n7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function EJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("",{overage_disabled_reason:Z??"unknown"}),!n7(Z))x5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function l7(){return i7().status==="cooldown"}function yJ(Z,$){let J=I()&&f1()&&!!$&&A1(Z);if(J&&l7())return"cooldown";if(J)return"on";return"off"}async function s7(Z){let $=`${U().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 v.get($,{headers:J})).data}function hJ(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function IJ(){if(S1())return;if(!I())return;if(T0)return z("Fast mode prefetch in progress, returning in-flight promise"),T0;let Z=h0();if(!(w()?.accessToken&&q0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<a7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let q=w(),X=q?.accessToken&&q0()?{accessToken:q.accessToken}:Z?{apiKey:Z}:null;if(!X)throw Error("No auth available");return s7(X)};async function Y(){try{let q;try{q=await Q()}catch(V){if(v.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await Q2(G),q=await Q();else throw V}else throw V}let X=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)x5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:q.enabled})),$2.emit(q.enabled)}z(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"}),x("",{})}finally{T0=null}}return T0=Y(),T0}var LJ="Opus 5",R0,Z2=!1,C1,u1,kJ,NJ,g1,OJ,E,$2,_J,a7=30000,h1=0,T0=null;var p1=R(()=>{Y5();_0();T1();Q0();z5();o();p7();$0();Z0();d();w0();i();m7();x0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),kJ=C1.subscribe,NJ=u1.subscribe;g1=Y0(),OJ=g1.subscribe;E={status:"pending"},$2=Y0(),_J=$2.subscribe});function Y8(Z){for(let $ of Q8)if($.pattern.test(Z))return $.cost;return}function q2(Z){if(I()&&Z)return i1;return n}function X2(Z){if(I()&&Z)return i1;return Y2[F(N0.firstParty)]??n}function q8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function X8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return q2(Y)}if(J===F(N0.firstParty))return X2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=Y8(Z);if(Y)return Y;return V8(Z,J),Y2[b(S0())]??J8}return Q}function V8(Z,$){x("",{model:Z,shortName:$}),d1()}function W8(Z,$){let J=X8(Z,$);return q8(J,$)}function uJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return W8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var r7,f0,m1,n,o7,e7,i1,Z8,$8,J8,Q8,Y2;var t1=R(()=>{z5();Q0();p1();u5();w0();r7={inputTokens:2,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheWrite1hTokens:4,promptCacheReadTokens:0.2,webSearchRequests:0.01},f0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},n={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},o7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:0.25,webSearchRequests:0.01},e7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},Z8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},$8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},J8=n,Q8=[{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}}];Y2={[F(y5.firstParty)]:Z8,[F(_5.firstParty)]:$8,[F(E5.firstParty)]:f0,[F(O5.firstParty)]:f0,[F(h5.firstParty)]:f0,[F(I5.firstParty)]:f0,[F(A5.firstParty)]:f0,[F(C5.firstParty)]:r7,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:n,[F(l0.firstParty)]:n,[F(s0.firstParty)]:n,[F(a0.firstParty)]:n,[F(N0.firstParty)]:n,[F(f5.firstParty)]:o7,"claude-fable-5":e7}});function p(Z){return j8.includes(Z)}function F0(Z){return z8.includes(Z)}var j8,z8;var W2=R(()=>{j8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];z8=["sonnet","opus","haiku"]});function x8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function B8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(F0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),q=J.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!F0(Y)||!l1(Y,q))return!0}for(let X of q)if(F0(X)&&!l1(X,q)&&x8(Y,X))return!0;if(p(Y)){let X=T(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!F0(X)&&p(X)){if(T(X).toLowerCase()===Y)return!0}for(let X of q)if(!F0(X)&&!p(X)){if(B8(Y,X))return!0}return!1}var a1=R(()=>{x0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function K0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function z9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=K0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function x9(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),q=K0()||Q||void 0,X=e1(),V=G5(X.activeModelForProject);if(V){let j=$4()?.id,G=X.activeModelForProjectProfileId;Z=G===void 0||G===j?V:q}else Z=q}if(Z&&!s1(Z))return;return Z}function B9(){let Z=j2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function w8(){return X0()}function X0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=K0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function A0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=K0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=K0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function G9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j2()==="opusplan"&&$==="plan"&&!Q)return X0();if(j2()==="haiku"&&$==="plan")return A0();return J}function S0(){let Z=K0();if(W()==="github"){let $=N()||{};return G5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(H5()||R5()){let $=X0();return $+(J2()&&!B5($)?"[1m]":"")}return A0()}function Y4(){return T(S0())}function F(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5-1"))return"claude-fable-5-1";if(Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return F(J5(Z))}function F8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?K8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function H9(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return X4(T(Z))}function R9(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function K8(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(y()&&f()===null)return!1;return!0}function w9(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(p(Z))return o1(Z);return X4(Z)}function q4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(O0(),E0(P0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable51:return"Fable 5.1";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function X4(Z){let $=q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function F9(Z){let $=q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return A0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let q=(X)=>Q&&!B5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(A0());case"sonnet":return q(A0());case"haiku":return q(Q4());case"opus":return q(X0());case"best":return w8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5"||Y==="fable51")return B().fable51;if(W()==="firstParty"&&D8(Y)&&b8())return X0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function K9(Z,$){if(l(Z)||!l($))return Z;if(x2(T(Z)))return Z+"[1m]";return Z}function D8(Z){return L8.includes(Z)}function b8(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function L9(Z){if(Z===null){if(y())return`Default (${F8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function D9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5-1"))return"Fable 5.1";if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function b9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function k9(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var L8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();R8();Q5();t1();x0();i();G8();a1();W2();H8();p5();L8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function U9(){}var V4=()=>{};function v8(Z,$={}){if($.isPro??(U8.test(Z)||W4.has(Z)))return!1;if(k8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(N8);return Q?Number.parseFloat(Q[1])>5.4:!1}function P9(){return w5.filter((Z)=>v8(Z.id,{isPro:Z.isPro}))}var w5,k8,W4,N8,U8,j4,z4;var x4=R(()=>{w5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],k8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),N8=/^gpt-(\d+\.\d+)/,U8=/-pro$/;j4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),z4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>S8,getDiscoveredContextWindow:()=>P8,discoverOpenAICompatibleModelOptions:()=>F4});function P8(Z){return R4.get(Z)}function O8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function E8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function y8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(E8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function _8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if($===J)return[Y($)];return[Y($),Y(J)]}function h8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function I8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function T8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),q=[];for(let X of Y.data?.data??[]){let V=X.id?.trim();if(!V||J.has(V))continue;J.add(V);let j=X.name?.trim()||V,G=X.context_length??null;if(G&&G>0)R4.set(V,G);let H=G?` · ${I8(G)}`:"";q.push({value:V,label:j,description:`${V}${H}`})}if(q.length>0)return q.sort((X,V)=>{let j=String(X.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=j.localeCompare(G);return H!==0?H:String(X.value).localeCompare(String(V.value))}),q}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function M8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=O8(),$=y8(Z),J=await T8(_8(Z),$);if(J.length>0)return J;let Q=h8(Z);if(Q)return M8(Q,$);return[]}function S8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let q=`${Q}:${J}`;if($[q]!==void 0)return $[q];if(Z[q]!==void 0)return Z[q]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),E0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(f8,C8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(O0(),E0(P0));return J(Z)}catch{return}}function N4(Z){let $=b4(A8,u8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(O0(),E0(P0));return J(Z)}catch{return}}var f8,A8,C8,u8;var U4=R(()=>{J0();x4();f8={"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,...j4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},A8={"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,...z4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},C8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),u8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function x2(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("opus-5")||$.includes("fable-5")}function n9(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(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/providers/model/openaiContextWindows.ts for accurate compaction."),g8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(I0)&&x2(Z))return 1e6;if(c8(Z))return 1e6;return R2}function c8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function l9(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function s9(Z){let $,J;if(v4()){let q=N4(Z);if(q!==void 0)return{default:q,upperLimit:q}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=p8,J=m8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,g8,d9=20000,p8=32000,m8=64000,i9=8000,t9=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();g8=(()=>{let Z=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var d8,P4;var O4=R(()=>{t0();i();d8=[{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"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of d8){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(J!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function i8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function G3(Z){if(!Z||Z.length===0)return;if(y()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=i8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function t8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function n8(Z){let $=b(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function l8(Z){let $=b(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function H3(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 R3(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function y4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function w3(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function F3(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=_4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),s8.cache?.clear?.()}var I4,w2,T4,s8;var S4=R(()=>{t0();T1();Q0();e5();_0();o();B2();d();w0();O4();i();x0();I4=[I0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=y4();if(!J)$.push(W5);if(y())$.push(B0);if(l(Z))$.push(I0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(y1);let q=n8(Z);if(y4()&&q)$.push(N1);let X=h4("tengu_tool_pear"),V=!X&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||M0("tengu_amber_json_tools",!1));if(Y&&l8(Z)&&X)$.push(U1);if(Y&&V)$.push(_1);if(Q==="vertex"&&t8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((j)=>j.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),s8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as a8}from"child_process";function f4(Z){return new Promise(($)=>{a8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:r8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function k3(){if(process.platform!=="darwin"||F5||u())return;let Z=f4(t(A4)),$=f4(t());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function N3(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var r8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let q=setTimeout((V,j,G)=>{V?.removeEventListener("abort",j),G()},Z,$,X,Q);function X(){if(clearTimeout(q),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",X,{once:!0}),J?.unref)q.unref()})}var p4=()=>{};function P3(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var pZ={};c5(pZ,{validateForceLoginOrg:()=>gZ,saveOAuthTokensIfNeeded:()=>X7,saveApiKey:()=>S2,removeApiKey:()=>OZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>Y7,refreshAwsAuth:()=>J7,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>NZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>UZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>BZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>TZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>hZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>z7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>MZ,isCustomApiKeyApproved:()=>PZ,isConsumerSubscriber:()=>CZ,isClaudeAISubscriber:()=>y,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>y2,isAnthropicAuthEnabled:()=>k0,is1PApiCustomer:()=>_Z,hasProfileScope:()=>q0,hasOpusAccess:()=>IZ,hasAnthropicApiKeyAuth:()=>WZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>f,getSubscriptionName:()=>W7,getRateLimitTier:()=>V7,getOtelHeadersFromHelper:()=>fZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>jZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>$7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>h0,getAccountInformation:()=>uZ,clearOAuthTokenCache:()=>f2,clearGcpCredentialsCache:()=>kZ,clearAwsCredentialsCache:()=>FZ,clearApiKeyHelperCache:()=>xZ,checkGcpCredentialsValid:()=>Q7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>Z7});import{exec as o4}from"child_process";import{mkdir as YZ,stat as qZ}from"fs/promises";import{join as XZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function k0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||q&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(b0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function h0(){let{key:Z}=c0();return Z}function WZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let X=L();if(X?.transport!=="anthropic")return;let V=X.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=$;if(j5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let X=l5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!k5()&&!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&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let q=U5();if(q)return q;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function e4(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function y2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function _2(){return(N()||{}).awsCredentialExport}function h2(){let Z=_2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Z7(){let Z=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return VZ}function jZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function $7(Z){if(!s())return null;let $=Z7();if(_){if(Date.now()-_.timestamp<$)return _.value;if(!m)m={promise:i4(Z,!1,D0),startedAt:null};return _.value}if(m)return m.promise;return m={promise:i4(Z,!0,D0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await zZ(Z);if(J!==D0)return Q;if(Q!==null)_={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==D0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(A.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&_&&_.value!==" ")return _={..._,timestamp:Date.now()},_.value;return _={value:" ",timestamp:Date.now()}," "}finally{if(J===D0)m=null}}async function zZ(Z){let $=s();if(!$)return null;if(e4()){if(!c()&&!Z){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",q),x("",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,q=J.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function b2(){return _?.value??null}function xZ(){D0++,_=null,m=null}function BZ(Z){if(e4()&&!c())return;$7(Z)}async function HZ(){let Z=E2();if(!Z)return!1;if(y2()){if(!c()&&!C()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsAuthRefresh invoked before trust check",J),x("",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return J7(Z)}}function J7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:RZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function wZ(){let Z=_2();if(!Z)return null;if(h2()){if(!c()&&!C()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsCredentialExport invoked before trust check",J),x("",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),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=U2($.stdout.trim());if(!F1(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=A.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 FZ(){j0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Q7(){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=L2(KZ).then(()=>{throw new x7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function DZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("gcpAuthRefresh invoked before trust check",J),x("",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Q7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y7(Z)}function Y7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:bZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function kZ(){M2.cache.clear()}function NZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function UZ(){let Z=E2(),$=_2();if(!Z&&!$)return;if(y2()||h2()){if(!c()&&!C())return}j0(),B()}function vZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!vZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q7();let $=!1;if(process.platform==="darwin")try{let Q=t(),Y=K5(),q=Buffer.from(Z,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
2
- `;await H0("security",["-i"],{input:X,reject:!1}),x("",{}),$=!0}catch(Q){k(Q),x("",{error:g(Q)}),x("",{})}else x("",{});let J=V5(Z);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U5.cache.clear?.(),K2()}function PZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function OZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function X7(Z){if(!b0(Z.scopes))return x("",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("",{}),{success:!0};let $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let q=$.update(Q);if(q.success)x("",{storageBackend:J});else x("",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),q}catch(Q){return k(Q),x("",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function f2(){w.cache?.clear?.(),L0()}async function EZ(){try{let{mtimeMs:Z}=await qZ(XZ(N2(),".credentials.json"));if(Z!==t4)t4=Z,f2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=yZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function yZ(Z){f2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await EZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!b0(Q.scopes))return!1;w.cache?.clear?.(),L0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let q=N2();await YZ(q,{recursive:!0});let X;try{x("",{}),X=await s4(q),x("",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("",{retryCount:Z+1}),await L2(1000+Math.random()*1000),k2(Z+1,$);return x("",{maxRetries:5}),!1}return k(V),x("",{error:g(V)}),!1}try{w.cache?.clear?.(),L0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return x("",{}),!1;x("",{});let j=await a4(V.refreshToken,{scopes:b0(V.scopes)?void 0:V.scopes});return X7(j),w.cache?.clear?.(),L0(),!0}catch(V){k(V),w.cache?.clear?.(),L0();let j=await p0();if(j&&!g0(j.expiresAt))return x("",{}),!0;return!1}finally{x("",{}),await X(),x("",{})}}function y(){if(!k0())return!1;return b0(w()?.scopes)}function q0(){return w()?.scopes?.includes(l4)??!1}function _Z(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(y())return!1;return!0}function b5(){return k0()?D().oauthAccount:void 0}function hZ(){let $=b5()?.billingType;if(!y()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function IZ(){let Z=f();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function f(){if(Q1())return J1();if(!k0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return f()==="max"}function TZ(){return f()==="team"}function R5(){return f()==="team"&&V7()==="default_claude_max_5x"}function MZ(){return f()==="enterprise"}function G2(){return f()==="pro"}function V7(){if(!k0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function W7(){switch(f()){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 k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function j7(){return(N()||{}).otelHeadersHelper}function z7(){let Z=j7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function fZ(){let Z=j7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||SZ.toString());if(L5&&Date.now()-n4<$)return L5;if(z7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,q]of Object.entries(Q))if(typeof q!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof q}`);return L5=Q,n4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function AZ(Z){return Z==="max"||Z==="pro"}function CZ(){let Z=f();return y()&&Z!==null&&AZ(Z)}function uZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(y())J.subscription=W7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let X=b5()?.organizationName;if(X)J.organization=X}let q=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&q)J.email=q;return J}async function gZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!k0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y?.organization)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 q=Y.organization.uuid;if(q===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: ${q}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var VZ=300000,_=null,m=null,D0=0,GZ=3600000,RZ=180000,j0,KZ=5000,LZ=3600000,bZ=180000,M2,U5,w,t4=0,D2,u0=null,L5=null,n4=0,SZ=1740000,x7;var o=R(()=>{e8();H1();t0();_0();z5();Q5();i();Q0();J0();Y1();r4();t5();G1();w1();L1();b1();S4();$0();Z0();d();x1();ZZ();JZ();n0();$Z();QZ();g4();s5();x0();p4();o8();d4();j0=P2(async()=>{let Z=await HZ(),$=await wZ();if(Z||$)await K1();return $},GZ);M2=P2(async()=>{return await DZ()},LZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=t();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=X5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;x7=class x7 extends Error{}});function b0(Z){return Boolean(Z?.includes(A2))}function mZ(Z){return Z?.split(" ").filter(Boolean)??[]}function wQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:V,loginMethod:j}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=q?[A2]:H7;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),X)H.searchParams.append("orgUUID",X);if(V)H.searchParams.append("login_hint",V);if(j)H.searchParams.append("login_method",j);return H.toString()}async function FQ(Z,$,J,Q,Y=!1,q){let X={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(q!==void 0)X.expires_in=q;let V=await v.post(U().TOKEN_URL,X,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("",{}),V.data}async function a4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:G7).join(" ")};try{let Q=await v.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=Z,expires_in:V}=Y,j=Date.now()+V*1000,G=mZ(Y.scope);x("",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await cZ(q);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:j,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function KQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("",{org_role:J.organization_role})}async function LQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),x("",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function cZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("",{}),{...Y,rawProfile:$}}async function DQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function bQ(){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(!D().oauthAccount)B7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!y()||!q0())return!1;let q=w();if(q?.accessToken){let X=await G0(q.accessToken),V=X?.account,j=X?.organization;if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return B7({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:j?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:j?.has_extra_usage_enabled??!1,billingType:j?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:j?.subscription_created_at??void 0}),!0}}return!1}function B7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V}){let j={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V};if(Q)j.displayName=Q;S((G)=>{if(G.oauthAccount?.accountUuid===j.accountUuid&&G.oauthAccount?.emailAddress===j.emailAddress&&G.oauthAccount?.organizationUuid===j.organizationUuid&&G.oauthAccount?.displayName===j.displayName&&G.oauthAccount?.hasExtraUsageEnabled===j.hasExtraUsageEnabled&&G.oauthAccount?.billingType===j.billingType&&G.oauthAccount?.accountCreatedAt===j.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===j.subscriptionCreatedAt)return G;return{...G,oauthAccount:j}})}var r4=R(()=>{Y5();z5();_0();o();$0();Z0();t5()});
16
- export{k3 as G5,N3 as H5,g4 as I5,C2 as J5,u2 as K5,rZ as L5,oZ as M5,w7 as N5,L7 as O5,eZ as P5,c2 as Q5,l0 as R5,N0 as S5,U0 as T5,u5 as U5,i5 as V5,v7 as W5,O0 as X5,W as Y5,z$ as Z5,h7 as _5,x$ as $5,B$ as a6,G$ as b6,i as c6,B as d6,k$ as e6,Q5 as f6,U$ as g6,v$ as h6,Y1 as i6,I$ as j6,G0 as k6,t5 as l6,b0 as m6,mZ as n6,wQ as o6,FQ as p6,a4 as q6,KQ as r6,LQ as s6,g0 as t6,cZ as u6,DQ as v6,bQ as w6,B7 as x6,r4 as y6,g$ as z6,g7 as A6,q1 as B6,G1 as C6,V5 as D6,w1 as E6,t$ as F6,L1 as G6,M as H6,b1 as I6,I0 as J6,N1 as K6,U1 as L6,a$ as M6,r$ as N6,O1 as O6,o$ as P6,e$ as Q6,E1 as R6,ZJ as S6,$J as T6,JJ as U6,e5 as V6,I as W6,f1 as X6,d7 as Y6,LJ as Z6,DJ as _6,bJ as $6,A1 as a7,kJ as b7,NJ as c7,i7 as d7,UJ as e7,vJ as f7,PJ as g7,OJ as h7,EJ as i7,l7 as j7,yJ as k7,_J as l7,hJ as m7,IJ as n7,p1 as o7,f0 as p7,o7 as q7,Z8 as r7,$8 as s7,q2 as t7,W8 as u7,uJ as v7,V2 as w7,t1 as x7,j8 as y7,W2 as z7,s1 as A7,a1 as B7,z9 as C7,x9 as D7,B5 as E7,j2 as F7,B9 as G7,w8 as H7,X0 as I7,A0 as J7,Q4 as K7,G9 as L7,S0 as M7,Y4 as N7,F as O7,b as P7,F8 as Q7,H9 as R7,R9 as S7,K8 as T7,J2 as U7,w9 as V7,q4 as W7,X4 as X7,F9 as Y7,T as Z7,K9 as _7,b8 as $7,L9 as a8,D9 as b8,b9 as c8,k9 as d8,w0 as e8,U9 as f8,V4 as g8,P9 as h8,x4 as i8,F4 as j8,S8 as k8,L4 as l8,d9 as m8,i9 as n8,t9 as o8,V0 as p8,l as q8,n9 as r8,c8 as s8,l9 as t8,s9 as u8,B2 as v8,P4 as w8,O4 as x8,G3 as y8,l8 as z8,H3 as A8,R3 as B8,y4 as C8,w3 as D8,T4 as E8,s8 as F8,F3 as G8,M4 as H8,S4 as I8,L2 as J8,p4 as K8,P3 as L8,c4 as M8,d4 as N8,k0 as O8,O2 as P8,h0 as Q8,WZ as R8,c0 as S8,s as T8,y2 as U8,h2 as V8,Z7 as W8,jZ as X8,$7 as Y8,b2 as Z8,xZ as _8,BZ as $8,J7 as a9,j0 as b9,FZ as c9,T2 as d9,Q7 as e9,Y7 as f9,M2 as g9,kZ as h9,NZ as i9,UZ as j9,U5 as k9,S2 as l9,PZ as m9,OZ as n9,X7 as o9,w as p9,f2 as q9,Q2 as r9,p0 as s9,d0 as t9,y as u9,q0 as v9,_Z as w9,b5 as x9,hZ as y9,IZ as z9,f as A9,H5 as B9,TZ as C9,R5 as D9,MZ as E9,G2 as F9,V7 as G9,W7 as H9,k5 as I9,z7 as J9,fZ as K9,CZ as L9,uZ as M9,gZ as N9,pZ as O9,o as P9};
@@ -1,2 +0,0 @@
1
- import{Hla as Q,Kla as $}from"./cli-1.1.29-rfz718th.mjs";import{hma as K,mma as Z}from"./cli-1.1.29-v6y1118n.mjs";import{Ama as Y,pma as J}from"./cli-1.1.29-79tgwbnn.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
- export{T as Ha,w as Ia,y as Ja};
@@ -1,2 +0,0 @@
1
- import{Ama as F,sma as $}from"./cli-1.1.29-79tgwbnn.mjs";import{Vta as E,Wta as W}from"./cli-1.1.29-4xqgqvwm.mjs";import{AsyncLocalStorage as q}from"async_hooks";function G(){return O.getStore()}function X(z,B){return O.run(z,B)}function Y(){return O.getStore()!==void 0}function Z(z){return{...z,isInProcess:!0}}var O;var Q=W(()=>{O=new q});var y={};E(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>_,runWithTeammateContext:()=>X,isTeammate:()=>h,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Y,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>u,getTeamName:()=>f,getParentSessionId:()=>L,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>j,createTeammateContext:()=>Z,clearDynamicTeamContext:()=>b});function L(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function _(z){D=z}function b(){D=null}function v(){return D}function j(){let z=G();if(z)return z.agentId;return D?.agentId}function A(){let z=G();if(z)return z.agentName;return D?.agentName}function f(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function h(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function u(){let z=G();if(z)return z.color;return D?.color}function w(){let z=G();if(z)return z.planModeRequired;if(D!==null)return D.planModeRequired;return $(process.env.CLAUDIN_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=j(),H=z.leadAgentId;if(B===H)return!0;if(!B)return!0;return!1}function P(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running")return!0;return!1}function I(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running"&&!B.isIdle)return!0;return!1}function l(z,B){let H=[];for(let[M,J]of Object.entries(B.tasks))if(J.type==="in_process_teammate"&&J.status==="running"&&!J.isIdle)H.push(M);if(H.length===0)return Promise.resolve();return new Promise((M)=>{let J=H.length,R=()=>{if(J--,J===0)M()};z((U)=>{let N={...U.tasks};for(let V of H){let K=N[V];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[V]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...U,tasks:N}})})}var D=null;var g=W(()=>{Q();F();Q()});
2
- export{G as xX,X as yX,Y as zX,Z as AX,Q as BX,L as CX,v as DX,j as EX,A as FX,f as GX,h as HX,u as IX,w as JX,S as KX,P as LX,I as MX,l as NX,y as OX,g as PX};
@@ -1,2 +0,0 @@
1
- import{C5 as $,x5 as N}from"./cli-1.1.29-ymcd1d05.mjs";import{P9 as Z,p9 as M,v6 as L,y6 as Y}from"./cli-1.1.29-8k2xw0ns.mjs";import{aia as Q,iia as X}from"./cli-1.1.29-a6pnwve8.mjs";import{Cka as J,Dka as V}from"./cli-1.1.29-3dnft82a.mjs";import{ema as P,mma as S}from"./cli-1.1.29-v6y1118n.mjs";import{gta as K,yta as W}from"./cli-1.1.29-2e5s8gsb.mjs";import{Wta as R}from"./cli-1.1.29-4xqgqvwm.mjs";async function f(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
2
- export{f as QX,j as RX,b as SX};
@@ -1,6 +0,0 @@
1
- import{Ita as M0,Jta as H0}from"./cli-1.1.29-snxnt4nr.mjs";import{Tta as L0,Uta as J,Wta as R0,Xta as E}from"./cli-1.1.29-4xqgqvwm.mjs";var u_=J((Ch,b_)=>{var T=1000,$=T*60,O=$*60,U=O*24,rS=U*7,sS=U*365.25;b_.exports=function(_,S){S=S||{};var z=typeof _;if(z==="string"&&_.length>0)return aS(_);else if(z==="number"&&isFinite(_))return S.long?_0(_):eS(_);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(_))};function aS(_){if(_=String(_),_.length>100)return;var S=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_);if(!S)return;var z=parseFloat(S[1]),h=(S[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return z*sS;case"weeks":case"week":case"w":return z*rS;case"days":case"day":case"d":return z*U;case"hours":case"hour":case"hrs":case"hr":case"h":return z*O;case"minutes":case"minute":case"mins":case"min":case"m":return z*$;case"seconds":case"second":case"secs":case"sec":case"s":return z*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return z;default:return}}function eS(_){var S=Math.abs(_);if(S>=U)return Math.round(_/U)+"d";if(S>=O)return Math.round(_/O)+"h";if(S>=$)return Math.round(_/$)+"m";if(S>=T)return Math.round(_/T)+"s";return _+"ms"}function _0(_){var S=Math.abs(_);if(S>=U)return t(_,S,U,"day");if(S>=O)return t(_,S,O,"hour");if(S>=$)return t(_,S,$,"minute");if(S>=T)return t(_,S,T,"second");return _+" ms"}function t(_,S,z,h){var K=S>=z*1.5;return Math.round(_/z)+" "+h+(K?"s":"")}});var J_=J((Ih,m_)=>{function z0(_){z.debug=z,z.default=z,z.coerce=M,z.disable=W,z.enable=K,z.enabled=V,z.humanize=u_(),z.destroy=F,Object.keys(_).forEach((Z)=>{z[Z]=_[Z]}),z.names=[],z.skips=[],z.formatters={};function S(Z){let Y=0;for(let G=0;G<Z.length;G++)Y=(Y<<5)-Y+Z.charCodeAt(G),Y|=0;return z.colors[Math.abs(Y)%z.colors.length]}z.selectColor=S;function z(Z){let Y,G=null,L,x;function H(...N){if(!H.enabled)return;let A=H,n=Number(new Date),lS=n-(Y||n);if(A.diff=lS,A.prev=Y,A.curr=n,Y=n,N[0]=z.coerce(N[0]),typeof N[0]!=="string")N.unshift("%O");let l=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(Z_,tS)=>{if(Z_==="%%")return"%";l++;let g_=z.formatters[tS];if(typeof g_==="function"){let oS=N[l];Z_=g_.call(A,oS),N.splice(l,1),l--}return Z_}),z.formatArgs.call(A,N),(A.log||z.log).apply(A,N)}if(H.namespace=Z,H.useColors=z.useColors(),H.color=z.selectColor(Z),H.extend=h,H.destroy=z.destroy,Object.defineProperty(H,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(G!==null)return G;if(L!==z.namespaces)L=z.namespaces,x=z.enabled(Z);return x},set:(N)=>{G=N}}),typeof z.init==="function")z.init(H);return H}function h(Z,Y){let G=z(this.namespace+(typeof Y>"u"?":":Y)+Z);return G.log=this.log,G}function K(Z){z.save(Z),z.namespaces=Z,z.names=[],z.skips=[];let Y=(typeof Z==="string"?Z:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let G of Y)if(G[0]==="-")z.skips.push(G.slice(1));else z.names.push(G)}function Q(Z,Y){let G=0,L=0,x=-1,H=0;while(G<Z.length)if(L<Y.length&&(Y[L]===Z[G]||Y[L]==="*"))if(Y[L]==="*")x=L,H=G,L++;else G++,L++;else if(x!==-1)L=x+1,H++,G=H;else return!1;while(L<Y.length&&Y[L]==="*")L++;return L===Y.length}function W(){let Z=[...z.names,...z.skips.map((Y)=>"-"+Y)].join(",");return z.enable(""),Z}function V(Z){for(let Y of z.skips)if(Q(Z,Y))return!1;for(let Y of z.names)if(Q(Z,Y))return!0;return!1}function M(Z){if(Z instanceof Error)return Z.stack||Z.message;return Z}function F(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return z.enable(z.load()),z}m_.exports=z0});var i_=J((p_,o)=>{p_.formatArgs=h0;p_.save=K0;p_.load=Q0;p_.useColors=S0;p_.storage=Z0();p_.destroy=(()=>{let _=!1;return()=>{if(!_)_=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();p_.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function S0(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let _;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(_=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(_[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function h0(_){if(_[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+_[0]+(this.useColors?"%c ":" ")+"+"+o.exports.humanize(this.diff),!this.useColors)return;let S="color: "+this.color;_.splice(1,0,S,"color: inherit");let z=0,h=0;_[0].replace(/%[a-zA-Z%]/g,(K)=>{if(K==="%%")return;if(z++,K==="%c")h=z}),_.splice(h,0,S)}p_.log=console.debug||console.log||(()=>{});function K0(_){try{if(_)p_.storage.setItem("debug",_);else p_.storage.removeItem("debug")}catch(S){}}function Q0(){let _;try{_=p_.storage.getItem("debug")||p_.storage.getItem("DEBUG")}catch(S){}if(!_&&typeof process<"u"&&"env"in process)_=process.env.DEBUG;return _}function Z0(){try{return localStorage}catch(_){}}o.exports=J_()(p_);var{formatters:J0}=o.exports;J0.j=function(_){try{return JSON.stringify(_)}catch(S){return"[UnexpectedJSONParseError]: "+S.message}}});var l_=J((c_,s)=>{var q0=E("tty"),r=E("util");c_.init=U0;c_.log=E0;c_.formatArgs=N0;c_.save=D0;c_.load=A0;c_.useColors=w0;c_.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");c_.colors=[6,2,3,4,5,1];try{let _=(H0(),L0(M0));if(_&&(_.stderr||_).level>=2)c_.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(_){}c_.inspectOpts=Object.keys(process.env).filter((_)=>{return/^debug_/i.test(_)}).reduce((_,S)=>{let z=S.substring(6).toLowerCase().replace(/_([a-z])/g,(K,Q)=>{return Q.toUpperCase()}),h=process.env[S];if(/^(yes|on|true|enabled)$/i.test(h))h=!0;else if(/^(no|off|false|disabled)$/i.test(h))h=!1;else if(h==="null")h=null;else h=Number(h);return _[z]=h,_},{});function w0(){return"colors"in c_.inspectOpts?Boolean(c_.inspectOpts.colors):q0.isatty(process.stderr.fd)}function N0(_){let{namespace:S,useColors:z}=this;if(z){let h=this.color,K="\x1B[3"+(h<8?h:"8;5;"+h),Q=` ${K};1m${S} \x1B[0m`;_[0]=Q+_[0].split(`
2
- `).join(`
3
- `+Q),_.push(K+"m+"+s.exports.humanize(this.diff)+"\x1B[0m")}else _[0]=x0()+S+" "+_[0]}function x0(){if(c_.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function E0(..._){return process.stderr.write(r.formatWithOptions(c_.inspectOpts,..._)+`
4
- `)}function D0(_){if(_)process.env.DEBUG=_;else delete process.env.DEBUG}function A0(){return process.env.DEBUG}function U0(_){_.inspectOpts={};let S=Object.keys(c_.inspectOpts);for(let z=0;z<S.length;z++)_.inspectOpts[S[z]]=c_.inspectOpts[S[z]]}s.exports=J_()(c_);var{formatters:d_}=s.exports;d_.o=function(_){return this.inspectOpts.colors=this.useColors,r.inspect(_,this.inspectOpts).split(`
5
- `).map((S)=>S.trim()).join(" ")};d_.O=function(_){return this.inspectOpts.colors=this.useColors,r.inspect(_,this.inspectOpts)}});var t_=J((Oh,Y_)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)Y_.exports=i_();else Y_.exports=l_()});function y0(_){try{return new URL(_)}catch{return null}}function Rh(_){var S=(typeof _==="string"?y0(_):_)||{},z=S.protocol,h=S.host,K=S.port;if(typeof h!=="string"||!h||typeof z!=="string")return"";if(z=z.split(":",1)[0],h=h.replace(/:\d*$/,""),K=parseInt(K)||P0[z]||0,!k0(h,K))return"";var Q=W_(z+"_proxy")||W_("all_proxy");if(Q&&Q.indexOf("://")===-1)Q=z+"://"+Q;return Q}function k0(_,S){var z=W_("no_proxy").toLowerCase();if(!z)return!0;if(z==="*")return!1;return z.split(/[,\s]/).every(function(h){if(!h)return!0;var K=h.match(/^(.+):(\d+)$/),Q=K?K[1]:h,W=K?parseInt(K[2]):0;if(W&&W!==S)return!0;if(!/^[.*]/.test(Q))return _!==Q;if(Q.charAt(0)==="*")Q=Q.slice(1);return!_.endsWith(Q)})}function W_(_){return process.env[_.toLowerCase()]||process.env[_.toUpperCase()]||""}var P0;var v0=R0(()=>{P0={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443}});var r_=J((yh,o_)=>{var b;o_.exports=function(){if(!b){try{b=t_()("follow-redirects")}catch(_){}if(typeof b!=="function")b=function(){}}b.apply(null,arguments)}});var a0=J((kh,x_)=>{var m=E("url"),u=m.URL,g0=E("http"),b0=E("https"),X_=E("stream").Writable,L_=E("assert"),s_=r_();(function(){var S=typeof process<"u",z=typeof window<"u"&&typeof document<"u",h=C(Error.captureStackTrace);if(!S&&(z||!h))console.warn("The follow-redirects package should be excluded from browser builds.")})();var M_=!1;try{L_(new u(""))}catch(_){M_=_.code==="ERR_INVALID_URL"}var u0=["Authorization","Proxy-Authorization","Cookie"],m0=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],H_=["abort","aborted","connect","error","socket","timeout"],q_=Object.create(null);H_.forEach(function(_){q_[_]=function(S,z,h){this._redirectable.emit(_,S,z,h)}});var G_=p("ERR_INVALID_URL","Invalid URL",TypeError),V_=p("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),p0=p("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",V_),i0=p("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),d0=p("ERR_STREAM_WRITE_AFTER_END","write after end"),c0=X_.prototype.destroy||e_;function w(_,S){if(X_.call(this),this._sanitizeOptions(_),this._options=_,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],S)this.on("response",S);var z=this;this._onNativeResponse=function(h){try{z._processResponse(h)}catch(K){z.emit("error",K instanceof V_?K:new V_({cause:K}))}},this._headerFilter=new RegExp("^(?:"+u0.concat(_.sensitiveHeaders).map(s0).join("|")+")$","i"),this._performRequest()}w.prototype=Object.create(X_.prototype);w.prototype.abort=function(){N_(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};w.prototype.destroy=function(_){return N_(this._currentRequest,_),c0.call(this,_),this};w.prototype.write=function(_,S,z){if(this._ending)throw new d0;if(!j(_)&&!o0(_))throw TypeError("data should be a string, Buffer or Uint8Array");if(C(S))z=S,S=null;if(_.length===0){if(z)z();return}if(this._requestBodyLength+_.length<=this._options.maxBodyLength)this._requestBodyLength+=_.length,this._requestBodyBuffers.push({data:_,encoding:S}),this._currentRequest.write(_,S,z);else this.emit("error",new i0),this.abort()};w.prototype.end=function(_,S,z){if(C(_))z=_,_=S=null;else if(C(S))z=S,S=null;if(!_)this._ended=this._ending=!0,this._currentRequest.end(null,null,z);else{var h=this,K=this._currentRequest;this.write(_,S,function(){h._ended=!0,K.end(null,null,z)}),this._ending=!0}};w.prototype.setHeader=function(_,S){this._options.headers[_]=S,this._currentRequest.setHeader(_,S)};w.prototype.removeHeader=function(_){delete this._options.headers[_],this._currentRequest.removeHeader(_)};w.prototype.setTimeout=function(_,S){var z=this;function h(W){W.setTimeout(_),W.removeListener("timeout",W.destroy),W.addListener("timeout",W.destroy)}function K(W){if(z._timeout)clearTimeout(z._timeout);z._timeout=setTimeout(function(){z.emit("timeout"),Q()},_),h(W)}function Q(){if(z._timeout)clearTimeout(z._timeout),z._timeout=null;if(z.removeListener("abort",Q),z.removeListener("error",Q),z.removeListener("response",Q),z.removeListener("close",Q),S)z.removeListener("timeout",S);if(!z.socket)z._currentRequest.removeListener("socket",K)}if(S)this.on("timeout",S);if(this.socket)K(this.socket);else this._currentRequest.once("socket",K);return this.on("socket",h),this.on("abort",Q),this.on("error",Q),this.on("response",Q),this.on("close",Q),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(_){w.prototype[_]=function(S,z){return this._currentRequest[_](S,z)}});["aborted","connection","socket"].forEach(function(_){Object.defineProperty(w.prototype,_,{get:function(){return this._currentRequest[_]}})});w.prototype._sanitizeOptions=function(_){if(!_.headers)_.headers={};if(!t0(_.sensitiveHeaders))_.sensitiveHeaders=[];if(_.host){if(!_.hostname)_.hostname=_.host;delete _.host}if(!_.pathname&&_.path){var S=_.path.indexOf("?");if(S<0)_.pathname=_.path;else _.pathname=_.path.substring(0,S),_.search=_.path.substring(S)}};w.prototype._performRequest=function(){var _=this._options.protocol,S=this._options.nativeProtocols[_];if(!S)throw TypeError("Unsupported protocol "+_);if(this._options.agents){var z=_.slice(0,-1);this._options.agent=this._options.agents[z]}var h=this._currentRequest=S.request(this._options,this._onNativeResponse);h._redirectable=this;for(var K of H_)h.on(K,q_[K]);if(this._currentUrl=/^\//.test(this._options.path)?m.format(this._options):this._options.path,this._isRedirect){var Q=0,W=this,V=this._requestBodyBuffers;(function M(F){if(h===W._currentRequest){if(F)W.emit("error",F);else if(Q<V.length){var Z=V[Q++];if(!h.finished)h.write(Z.data,Z.encoding,M)}else if(W._ended)h.end()}})()}};w.prototype._processResponse=function(_){var S=_.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:_.headers,statusCode:S});var z=_.headers.location;if(!z||this._options.followRedirects===!1||S<300||S>=400){_.responseUrl=this._currentUrl,_.redirects=this._redirects,this.emit("response",_),this._requestBodyBuffers=[];return}if(N_(this._currentRequest),_.destroy(),++this._redirectCount>this._options.maxRedirects)throw new p0;var h,K=this._options.beforeRedirect;if(K)h=Object.assign({Host:_.req.getHeader("host")},this._options.headers);var Q=this._options.method;if((S===301||S===302)&&this._options.method==="POST"||S===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],B_(/^content-/i,this._options.headers);var W=B_(/^host$/i,this._options.headers),V=w_(this._currentUrl),M=W||V.host,F=/^\w+:/.test(z)?this._currentUrl:m.format(Object.assign(V,{host:M})),Z=n0(z,F);if(s_("redirecting to",Z.href),this._isRedirect=!0,F_(Z,this._options),Z.protocol!==V.protocol&&Z.protocol!=="https:"||Z.host!==M&&!l0(Z.host,M))B_(this._headerFilter,this._options.headers);if(C(K)){var Y={headers:_.headers,statusCode:S},G={url:F,method:Q,headers:h};K(this._options,Y,G),this._sanitizeOptions(this._options)}this._performRequest()};function a_(_){var S={maxRedirects:21,maxBodyLength:10485760},z={};return Object.keys(_).forEach(function(h){var K=h+":",Q=z[K]=_[h],W=S[h]=Object.create(Q);function V(F,Z,Y){if(r0(F))F=F_(F);else if(j(F))F=F_(w_(F));else Y=Z,Z=_z(F),F={protocol:K};if(C(Z))Y=Z,Z=null;if(Z=Object.assign({maxRedirects:S.maxRedirects,maxBodyLength:S.maxBodyLength},F,Z),Z.nativeProtocols=z,!j(Z.host)&&!j(Z.hostname))Z.hostname="::1";return L_.equal(Z.protocol,K,"protocol mismatch"),s_("options",Z),new w(Z,Y)}function M(F,Z,Y){var G=W.request(F,Z,Y);return G.end(),G}Object.defineProperties(W,{request:{value:V,configurable:!0,enumerable:!0,writable:!0},get:{value:M,configurable:!0,enumerable:!0,writable:!0}})}),S}function e_(){}function w_(_){var S;if(M_)S=new u(_);else if(S=_z(m.parse(_)),!j(S.protocol))throw new G_({input:_});return S}function n0(_,S){return M_?new u(_,S):w_(m.resolve(S,_))}function _z(_){if(/^\[/.test(_.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(_.hostname))throw new G_({input:_.href||_});if(/^\[/.test(_.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(_.host))throw new G_({input:_.href||_});return _}function F_(_,S){var z=S||{};for(var h of m0)z[h]=_[h];if(z.hostname.startsWith("["))z.hostname=z.hostname.slice(1,-1);if(z.port!=="")z.port=Number(z.port);return z.path=z.search?z.pathname+z.search:z.pathname,z}function B_(_,S){var z;for(var h in S)if(_.test(h))z=S[h],delete S[h];return z===null||typeof z>"u"?void 0:String(z).trim()}function p(_,S,z){function h(K){if(C(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,K||{}),this.code=_,this.message=this.cause?S+": "+this.cause.message:S}return h.prototype=new(z||Error),Object.defineProperties(h.prototype,{constructor:{value:h,enumerable:!1},name:{value:"Error ["+_+"]",enumerable:!1}}),h}function N_(_,S){for(var z of H_)_.removeListener(z,q_[z]);_.on("error",e_),_.destroy(S)}function l0(_,S){L_(j(_)&&j(S));var z=_.length-S.length-1;return z>0&&_[z]==="."&&_.endsWith(S)}function t0(_){return _ instanceof Array}function j(_){return typeof _==="string"||_ instanceof String}function C(_){return typeof _==="function"}function o0(_){return typeof _==="object"&&"length"in _}function r0(_){return u&&_ instanceof u}function s0(_){return _.replace(/[\]\\/()*+?.$]/g,"\\$&")}x_.exports=a_({http:g0,https:b0});x_.exports.wrap=a_});var hz=J((vh,Sz)=>{var zz=E("stream").Stream,e0=E("util");Sz.exports=D;function D(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e0.inherits(D,zz);D.create=function(_,S){var z=new this;S=S||{};for(var h in S)z[h]=S[h];z.source=_;var K=_.emit;if(_.emit=function(){return z._handleEmit(arguments),K.apply(_,arguments)},_.on("error",function(){}),z.pauseStream)_.pause();return z};Object.defineProperty(D.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});D.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};D.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};D.prototype.pause=function(){this.source.pause()};D.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(_){this.emit.apply(this,_)}.bind(this)),this._bufferedEvents=[]};D.prototype.pipe=function(){var _=zz.prototype.pipe.apply(this,arguments);return this.resume(),_};D.prototype._handleEmit=function(_){if(this._released){this.emit.apply(this,_);return}if(_[0]==="data")this.dataSize+=_[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(_)};D.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var _="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(_))}});var z1=J((gh,Zz)=>{var _1=E("util"),Qz=E("stream").Stream,Kz=hz();Zz.exports=X;function X(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}_1.inherits(X,Qz);X.create=function(_){var S=new this;_=_||{};for(var z in _)S[z]=_[z];return S};X.isStreamLike=function(_){return typeof _!=="function"&&typeof _!=="string"&&typeof _!=="boolean"&&typeof _!=="number"&&!Buffer.isBuffer(_)};X.prototype.append=function(_){var S=X.isStreamLike(_);if(S){if(!(_ instanceof Kz)){var z=Kz.create(_,{maxDataSize:1/0,pauseStream:this.pauseStreams});_.on("data",this._checkDataSize.bind(this)),_=z}if(this._handleErrors(_),this.pauseStreams)_.pause()}return this._streams.push(_),this};X.prototype.pipe=function(_,S){return Qz.prototype.pipe.call(this,_,S),this.resume(),_};X.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};X.prototype._realGetNext=function(){var _=this._streams.shift();if(typeof _>"u"){this.end();return}if(typeof _!=="function"){this._pipeNext(_);return}var S=_;S(function(z){var h=X.isStreamLike(z);if(h)z.on("data",this._checkDataSize.bind(this)),this._handleErrors(z);this._pipeNext(z)}.bind(this))};X.prototype._pipeNext=function(_){this._currentStream=_;var S=X.isStreamLike(_);if(S){_.on("end",this._getNext.bind(this)),_.pipe(this,{end:!1});return}var z=_;this.write(z),this._getNext()};X.prototype._handleErrors=function(_){var S=this;_.on("error",function(z){S._emitError(z)})};X.prototype.write=function(_){this.emit("data",_)};X.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};X.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};X.prototype.end=function(){this._reset(),this.emit("end")};X.prototype.destroy=function(){this._reset(),this.emit("close")};X.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};X.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var _="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(_))};X.prototype._updateDataSize=function(){this.dataSize=0;var _=this;if(this._streams.forEach(function(S){if(!S.dataSize)return;_.dataSize+=S.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};X.prototype._emitError=function(_){this._reset(),this.emit("error",_)}});var Yz=J((bh,Jz)=>{Jz.exports=S1;function S1(_){var S=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(S)S(_);else setTimeout(_,0)}});var E_=J((uh,Bz)=>{var Wz=Yz();Bz.exports=h1;function h1(_){var S=!1;return Wz(function(){S=!0}),function(h,K){if(S)_(h,K);else Wz(function(){_(h,K)})}}});var D_=J((mh,Gz)=>{Gz.exports=K1;function K1(_){Object.keys(_.jobs).forEach(Q1.bind(_)),_.jobs={}}function Q1(_){if(typeof this.jobs[_]=="function")this.jobs[_]()}});var A_=J((ph,Fz)=>{var Vz=E_(),Z1=D_();Fz.exports=J1;function J1(_,S,z,h){var K=z.keyedList?z.keyedList[z.index]:z.index;z.jobs[K]=Y1(S,K,_[K],function(Q,W){if(!(K in z.jobs))return;if(delete z.jobs[K],Q)Z1(z);else z.results[K]=W;h(Q,z.results)})}function Y1(_,S,z,h){var K;if(_.length==2)K=_(z,Vz(h));else K=_(z,S,Vz(h));return K}});var U_=J((ih,Xz)=>{Xz.exports=W1;function W1(_,S){var z=!Array.isArray(_),h={index:0,keyedList:z||S?Object.keys(_):null,jobs:{},results:z?{}:[],size:z?Object.keys(_).length:_.length};if(S)h.keyedList.sort(z?S:function(K,Q){return S(_[K],_[Q])});return h}});var f_=J((dh,Lz)=>{var B1=D_(),G1=E_();Lz.exports=V1;function V1(_){if(!Object.keys(this.jobs).length)return;this.index=this.size,B1(this),G1(_)(null,this.results)}});var Hz=J((ch,Mz)=>{var F1=A_(),X1=U_(),L1=f_();Mz.exports=M1;function M1(_,S,z){var h=X1(_);while(h.index<(h.keyedList||_).length)F1(_,S,h,function(K,Q){if(K){z(K,Q);return}if(Object.keys(h.jobs).length===0){z(null,h.results);return}}),h.index++;return L1.bind(h,z)}});var j_=J((nh,a)=>{var qz=A_(),H1=U_(),q1=f_();a.exports=w1;a.exports.ascending=wz;a.exports.descending=N1;function w1(_,S,z,h){var K=H1(_,z);return qz(_,S,K,function Q(W,V){if(W){h(W,V);return}if(K.index++,K.index<(K.keyedList||_).length){qz(_,S,K,Q);return}h(null,K.results)}),q1.bind(K,h)}function wz(_,S){return _<S?-1:_>S?1:0}function N1(_,S){return-1*wz(_,S)}});var xz=J((lh,Nz)=>{var x1=j_();Nz.exports=E1;function E1(_,S,z){return x1(_,S,null,z)}});var D1=J((th,Ez)=>{Ez.exports={parallel:Hz(),serial:xz(),serialOrdered:j_()}});var C_=J((oh,Dz)=>{Dz.exports=Object});var Uz=J((rh,Az)=>{Az.exports=Error});var jz=J((sh,fz)=>{fz.exports=EvalError});var Iz=J((ah,Cz)=>{Cz.exports=RangeError});var $z=J((eh,Tz)=>{Tz.exports=ReferenceError});var Rz=J((_2,Oz)=>{Oz.exports=SyntaxError});var e=J((z2,Pz)=>{Pz.exports=TypeError});var kz=J((S2,yz)=>{yz.exports=URIError});var gz=J((h2,vz)=>{vz.exports=Math.abs});var uz=J((K2,bz)=>{bz.exports=Math.floor});var pz=J((Q2,mz)=>{mz.exports=Math.max});var dz=J((Z2,iz)=>{iz.exports=Math.min});var nz=J((J2,cz)=>{cz.exports=Math.pow});var tz=J((Y2,lz)=>{lz.exports=Math.round});var rz=J((W2,oz)=>{oz.exports=Number.isNaN||function(S){return S!==S}});var az=J((B2,sz)=>{var A1=rz();sz.exports=function(S){if(A1(S)||S===0)return S;return S<0?-1:1}});var _S=J((G2,ez)=>{ez.exports=Object.getOwnPropertyDescriptor});var I_=J((V2,zS)=>{var __=_S();if(__)try{__([],"length")}catch(_){__=null}zS.exports=__});var hS=J((F2,SS)=>{var z_=Object.defineProperty||!1;if(z_)try{z_({},"a",{value:1})}catch(_){z_=!1}SS.exports=z_});var T_=J((X2,KS)=>{KS.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var S={},z=Symbol("test"),h=Object(z);if(typeof z==="string")return!1;if(Object.prototype.toString.call(z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(h)!=="[object Symbol]")return!1;var K=42;S[z]=K;for(var Q in S)return!1;if(typeof Object.keys==="function"&&Object.keys(S).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(S).length!==0)return!1;var W=Object.getOwnPropertySymbols(S);if(W.length!==1||W[0]!==z)return!1;if(!Object.prototype.propertyIsEnumerable.call(S,z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var V=Object.getOwnPropertyDescriptor(S,z);if(V.value!==K||V.enumerable!==!0)return!1}return!0}});var JS=J((L2,ZS)=>{var QS=typeof Symbol<"u"&&Symbol,U1=T_();ZS.exports=function(){if(typeof QS!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof QS("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return U1()}});var $_=J((M2,YS)=>{YS.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var O_=J((H2,WS)=>{var f1=C_();WS.exports=f1.getPrototypeOf||null});var VS=J((q2,GS)=>{var j1="Function.prototype.bind called on incompatible ",C1=Object.prototype.toString,I1=Math.max,T1="[object Function]",BS=function(S,z){var h=[];for(var K=0;K<S.length;K+=1)h[K]=S[K];for(var Q=0;Q<z.length;Q+=1)h[Q+S.length]=z[Q];return h},$1=function(S,z){var h=[];for(var K=z||0,Q=0;K<S.length;K+=1,Q+=1)h[Q]=S[K];return h},O1=function(_,S){var z="";for(var h=0;h<_.length;h+=1)if(z+=_[h],h+1<_.length)z+=S;return z};GS.exports=function(S){var z=this;if(typeof z!=="function"||C1.apply(z)!==T1)throw TypeError(j1+z);var h=$1(arguments,1),K,Q=function(){if(this instanceof K){var Z=z.apply(this,BS(h,arguments));if(Object(Z)===Z)return Z;return this}return z.apply(S,BS(h,arguments))},W=I1(0,z.length-h.length),V=[];for(var M=0;M<W;M++)V[M]="$"+M;if(K=Function("binder","return function ("+O1(V,",")+"){ return binder.apply(this,arguments); }")(Q),z.prototype){var F=function(){};F.prototype=z.prototype,K.prototype=new F,F.prototype=null}return K}});var R=J((w2,FS)=>{var R1=VS();FS.exports=Function.prototype.bind||R1});var S_=J((N2,XS)=>{XS.exports=Function.prototype.call});var R_=J((x2,LS)=>{LS.exports=Function.prototype.apply});var HS=J((E2,MS)=>{MS.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var wS=J((D2,qS)=>{var P1=R(),y1=R_(),k1=S_(),v1=HS();qS.exports=v1||P1.call(k1,y1)});var xS=J((A2,NS)=>{var g1=R(),b1=e(),u1=S_(),m1=wS();NS.exports=function(S){if(S.length<1||typeof S[0]!=="function")throw new b1("a function is required");return m1(g1,u1,S)}});var jS=J((U2,fS)=>{var p1=xS(),ES=I_(),AS;try{AS=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!=="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var P_=!!AS&&ES&&ES(Object.prototype,"__proto__"),US=Object,DS=US.getPrototypeOf;fS.exports=P_&&typeof P_.get==="function"?p1([P_.get]):typeof DS==="function"?function(S){return DS(S==null?S:US(S))}:!1});var OS=J((f2,$S)=>{var CS=$_(),IS=O_(),TS=jS();$S.exports=CS?function(S){return CS(S)}:IS?function(S){if(!S||typeof S!=="object"&&typeof S!=="function")throw TypeError("getProto: not an object");return IS(S)}:TS?function(S){return TS(S)}:null});var PS=J((j2,RS)=>{var i1=Function.prototype.call,d1=Object.prototype.hasOwnProperty,c1=R();RS.exports=c1.call(i1,d1)});var uS=J((C2,bS)=>{var B,n1=C_(),l1=Uz(),t1=jz(),o1=Iz(),r1=$z(),v=Rz(),k=e(),s1=kz(),a1=gz(),e1=uz(),_h=pz(),zh=dz(),Sh=nz(),hh=tz(),Kh=az(),vS=Function,y_=function(_){try{return vS('"use strict"; return ('+_+").constructor;")()}catch(S){}},i=I_(),Qh=hS(),k_=function(){throw new k},Zh=i?function(){try{return arguments.callee,k_}catch(_){try{return i(arguments,"callee").get}catch(S){return k_}}}():k_,P=JS()(),q=OS(),Jh=O_(),Yh=$_(),gS=R_(),d=S_(),y={},Wh=typeof Uint8Array>"u"||!q?B:q(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?B:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?B:ArrayBuffer,"%ArrayIteratorPrototype%":P&&q?q([][Symbol.iterator]()):B,"%AsyncFromSyncIteratorPrototype%":B,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?B:Atomics,"%BigInt%":typeof BigInt>"u"?B:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?B:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?B:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?B:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l1,"%eval%":eval,"%EvalError%":t1,"%Float16Array%":typeof Float16Array>"u"?B:Float16Array,"%Float32Array%":typeof Float32Array>"u"?B:Float32Array,"%Float64Array%":typeof Float64Array>"u"?B:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?B:FinalizationRegistry,"%Function%":vS,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?B:Int8Array,"%Int16Array%":typeof Int16Array>"u"?B:Int16Array,"%Int32Array%":typeof Int32Array>"u"?B:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&q?q(q([][Symbol.iterator]())):B,"%JSON%":typeof JSON==="object"?JSON:B,"%Map%":typeof Map>"u"?B:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!q?B:q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n1,"%Object.getOwnPropertyDescriptor%":i,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?B:Promise,"%Proxy%":typeof Proxy>"u"?B:Proxy,"%RangeError%":o1,"%ReferenceError%":r1,"%Reflect%":typeof Reflect>"u"?B:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?B:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!q?B:q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?B:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&q?q(""[Symbol.iterator]()):B,"%Symbol%":P?Symbol:B,"%SyntaxError%":v,"%ThrowTypeError%":Zh,"%TypedArray%":Wh,"%TypeError%":k,"%Uint8Array%":typeof Uint8Array>"u"?B:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?B:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?B:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?B:Uint32Array,"%URIError%":s1,"%WeakMap%":typeof WeakMap>"u"?B:WeakMap,"%WeakRef%":typeof WeakRef>"u"?B:WeakRef,"%WeakSet%":typeof WeakSet>"u"?B:WeakSet,"%Function.prototype.call%":d,"%Function.prototype.apply%":gS,"%Object.defineProperty%":Qh,"%Object.getPrototypeOf%":Jh,"%Math.abs%":a1,"%Math.floor%":e1,"%Math.max%":_h,"%Math.min%":zh,"%Math.pow%":Sh,"%Math.round%":hh,"%Math.sign%":Kh,"%Reflect.getPrototypeOf%":Yh};if(q)try{null.error}catch(_){v_=q(q(_)),I["%Error.prototype%"]=v_}var v_,Bh=function _(S){var z;if(S==="%AsyncFunction%")z=y_("async function () {}");else if(S==="%GeneratorFunction%")z=y_("function* () {}");else if(S==="%AsyncGeneratorFunction%")z=y_("async function* () {}");else if(S==="%AsyncGenerator%"){var h=_("%AsyncGeneratorFunction%");if(h)z=h.prototype}else if(S==="%AsyncIteratorPrototype%"){var K=_("%AsyncGenerator%");if(K&&q)z=q(K.prototype)}return I[S]=z,z},yS={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},c=R(),h_=PS(),Gh=c.call(d,Array.prototype.concat),Vh=c.call(gS,Array.prototype.splice),kS=c.call(d,String.prototype.replace),K_=c.call(d,String.prototype.slice),Fh=c.call(d,RegExp.prototype.exec),Xh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Lh=/\\(\\)?/g,Mh=function(S){var z=K_(S,0,1),h=K_(S,-1);if(z==="%"&&h!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");else if(h==="%"&&z!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var K=[];return kS(S,Xh,function(Q,W,V,M){K[K.length]=V?kS(M,Lh,"$1"):W||Q}),K},Hh=function(S,z){var h=S,K;if(h_(yS,h))K=yS[h],h="%"+K[0]+"%";if(h_(I,h)){var Q=I[h];if(Q===y)Q=Bh(h);if(typeof Q>"u"&&!z)throw new k("intrinsic "+S+" exists, but is not available. Please file an issue!");return{alias:K,name:h,value:Q}}throw new v("intrinsic "+S+" does not exist!")};bS.exports=function(S,z){if(typeof S!=="string"||S.length===0)throw new k("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!=="boolean")throw new k('"allowMissing" argument must be a boolean');if(Fh(/^%?[^%]*%?$/,S)===null)throw new v("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var h=Mh(S),K=h.length>0?h[0]:"",Q=Hh("%"+K+"%",z),W=Q.name,V=Q.value,M=!1,F=Q.alias;if(F)K=F[0],Vh(h,Gh([0,1],F));for(var Z=1,Y=!0;Z<h.length;Z+=1){var G=h[Z],L=K_(G,0,1),x=K_(G,-1);if((L==='"'||L==="'"||L==="`"||(x==='"'||x==="'"||x==="`"))&&L!==x)throw new v("property names with quotes must have matching quotes");if(G==="constructor"||!Y)M=!0;if(K+="."+G,W="%"+K+"%",h_(I,W))V=I[W];else if(V!=null){if(!(G in V)){if(!z)throw new k("base intrinsic for "+S+" exists, but the property is not available.");return}if(i&&Z+1>=h.length){var H=i(V,G);if(Y=!!H,Y&&"get"in H&&!("originalValue"in H.get))V=H.get;else V=V[G]}else Y=h_(V,G),V=V[G];if(Y&&!M)I[W]=V}}return V}});var pS=J((I2,mS)=>{var qh=T_();mS.exports=function(){return qh()&&!!Symbol.toStringTag}});var dS=J((T2,iS)=>{var wh=Function.prototype.call,Nh=Object.prototype.hasOwnProperty,xh=R();iS.exports=xh.call(wh,Nh)});var fh=J(($2,nS)=>{var Eh=uS(),cS=Eh("%Object.defineProperty%",!0),Dh=pS()(),Ah=dS(),Uh=e(),Q_=Dh?Symbol.toStringTag:null;nS.exports=function(S,z){var h=arguments.length>2&&!!arguments[2]&&arguments[2].force,K=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof h<"u"&&typeof h!=="boolean"||typeof K<"u"&&typeof K!=="boolean")throw new Uh("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");if(Q_&&(h||!Ah(S,Q_)))if(cS)cS(S,Q_,{configurable:!K,enumerable:!1,value:z,writable:!1});else S[Q_]=z}});
6
- export{z1 as zta,D1 as Ata,R as Bta,fh as Cta,Rh as Dta,v0 as Eta,t_ as Fta,a0 as Gta};