@claudiolabs/claudin 0.5.11 → 0.5.13

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 (844) hide show
  1. package/dist/chunks/AgentTool-0.5.13-6dz2gvzt.mjs +1 -0
  2. package/dist/chunks/App-0.5.13-h8h37pzk.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +3 -0
  10. package/dist/chunks/Doctor-0.5.13-335trspw.mjs +1 -0
  11. package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +1 -0
  18. package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +1 -0
  28. package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +1 -0
  29. package/dist/chunks/agents-0.5.13-manb7tcq.mjs +3 -0
  30. package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +110 -0
  31. package/dist/chunks/api-0.5.13-q2anppzf.mjs +1 -0
  32. package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +1 -0
  33. package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +1 -0
  34. package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +1 -0
  35. package/dist/chunks/auth-0.5.13-jn53extx.mjs +1 -0
  36. package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +1 -0
  39. package/dist/chunks/branch-0.5.13-qmyekghp.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +1 -0
  41. package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +1 -0
  42. package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +3 -0
  43. package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +4 -0
  46. package/dist/chunks/caches-0.5.13-75dr0q42.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +1 -0
  48. package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +1 -0
  49. package/dist/chunks/clear-0.5.13-k8q15yen.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +1 -0
  51. package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +2 -0
  52. package/dist/chunks/cli-0.5.13-055v20cs.mjs +2 -0
  53. package/dist/chunks/cli-0.5.13-061m60f2.mjs +2 -0
  54. package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +3 -0
  55. package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +2 -0
  56. package/dist/chunks/cli-0.5.13-15kmd08p.mjs +2 -0
  57. package/dist/chunks/cli-0.5.13-16khcs2m.mjs +3 -0
  58. package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +2 -0
  59. package/dist/chunks/cli-0.5.13-1qt91z42.mjs +2 -0
  60. package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +45 -0
  61. package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +2 -0
  62. package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +2 -0
  63. package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +5276 -0
  64. package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +2 -0
  65. package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +2 -0
  66. package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +2 -0
  67. package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +2 -0
  68. package/dist/chunks/cli-0.5.13-426cpksk.mjs +4 -0
  69. package/dist/chunks/cli-0.5.13-4at49cv9.mjs +2 -0
  70. package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +2 -0
  71. package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +2 -0
  72. package/dist/chunks/cli-0.5.13-50cwkg00.mjs +2 -0
  73. package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +2 -0
  74. package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +6 -0
  75. package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +2 -0
  76. package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +2 -0
  77. package/dist/chunks/cli-0.5.13-62qasgve.mjs +2 -0
  78. package/dist/chunks/cli-0.5.13-667jxcab.mjs +18 -0
  79. package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +2 -0
  80. package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +2 -0
  81. package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +2 -0
  82. package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +2 -0
  83. package/dist/chunks/cli-0.5.13-6yehabyw.mjs +2 -0
  84. package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +4 -0
  85. package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +2 -0
  86. package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +2 -0
  87. package/dist/chunks/cli-0.5.13-77mqds6w.mjs +2 -0
  88. package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +2 -0
  89. package/dist/chunks/cli-0.5.13-7fzk2679.mjs +2 -0
  90. package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +2 -0
  91. package/dist/chunks/cli-0.5.13-7je48sax.mjs +15 -0
  92. package/dist/chunks/cli-0.5.13-898bb5x7.mjs +2 -0
  93. package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +2 -0
  94. package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +2 -0
  95. package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +2 -0
  96. package/dist/chunks/cli-0.5.13-9r26f53q.mjs +8 -0
  97. package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +2 -0
  98. package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +3 -0
  99. package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +6 -0
  100. package/dist/chunks/cli-0.5.13-acgafbm9.mjs +2 -0
  101. package/dist/chunks/cli-0.5.13-adphma77.mjs +2 -0
  102. package/dist/chunks/cli-0.5.13-atfk3e81.mjs +2 -0
  103. package/dist/chunks/cli-0.5.13-athb0q85.mjs +2 -0
  104. package/dist/chunks/cli-0.5.13-b2593ngv.mjs +4 -0
  105. package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +2 -0
  106. package/dist/chunks/cli-0.5.13-b6aefc28.mjs +1 -0
  107. package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +2 -0
  108. package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +2 -0
  109. package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +3 -0
  110. package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +2 -0
  111. package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +4 -0
  112. package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +2 -0
  113. package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +4 -0
  114. package/dist/chunks/cli-0.5.13-cnzars85.mjs +5 -0
  115. package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +2 -0
  116. package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +39 -0
  117. package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +2 -0
  118. package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +24 -0
  119. package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +2 -0
  120. package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +2 -0
  121. package/dist/chunks/cli-0.5.13-d6bw823x.mjs +2 -0
  122. package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +15 -0
  123. package/dist/chunks/cli-0.5.13-ddpterr2.mjs +2 -0
  124. package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +24 -0
  125. package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +2 -0
  126. package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +2 -0
  127. package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +34 -0
  128. package/dist/chunks/cli-0.5.13-epjykaww.mjs +17 -0
  129. package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +10 -0
  130. package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +2 -0
  131. package/dist/chunks/cli-0.5.13-f1e673b2.mjs +2 -0
  132. package/dist/chunks/cli-0.5.13-f6tattxs.mjs +4 -0
  133. package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +3 -0
  134. package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +2 -0
  135. package/dist/chunks/cli-0.5.13-fgckevv1.mjs +2 -0
  136. package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +2 -0
  137. package/dist/chunks/cli-0.5.13-frerk7s6.mjs +2 -0
  138. package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +2 -0
  139. package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +2 -0
  140. package/dist/chunks/cli-0.5.13-gb0363rs.mjs +2 -0
  141. package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +15 -0
  142. package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +12 -0
  143. package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +12 -0
  144. package/dist/chunks/cli-0.5.13-gw433gw1.mjs +9 -0
  145. package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +17 -0
  146. package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +2 -0
  147. package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +25 -0
  148. package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +4 -0
  149. package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +2 -0
  150. package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +2 -0
  151. package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +2 -0
  152. package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +2 -0
  153. package/dist/chunks/cli-0.5.13-j97wk70q.mjs +2 -0
  154. package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +3 -0
  155. package/dist/chunks/cli-0.5.13-jqns71dy.mjs +2 -0
  156. package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +2 -0
  157. package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +2 -0
  158. package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +2 -0
  159. package/dist/chunks/cli-0.5.13-khtf0a93.mjs +9 -0
  160. package/dist/chunks/cli-0.5.13-kry2fk76.mjs +2 -0
  161. package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +2 -0
  162. package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +2 -0
  163. package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +6 -0
  164. package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +2 -0
  165. package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +2 -0
  166. package/dist/chunks/cli-0.5.13-mwrgy706.mjs +2 -0
  167. package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +2 -0
  168. package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +2 -0
  169. package/dist/chunks/cli-0.5.13-nc37z94b.mjs +2 -0
  170. package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +2 -0
  171. package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +133 -0
  172. package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +16 -0
  173. package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +2 -0
  174. package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +193 -0
  175. package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +2 -0
  176. package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +2 -0
  177. package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +2 -0
  178. package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +2 -0
  179. package/dist/chunks/cli-0.5.13-qfxggvke.mjs +18 -0
  180. package/dist/chunks/cli-0.5.13-qkjyj942.mjs +2 -0
  181. package/dist/chunks/cli-0.5.13-qrn019we.mjs +2 -0
  182. package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +2 -0
  183. package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +3 -0
  184. package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +2 -0
  185. package/dist/chunks/cli-0.5.13-r442vgxt.mjs +2 -0
  186. package/dist/chunks/cli-0.5.13-rd990xfy.mjs +2 -0
  187. package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +2 -0
  188. package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +2 -0
  189. package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +2 -0
  190. package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +58 -0
  191. package/dist/chunks/cli-0.5.13-rrqv533k.mjs +2 -0
  192. package/dist/chunks/cli-0.5.13-s005ka5h.mjs +2 -0
  193. package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +2 -0
  194. package/dist/chunks/cli-0.5.13-s58vke8w.mjs +2 -0
  195. package/dist/chunks/cli-0.5.13-s719y89z.mjs +2 -0
  196. package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +4 -0
  197. package/dist/chunks/cli-0.5.13-sww17qtj.mjs +42 -0
  198. package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +3 -0
  199. package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +2 -0
  200. package/dist/chunks/cli-0.5.13-teedketa.mjs +2 -0
  201. package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +3 -0
  202. package/dist/chunks/cli-0.5.13-thgp6asf.mjs +21 -0
  203. package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +2 -0
  204. package/dist/chunks/cli-0.5.13-tr9s34te.mjs +59 -0
  205. package/dist/chunks/cli-0.5.13-tvfs784w.mjs +2 -0
  206. package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +2 -0
  207. package/dist/chunks/cli-0.5.13-ve50w85d.mjs +2 -0
  208. package/dist/chunks/cli-0.5.13-vee98ybt.mjs +2 -0
  209. package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +3 -0
  210. package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +2 -0
  211. package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +2 -0
  212. package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +3 -0
  213. package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +2 -0
  214. package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +5 -0
  215. package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +2 -0
  216. package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +2 -0
  217. package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +2 -0
  218. package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +2 -0
  219. package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +2 -0
  220. package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +2 -0
  221. package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +2 -0
  222. package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +5 -0
  223. package/dist/chunks/cli-0.5.13-xvg417w8.mjs +7 -0
  224. package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +2 -0
  225. package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +2 -0
  226. package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +2 -0
  227. package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +2 -0
  228. package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +2 -0
  229. package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +67 -0
  230. package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +20 -0
  231. package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +2 -0
  232. package/dist/chunks/cli-0.5.13-yskavx3s.mjs +12 -0
  233. package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +2 -0
  234. package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +4 -0
  235. package/dist/chunks/cli-0.5.13-z0f17269.mjs +2 -0
  236. package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +2 -0
  237. package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +3 -0
  238. package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +4 -0
  239. package/dist/chunks/cli-0.5.13-zms1a287.mjs +50 -0
  240. package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +133 -0
  241. package/dist/chunks/client-0.5.13-wkzv25nn.mjs +1 -0
  242. package/dist/chunks/color-0.5.13-yd46yzt2.mjs +1 -0
  243. package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +3 -0
  244. package/dist/chunks/config-0.5.13-mwq6ejza.mjs +1 -0
  245. package/dist/chunks/config-0.5.13-t1bvsttc.mjs +1 -0
  246. package/dist/chunks/context-0.5.13-zffaf66t.mjs +1 -0
  247. package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +1 -0
  248. package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +1 -0
  249. package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +9 -0
  250. package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +1 -0
  251. package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +1 -0
  252. package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +1 -0
  253. package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +1 -0
  254. package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +1177 -0
  255. package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +1 -0
  257. package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +1 -0
  258. package/dist/chunks/diff-0.5.13-515a1hs6.mjs +1 -0
  259. package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +1 -0
  260. package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +1 -0
  261. package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +1 -0
  262. package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +10 -0
  263. package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +1 -0
  264. package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +1 -0
  265. package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +1 -0
  266. package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +1 -0
  267. package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +1 -0
  268. package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +1 -0
  269. package/dist/chunks/export-0.5.13-d2yz4k76.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +1 -0
  272. package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +1 -0
  273. package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +1 -0
  275. package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +1 -0
  277. package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +1 -0
  278. package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +1 -0
  279. package/dist/chunks/headless-0.5.13-05rns8kj.mjs +2 -0
  280. package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +6 -0
  281. package/dist/chunks/help-0.5.13-8pfrra9q.mjs +1 -0
  282. package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +3 -0
  283. package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +1 -0
  284. package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +79 -0
  285. package/dist/chunks/ide-0.5.13-r40xcg67.mjs +3 -0
  286. package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +1 -0
  287. package/dist/chunks/index-0.5.13-06mj6naw.mjs +1 -0
  288. package/dist/chunks/index-0.5.13-12hemzfc.mjs +1 -0
  289. package/dist/chunks/index-0.5.13-4559xg8z.mjs +17 -0
  290. package/dist/chunks/index-0.5.13-5gmbch0k.mjs +9 -0
  291. package/dist/chunks/index-0.5.13-5qstd1y9.mjs +1 -0
  292. package/dist/chunks/index-0.5.13-5zhr2qys.mjs +1 -0
  293. package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +1 -0
  294. package/dist/chunks/index-0.5.13-9zz559q7.mjs +1 -0
  295. package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +1 -0
  296. package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +2 -0
  297. package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +1 -0
  298. package/dist/chunks/index-0.5.13-ej6cywk8.mjs +30 -0
  299. package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +1 -0
  300. package/dist/chunks/index-0.5.13-fertw6vb.mjs +1 -0
  301. package/dist/chunks/index-0.5.13-jwf634zt.mjs +1 -0
  302. package/dist/chunks/index-0.5.13-nny2e7sx.mjs +5 -0
  303. package/dist/chunks/index-0.5.13-np7s1rcw.mjs +1 -0
  304. package/dist/chunks/index-0.5.13-qkvpat3t.mjs +9 -0
  305. package/dist/chunks/index-0.5.13-qq60ettc.mjs +1 -0
  306. package/dist/chunks/index-0.5.13-rty9gaxf.mjs +2 -0
  307. package/dist/chunks/index-0.5.13-yqdcztr9.mjs +1 -0
  308. package/dist/chunks/index-0.5.13-zhze2z09.mjs +1 -0
  309. package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +1 -0
  310. package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +1 -0
  311. package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +1 -0
  312. package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +870 -0
  313. package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +1 -0
  314. package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +149 -0
  315. package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +1 -0
  316. package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +1 -0
  317. package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +1 -0
  318. package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +2 -0
  319. package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +2 -0
  320. package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +1 -0
  321. package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +1 -0
  322. package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +1 -0
  323. package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +1 -0
  324. package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +1 -0
  325. package/dist/chunks/main-0.5.13-n87gjwzq.mjs +1 -0
  326. package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +1 -0
  327. package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +4 -0
  328. package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +17 -0
  329. package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +1 -0
  330. package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +1 -0
  331. package/dist/chunks/memory-0.5.13-exfd915f.mjs +3 -0
  332. package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +2 -0
  333. package/dist/chunks/model-0.5.13-02rcx381.mjs +1 -0
  334. package/dist/chunks/model-0.5.13-nn224m13.mjs +2 -0
  335. package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +12 -0
  336. package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +1 -0
  337. package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +14 -0
  338. package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +1 -0
  339. package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +1 -0
  340. package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +1 -0
  341. package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +1 -0
  342. package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +1 -0
  343. package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +3 -0
  344. package/dist/chunks/plan-0.5.13-837bdxnq.mjs +1 -0
  345. package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +1 -0
  346. package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +29 -0
  347. package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +1 -0
  348. package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +9 -0
  349. package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +2 -0
  350. package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +57 -0
  351. package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +1 -0
  352. package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +1 -0
  353. package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +1 -0
  354. package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +9 -0
  355. package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +1 -0
  356. package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +1 -0
  357. package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +1 -0
  358. package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +13 -0
  359. package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +2 -0
  360. package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +1 -0
  361. package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +6 -0
  362. package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +1 -0
  363. package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +34 -0
  364. package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +1 -0
  365. package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +5 -0
  366. package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +2 -0
  367. package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +1 -0
  368. package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +1 -0
  369. package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +1 -0
  370. package/dist/chunks/rename-0.5.13-c388bb34.mjs +1 -0
  371. package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +1 -0
  372. package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +1 -0
  373. package/dist/chunks/resume-0.5.13-zwms595g.mjs +2 -0
  374. package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +1 -0
  375. package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +1 -0
  376. package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +1 -0
  377. package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +1 -0
  378. package/dist/chunks/session-0.5.13-ef059m1s.mjs +2 -0
  379. package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +1 -0
  380. package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +1 -0
  381. package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +1 -0
  382. package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +1 -0
  383. package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +5 -0
  384. package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +1 -0
  385. package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +1 -0
  386. package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +1 -0
  387. package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +1 -0
  388. package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +1 -0
  389. package/dist/chunks/stats-0.5.13-6083a1n1.mjs +6 -0
  390. package/dist/chunks/status-0.5.13-043z2z1k.mjs +1 -0
  391. package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +1 -0
  392. package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +1 -0
  393. package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +1 -0
  394. package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +1 -0
  395. package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +1 -0
  396. package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +1 -0
  397. package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +1 -0
  398. package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +1 -0
  399. package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +1 -0
  400. package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +1 -0
  401. package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +1 -0
  402. package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +1 -0
  403. package/dist/chunks/tools-0.5.13-jd6408d0.mjs +1 -0
  404. package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +1 -0
  405. package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +69 -0
  406. package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +4 -0
  407. package/dist/chunks/update-0.5.13-r5daertf.mjs +86 -0
  408. package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +1 -0
  409. package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +14 -0
  410. package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +1 -0
  411. package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +1 -0
  412. package/dist/chunks/util-0.5.13-f4gpmja3.mjs +1 -0
  413. package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +1 -0
  414. package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +1 -0
  415. package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +1 -0
  416. package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +132 -0
  417. package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +1 -0
  418. package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +1 -0
  419. package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +7 -0
  420. package/dist/claudin-vscode.vsix +0 -0
  421. package/dist/cli.mjs +2 -2
  422. package/package.json +1 -1
  423. package/dist/chunks/AgentTool-0.5.11-pmpb4k0n.mjs +0 -1
  424. package/dist/chunks/App-0.5.11-p4tzrftk.mjs +0 -1
  425. package/dist/chunks/ApproveApiKey-0.5.11-x7app6e1.mjs +0 -1
  426. package/dist/chunks/AssistantSessionChooser-0.5.11-yt145aqf.mjs +0 -1
  427. package/dist/chunks/AutoModeOptInDialog-0.5.11-sk3f4q8k.mjs +0 -1
  428. package/dist/chunks/BypassPermissionsModeDialog-0.5.11-1jzt83mp.mjs +0 -1
  429. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.11-cz8d7m9a.mjs +0 -1
  430. package/dist/chunks/ConsoleOAuthFlow-0.5.11-8k1tknez.mjs +0 -1
  431. package/dist/chunks/DiffDialog-0.5.11-5ztck2sb.mjs +0 -3
  432. package/dist/chunks/Doctor-0.5.11-r555n4gr.mjs +0 -1
  433. package/dist/chunks/Grove-0.5.11-ecytagy8.mjs +0 -1
  434. package/dist/chunks/ITermBackend-0.5.11-gjvxwbqm.mjs +0 -1
  435. package/dist/chunks/InvalidConfigDialog-0.5.11-0xtcm9sp.mjs +0 -1
  436. package/dist/chunks/InvalidSettingsDialog-0.5.11-xyg9jj2t.mjs +0 -1
  437. package/dist/chunks/MigrationDialog-0.5.11-6yvk9aga.mjs +0 -1
  438. package/dist/chunks/Onboarding-0.5.11-jny18cnf.mjs +0 -1
  439. package/dist/chunks/ProviderManager-0.5.11-tgpz26nn.mjs +0 -1
  440. package/dist/chunks/REPL-0.5.11-z9jmkcrt.mjs +0 -1
  441. package/dist/chunks/ResumeConversation-0.5.11-ax7rppk3.mjs +0 -1
  442. package/dist/chunks/SnapshotUpdateDialog-0.5.11-fg6xs3n9.mjs +0 -1
  443. package/dist/chunks/TeleportProgress-0.5.11-rk53szn6.mjs +0 -1
  444. package/dist/chunks/TeleportRepoMismatchDialog-0.5.11-pbz4q489.mjs +0 -1
  445. package/dist/chunks/TeleportResumeWrapper-0.5.11-v36ecwet.mjs +0 -1
  446. package/dist/chunks/TmuxBackend-0.5.11-xjrg30c7.mjs +0 -9
  447. package/dist/chunks/ToolSearchTool-0.5.11-5pyscyx3.mjs +0 -1
  448. package/dist/chunks/TrustDialog-0.5.11-hv1tdzd1.mjs +0 -1
  449. package/dist/chunks/activeProvider-0.5.11-67twne4q.mjs +0 -1
  450. package/dist/chunks/add-dir-0.5.11-fmpend7m.mjs +0 -1
  451. package/dist/chunks/agents-0.5.11-3ws1bp5n.mjs +0 -110
  452. package/dist/chunks/agents-0.5.11-yk20asfy.mjs +0 -3
  453. package/dist/chunks/api-0.5.11-qvvgffdr.mjs +0 -1
  454. package/dist/chunks/asciicast-0.5.11-pnstf51y.mjs +0 -1
  455. package/dist/chunks/assistant-0.5.11-0zxxv4fd.mjs +0 -1
  456. package/dist/chunks/auth-0.5.11-pn0t92nv.mjs +0 -1
  457. package/dist/chunks/auth-0.5.11-tx8tvxpk.mjs +0 -1
  458. package/dist/chunks/autoMode-0.5.11-ygcr6fva.mjs +0 -48
  459. package/dist/chunks/autoUpdater-0.5.11-da327r2h.mjs +0 -1
  460. package/dist/chunks/backgroundHousekeeping-0.5.11-84fpj6rq.mjs +0 -1
  461. package/dist/chunks/branch-0.5.11-q05ek7pc.mjs +0 -4
  462. package/dist/chunks/bridgePointer-0.5.11-eg7x2d2q.mjs +0 -1
  463. package/dist/chunks/btw-0.5.11-kjg5crjx.mjs +0 -1
  464. package/dist/chunks/buddy-0.5.11-evv2c6jv.mjs +0 -3
  465. package/dist/chunks/cacache-0.5.11-s4mzxjey.mjs +0 -1
  466. package/dist/chunks/cache-probe-0.5.11-ef5dmcc3.mjs +0 -21
  467. package/dist/chunks/cacheStats-0.5.11-62wc6683.mjs +0 -4
  468. package/dist/chunks/caches-0.5.11-zxyz4192.mjs +0 -1
  469. package/dist/chunks/claudeDesktop-0.5.11-yt8a325q.mjs +0 -1
  470. package/dist/chunks/claudemd-0.5.11-zs4d4f7m.mjs +0 -1
  471. package/dist/chunks/clear-0.5.11-ard48ngp.mjs +0 -1
  472. package/dist/chunks/clearTerminal-0.5.11-0yznc101.mjs +0 -1
  473. package/dist/chunks/cli-0.5.11-0106vc0d.mjs +0 -2
  474. package/dist/chunks/cli-0.5.11-04v0g9wg.mjs +0 -2
  475. package/dist/chunks/cli-0.5.11-06ja50j0.mjs +0 -2
  476. package/dist/chunks/cli-0.5.11-07d4s05w.mjs +0 -3
  477. package/dist/chunks/cli-0.5.11-0ck34rvv.mjs +0 -2
  478. package/dist/chunks/cli-0.5.11-0gvkh06n.mjs +0 -2
  479. package/dist/chunks/cli-0.5.11-0k52dqga.mjs +0 -2
  480. package/dist/chunks/cli-0.5.11-0wk8chb6.mjs +0 -6
  481. package/dist/chunks/cli-0.5.11-0x25smnx.mjs +0 -2
  482. package/dist/chunks/cli-0.5.11-1azjwqgg.mjs +0 -2
  483. package/dist/chunks/cli-0.5.11-1bfxt461.mjs +0 -2
  484. package/dist/chunks/cli-0.5.11-1bky2wf4.mjs +0 -2
  485. package/dist/chunks/cli-0.5.11-1gj2erx8.mjs +0 -2
  486. package/dist/chunks/cli-0.5.11-1t8p5947.mjs +0 -2
  487. package/dist/chunks/cli-0.5.11-1wnqzd0b.mjs +0 -2
  488. package/dist/chunks/cli-0.5.11-1z9g6q16.mjs +0 -2
  489. package/dist/chunks/cli-0.5.11-25wrjhqm.mjs +0 -2
  490. package/dist/chunks/cli-0.5.11-27c1jc52.mjs +0 -2
  491. package/dist/chunks/cli-0.5.11-289bqxdd.mjs +0 -2
  492. package/dist/chunks/cli-0.5.11-2aaka946.mjs +0 -3
  493. package/dist/chunks/cli-0.5.11-2fzynn6p.mjs +0 -2
  494. package/dist/chunks/cli-0.5.11-2mt65qck.mjs +0 -2
  495. package/dist/chunks/cli-0.5.11-2nsyt9r7.mjs +0 -3
  496. package/dist/chunks/cli-0.5.11-3n2bpvhd.mjs +0 -10
  497. package/dist/chunks/cli-0.5.11-3p2grcnj.mjs +0 -2
  498. package/dist/chunks/cli-0.5.11-3vy23k9x.mjs +0 -2
  499. package/dist/chunks/cli-0.5.11-3x794mr8.mjs +0 -3
  500. package/dist/chunks/cli-0.5.11-4phhn68y.mjs +0 -12
  501. package/dist/chunks/cli-0.5.11-4pjrzfnw.mjs +0 -2
  502. package/dist/chunks/cli-0.5.11-4wkav9bz.mjs +0 -2
  503. package/dist/chunks/cli-0.5.11-548r9zkc.mjs +0 -2
  504. package/dist/chunks/cli-0.5.11-56ecxcc1.mjs +0 -2
  505. package/dist/chunks/cli-0.5.11-5dfdkpag.mjs +0 -3
  506. package/dist/chunks/cli-0.5.11-5h4mrqhf.mjs +0 -2
  507. package/dist/chunks/cli-0.5.11-5tgkhbf9.mjs +0 -1
  508. package/dist/chunks/cli-0.5.11-5vke4xgt.mjs +0 -2
  509. package/dist/chunks/cli-0.5.11-62qwtx2m.mjs +0 -2
  510. package/dist/chunks/cli-0.5.11-62vs6h7k.mjs +0 -4
  511. package/dist/chunks/cli-0.5.11-63t1ht1z.mjs +0 -2
  512. package/dist/chunks/cli-0.5.11-66pfv87z.mjs +0 -2
  513. package/dist/chunks/cli-0.5.11-67nc1re2.mjs +0 -2
  514. package/dist/chunks/cli-0.5.11-6bg7bcpd.mjs +0 -2
  515. package/dist/chunks/cli-0.5.11-6j344fat.mjs +0 -9
  516. package/dist/chunks/cli-0.5.11-6p6tzgws.mjs +0 -2
  517. package/dist/chunks/cli-0.5.11-6vqz68v0.mjs +0 -5270
  518. package/dist/chunks/cli-0.5.11-73qsyep8.mjs +0 -193
  519. package/dist/chunks/cli-0.5.11-76dw4jf0.mjs +0 -2
  520. package/dist/chunks/cli-0.5.11-7b60ejft.mjs +0 -2
  521. package/dist/chunks/cli-0.5.11-7dcw6f28.mjs +0 -2
  522. package/dist/chunks/cli-0.5.11-7dqqz76t.mjs +0 -2
  523. package/dist/chunks/cli-0.5.11-7kdrre6e.mjs +0 -2
  524. package/dist/chunks/cli-0.5.11-7wdkrgrs.mjs +0 -2
  525. package/dist/chunks/cli-0.5.11-7z95akn7.mjs +0 -2
  526. package/dist/chunks/cli-0.5.11-8wegt5tk.mjs +0 -2
  527. package/dist/chunks/cli-0.5.11-9gbtz4tf.mjs +0 -2
  528. package/dist/chunks/cli-0.5.11-9hpvrk4m.mjs +0 -2
  529. package/dist/chunks/cli-0.5.11-9p5t3q3q.mjs +0 -3
  530. package/dist/chunks/cli-0.5.11-a268xvck.mjs +0 -34
  531. package/dist/chunks/cli-0.5.11-a4mf9xhj.mjs +0 -2
  532. package/dist/chunks/cli-0.5.11-aa4nqg2h.mjs +0 -2
  533. package/dist/chunks/cli-0.5.11-afsaw4w9.mjs +0 -2
  534. package/dist/chunks/cli-0.5.11-anrx0gdd.mjs +0 -24
  535. package/dist/chunks/cli-0.5.11-ary0369d.mjs +0 -2
  536. package/dist/chunks/cli-0.5.11-asbzzvaj.mjs +0 -2
  537. package/dist/chunks/cli-0.5.11-b8p90en1.mjs +0 -2
  538. package/dist/chunks/cli-0.5.11-bfbde9jn.mjs +0 -25
  539. package/dist/chunks/cli-0.5.11-bgd5c05j.mjs +0 -17
  540. package/dist/chunks/cli-0.5.11-bqq1dcq2.mjs +0 -2
  541. package/dist/chunks/cli-0.5.11-brmcmmjd.mjs +0 -2
  542. package/dist/chunks/cli-0.5.11-bs62j31j.mjs +0 -2
  543. package/dist/chunks/cli-0.5.11-c5zt7nm9.mjs +0 -8
  544. package/dist/chunks/cli-0.5.11-c6rcvt4z.mjs +0 -42
  545. package/dist/chunks/cli-0.5.11-ct01zxnx.mjs +0 -2
  546. package/dist/chunks/cli-0.5.11-cycpk41p.mjs +0 -3
  547. package/dist/chunks/cli-0.5.11-d8n7yg2y.mjs +0 -17
  548. package/dist/chunks/cli-0.5.11-dh89qxs0.mjs +0 -2
  549. package/dist/chunks/cli-0.5.11-dpbhsnm8.mjs +0 -59
  550. package/dist/chunks/cli-0.5.11-dz7nvwja.mjs +0 -18
  551. package/dist/chunks/cli-0.5.11-e67s4crr.mjs +0 -2
  552. package/dist/chunks/cli-0.5.11-e6czba2y.mjs +0 -3
  553. package/dist/chunks/cli-0.5.11-ew50bww2.mjs +0 -2
  554. package/dist/chunks/cli-0.5.11-f524x1te.mjs +0 -2
  555. package/dist/chunks/cli-0.5.11-f53h946w.mjs +0 -2
  556. package/dist/chunks/cli-0.5.11-ff85kqc1.mjs +0 -2
  557. package/dist/chunks/cli-0.5.11-ffsf3kp2.mjs +0 -2
  558. package/dist/chunks/cli-0.5.11-fkv6m8b0.mjs +0 -4
  559. package/dist/chunks/cli-0.5.11-fydbgnx6.mjs +0 -16
  560. package/dist/chunks/cli-0.5.11-fz4zane5.mjs +0 -3
  561. package/dist/chunks/cli-0.5.11-g08827r2.mjs +0 -2
  562. package/dist/chunks/cli-0.5.11-g3zmdsrn.mjs +0 -2
  563. package/dist/chunks/cli-0.5.11-g46sacxw.mjs +0 -2
  564. package/dist/chunks/cli-0.5.11-gwq31814.mjs +0 -12
  565. package/dist/chunks/cli-0.5.11-gy904yyh.mjs +0 -2
  566. package/dist/chunks/cli-0.5.11-h20s4d8b.mjs +0 -2
  567. package/dist/chunks/cli-0.5.11-h34yntmn.mjs +0 -2
  568. package/dist/chunks/cli-0.5.11-h3fsqvd0.mjs +0 -2
  569. package/dist/chunks/cli-0.5.11-h4rjx6k5.mjs +0 -2
  570. package/dist/chunks/cli-0.5.11-h52bd7wh.mjs +0 -4
  571. package/dist/chunks/cli-0.5.11-h9h4hp34.mjs +0 -2
  572. package/dist/chunks/cli-0.5.11-hk69acdj.mjs +0 -2
  573. package/dist/chunks/cli-0.5.11-hmmth2y4.mjs +0 -2
  574. package/dist/chunks/cli-0.5.11-hph6a44c.mjs +0 -2
  575. package/dist/chunks/cli-0.5.11-hpr89c78.mjs +0 -2
  576. package/dist/chunks/cli-0.5.11-j04e539e.mjs +0 -2
  577. package/dist/chunks/cli-0.5.11-j2vqwct6.mjs +0 -9
  578. package/dist/chunks/cli-0.5.11-j4hdhvj9.mjs +0 -6
  579. package/dist/chunks/cli-0.5.11-jbh1h99z.mjs +0 -2
  580. package/dist/chunks/cli-0.5.11-jnfg5t1w.mjs +0 -24
  581. package/dist/chunks/cli-0.5.11-jpwjtezc.mjs +0 -2
  582. package/dist/chunks/cli-0.5.11-ks07hfg7.mjs +0 -2
  583. package/dist/chunks/cli-0.5.11-kwwy5esr.mjs +0 -2
  584. package/dist/chunks/cli-0.5.11-m1bxrtje.mjs +0 -2
  585. package/dist/chunks/cli-0.5.11-m3bm720s.mjs +0 -2
  586. package/dist/chunks/cli-0.5.11-m6mcarks.mjs +0 -67
  587. package/dist/chunks/cli-0.5.11-mb46e2vr.mjs +0 -2
  588. package/dist/chunks/cli-0.5.11-me9q2f4g.mjs +0 -4
  589. package/dist/chunks/cli-0.5.11-mrpnwxc8.mjs +0 -3
  590. package/dist/chunks/cli-0.5.11-myahqjfp.mjs +0 -2
  591. package/dist/chunks/cli-0.5.11-nfrcshnh.mjs +0 -2
  592. package/dist/chunks/cli-0.5.11-nkfafdwt.mjs +0 -2
  593. package/dist/chunks/cli-0.5.11-nmhfw726.mjs +0 -15
  594. package/dist/chunks/cli-0.5.11-nqvw9xja.mjs +0 -2
  595. package/dist/chunks/cli-0.5.11-ns8kex5x.mjs +0 -2
  596. package/dist/chunks/cli-0.5.11-nvgvygr9.mjs +0 -2
  597. package/dist/chunks/cli-0.5.11-nzn18pg0.mjs +0 -12
  598. package/dist/chunks/cli-0.5.11-p23fv6r3.mjs +0 -2
  599. package/dist/chunks/cli-0.5.11-p2pgcz8q.mjs +0 -50
  600. package/dist/chunks/cli-0.5.11-pgw75ed3.mjs +0 -2
  601. package/dist/chunks/cli-0.5.11-pk5ee3x4.mjs +0 -4
  602. package/dist/chunks/cli-0.5.11-pkn0kwxz.mjs +0 -2
  603. package/dist/chunks/cli-0.5.11-pqq6g9cn.mjs +0 -2
  604. package/dist/chunks/cli-0.5.11-q05234bd.mjs +0 -2
  605. package/dist/chunks/cli-0.5.11-q6gp4am8.mjs +0 -2
  606. package/dist/chunks/cli-0.5.11-q6qzmzqg.mjs +0 -5
  607. package/dist/chunks/cli-0.5.11-q9j45pmj.mjs +0 -2
  608. package/dist/chunks/cli-0.5.11-qfnx3qe3.mjs +0 -2
  609. package/dist/chunks/cli-0.5.11-qph0smd1.mjs +0 -2
  610. package/dist/chunks/cli-0.5.11-qwwyyrad.mjs +0 -2
  611. package/dist/chunks/cli-0.5.11-r00ghsbw.mjs +0 -2
  612. package/dist/chunks/cli-0.5.11-r373s3sw.mjs +0 -20
  613. package/dist/chunks/cli-0.5.11-r45vbzkw.mjs +0 -2
  614. package/dist/chunks/cli-0.5.11-rmpd1mg7.mjs +0 -4
  615. package/dist/chunks/cli-0.5.11-rr2bav99.mjs +0 -2
  616. package/dist/chunks/cli-0.5.11-rrdvykge.mjs +0 -2
  617. package/dist/chunks/cli-0.5.11-s6jp1y14.mjs +0 -133
  618. package/dist/chunks/cli-0.5.11-s91dmr8j.mjs +0 -4
  619. package/dist/chunks/cli-0.5.11-sa4wnm16.mjs +0 -2
  620. package/dist/chunks/cli-0.5.11-skxnn9rd.mjs +0 -2
  621. package/dist/chunks/cli-0.5.11-smx5e9cf.mjs +0 -15
  622. package/dist/chunks/cli-0.5.11-sv9jwzfm.mjs +0 -133
  623. package/dist/chunks/cli-0.5.11-t1h3zx23.mjs +0 -2
  624. package/dist/chunks/cli-0.5.11-t8q2hmsy.mjs +0 -4
  625. package/dist/chunks/cli-0.5.11-td124m66.mjs +0 -58
  626. package/dist/chunks/cli-0.5.11-tdb8rrd2.mjs +0 -2
  627. package/dist/chunks/cli-0.5.11-tdtjfv7g.mjs +0 -2
  628. package/dist/chunks/cli-0.5.11-tekvw7w4.mjs +0 -2
  629. package/dist/chunks/cli-0.5.11-tenygbfm.mjs +0 -2
  630. package/dist/chunks/cli-0.5.11-th6kdvtq.mjs +0 -5
  631. package/dist/chunks/cli-0.5.11-tkfz368s.mjs +0 -2
  632. package/dist/chunks/cli-0.5.11-tqkhjegk.mjs +0 -2
  633. package/dist/chunks/cli-0.5.11-tsqmkrym.mjs +0 -2
  634. package/dist/chunks/cli-0.5.11-ttk8weyx.mjs +0 -2
  635. package/dist/chunks/cli-0.5.11-tyzwy8ba.mjs +0 -2
  636. package/dist/chunks/cli-0.5.11-vbtwayd7.mjs +0 -2
  637. package/dist/chunks/cli-0.5.11-vf66nxmm.mjs +0 -45
  638. package/dist/chunks/cli-0.5.11-vg1ydgsg.mjs +0 -2
  639. package/dist/chunks/cli-0.5.11-vgwb1q0w.mjs +0 -21
  640. package/dist/chunks/cli-0.5.11-w1rpmy1q.mjs +0 -6
  641. package/dist/chunks/cli-0.5.11-w1ysdbgh.mjs +0 -4
  642. package/dist/chunks/cli-0.5.11-w2rzkzyn.mjs +0 -4
  643. package/dist/chunks/cli-0.5.11-w42sednt.mjs +0 -3
  644. package/dist/chunks/cli-0.5.11-w4j0wkkp.mjs +0 -2
  645. package/dist/chunks/cli-0.5.11-w755ks5r.mjs +0 -2
  646. package/dist/chunks/cli-0.5.11-wafsp0ws.mjs +0 -2
  647. package/dist/chunks/cli-0.5.11-wd33twrf.mjs +0 -2
  648. package/dist/chunks/cli-0.5.11-wgmh2v5q.mjs +0 -2
  649. package/dist/chunks/cli-0.5.11-wv71k7xf.mjs +0 -7
  650. package/dist/chunks/cli-0.5.11-wx3mzx0n.mjs +0 -18
  651. package/dist/chunks/cli-0.5.11-x4qv3sjs.mjs +0 -2
  652. package/dist/chunks/cli-0.5.11-x9r5c2fn.mjs +0 -2
  653. package/dist/chunks/cli-0.5.11-xasfev8k.mjs +0 -39
  654. package/dist/chunks/cli-0.5.11-xksnwsm3.mjs +0 -2
  655. package/dist/chunks/cli-0.5.11-xmpfn425.mjs +0 -15
  656. package/dist/chunks/cli-0.5.11-xqjh3bpr.mjs +0 -2
  657. package/dist/chunks/cli-0.5.11-y0ts1qt0.mjs +0 -2
  658. package/dist/chunks/cli-0.5.11-y8t19tjp.mjs +0 -5
  659. package/dist/chunks/cli-0.5.11-yeag4bs7.mjs +0 -3
  660. package/dist/chunks/cli-0.5.11-yj62weqd.mjs +0 -2
  661. package/dist/chunks/cli-0.5.11-z61mwq81.mjs +0 -2
  662. package/dist/chunks/cli-0.5.11-zx40f53c.mjs +0 -2
  663. package/dist/chunks/client-0.5.11-6kt04vx4.mjs +0 -1
  664. package/dist/chunks/color-0.5.11-av7a397w.mjs +0 -1
  665. package/dist/chunks/compact-0.5.11-cctysw7j.mjs +0 -3
  666. package/dist/chunks/config-0.5.11-hpjf6qx7.mjs +0 -1
  667. package/dist/chunks/config-0.5.11-zsb73hdf.mjs +0 -1
  668. package/dist/chunks/context-0.5.11-g2sh01rs.mjs +0 -1
  669. package/dist/chunks/context-noninteractive-0.5.11-tjea4wr9.mjs +0 -1
  670. package/dist/chunks/conversation-0.5.11-hx51yee2.mjs +0 -1
  671. package/dist/chunks/copy-0.5.11-e8jg6b1x.mjs +0 -9
  672. package/dist/chunks/cost-0.5.11-tqp697tv.mjs +0 -1
  673. package/dist/chunks/createSSHSession-0.5.11-s35k3cx0.mjs +0 -1
  674. package/dist/chunks/createSession-0.5.11-bt3bpd8p.mjs +0 -1
  675. package/dist/chunks/debug-0.5.11-qh2jpe2b.mjs +0 -1
  676. package/dist/chunks/defaultActionDeps-0.5.11-x108pd3q.mjs +0 -1177
  677. package/dist/chunks/desktop-0.5.11-rs1a8d5a.mjs +0 -1
  678. package/dist/chunks/detectRepository-0.5.11-c1sg75rv.mjs +0 -1
  679. package/dist/chunks/detection-0.5.11-9atncamq.mjs +0 -1
  680. package/dist/chunks/diff-0.5.11-665a3hvr.mjs +0 -1
  681. package/dist/chunks/doctor-0.5.11-ggegwama.mjs +0 -1
  682. package/dist/chunks/doctorDiagnostic-0.5.11-mxs3236y.mjs +0 -1
  683. package/dist/chunks/earlyInput-0.5.11-pjds7ekg.mjs +0 -1
  684. package/dist/chunks/effort-0.5.11-dp44v8bt.mjs +0 -10
  685. package/dist/chunks/envUtils-0.5.11-vgrmx5s2.mjs +0 -1
  686. package/dist/chunks/environmentSelection-0.5.11-pe4mkdz7.mjs +0 -1
  687. package/dist/chunks/environments-0.5.11-m02k45kw.mjs +0 -1
  688. package/dist/chunks/errors-0.5.11-prtr2pp9.mjs +0 -1
  689. package/dist/chunks/exampleCommands-0.5.11-gc8kc8da.mjs +0 -1
  690. package/dist/chunks/exit-0.5.11-v9dmnmgv.mjs +0 -1
  691. package/dist/chunks/export-0.5.11-dq1sq5v5.mjs +0 -2
  692. package/dist/chunks/extra-usage-0.5.11-dg84qb19.mjs +0 -1
  693. package/dist/chunks/extra-usage-noninteractive-0.5.11-j7262a6a.mjs +0 -1
  694. package/dist/chunks/fast-0.5.11-ka1z4kaz.mjs +0 -1
  695. package/dist/chunks/feedback-0.5.11-pxtv6def.mjs +0 -14
  696. package/dist/chunks/firstPartyEventLogger-0.5.11-ajhncn3p.mjs +0 -1
  697. package/dist/chunks/git-0.5.11-dj08v964.mjs +0 -1
  698. package/dist/chunks/githubModelsCredentials-0.5.11-6z9h4mb2.mjs +0 -1
  699. package/dist/chunks/grove-0.5.11-s8a4wdhg.mjs +0 -1
  700. package/dist/chunks/growthbook-0.5.11-k631sh8z.mjs +0 -1
  701. package/dist/chunks/headless-0.5.11-hsfh25d9.mjs +0 -2
  702. package/dist/chunks/heapdump-0.5.11-73b0wcq4.mjs +0 -6
  703. package/dist/chunks/help-0.5.11-6gsfx8d2.mjs +0 -1
  704. package/dist/chunks/hookChains-0.5.11-bhapw13m.mjs +0 -3
  705. package/dist/chunks/hooks-0.5.11-0dvnmawz.mjs +0 -1
  706. package/dist/chunks/hooks-0.5.11-g8txz43p.mjs +0 -79
  707. package/dist/chunks/ide-0.5.11-jy359nf0.mjs +0 -3
  708. package/dist/chunks/image-processor-napi-0.5.11-5zmk2zrb.mjs +0 -1
  709. package/dist/chunks/index-0.5.11-03kr034g.mjs +0 -1
  710. package/dist/chunks/index-0.5.11-26k11p3q.mjs +0 -1
  711. package/dist/chunks/index-0.5.11-5jghqtgm.mjs +0 -1
  712. package/dist/chunks/index-0.5.11-77n6s5pd.mjs +0 -5
  713. package/dist/chunks/index-0.5.11-8tgnnkeg.mjs +0 -2
  714. package/dist/chunks/index-0.5.11-c87n0ja2.mjs +0 -1
  715. package/dist/chunks/index-0.5.11-dxwfmzg0.mjs +0 -1
  716. package/dist/chunks/index-0.5.11-fryacz82.mjs +0 -9
  717. package/dist/chunks/index-0.5.11-fwa6fmmd.mjs +0 -1
  718. package/dist/chunks/index-0.5.11-gh3srf06.mjs +0 -1
  719. package/dist/chunks/index-0.5.11-hyys7amt.mjs +0 -9
  720. package/dist/chunks/index-0.5.11-jc0yz0f6.mjs +0 -1
  721. package/dist/chunks/index-0.5.11-kkadf9jc.mjs +0 -17
  722. package/dist/chunks/index-0.5.11-kn9xxk7b.mjs +0 -1
  723. package/dist/chunks/index-0.5.11-m6chyzrf.mjs +0 -1
  724. package/dist/chunks/index-0.5.11-ns25c6zn.mjs +0 -30
  725. package/dist/chunks/index-0.5.11-qdb9ycw6.mjs +0 -1
  726. package/dist/chunks/index-0.5.11-s8sm3x4k.mjs +0 -1
  727. package/dist/chunks/index-0.5.11-v30jbmnt.mjs +0 -1
  728. package/dist/chunks/index-0.5.11-w050c48y.mjs +0 -1
  729. package/dist/chunks/index-0.5.11-x08rv5p7.mjs +0 -1
  730. package/dist/chunks/index-0.5.11-xpg8pe4r.mjs +0 -2
  731. package/dist/chunks/init-0.5.11-r4js2amw.mjs +0 -1
  732. package/dist/chunks/initReplBridge-0.5.11-r500cxp6.mjs +0 -1
  733. package/dist/chunks/ink-0.5.11-fwq9v8r4.mjs +0 -1
  734. package/dist/chunks/insights-0.5.11-am4b9b4f.mjs +0 -870
  735. package/dist/chunks/install-0.5.11-1z5ssnd0.mjs +0 -1
  736. package/dist/chunks/install-github-app-0.5.11-9x845nn3.mjs +0 -149
  737. package/dist/chunks/install-slack-app-0.5.11-314pskhy.mjs +0 -1
  738. package/dist/chunks/instrumentation-0.5.11-bkpe80da.mjs +0 -1
  739. package/dist/chunks/interactiveHelpers-0.5.11-jjv3m46r.mjs +0 -1
  740. package/dist/chunks/keybindings-0.5.11-w27m8a4f.mjs +0 -2
  741. package/dist/chunks/knowledge-0.5.11-m1jjfbrr.mjs +0 -2
  742. package/dist/chunks/latestVersionCache-0.5.11-byv82xqt.mjs +0 -1
  743. package/dist/chunks/loadAgentsDir-0.5.11-77hzappy.mjs +0 -1
  744. package/dist/chunks/loadPluginHooks-0.5.11-8t1g8hx2.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-0.5.11-rsryd2ca.mjs +0 -1
  746. package/dist/chunks/log-0.5.11-v6s8asrk.mjs +0 -1
  747. package/dist/chunks/main-0.5.11-g5p3688x.mjs +0 -1
  748. package/dist/chunks/managedEnv-0.5.11-sz59vy9h.mjs +0 -1
  749. package/dist/chunks/mcp-0.5.11-1j37gyr0.mjs +0 -4
  750. package/dist/chunks/mcp-0.5.11-eg4n7meb.mjs +0 -17
  751. package/dist/chunks/mcp-0.5.11-mkvd43ta.mjs +0 -1
  752. package/dist/chunks/mcpb-0.5.11-8wsgzfsz.mjs +0 -1
  753. package/dist/chunks/memory-0.5.11-9a7ygpmz.mjs +0 -3
  754. package/dist/chunks/mobile-0.5.11-zw5vchq9.mjs +0 -2
  755. package/dist/chunks/model-0.5.11-fadfdvgs.mjs +0 -2
  756. package/dist/chunks/model-0.5.11-x0rspzhg.mjs +0 -1
  757. package/dist/chunks/node-0.5.11-egbs37er.mjs +0 -12
  758. package/dist/chunks/oauth-0.5.11-ef2e98vw.mjs +0 -1
  759. package/dist/chunks/openaiShim-0.5.11-vs9j1ah7.mjs +0 -14
  760. package/dist/chunks/output-style-0.5.11-31fqw52q.mjs +0 -1
  761. package/dist/chunks/package-D6422PQU-0.5.11-s3t77wxd.mjs +0 -1
  762. package/dist/chunks/parseConnectUrl-0.5.11-ncbcb45y.mjs +0 -1
  763. package/dist/chunks/parser-0.5.11-d4kafyq6.mjs +0 -1
  764. package/dist/chunks/passes-0.5.11-neyvc48p.mjs +0 -1
  765. package/dist/chunks/permissions-0.5.11-ctbpkyfj.mjs +0 -3
  766. package/dist/chunks/plan-0.5.11-ehpxpt94.mjs +0 -1
  767. package/dist/chunks/plist-0.5.11-9dnpvdsc.mjs +0 -1
  768. package/dist/chunks/plugin-0.5.11-w8gmb1nh.mjs +0 -29
  769. package/dist/chunks/pluginStartupCheck-0.5.11-w10xjq2y.mjs +0 -1
  770. package/dist/chunks/plugins-0.5.11-mbr36d35.mjs +0 -9
  771. package/dist/chunks/preActionHook-0.5.11-e43np4a7.mjs +0 -2
  772. package/dist/chunks/print-0.5.11-n103qj4a.mjs +0 -57
  773. package/dist/chunks/privacy-settings-0.5.11-yfawwnqs.mjs +0 -1
  774. package/dist/chunks/process-0.5.11-1xw1qddm.mjs +0 -1
  775. package/dist/chunks/processBashCommand-0.5.11-f3tacdey.mjs +0 -1
  776. package/dist/chunks/processSlashCommand-0.5.11-hrhgven3.mjs +0 -9
  777. package/dist/chunks/prompt-0.5.11-gsj4s4br.mjs +0 -1
  778. package/dist/chunks/prompt-0.5.11-zyr95pjq.mjs +0 -1
  779. package/dist/chunks/prompts-0.5.11-f3625yfw.mjs +0 -1
  780. package/dist/chunks/protocolHandler-0.5.11-a0ksae90.mjs +0 -13
  781. package/dist/chunks/provider-0.5.11-4rg89nse.mjs +0 -2
  782. package/dist/chunks/providerProfiles-0.5.11-e8neqwrk.mjs +0 -1
  783. package/dist/chunks/providerValidation-0.5.11-p09gpn3v.mjs +0 -6
  784. package/dist/chunks/rate-limit-options-0.5.11-3x48xvqs.mjs +0 -1
  785. package/dist/chunks/registerSubcommands-0.5.11-p3djfm32.mjs +0 -34
  786. package/dist/chunks/registry-0.5.11-evj7atta.mjs +0 -1
  787. package/dist/chunks/release-notes-0.5.11-k58zfyrp.mjs +0 -5
  788. package/dist/chunks/reload-plugins-0.5.11-ab84fv3b.mjs +0 -2
  789. package/dist/chunks/remote-env-0.5.11-zgj86xbg.mjs +0 -1
  790. package/dist/chunks/remoteBridgeCore-0.5.11-j2sn8dwd.mjs +0 -1
  791. package/dist/chunks/remoteSession-0.5.11-2fzc66s9.mjs +0 -1
  792. package/dist/chunks/rename-0.5.11-ty27xf9f.mjs +0 -1
  793. package/dist/chunks/replBridgeHandle-0.5.11-69hftvr7.mjs +0 -1
  794. package/dist/chunks/replLauncher-0.5.11-vavj4t5g.mjs +0 -1
  795. package/dist/chunks/resume-0.5.11-7smh6we7.mjs +0 -2
  796. package/dist/chunks/rewind-0.5.11-qsvc0s43.mjs +0 -1
  797. package/dist/chunks/rootOptions-0.5.11-7d4xe18h.mjs +0 -1
  798. package/dist/chunks/sandbox-adapter-0.5.11-q07733sx.mjs +0 -1
  799. package/dist/chunks/sandbox-toggle-0.5.11-2shdwkx7.mjs +0 -1
  800. package/dist/chunks/session-0.5.11-tk487p5z.mjs +0 -2
  801. package/dist/chunks/sessionDiscovery-0.5.11-qa9cqfqk.mjs +0 -1
  802. package/dist/chunks/sessionFileAccessHooks-0.5.11-ebvvszyz.mjs +0 -1
  803. package/dist/chunks/sessionStorage-0.5.11-gy55mmnv.mjs +0 -1
  804. package/dist/chunks/settings-0.5.11-jgag6j90.mjs +0 -1
  805. package/dist/chunks/setup-0.5.11-ryyk08k5.mjs +0 -5
  806. package/dist/chunks/sinks-0.5.11-f43swkmw.mjs +0 -1
  807. package/dist/chunks/skills-0.5.11-jby6d3qr.mjs +0 -1
  808. package/dist/chunks/startupProfiler-0.5.11-23ge2aqg.mjs +0 -1
  809. package/dist/chunks/startupUpdateCheck-0.5.11-kmwcprea.mjs +0 -1
  810. package/dist/chunks/state-0.5.11-agmeq9ee.mjs +0 -1
  811. package/dist/chunks/stats-0.5.11-cpjajj5w.mjs +0 -6
  812. package/dist/chunks/status-0.5.11-2xk50ttd.mjs +0 -1
  813. package/dist/chunks/stickers-0.5.11-p3497hz9.mjs +0 -1
  814. package/dist/chunks/subprocessEnv-0.5.11-6dykv4yq.mjs +0 -1
  815. package/dist/chunks/tasks-0.5.11-n91zs4e1.mjs +0 -1
  816. package/dist/chunks/teamHelpers-0.5.11-6m3x2may.mjs +0 -1
  817. package/dist/chunks/teammateModeSnapshot-0.5.11-9kjfr863.mjs +0 -1
  818. package/dist/chunks/teleport-0.5.11-4b9y25zn.mjs +0 -1
  819. package/dist/chunks/terminalSetup-0.5.11-8few84ad.mjs +0 -1
  820. package/dist/chunks/theme-0.5.11-bncyd59f.mjs +0 -1
  821. package/dist/chunks/thinkback-0.5.11-9ka6qndz.mjs +0 -1
  822. package/dist/chunks/thinkback-play-0.5.11-2yb4ahzb.mjs +0 -1
  823. package/dist/chunks/toolPool-0.5.11-3g5t55gv.mjs +0 -1
  824. package/dist/chunks/toolSearch-0.5.11-435rw828.mjs +0 -1
  825. package/dist/chunks/tools-0.5.11-5w8q65t2.mjs +0 -1
  826. package/dist/chunks/trustedDevice-0.5.11-et6r85tm.mjs +0 -1
  827. package/dist/chunks/turndown.cjs-0.5.11-cqg5qyp6.mjs +0 -69
  828. package/dist/chunks/ultrareviewCommand-0.5.11-9j3gxxh7.mjs +0 -4
  829. package/dist/chunks/update-0.5.11-fpmdjwwt.mjs +0 -86
  830. package/dist/chunks/upgrade-0.5.11-0n8zenbt.mjs +0 -1
  831. package/dist/chunks/upstreamproxy-0.5.11-zt41cjzx.mjs +0 -14
  832. package/dist/chunks/url-handler-napi-0.5.11-jted8zbt.mjs +0 -1
  833. package/dist/chunks/usage-0.5.11-a52s5bgj.mjs +0 -1
  834. package/dist/chunks/util-0.5.11-gb69vaxs.mjs +0 -1
  835. package/dist/chunks/utils-0.5.11-h1m9vt64.mjs +0 -1
  836. package/dist/chunks/vim-0.5.11-1h4tqzvw.mjs +0 -1
  837. package/dist/chunks/watcher-0.5.11-6r2epj25.mjs +0 -1
  838. package/dist/chunks/wiki-0.5.11-85fb0h4p.mjs +0 -132
  839. package/dist/chunks/worktree-0.5.11-n8k8r06z.mjs +0 -1
  840. package/dist/chunks/worktreeModeEnabled-0.5.11-2xed052w.mjs +0 -1
  841. package/dist/chunks/wrapper-0.5.11-sgchnzeq.mjs +0 -7
  842. /package/dist/chunks/{cli-0.5.11-x3t0d2vm.mjs → cli-0.5.13-07hv5jdz.mjs} +0 -0
  843. /package/dist/chunks/{cli-0.5.11-b448985z.mjs → cli-0.5.13-c4q1pthh.mjs} +0 -0
  844. /package/dist/chunks/{cli-0.5.11-7grk38mj.mjs → cli-0.5.13-epw9z05w.mjs} +0 -0
@@ -1,16 +0,0 @@
1
- import{v4 as F2,x4 as d4}from"./cli-0.5.11-j2vqwct6.mjs";import{A4 as GZ,z4 as h}from"./cli-0.5.11-w1rpmy1q.mjs";import{Bba as y1,Bca as D,D9 as k1,Daa as d,E6 as j0,Eba as R2,F6 as u5,Fba as RZ,H$ as _,J$ as Y2,Jaa as C,Jca as c0,M$ as e,Maa as L,N$ as y,P6 as Y5,S6 as xZ,S9 as E8,Saa as v1,W$ as W0,b$ as S1,d7 as X5,daa as b4,dca as p1,eba as Z0,f7 as jZ,faa as BZ,gaa as q1,gba as M1,haa as Y8,hba as S8,jca as C8,k$ as k8,mba as I1,mca as N,p9 as V1,pca as q0,q9 as Q8,t6 as x4,u6 as i,v6 as z2,w6 as K0,x6 as j4,y6 as I2,zba as u1}from"./cli-0.5.11-73qsyep8.mjs";import{aea as S0,cea as X4,mea as X1}from"./cli-0.5.11-m3bm720s.mjs";import{$ea as c4,Wea as H5,Xea as O4,Yea as z0,_ea as m4,bfa as U,cfa as _0}from"./cli-0.5.11-0k52dqga.mjs";import{dfa as x,ffa as Q2}from"./cli-0.5.11-aa4nqg2h.mjs";import{Lfa as Q5,Pfa as zZ,Tfa as v2,Xfa as r4,fga as z,hga as f0,iga as x0}from"./cli-0.5.11-j4hdhvj9.mjs";import{Bga as A5,Gga as h5,zga as p}from"./cli-0.5.11-t8q2hmsy.mjs";import{Jga as J5,Mga as F,Oga as g,Qga as w2,Tga as U4,Wga as u}from"./cli-0.5.11-f524x1te.mjs";import{Lja as E1,Lka as I5,Mka as y5,Nka as T5,Oka as C5,Pja as Y4,Uja as b0,Vja as i0,_ka as J2,nka as f,rma as o,uka as Y1,wia as J0,xia as t5,xja as F1}from"./cli-0.5.11-tyzwy8ba.mjs";import{Qma as M,Rma as m0}from"./cli-0.5.11-tkfz368s.mjs";import{Dna as r0,lna as b}from"./cli-0.5.11-dz7nvwja.mjs";import{$na as g1,Zna as t8,aoa as R,boa as r}from"./cli-0.5.11-hph6a44c.mjs";function w5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:V,context:W}=$.shift();try{let G=await Z.apply(W,Y);X(G)}catch(G){V(G)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,V)=>{$.push({args:Y,resolve:X,reject:V,context:this}),Q()})}}var F5=()=>{};function D5(Z,$){return Z.find((J)=>J.includes($))??null}async function K5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=w2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await F2(),...J&&{requestHandler:new(await import("./index-0.5.11-26k11p3q.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.5.11-gh3srf06.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function W$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=w2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await F2(),...J&&{requestHandler:new(await import("./index-0.5.11-26k11p3q.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.5.11-gh3srf06.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function n4(Z){return Z.startsWith("anthropic.")}function i4(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function l4(Z){let $=i4(Z);for(let J of t4)if($.startsWith(`${J}.anthropic.`))return J;return}function G$(Z,$){let J=l4(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(n4(Z))return`${$}.${Z}`;return Z}var L5,z$,t4;var N5=R(()=>{m0();n();u();c0();d4();L5=M(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw D(Y),Y}});z$=M(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let V=X.modelArn.lastIndexOf("/");return V>=0?X.modelArn.substring(V+1):X.modelArn}catch($){return D($),null}});t4=["us","eu","apac","global"]});var L2,D2,K2,N2,U2,O2,b2,P2,_2,d0,n0,t0,E2,V0,j$,U5;var k2=R(()=>{L2={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"},D2={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"},K2={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"},N2={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"},U2={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"},O2={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"},b2={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"},P2={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"},_2={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"},d0={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"},n0={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"},t0={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"},E2={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"},V0={haiku35:K2,haiku45:N2,sonnet35:D2,sonnet37:L2,sonnet40:U2,sonnet45:O2,sonnet46:E2,opus40:b2,opus41:P2,opus45:_2,opus46:d0,opus47:n0,opus48:t0},j$=Object.values(V0).map((Z)=>Z.firstParty),U5=Object.fromEntries(Object.entries(V0).map(([Z,$])=>[$.firstParty,Z]))});function q(){let Z=N();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 H$(){return q()==="firstParty"}function w$(Z){let $=N();if($?.transport!=="github_copilot")return!1;return(Z?.trim()||$.model?.trim()||"").toLowerCase().includes("claude-")}function F$(){return q()}function L$(){let Z=N();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 t=R(()=>{q0()});function l0(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of b5)J[Q]=V0[Q][$];return J}async function s4(){let Z=l0("bedrock"),$;try{$=await L5()}catch(Q){return D(Q),Z}if(!$?.length)return Z;let J={};for(let Q of b5){let Y=V0[Q].firstParty;J[Q]=D5($,Y)||Z[Q]}return J}function O5(Z){let $=e().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=U5[Q];if(X&&Y)J[X]=Y}return J}function s0(Z){let $;try{$=e().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function a4(){if(b0()!==null)return;if(q()!=="bedrock"){i0(l0(q()));return}P5()}function j(){let Z=b0();if(Z===null)return a4(),O5(l0(q()));return O5(Z)}async function E$(){if(b0()!==null)return;if(q()!=="bedrock"){i0(l0(q()));return}await P5()}var b5,P5;var a0=R(()=>{o();c0();F5();W0();N5();k2();t();b5=Object.keys(V0);P5=w5(async()=>{if(b0()!==null)return;try{let Z=await s4();i0(Z)}catch(Z){D(Z)}})});function I$(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(O())return!1;let $=P0(),J=$0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),Y=Q.oauthAccount?.organizationRole,X=Q.oauthAccount?.workspaceRole;if(!Y||!X)return!1;return["admin","billing"].includes(Y)||["workspace_admin","workspace_billing"].includes(X)}function y$(){if(_5!==null)return _5;if(!O())return!1;let Z=S();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var _5=null;var E5=R(()=>{n();Z0();u()});function h$(Z){return Z}function f$(){return!1}function k5(){return null}function S5(){return!1}var v5=R(()=>{E5()});async function n$(){let $=L().oauthAccount?.accountUuid,J=$0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await b.get(Q,{headers:{"x-api-key":J,"anthropic-beta":z0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){D(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await b.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){D(J)}}var S2=R(()=>{r0();_0();n();Z0();c0()});import{mkdirSync as o4,writeFileSync as e4}from"fs";function J8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{o4(o0,{recursive:!0,mode:448}),e4(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function M5(Z,$){try{let Q=v2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!A5(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function f5({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let V=process.env[Z];if(!V){let G=M5($,J);return Y(G),G}let W=parseInt(V,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${V}`,{level:"error"}),Y(null),null;try{let G=v2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,H=G.readFileSync(B,{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 ${W}`),Y(H),J8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=M5($,J);return Y(B),B}}function e0(){return f5({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:Z8,label:"OAuth token",getCached:I5,setCached:y5})}function M2(){return f5({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:$8,label:"API key",getCached:T5,setCached:C5})}var o0="/home/claude/.claude/remote",Z8,$8,e$;var g5=R(()=>{o();x0();u();h5();r4();Z8=`${o0}/.oauth_token`,$8=`${o0}/.api_key`,e$=`${o0}/.session_ingress_token`});async function p5(){if(process.platform==="darwin"){let Z=i();if((await j0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function Z2(Z){return Z.slice(-20)}var m5=R(()=>{u5();I2()});function XJ(Z){return Z?.name==="CredentialsProviderError"}function c5(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 y2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function d5(){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 n5=R(()=>{x0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=J0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(T.instance)T.instance.changed.clear(),T.instance=null}}var i5=R(()=>{t5()});var $2="claude-code-20250219",l5="interleaved-thinking-2025-05-14",E0="context-1m-2025-08-07",s5="context-management-2025-06-27",a5="structured-outputs-2025-12-15",T2="web-search-2025-03-05",r5="advanced-tool-use-2025-11-20",o5="tool-search-tool-2025-10-19",zJ="effort-2025-11-24",GJ="task-budgets-2026-03-13",e5="prompt-caching-scope-2026-01-05",xJ="extended-cache-ttl-2025-04-11",jJ="fast-mode-2026-02-01",Z1="redact-thinking-2026-02-12",$1="thinking-token-count-2026-05-13",J1="token-efficient-tools-2026-03-28",BJ="afk-mode-2026-01-31",RJ="advisor-tool-2026-03-01",C2,HJ;var A2=R(()=>{C2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),HJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(q()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function W1(){if(!A())return!1;return V8()===null}function X8(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 V8(){if(q()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!V1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&J2()&&!Y1()){if(!_("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(k.status==="disabled"){if(k.reason==="network_error"||k.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=X8(k.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function yJ(){return"opus"+(M0()?"[1m]":"")}function TJ(Z){if(!A())return!1;if(!W1())return!1;if(!z1(Z))return!1;let $=e();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function z1(Z){if(!A())return!1;let $=Z??v0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function q8(){if(B0.status==="cooldown"&&Date.now()>=B0.resetAt){if(A()&&!h2)z("Fast mode cooldown expired, re-enabling fast mode"),h2=!0,x1.emit();B0={status:"active"}}return B0}function hJ(Z,$){if(!A())return;B0={status:"cooldown",resetAt:Z,reason:$},h2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),G1.emit(Z,$)}function fJ(){B0={status:"active"}}function gJ(){if(k.status==="disabled")return;k={status:"disabled",reason:"preference"},Y2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),f2.emit(!1)}function W8(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 z8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function pJ(Z){let $=W8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!z8(Z))Y2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));j1.emit($)}function G8(){return q8().status==="cooldown"}function mJ(Z,$){let J=A()&&W1()&&!!$&&z1(Z);if(J&&G8())return"cooldown";if(J)return"on";return"off"}async function x8(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":z0}:{"x-api-key":Z.apiKey};return(await b.get($,{headers:J})).data}function dJ(){if(!A())return;if(k.status!=="pending")return;k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function nJ(){if(q1())return;if(!A())return;if(k0)return z("Fast mode prefetch in progress, returning in-flight promise"),k0;let Z=$0();if(!(w()?.accessToken&&Q0())&&!Z){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-Q1<j8){z("Skipping fast mode prefetch, fetched recently");return}Q1=J;let Q=async()=>{let X=w(),V=X?.accessToken&&Q0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!V)throw Error("No auth available");return x8(V)};async function Y(){try{let X;try{X=await Q()}catch(W){if(b.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await g2(B),X=await Q();else throw W}else throw W}let V=k.status!=="pending"?k.status==="enabled":L().penguinModeOrgEnabled;if(k=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},V!==X.enabled){if(!X.enabled)Y2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:X.enabled})),f2.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${k.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{k0=null}}return k0=Y(),k0}var IJ="Opus 4.7",B0,h2=!1,G1,x1,CJ,AJ,j1,uJ,k,f2,cJ,j8=30000,Q1=0,k0=null;var B1=R(()=>{r0();_0();X1();o();Q2();n();Q8();Z0();x0();u();R0();t();Y8();W0();t5();B0={status:"active"},G1=J0(),x1=J0(),CJ=G1.subscribe,AJ=x1.subscribe;j1=J0(),uJ=j1.subscribe;k={status:"pending"},f2=J0(),cJ=f2.subscribe});function L8(Z){for(let $ of F8)if($.pattern.test(Z))return $.cost;return}function u2(Z){if(A()&&Z)return B8;return H0}function D8(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 K8(Z,$){let J=P(Z);if(J===K(d0.firstParty)||J===K(n0.firstParty)||J===K(t0.firstParty)){let Y=$.speed==="fast";return u2(Y)}let Q=H1[J];if(!Q){let Y=L8(Z);if(Y)return Y;return N8(Z,J),H1[P(v0())]??w8}return Q}function N8(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),F1()}function U8(Z,$){let J=K8(Z,$);return D8(J,$)}function oJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return U8(Z,J)}function w1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function L1(Z){return`${w1(Z.inputTokens)}/${w1(Z.outputTokens)} per Mtok`}var I0,R1,H0,B8,R8,H8,w8,F8,H1;var D1=R(()=>{Q2();o();B1();k2();R0();I0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},R1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},H0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},B8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},R8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},H8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},w8=H0,F8=[{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}}];H1={[K(K2.firstParty)]:R8,[K(N2.firstParty)]:H8,[K(D2.firstParty)]:I0,[K(L2.firstParty)]:I0,[K(U2.firstParty)]:I0,[K(O2.firstParty)]:I0,[K(E2.firstParty)]:I0,[K(b2.firstParty)]:R1,[K(P2.firstParty)]:R1,[K(_2.firstParty)]:H0,[K(d0.firstParty)]:H0,[K(n0.firstParty)]:H0,[K(t0.firstParty)]:H0}});function m(Z){return O8.includes(Z)}function w0(Z){return b8.includes(Z)}var O8,b8;var p2=R(()=>{O8=["sonnet","opus","haiku","best","sonnet[1m]","opus[1m]","opusplan"];b8=["sonnet","opus","haiku"]});function P8(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function K1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function _8(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(K1(J,$))return!0;if(!$.startsWith("claude-")&&K1(J,`claude-${$}`))return!0;return!1}function N1(Z,$){for(let J of $){if(w0(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 U1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=s0(Z).trim().toLowerCase(),X=J.map((V)=>V.trim().toLowerCase());if(X.includes(Y)){if(!w0(Y)||!N1(Y,X))return!0}for(let V of X)if(w0(V)&&!N1(V,X)&&P8(Y,V))return!0;if(m(Y)){let V=I(Y).toLowerCase();if(X.includes(V))return!0}for(let V of X)if(!w0(V)&&m(V)){if(I(V).toLowerCase()===Y)return!0}for(let V of X)if(!w0(V)&&!m(V)){if(_8(Y,V))return!0}return!1}var O1=R(()=>{W0();p2();R0();a0()});function V3(){return Object.values(b1)}var b1,m2;var P1=R(()=>{b1={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},m2=Object.fromEntries(Object.values(b1).map((Z)=>[Z.id,Z.name]))});function X2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=N();if(!Z?.model)return;return M1(Z.model)}function P3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"codexspark";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return T1()}function _3(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function c2(){let Z,$=E1();if($!==void 0)Z=$;else{let J=y()||{},Q=X2(J.model),Y=L0();if(I1()!==void 0)Z=X2(v1().activeModelForProject)||void 0;else Z=Y||Q||void 0}if(Z&&!U1(Z))return;return Z}function E3(){let Z=c2();if(Z!==void 0&&Z!==null)return I(Z);return C1()}function v8(){return F0()}function F0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.5-pro";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.7";if(q()!=="firstParty")return j().opus46;return j().opus48}function y0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"mistral-medium-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5";if(q()!=="firstParty")return j().sonnet45;return j().sonnet46}function T1(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function k3(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(c2()==="opusplan"&&$==="plan"&&!Q)return F0();if(c2()==="haiku"&&$==="plan")return y0();return J}function v0(){let Z=L0();if(q()==="github"){let $=y()||{};return X2($.model)||Z||"github:copilot"}if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(V2())return F0()+(M0()?"[1m]":"");if(q2())return F0()+(M0()?"[1m]":"");return y0()}function C1(){return I(v0())}function K(Z){if(Z=Z.toLowerCase(),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-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 P(Z){return K(s0(Z))}function M8(Z=!1){if(V2()||q2()){if(M0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?_1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?_1(!0):""}`}return"Sonnet 4.6 · Best for everyday tasks"}function S3(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 4.6";return h1(I(Z))}function _1(Z){if(q()!=="firstParty")return"";let $=L1(u2(Z));return` ·${Z?` (${k1})`:""} ${$}`}function M0(){if(D0()||t2()||q()!=="firstParty")return!1;if(O()&&S()===null)return!1;return!0}function v3(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return S1(Z);return h1(Z)}function A1(Z){if(q()==="openai"||q()==="gemini"||q()==="codex"||q()==="github"){if(m2[Z])return m2[Z];return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function h1(Z){let $=A1(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function M3(Z){let $=A1(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=X2(Z);if(!$)return y0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y))switch(Y){case"opusplan":return y0()+(Q?"[1m]":"");case"sonnet":return y0()+(Q?"[1m]":"");case"haiku":return T1()+(Q?"[1m]":"");case"opus":return F0()+(Q?"[1m]":"");case"best":return v8();default:}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(q()==="firstParty"&&y8(Y)&&T8())return F0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function I3(Z,$){if(l(Z)||!l($))return Z;if(d2(I(Z)))return Z+"[1m]";return Z}function y8(Z){return I8.includes(Z)}function T8(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function y3(Z){if(Z===null){if(O())return`Default (${M8()})`;return`Default (${C1()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function T3(Z){if(q()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=P(Z);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-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 C3(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function A3(Z){let $=P(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")}var I8;var R0=R(()=>{o();q0();Z0();y1();n();n2();u();S8();a0();D1();W0();t();E8();O1();p2();k8();P1();I8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function i2(Z){return}async function f3(){}var f1=()=>{};var t1={};g1(t1,{prefetchOpenAICompatibleModels:()=>n8,getDiscoveredContextWindow:()=>A8,discoverOpenAICompatibleModelOptions:()=>n1});function A8(Z){return c1.get(Z)}function h8(){return(N()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function d1(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function f8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function g8(Z){let $=N()?.apiKey?.trim();if(!$)return{};if(f8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(d1(Z))J["api-key"]=$;return J}function u8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&d1(Z)?(X)=>{try{let V=new URL(X);return V.searchParams.set("api-version",Q),V.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function p8(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 m8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function c8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await b.get(Q,{headers:$,timeout:m1}),X=[];for(let V of Y.data?.data??[]){let W=V.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=V.name?.trim()||W,B=V.context_length??null;if(B&&B>0)c1.set(W,B);let H=B?` · ${m8(B)}`:"";X.push({value:W,label:G,description:`${W}${H}`})}if(X.length>0)return X.sort((V,W)=>{let G=String(V.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",H=G.localeCompare(B);return H!==0?H:String(V.value).localeCompare(String(W.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function d8(Z,$){try{let J=await b.get(Z,{headers:$,timeout:m1}),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 n1(){if(q()!=="openai")return[];let Z=h8(),$=g8(Z),J=await c8(u8(Z),$);if(J.length>0)return J;let Q=p8(Z);if(Q)return d8(Q,$);return[]}function n8(){if(T0)return T0;return T0=(async()=>{if(!p1()?.startsWith("openai:"))return;try{let $=await n1();if($.length>0)u1($)}catch{}finally{T0=null}})(),T0}var m1=5000,c1,T0=null;var i1=R(()=>{r0();q0();C8();x0();t();y1();c1=new Map});function s1(Z,$,J){let Q=N()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=l1($,J);if(Y!==void 0)return Y;return l1(Z,J)}function l1(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 a1(Z){let $=s1(i8,s8,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(i1(),t8(t1));return J(Z)}catch{return}}function r1(Z){return s1(l8,a8,Z)}var i8,l8,s8,a8;var o1=R(()=>{q0();i8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},l8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},s8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),a8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function e1(){let Z=N()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function D0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function l(Z){if(D0())return!1;return/\[1m\]/i.test(Z)}function d2(Z){if(D0())return!1;let $=P(Z);return $.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")}function YQ(Z,$){if(l(Z))return 1e6;if(e1()){let Q=a1(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),r8}let J=i2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>l2&&D0())return l2;return J.max_input_tokens}if($?.includes(E0)&&d2(Z))return 1e6;if(ZZ(Z))return 1e6;return l2}function ZZ(Z){if(D0())return!1;if(l(Z))return!1;if(!P(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function XQ(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 VQ(Z){let $,J;if(e1()){let X=r1(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=P(Z);if(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 $=o8,J=e8;let Y=i2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var l2=200000,r8,$Q=20000,o8=32000,e8=64000,JQ=8000,QQ=64000;var n2=R(()=>{A2();q0();Z0();u();R0();f1();o1();r8=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var $Z,Z4;var $4=R(()=>{m0();t();$Z=[{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"}],Z4=M((Z,$)=>{if(q()==="firstParty")return;let J=Z.toLowerCase();for(let Q of $Z){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((V)=>V.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function JZ(Z){let $=[],J=[];for(let Q of Z)if(V4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function bQ(Z){if(!Z||Z.length===0)return;if(O()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=JZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${V4.join(", ")}`);return $.length>0?$:void 0}function J4(Z){let $=Z4(Z,"interleaved_thinking");if($!==void 0)return $;let J=P(Z),Q=q();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-4")}function QZ(Z){let $=P(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function YZ(Z){let $=P(Z),J=q();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function XZ(Z){let $=P(Z),J=q();if(J!=="firstParty"&&J!=="foundry")return!1;return $.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 PQ(Z){let $=P(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 _Q(){let Z=q();if(Z==="vertex"||Z==="bedrock")return o5;return r5}function Q4(){return(q()==="firstParty"||q()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function EQ(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return q()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function kQ(Z,$){let J=[...q4(Z)];if($?.isAgenticQuery){if(!J.includes($2))J.push($2)}let Q=Y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function W4(){s2.cache?.clear?.(),q4.cache?.clear?.(),VZ.cache?.clear?.()}var V4,s2,q4,VZ;var z4=R(()=>{m0();X1();o();A2();_0();n();n2();u();R0();$4();t();W0();V4=[E0];s2=M((Z)=>{let $=[],J=P(Z).includes("haiku"),Q=q(),Y=Q4();if(!J)$.push($2);if(O())$.push(z0);if(l(Z))$.push(E0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&J4(Z))$.push(l5);if(Y&&J4(Z)&&!f()&&e().showThinkingSummaries!==!0)$.push(Z1),$.push($1);let X=YZ(Z);if(Q4()&&X)$.push(s5);let V=X4("tengu_tool_pear"),W=!V&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&XZ(Z)&&V)$.push(a5);if(Y&&W)$.push(J1);if(Q==="vertex"&&QZ(Z))$.push(T2);if(Q==="foundry")$.push(T2);if(Y)$.push(e5);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),q4=M((Z)=>{let $=s2(Z);if(q()==="bedrock")return $.filter((J)=>!C2.has(J));return $}),VZ=M((Z)=>{return s2(Z).filter((J)=>C2.has(J))})});import{execFile as qZ}from"child_process";function G4(Z){return new Promise(($)=>{qZ("security",["find-generic-password","-a",z2(),"-w","-s",Z],{encoding:"utf-8",timeout:WZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function yQ(){if(process.platform!=="darwin"||W2||g())return;let Z=G4(i(x4)),$=G4(i());W2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)j4(J.stdout);if(!Q.timedOut)a2={stdout:Q.stdout}})}async function TQ(){if(W2)await W2}function B4(){return a2}function r2(){a2=null}var WZ=1e4,a2=null,W2=null;var R4=R(()=>{u();I2()});function o2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,V,Q);function V(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",V,{once:!0}),J?.unref)X.unref()})}var H4=()=>{};function hQ(){return w4}function F4(){w4.clear()}var w4;var L4=R(()=>{w4=new Map});var oZ={};g1(oZ,{validateForceLoginOrg:()=>rZ,saveOAuthTokensIfNeeded:()=>C4,saveApiKey:()=>B5,removeApiKey:()=>fZ,refreshGcpCredentialsIfNeeded:()=>j5,refreshGcpAuth:()=>y4,refreshAwsAuth:()=>M4,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>TZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>CZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>OZ,isUsing3PServices:()=>B2,isTeamSubscriber:()=>dZ,isTeamPremiumSubscriber:()=>q2,isProSubscriber:()=>t2,isOverageProvisioningAllowed:()=>mZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>g4,isMaxSubscriber:()=>V2,isGcpAuthRefreshFromProjectSettings:()=>x5,isEnterpriseSubscriber:()=>nZ,isCustomApiKeyApproved:()=>hZ,isConsumerSubscriber:()=>sZ,isClaudeAISubscriber:()=>O,isAwsCredentialExportFromProjectSettings:()=>z5,isAwsAuthRefreshFromProjectSettings:()=>q5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>pZ,hasProfileScope:()=>Q0,hasOpusAccess:()=>cZ,hasAnthropicApiKeyAuth:()=>DZ,handleOAuth401Error:()=>g2,getSubscriptionType:()=>S,getSubscriptionName:()=>h4,getRateLimitTier:()=>A4,getOtelHeadersFromHelper:()=>iZ,getOauthAccountInfo:()=>j2,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>h0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>P0,getApiKeyHelperElapsedMs:()=>KZ,getApiKeyFromConfigOrMacOSKeychain:()=>H2,getApiKeyFromApiKeyHelperCached:()=>Z5,getApiKeyFromApiKeyHelper:()=>v4,getAnthropicApiKeyWithSource:()=>g0,getAnthropicApiKey:()=>$0,getAccountInformation:()=>aZ,clearOAuthTokenCache:()=>R5,clearGcpCredentialsCache:()=>yZ,clearAwsCredentialsCache:()=>kZ,clearApiKeyHelperCache:()=>UZ,checkGcpCredentialsValid:()=>I4,checkAndRefreshOAuthTokenIfNeeded:()=>u0,calculateApiKeyHelperTTL:()=>S4});import{exec as E4}from"child_process";import{mkdir as HZ,stat as wZ}from"fs/promises";import{join as FZ}from"path";function x2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(g())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=B2(),J=(y()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=g0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!x2()||X&&!x2())}function P0(){if(g()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!x2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(e0()){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()&&!x2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(U0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function $0(){let{key:Z}=g0();return Z}function DZ(){try{let{key:Z,source:$}=g0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function g0(Z={}){let $=(()=>{let V=N();if(V?.transport!=="anthropic")return;let W=V.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:Z5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=U4()?void 0:$;if(J2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let V=M2();if(V)return{key:V,source:"ANTHROPIC_API_KEY"};if(!B2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!B2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&L().customApiKeyResponses?.approved?.includes(Z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=M2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:Z5(),source:"apiKeyHelper"}}let X=H2();if(X)return X;return{key:null,source:"none"}}function s(){if(g())return _("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function k4(){let Z=s();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function V5(){return(y()||{}).awsAuthRefresh}function q5(){let Z=V5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function W5(){return(y()||{}).awsCredentialExport}function z5(){let Z=W5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function S4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return LZ}function KZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function v4(Z){if(!s())return null;let $=S4();if(v){if(Date.now()-v.timestamp<$)return v.value;if(!c)c={promise:D4(Z,!1,N0),startedAt:null};return v.value}if(c)return c.promise;return c={promise:D4(Z,!0,N0),startedAt:Date.now()},c.promise}async function D4(Z,$,J){try{let Q=await NZ(Z);if(J!==N0)return Q;if(Q!==null)v={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==N0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&v&&v.value!==" ")return v={...v,timestamp:Date.now()},v.value;return v={value:" ",timestamp:Date.now()}," "}finally{if(J===N0)c=null}}async function NZ(Z){let $=s();if(!$)return null;if(k4()){if(!d()&&!Z){let X=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("apiKeyHelper invoked before trust check",X),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await j0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function Z5(){return v?.value??null}function UZ(){N0++,v=null,c=null}function OZ(Z){if(k4()&&!d())return;v4(Z)}async function PZ(){let Z=V5();if(!Z)return!1;if(q5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await y2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return M4(Z)}}function M4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=E4(Z,{timeout:_Z});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=X==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function EZ(){let Z=W5();if(!Z)return null;if(z5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await y2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await j0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=Q5($.stdout.trim());if(!c5(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function kZ(){X0.cache.clear()}function G5(){return(y()||{}).gcpAuthRefresh}function x5(){let Z=G5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function I4(){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=o2(SZ).then(()=>{throw new u4("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function MZ(){let Z=G5();if(!Z)return!1;if(x5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await I4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return y4(Z)}function y4(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=E4(Z,{timeout:IZ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=X==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function yZ(){j5.cache.clear()}function TZ(){if(!G5())return;if(x5()){if(!d()&&!f())return}j5()}function CZ(){let Z=V5(),$=W5();if(!Z&&!$)return;if(q5()||z5()){if(!d()&&!f())return}X0(),j()}function AZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function B5(Z){if(!AZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await T4();let $=!1;if(process.platform==="darwin")try{let Q=i(),Y=z2(),X=Buffer.from(Z,"utf-8").toString("hex"),V=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
- `;await j0("security",["-i"],{input:V,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){D(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=Z2(Z);C((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),H2.cache.clear?.(),r2()}function hZ(Z){let $=L(),J=Z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function fZ(){await T4(),C((Z)=>({...Z,primaryApiKey:void 0})),H2.cache.clear?.(),r2()}async function T4(){try{await p5()}catch(Z){D(Z)}}function C4(Z){if(!U0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=R2(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),W4(),F4(),X}catch(Q){return D(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function R5(){w.cache?.clear?.(),K0()}async function gZ(){try{let{mtimeMs:Z}=await wZ(FZ(J5(),".credentials.json"));if(Z!==K4)K4=Z,R5()}catch{w.cache?.clear?.()}}function g2(Z){let $=e2.get(Z);if($)return $;let J=uZ(Z).finally(()=>{e2.delete(Z)});return e2.set(Z,J),J}async function uZ(Z){R5();let $=await h0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return u0(0,!0)}async function h0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||e0())return w();try{let J=(await R2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return D(Z),null}}function u0(Z=0,$=!1){if(Z===0&&!$){if(C0)return C0;return C0=$5(Z,$).finally(()=>{C0=null}),C0}return $5(Z,$)}async function $5(Z,$){await gZ();let Q=w();if(!$){if(!Q?.refreshToken||!A0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!U0(Q.scopes))return!1;w.cache?.clear?.(),K0();let Y=await h0();if(!Y?.refreshToken||!A0(Y.expiresAt))return!1;let X=J5();await HZ(X,{recursive:!0});let V;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),V=await b4(X),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await o2(1000+Math.random()*1000),$5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return D(W),x("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),K0();let W=await h0();if(!W?.refreshToken||!A0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await P4(W.refreshToken,{scopes:U0(W.scopes)?void 0:W.scopes});return C4(G),w.cache?.clear?.(),K0(),!0}catch(W){D(W),w.cache?.clear?.(),K0();let G=await h0();if(G&&!A0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await V(),x("tengu_oauth_token_refresh_lock_released",{})}}function O(){if(!O0())return!1;return U0(w()?.scopes)}function Q0(){return w()?.scopes?.includes(O4)??!1}function pZ(){{let Z=N()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(O())return!1;return!0}function j2(){return O0()?L().oauthAccount:void 0}function mZ(){let $=j2()?.billingType;if(!O()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function cZ(){let Z=S();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function S(){if(S5())return k5();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function V2(){return S()==="max"}function dZ(){return S()==="team"}function q2(){return S()==="team"&&A4()==="default_claude_max_5x"}function nZ(){return S()==="enterprise"}function t2(){return S()==="pro"}function A4(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function h4(){switch(S()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function B2(){let Z=N()?.transport;if(!Z)return!1;return Z!=="anthropic"}function f4(){return(y()||{}).otelHeadersHelper}function g4(){let Z=f4();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function iZ(){let Z=f4();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||tZ.toString());if(G2&&Date.now()-N4<$)return G2;if(g4()){if(!d())return{}}try{let J=Y5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=Q5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return G2=Q,N4=Date.now(),G2}catch(J){throw D(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function lZ(Z){return Z==="max"||Z==="pro"}function sZ(){let Z=S();return O()&&Z!==null&&lZ(Z)}function aZ(){if(q()!=="firstParty")return;let{source:$}=P0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(O())J.subscription=h4();else J.tokenSource=$;let{key:Q,source:Y}=g0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let V=j2()?.organizationName;if(V)J.organization=V}let X=j2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function rZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=_("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await u0();let $=w();if(!$)return{valid:!0};let{source:J}=P0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
- This machine requires organization ${Z} but the profile could not be fetched.
4
- This may be a network error, or the token may lack the user:profile scope required for
5
- verification (tokens from 'claude setup-token' do not include this scope).
6
- Try again, or obtain a full-scope token via 'claude auth login'.`};let X=Y.organization.uuid;if(X===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
- different organization than required by this machine's managed settings.
8
-
9
- Required organization: ${Z}
10
- Token organization: ${X}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var LZ=300000,v=null,c=null,N0=0,bZ=3600000,_Z=180000,X0,SZ=5000,vZ=3600000,IZ=180000,j5,H2,w,K4=0,e2,C0=null,G2=null,N4=0,tZ=1740000,u4;var n=R(()=>{GZ();u5();m0();_0();Q2();a0();t();o();q0();v5();_4();S2();g5();m5();n5();i5();z4();Z0();x0();u();h5();xZ();BZ();c0();jZ();RZ();R4();I2();W0();H4();zZ();L4();X0=X5(async()=>{let Z=await PZ(),$=await EZ();if(Z||$)await d5();return $},bZ);j5=X5(async()=>{return await MZ()},vZ);H2=M(()=>{if(g())return null;if(process.platform==="darwin"){let $=B4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=i();try{let Q=Y5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){D(Q)}}}let Z=L();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=M(()=>{if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=e0();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=R2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return D($),null}});e2=new Map;u4=class u4 extends Error{}});function U0(Z){return Boolean(Z?.includes(H5))}function eZ(Z){return Z?.split(" ").filter(Boolean)??[]}function E7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:V,loginHint:W,loginMethod:G}){let B=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(B);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 Y0=X?[H5]:c4;if(H.searchParams.append("scope",Y0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),V)H.searchParams.append("orgUUID",V);if(W)H.searchParams.append("login_hint",W);if(G)H.searchParams.append("login_method",G);return H.toString()}async function k7(Z,$,J,Q,Y=!1,X){let V={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)V.expires_in=X;let W=await b.post(U().TOKEN_URL,V,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return x("tengu_oauth_token_exchange_success",{}),W.data}async function P4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:m4).join(" ")};try{let Q=await b.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:V=Z,expires_in:W}=Y,G=Date.now()+W*1000,B=eZ(Y.scope);x("tengu_oauth_token_refresh_success",{});let H=L(),Y0=w(),E=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&Y0?.subscriptionType!=null&&Y0?.rateLimitTier!=null?null:await Z$(X);if(E&&H.oauthAccount){let a={};if(E.displayName!==void 0)a.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)a.billingType=E.billingType;if(E.accountCreatedAt!==void 0)a.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(a).length>0)C((p0)=>({...p0,oauthAccount:p0.oauthAccount?{...p0.oauthAccount,...a}:p0.oauthAccount}))}return{accessToken:X,refreshToken:V,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??Y0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??Y0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=b.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function S7(Z){let $=await b.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!L().oauthAccount)throw Error("OAuth account information not found in config");C((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function v7(Z){try{let $=await b.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await B5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function A0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function Z$(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("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function M7(){let $=L().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 I7(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!L().oauthAccount)p4({accountUuid:Z,emailAddress:$,organizationUuid:J})}await u0();let Y=L();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!O()||!Q0())return!1;let X=w();if(X?.accessToken){let V=await G0(X.accessToken);if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return p4({accountUuid:V.account.uuid,emailAddress:V.account.email,organizationUuid:V.organization.uuid,displayName:V.account.display_name||void 0,hasExtraUsageEnabled:V.organization.has_extra_usage_enabled??!1,billingType:V.organization.billing_type??void 0,accountCreatedAt:V.account.created_at,subscriptionCreatedAt:V.organization.subscription_created_at??void 0}),!0}}return!1}function p4({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:V,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:V,subscriptionCreatedAt:W};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var _4=R(()=>{r0();Q2();_0();n();Z0();x0();S2()});
16
- export{yQ as _Z,TQ as $Z,R4 as a0,w5 as b0,F5 as c0,W$ as d0,z$ as e0,n4 as f0,l4 as g0,G$ as h0,N5 as i0,d0 as j0,n0 as k0,V0 as l0,k2 as m0,q as n0,H$ as o0,w$ as p0,F$ as q0,L$ as r0,t as s0,j as t0,E$ as u0,a0 as v0,I$ as w0,y$ as x0,E5 as y0,h$ as z0,f$ as A0,v5 as B0,n$ as C0,G0 as D0,S2 as E0,U0 as F0,eZ as G0,E7 as H0,k7 as I0,P4 as J0,S7 as K0,v7 as L0,A0 as M0,Z$ as N0,M7 as O0,I7 as P0,p4 as Q0,_4 as R0,e$ as S0,J8 as T0,M5 as U0,g5 as V0,Z2 as W0,m5 as X0,XJ as Y0,n5 as Z0,T as _0,i5 as $0,E0 as a1,s5 as b1,a5 as c1,zJ as d1,GJ as e1,e5 as f1,xJ as g1,jJ as h1,Z1 as i1,BJ as j1,RJ as k1,HJ as l1,A2 as m1,A as n1,W1 as o1,V8 as p1,IJ as q1,yJ as r1,TJ as s1,z1 as t1,CJ as u1,AJ as v1,q8 as w1,hJ as x1,fJ as y1,gJ as z1,uJ as A1,pJ as B1,G8 as C1,mJ as D1,cJ as E1,dJ as F1,nJ as G1,B1 as H1,I0 as I1,R8 as J1,H8 as K1,u2 as L1,U8 as M1,oJ as N1,L1 as O1,D1 as P1,O8 as Q1,p2 as R1,U1 as S1,O1 as T1,V3 as U1,P1 as V1,P3 as W1,_3 as X1,c2 as Y1,E3 as Z1,v8 as _1,F0 as $1,y0 as a2,T1 as b2,k3 as c2,v0 as d2,C1 as e2,K as f2,P as g2,M8 as h2,S3 as i2,_1 as j2,M0 as k2,v3 as l2,A1 as m2,h1 as n2,M3 as o2,I as p2,I3 as q2,T8 as r2,y3 as s2,T3 as t2,C3 as u2,A3 as v2,R0 as w2,f3 as x2,f1 as y2,n1 as z2,n8 as A2,i1 as B2,$Q as C2,JQ as D2,QQ as E2,D0 as F2,l as G2,YQ as H2,ZZ as I2,XQ as J2,VQ as K2,n2 as L2,Z4 as M2,$4 as N2,bQ as O2,XZ as P2,PQ as Q2,_Q as R2,Q4 as S2,EQ as T2,q4 as U2,VZ as V2,kQ as W2,W4 as X2,z4 as Y2,o2 as Z2,H4 as _2,hQ as $2,F4 as a3,L4 as b3,O0 as c3,P0 as d3,$0 as e3,DZ as f3,g0 as g3,s as h3,q5 as i3,z5 as j3,S4 as k3,KZ as l3,v4 as m3,Z5 as n3,UZ as o3,OZ as p3,M4 as q3,X0 as r3,kZ as s3,x5 as t3,I4 as u3,y4 as v3,j5 as w3,yZ as x3,TZ as y3,CZ as z3,H2 as A3,B5 as B3,hZ as C3,fZ as D3,C4 as E3,w as F3,R5 as G3,g2 as H3,h0 as I3,u0 as J3,O as K3,Q0 as L3,pZ as M3,j2 as N3,mZ as O3,cZ as P3,S as Q3,V2 as R3,dZ as S3,q2 as T3,nZ as U3,t2 as V3,A4 as W3,h4 as X3,B2 as Y3,g4 as Z3,iZ as _3,sZ as $3,aZ as a4,rZ as b4,oZ as c4,n as d4};
@@ -1,3 +0,0 @@
1
- import{Qg as d,Rg as Vq}from"./cli-0.5.11-27c1jc52.mjs";import{CP as l,cQ as Oq,wO as a,yO as yq}from"./cli-0.5.11-6vqz68v0.mjs";import{NX as $,YX as Gq,_V as Zq,rX as T,tX as R}from"./cli-0.5.11-dpbhsnm8.mjs";import{PY as t,RY as v,UY as e}from"./cli-0.5.11-548r9zkc.mjs";import{BZ as P,CZ as N,DZ as S}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as Yq}from"./cli-0.5.11-9gbtz4tf.mjs";import{C4 as u,D4 as Aq}from"./cli-0.5.11-mrpnwxc8.mjs";import{Q6 as G,R8 as s,S6 as o,v8 as j}from"./cli-0.5.11-73qsyep8.mjs";import{pea as w,qea as r}from"./cli-0.5.11-1bfxt461.mjs";import{fga as L,iga as n}from"./cli-0.5.11-j4hdhvj9.mjs";import{Gga as Xq,zga as c}from"./cli-0.5.11-t8q2hmsy.mjs";import{Aia as f,rma as i}from"./cli-0.5.11-tyzwy8ba.mjs";import{Yna as I,aoa as h}from"./cli-0.5.11-hph6a44c.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
2
- Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
3
- export{mq as Og,Bq as Pg};
@@ -1,2 +0,0 @@
1
- import{YX as f,_V as s,tX as t}from"./cli-0.5.11-dpbhsnm8.mjs";import{BZ as n,CZ as c,DZ as r}from"./cli-0.5.11-ffsf3kp2.mjs";import{Yna as m,aoa as l}from"./cli-0.5.11-hph6a44c.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
2
- export{T as pg,p as qg};
@@ -1,2 +0,0 @@
1
- import{Eba as $,Fba as y,d7 as Z,f7 as f,mca as B,pca as K}from"./cli-0.5.11-73qsyep8.mjs";import{Oga as Y,Wga as E}from"./cli-0.5.11-f524x1te.mjs";import{aoa as N,boa as x}from"./cli-0.5.11-hph6a44c.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
2
- export{D as yh,s as zh,g as Ah};
@@ -1,2 +0,0 @@
1
- import{Maa as P,eba as y}from"./cli-0.5.11-73qsyep8.mjs";import{aoa as U}from"./cli-0.5.11-hph6a44c.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
2
- export{G as pT,M as qT,N as rT,Y as sT,C as tT,_ as uT,R as vT,f as wT,E as xT,I as yT,k as zT,A as AT,b as BT,h as CT,m as DT,p as ET,u as FT,T as GT,e as HT,W as IT,a as JT,s as KT,r as LT,g as MT};
@@ -1,12 +0,0 @@
1
- import{BC as x,CC as s,DC as C,FC as n,GC as $,IC as Zq,JD as o,LD as Mq,cm as E,dm as Uq,gm as r,hm as Xq,km as d,lm as Yq}from"./cli-0.5.11-6vqz68v0.mjs";import{NX as a,YX as Qq,_V as Jq,rX as N,tX as U,xX as V}from"./cli-0.5.11-dpbhsnm8.mjs";import{AZ as u,BZ as J,CZ as X,DZ as g}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as zq}from"./cli-0.5.11-9gbtz4tf.mjs";import{dfa as w,ffa as qq}from"./cli-0.5.11-aa4nqg2h.mjs";import{Yna as i,aoa as t}from"./cli-0.5.11-hph6a44c.mjs";function Fq(){let z=f.c(9),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=X(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",J(U,{bold:!0,children:"October 8, 2025"}),". You can accept the updated terms today."]}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y,Z;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=J(U,{children:"· "}),Z=J(U,{bold:!0,children:"You can help improve Claude "}),z[2]=Y,z[3]=Z;else Y=z[2],Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(N,{paddingLeft:1,children:X(U,{children:[Y,Z,X(U,{children:["— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",J(V,{url:"https://claude.ai/settings/data-privacy-controls"}),")."]})]})}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=X(N,{flexDirection:"column",children:[F,W,J(N,{paddingLeft:1,children:X(U,{children:[J(U,{children:"· "}),J(U,{bold:!0,children:"Updates to data retention "}),J(U,{children:"— To help us improve our AI models and safety protections, we're extending data retention to 5 years."})]})})]}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[6]=Q;else Q=z[6];let H;if(z[7]===Symbol.for("react.memo_cache_sentinel"))H=J(V,{url:"https://anthropic.com/legal/terms"}),z[7]=H;else H=z[7];let O;if(z[8]===Symbol.for("react.memo_cache_sentinel"))O=X(u,{children:[q,P,X(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",H,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[8]=O;else O=z[8];return O}function Nq(){let z=f.c(7),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=J(U,{children:"We've updated our Consumer Terms and Privacy Policy."}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Help improve Claude"}),J(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"}),J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),z[2]=Y;else Y=z[2];let Z;if(z[3]===Symbol.for("react.memo_cache_sentinel"))Z=X(N,{flexDirection:"column",gap:1,children:[F,Y,X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"How this affects data retention"}),J(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."})]})]}),z[3]=Z;else Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=J(V,{url:"https://anthropic.com/legal/terms"}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=X(u,{children:[q,Z,X(U,{children:["Learn more (",W,") or read the updated Consumer Terms (",P,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[6]=Q;else Q=z[6];return Q}function kq(z){let q=f.c(34),{showIfAlreadyViewed:F,location:Y,onDone:Z}=z,[W,P]=_.useState(null),[Q,H]=_.useState(null),O,R;if(q[0]!==Y||q[1]!==Z||q[2]!==F)O=()=>{(async function(){let[e,c]=await Promise.all([x(),n()]),j=c.success?c.data:null;H(j);let l=$(e,c,F);if(P(l),!l){Z("skip_rendering");return}s(),w("tengu_grove_policy_viewed",{location:Y,dismissable:j?.notice_is_grace_period})})()},R=[F,Y,Z],q[0]=Y,q[1]=Z,q[2]=F,q[3]=O,q[4]=R;else O=q[3],R=q[4];if(_.useEffect(O,R),W===null)return null;if(!W)return null;let K;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Z)K=async function(v){q:switch(v){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Z(v)},q[5]=Q?.notice_is_grace_period,q[6]=Z,q[7]=K;else K=q[7];let A=K,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms · Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms · Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms · Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let I=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==A)G=function(){if(Q?.notice_is_grace_period){A("defer");return}A("escape")},q[10]=Q?.notice_is_grace_period,q[11]=A,q[12]=G;else G=q[12];let M=G,k;if(q[13]!==Q?.notice_is_grace_period)k=J(N,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?J(Fq,{}):J(Nq,{})}),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let D;if(q[15]===Symbol.for("react.memo_cache_sentinel"))D=J(N,{flexShrink:0,children:J(U,{color:"professionalBlue",children:Wq})}),q[15]=D;else D=q[15];let B;if(q[16]!==k)B=X(N,{flexDirection:"row",children:[k,D]}),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Please select how you'd like to continue"}),J(U,{children:"Your choice takes effect immediately upon confirmation."})]}),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==I||q[22]!==b)m=[...I,...b],q[21]=I,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==A)p=(h)=>A(h),q[24]=A,q[25]=p;else p=q[25];let y;if(q[26]!==M||q[27]!==m||q[28]!==p)y=X(N,{flexDirection:"column",gap:1,children:[T,J(o,{options:m,onChange:p,onCancel:M})]}),q[26]=M,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==M||q[31]!==y||q[32]!==B)S=X(d,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:M,inputGuide:Oq,children:[B,y]}),q[30]=M,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Oq(z){return z.pending?X(U,{children:["Press ",z.keyName," again to exit"]}):X(r,{children:[J(E,{shortcut:"Enter",action:"confirm"}),J(E,{shortcut:"Esc",action:"cancel"})]})}function _q(z){let q=f.c(17),{settings:F,domainExcluded:Y,onDone:Z}=z,[W,P]=_.useState(F.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];_.default.useEffect(Pq,Q);let H;if(q[1]!==Y||q[2]!==W)H=async(M,k)=>{if(!Y&&(k.tab||k.return||M===" ")){let D=!W;P(D),await C(D)}},q[1]=Y,q[2]=W,q[3]=H;else H=q[3];a(H);let O;if(q[4]===Symbol.for("react.memo_cache_sentinel"))O=J(U,{color:"error",children:"false"}),q[4]=O;else O=q[4];let R=O;if(Y){let M;if(q[5]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"error",children:"false (for emails with your domain)"}),q[5]=M;else M=q[5];R=M}else if(W){let M;if(q[6]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"success",children:"true"}),q[6]=M;else M=q[6];R=M}let K;if(q[7]!==Y)K=(M)=>M.pending?X(U,{children:["Press ",M.keyName," again to exit"]}):Y?J(E,{shortcut:"Esc",action:"cancel"}):X(r,{children:[J(E,{shortcut:"Enter/Tab/Space",action:"toggle"}),J(E,{shortcut:"Esc",action:"cancel"})]}),q[7]=Y,q[8]=K;else K=q[8];let A;if(q[9]===Symbol.for("react.memo_cache_sentinel"))A=X(U,{children:["Review and manage your privacy settings at"," ",J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),q[9]=A;else A=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=J(N,{width:44,children:J(U,{bold:!0,children:"Help improve Claude"})}),q[10]=L;else L=q[10];let I;if(q[11]!==R)I=X(N,{children:[L,J(N,{children:R})]}),q[11]=R,q[12]=I;else I=q[12];let G;if(q[13]!==Z||q[14]!==K||q[15]!==I)G=X(d,{title:"Data Privacy",color:"professionalBlue",onCancel:Z,inputGuide:K,children:[A,I]}),q[13]=Z,q[14]=K,q[15]=I,q[16]=G;else G=q[16];return G}function Pq(){w("tengu_grove_privacy_settings_viewed",{})}var f,_,Wq=` _____________
2
- | \\ \\
3
- | NEW TERMS \\__\\
4
- | |
5
- | ---------- |
6
- | ---------- |
7
- | ---------- |
8
- | ---------- |
9
- | ---------- |
10
- | |
11
- |______________|`;var Aq=t(()=>{qq();Qq();Zq();Mq();Xq();Yq();Uq();g();f=i(Jq(),1),_=i(zq(),1)});
12
- export{kq as Oc,_q as Pc,Aq as Qc};
@@ -1,2 +0,0 @@
1
- import{JD as A,LD as O,km as M,lm as G}from"./cli-0.5.11-6vqz68v0.mjs";import{YX as W,_V as U,rX as w,tX as d,xX as v}from"./cli-0.5.11-dpbhsnm8.mjs";import{BZ as a,CZ as i,DZ as S}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as N}from"./cli-0.5.11-9gbtz4tf.mjs";import{Taa as I,eba as P}from"./cli-0.5.11-73qsyep8.mjs";import{dfa as h,ffa as L}from"./cli-0.5.11-aa4nqg2h.mjs";import{Yna as b,aoa as B}from"./cli-0.5.11-hph6a44c.mjs";function V(t){let e=T.c(18),{onDone:g,isStandaloneDialog:D,externalIncludes:r}=t,s;if(e[0]===Symbol.for("react.memo_cache_sentinel"))s=[],e[0]=s;else s=e[0];k.default.useEffect(q,s);let c;if(e[1]!==g)c=(E)=>{if(E==="no")h("tengu_claude_md_external_includes_dialog_declined",{}),I($);else h("tengu_claude_md_external_includes_dialog_accepted",{}),I(Y);g()},e[1]=g,e[2]=c;else c=e[2];let l=c,u;if(e[3]!==l)u=()=>{l("no")},e[3]=l,e[4]=u;else u=e[4];let y=u,C=!D,x=!D,m;if(e[5]===Symbol.for("react.memo_cache_sentinel"))m=a(d,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),e[5]=m;else m=e[5];let o;if(e[6]!==r)o=r&&r.length>0&&i(w,{flexDirection:"column",children:[a(d,{dimColor:!0,children:"External imports:"}),r.map(R)]}),e[6]=r,e[7]=o;else o=e[7];let p;if(e[8]===Symbol.for("react.memo_cache_sentinel"))p=i(d,{dimColor:!0,children:["Important: Only use Claude Code with files you trust. Accessing untrusted files may pose security risks"," ",a(v,{url:"https://code.claude.com/docs/en/security"})," "]}),e[8]=p;else p=e[8];let f;if(e[9]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],e[9]=f;else f=e[9];let n;if(e[10]!==l)n=a(A,{options:f,onChange:(E)=>l(E)}),e[10]=l,e[11]=n;else n=e[11];let _;if(e[12]!==y||e[13]!==n||e[14]!==C||e[15]!==x||e[16]!==o)_=i(M,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:y,hideBorder:C,hideInputGuide:x,children:[m,o,p,n]}),e[12]=y,e[13]=n,e[14]=C,e[15]=x,e[16]=o,e[17]=_;else _=e[17];return _}function R(t,e){return i(d,{dimColor:!0,children:[" ",t.path]},e)}function Y(t){return{...t,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function $(t){return{...t,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function q(){h("tengu_claude_md_includes_dialog_shown",{})}var T,k;var z=B(()=>{L();W();P();O();G();S();T=b(U(),1),k=b(N(),1)});
2
- export{V as Ef,z as Ff};
@@ -1,2 +0,0 @@
1
- import{JS as k,KS as f,_S as u}from"./cli-0.5.11-hmmth2y4.mjs";import{fU as C,rU as d}from"./cli-0.5.11-tdtjfv7g.mjs";import{XZ as A,ZZ as F}from"./cli-0.5.11-xqjh3bpr.mjs";import{n0 as q,s0 as i}from"./cli-0.5.11-fydbgnx6.mjs";import{h4 as W,k4 as _,r4 as j,s4 as w,x4 as I}from"./cli-0.5.11-j2vqwct6.mjs";import{Bca as V,Jca as U}from"./cli-0.5.11-73qsyep8.mjs";import{bfa as M,cfa as v}from"./cli-0.5.11-0k52dqga.mjs";import{Kfa as X,Lfa as R,Pfa as p,fga as J,iga as x}from"./cli-0.5.11-j4hdhvj9.mjs";import{Gga as T,zga as P}from"./cli-0.5.11-t8q2hmsy.mjs";import{boa as O}from"./cli-0.5.11-hph6a44c.mjs";x();U();F();v();x();T();U();_();I();p();import{randomUUID as E}from"crypto";var h=2000,y=5,S=30000,Y=3,c=new Set([4003]);function D(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class L{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,H){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=H}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${M().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let H={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:H,proxy:w(z),tls:W()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let K=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(K)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");V(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-0.5.11-sgchnzeq.mjs"),Z=new $(z,{headers:H,agent:j(z),...W()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(K)=>{this.handleMessage(K.toString())}),Z.on("error",(K)=>{V(Error(`[SessionsWebSocket] Error: ${K.message}`)),this.callbacks.onError?.(K)}),Z.on("close",(K,G)=>{J(`[SessionsWebSocket] Closed: code=${K} reason=${G.toString()}`),this.handleClose(K)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=R(B);if(D(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){V(Error(`[SessionsWebSocket] Failed to parse message: ${P(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",c.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(h*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<y)this.reconnectAttempts++,this.scheduleReconnect(h,`attempt ${this.reconnectAttempts}/${y}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},S)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:E(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function N(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class b{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{V(z),this.callbacks.onError?.(z)}};this.websocket=new L(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(N(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let H={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(H)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await A(this.config.sessionId,B,z);if(!Q)V(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){V(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let H={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(H)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,H=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:H,viewerOnly:$}}x();U();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:H}=B,$=f(z);if(!$){V(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=k(z),K=!Q;return J(`[Reconnection] Computed initial team context for ${K?"leader":`teammate ${H}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:H,isLeader:K,teammates:{}}}function Wz(B,z,Q){let H=f(z);if(!H){V(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=H.members.find((G)=>G.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,K=k(z);B((G)=>({...G,teamContext:{teamName:z,teamFilePath:K,leadAgentId:H.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=q();for(let[H,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(H)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Lz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
2
- export{b as Ga,$z as Ha,Xz as Ia,Wz as Ja,Lz as Ka};
@@ -1,2 +0,0 @@
1
- import{vV as x,wV as d}from"./cli-0.5.11-nkfafdwt.mjs";import{IX as y,JX as g}from"./cli-0.5.11-dpbhsnm8.mjs";import{EZ as S}from"./cli-0.5.11-9gbtz4tf.mjs";import{SZ as w,UZ as F,ZZ as t}from"./cli-0.5.11-xqjh3bpr.mjs";import{K3 as m,N3 as W,Q3 as b,d4 as s}from"./cli-0.5.11-fydbgnx6.mjs";import{Bca as E,Jaa as f,Jca as r,Maa as L,eba as n,gaa as P,haa as i}from"./cli-0.5.11-73qsyep8.mjs";import{bfa as A,cfa as a}from"./cli-0.5.11-0k52dqga.mjs";import{fga as G,iga as u}from"./cli-0.5.11-j4hdhvj9.mjs";import{Dna as o,lna as U}from"./cli-0.5.11-dz7nvwja.mjs";import{Yna as k,aoa as K}from"./cli-0.5.11-hph6a44c.mjs";function v(z,N,J){let Q=Z.useRef(0),V=Z.useRef(void 0),X=Z.useCallback(()=>{if(V.current)clearTimeout(V.current),V.current=void 0},[]);return Z.useEffect(()=>{return()=>{X()}},[X]),Z.useCallback(()=>{let Y=Date.now();if(Y-Q.current<=T&&V.current!==void 0)X(),z(!1),N();else J?.(),z(!0),X(),V.current=setTimeout((j,H)=>{j(!1),H.current=void 0},T,z,V);Q.current=Y},[z,N,J,X])}var Z,T=800;var R=K(()=>{Z=k(S(),1)});function C(z,N,J,Q=!0){let{exit:V}=y(),[X,Y]=$.useState({pending:!1,keyName:null}),q=$.useMemo(()=>J??V,[J,V]),M=v((_)=>Y({pending:_,keyName:"Ctrl-C"}),q),j=v((_)=>Y({pending:_,keyName:"Ctrl-D"}),q),H=$.useCallback(()=>{if(N?.())return;M()},[M,N]),O=$.useCallback(()=>{j()},[j]),c=$.useMemo(()=>({"app:interrupt":H,"app:exit":O}),[H,O]);return z(c,{context:"Global",isActive:Q}),X}var $;var I=K(()=>{g();R();$=k(S(),1)});function Gz(z,N,J){return C(x,N,z,J)}var l=K(()=>{d();I()});async function e(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/eligibility`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:5000})).data}async function vz(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/redemptions`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:1e4})).data}function p(){return!!(W()?.organizationUuid&&m()&&b()==="max")}function Az(){if(!p())return{eligible:!1,needsRefresh:!1,hasCache:!1};let z=W()?.organizationUuid;if(!z)return{eligible:!1,needsRefresh:!1,hasCache:!1};let J=L().passesEligibilityCache?.[z];if(!J)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Q,timestamp:V}=J,Y=Date.now()-V>h;return{eligible:Q,needsRefresh:Y,hasCache:!0}}function Uz(z){let N=zz[z.currency]??`${z.currency} `,J=z.amount_minor_units/100,Q=J%1===0?J.toString():J.toFixed(2);return`${N}${Q}`}function wz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.referrer_reward??null}function Fz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.remaining_passes??null}async function D(){if(B)return G("Passes: Reusing in-flight eligibility fetch"),B;let z=W()?.organizationUuid;if(!z)return null;return B=(async()=>{try{let N=await e(),J={...N,timestamp:Date.now()};return f((Q)=>({...Q,passesEligibilityCache:{...Q.passesEligibilityCache,[z]:J}})),G(`Passes eligibility cached for org ${z}: ${N.eligible}`),N}catch(N){return G("Failed to fetch and cache passes eligibility"),E(N),null}finally{B=null}})(),B}async function Jz(){if(!p())return null;let z=W()?.organizationUuid;if(!z)return null;let J=L().passesEligibilityCache?.[z],Q=Date.now();if(!J)return G("Passes: No cache, fetching eligibility in background (command unavailable this session)"),D(),null;if(Q-J.timestamp>h){G("Passes: Cache stale, returning cached data and refreshing in background"),D();let{timestamp:Y,...q}=J;return q}G("Passes: Using fresh cached eligibility data");let{timestamp:V,...X}=J;return X}async function Oz(){if(P())return;Jz()}var h=86400000,B=null,zz;var Nz=K(()=>{o();a();s();n();u();r();i();t();zz={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
2
- export{v as sU,R as tU,Gz as uU,l as vU,vz as wU,Az as xU,Uz as yU,wz as zU,Fz as AU,Jz as BU,Oz as CU,Nz as DU};
@@ -1,2 +0,0 @@
1
- import{l6 as Z,p6 as _,q6 as w}from"./cli-0.5.11-56ecxcc1.mjs";import{$6 as Y,Jaa as W,L7 as T,Maa as V,R8 as D,a7 as U,eba as j,l7 as $,v8 as k}from"./cli-0.5.11-73qsyep8.mjs";import{fga as N,iga as M}from"./cli-0.5.11-j4hdhvj9.mjs";import{Gia as X,rma as O}from"./cli-0.5.11-tyzwy8ba.mjs";O();j();M();w();D();U();T();import{realpath as v}from"fs/promises";async function b(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await v(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function y(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function c(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
2
- export{b as Bb,y as Cb,P as Db,d as Eb,c as Fb};
@@ -1,2 +0,0 @@
1
- import{Qt as C,Tt as X}from"./cli-0.5.11-6vqz68v0.mjs";import{EZ as W}from"./cli-0.5.11-9gbtz4tf.mjs";import{d2 as I,p2 as J,w2 as V}from"./cli-0.5.11-fydbgnx6.mjs";import{Tda as H,mea as T}from"./cli-0.5.11-m3bm720s.mjs";import{Yna as P,aoa as Q}from"./cli-0.5.11-hph6a44c.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 cc,Y as dc};
@@ -1,4 +0,0 @@
1
- import{_d as c,ee as Eq}from"./cli-0.5.11-4pjrzfnw.mjs";import{An as A,Cn as D,Dn as Aq,EI as Cq,En as h,Fn as S,Gn as Fq,HI as b,II as Lq,LI as Hq,MI as Jq,OH as v,OI as vq,PH as m,PI as y,QI as Qq,RH as Oq,RI as Xq,SI as Yq,TI as $q,UI as d,XI as Dq,iI as n,jr as l,kn as s,kr as wq,ln as Tq,oI as e,on as t,pI as P,qn as Mq,tI as jq,uI as O,un as i,vI as qq,wn as Rq,xI as I,yI as Gq}from"./cli-0.5.11-6vqz68v0.mjs";import{Bca as a,H$ as F,J$ as L,Jca as Bq,W$ as _q,c$ as V,k$ as Kq}from"./cli-0.5.11-73qsyep8.mjs";import{Tfa as p,Xfa as Wq}from"./cli-0.5.11-j4hdhvj9.mjs";import{Bga as N,Gga as Uq,yga as o}from"./cli-0.5.11-t8q2hmsy.mjs";import{Gia as f,rma as xq}from"./cli-0.5.11-tyzwy8ba.mjs";import{aoa as Zq}from"./cli-0.5.11-hph6a44c.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
- ${G.join(`
3
- `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
4
- export{k as Nd,HG as Od,JG as Pd,QG as Qd,kq as Rd,XG as Sd,YG as Td,$G as Ud,zG as Vd,ZG as Wd,xG as Xd,hq as Yd};
@@ -1,2 +0,0 @@
1
- import{IZ as K,KZ as Z}from"./cli-0.5.11-1azjwqgg.mjs";import{LZ as J,NZ as Y}from"./cli-0.5.11-wafsp0ws.mjs";import{F3 as D,K3 as F,L3 as G,M0 as B,R0 as W,d4 as X}from"./cli-0.5.11-fydbgnx6.mjs";import{bfa as y,cfa as Q}from"./cli-0.5.11-0k52dqga.mjs";import{Dna as V,lna as z}from"./cli-0.5.11-dz7nvwja.mjs";import{aoa as N}from"./cli-0.5.11-hph6a44c.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
- export{P as qh,_ as rh};
@@ -1,2 +0,0 @@
1
- function t(s){if(s===null||typeof s!=="object")return s;let e=s;if("requestId"in e&&!("request_id"in e))e.request_id=e.requestId,delete e.requestId;if("response"in e&&e.response!==null&&typeof e.response==="object"){let n=e.response;if("requestId"in n&&!("request_id"in n))n.request_id=n.requestId,delete n.requestId}return s}
2
- export{t as Ya};
@@ -1,2 +0,0 @@
1
- import{$T as YJ,dU as DJ,hU as vJ,iU as c,jU as SJ,rU as ZJ}from"./cli-0.5.11-tdtjfv7g.mjs";import{sZ as CJ,zZ as TJ}from"./cli-0.5.11-pgw75ed3.mjs";import{Bca as p,Jca as wJ,L7 as NJ,R6 as OJ,S6 as FJ,daa as S,faa as yJ,n7 as xJ,s8 as jJ}from"./cli-0.5.11-73qsyep8.mjs";import{Oda as R,Qda as VJ,Rda as w,Sda as XJ}from"./cli-0.5.11-m6mcarks.mjs";import{Kfa as v,Lfa as y,Pfa as JJ,fga as G,iga as QJ}from"./cli-0.5.11-j4hdhvj9.mjs";import{Aga as C,Gga as e,zga as W}from"./cli-0.5.11-t8q2hmsy.mjs";import{Jga as s,Kga as I,Mga as t,Wga as a}from"./cli-0.5.11-f524x1te.mjs";import{Aia as d,Gla as L,nka as i,rma as m,wia as r,xia as MJ}from"./cli-0.5.11-tyzwy8ba.mjs";import{aoa as T,boa as BJ}from"./cli-0.5.11-hph6a44c.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!SJ())return;let V=Q??c(),X=vJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.5.11-evj7atta.mjs"),import("./detection-0.5.11-9atncamq.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
- export{HQ as kS,UQ as lS,BQ as mS,fJ as nS,OQ as oS,xQ as pS,CQ as qS,_J as rS,E as sS,bJ as tS,vQ as uS,O as vS,j as wS,SQ as xS,h as yS,AQ as zS,zQ as AS,MQ as BS,HJ as CS,n as DS,UJ as ES,oQ as FS,zJ as GS,nQ as HS,u as IS,F as JS,H as KS,kJ as LS,rJ as MS,kQ as NS,rQ as OS,dQ as PS,iQ as QS,mQ as RS,dJ as SS,sQ as TS,tQ as US,aQ as VS,eQ as WS,JV as XS,QV as YS,sJ as ZS,tJ as _S};
@@ -1,2 +0,0 @@
1
- import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
2
- export{z as Yna,A as Zna,B as _na,C as $na,D as aoa,F as boa,G as coa,H as doa};
@@ -1,2 +0,0 @@
1
- import{hd as L,id as m}from"./cli-0.5.11-ns8kex5x.mjs";import{od as O,pd as G,qd as u}from"./cli-0.5.11-1z9g6q16.mjs";import{d4 as E,o3 as U,s3 as k,x3 as A}from"./cli-0.5.11-fydbgnx6.mjs";import{Bba as x,Bca as y,J$ as N,Jaa as F,Jca as C,Maa as D,Taa as Q,W$ as g,Y9 as K,Z9 as Z,d_ as P,eba as h,mba as R,sba as _,tba as $}from"./cli-0.5.11-73qsyep8.mjs";import{Gga as f,yga as Y}from"./cli-0.5.11-t8q2hmsy.mjs";import{Nja as J,rma as b}from"./cli-0.5.11-tyzwy8ba.mjs";import{aoa as T}from"./cli-0.5.11-hph6a44c.mjs";function n(){V=!0}function M(){if(!V)return!1;return V=!1,!0}function a(j){return(z)=>({...z,...typeof j.permission_mode==="string"?{toolPermissionContext:{...z.toolPermissionContext,mode:Z(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function t({newState:j,oldState:z}){let W=M(),X=z.toolPermissionContext.mode,H=j.toolPermissionContext.mode;if(X!==H){let q=K(X),B=K(H);if(q!==B){let I=B==="plan"&&j.isUltraplanMode&&!z.isUltraplanMode?!0:null;O({permission_mode:B,is_ultraplan_mode:I})}G(H)}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel===null){if(J(null),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:void 0}));else N("userSettings",{model:void 0}),$()}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel!==null){if(J(j.mainLoopModel),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:j.mainLoopModel??void 0}));else N("userSettings",{model:j.mainLoopModel}),_(j.mainLoopModel)}if(j.expandedView!==z.expandedView){let q=j.expandedView==="tasks",B=j.expandedView==="teammates";if(D().showExpandedTodos!==q||D().showSpinnerTree!==B)F((I)=>({...I,showExpandedTodos:q,showSpinnerTree:B}))}if(j.verbose!==z.verbose&&D().verbose!==j.verbose){let q=j.verbose;F((B)=>({...B,verbose:q}))}if(j.collapseSubagentProgress!==z.collapseSubagentProgress&&D().collapseSubagentProgress!==j.collapseSubagentProgress){let q=j.collapseSubagentProgress;F((B)=>({...B,collapseSubagentProgress:q}))}if(j.settings!==z.settings)try{if(U(),k(),A(),j.settings.env!==z.settings.env)L()}catch(q){y(Y(q))}}var V=!1;var c=T(()=>{b();E();h();f();C();m();x();P();u();g()});
2
- export{n as cd,a as dd,t as ed,c as fd};
@@ -1,2 +0,0 @@
1
- import{Hp as Eq,Ip as v,Iw as kJ,JD as KJ,Jp as zJ,Jw as _J,LD as vJ,Pp as XJ,Qt as Cq,Rp as GJ,Rt as wJ,Sl as oq,Tl as jJ,Tt as MJ,Up as cq,Vp as Vq,Yp as YJ,Zp as pq,cm as qJ,dm as hJ,em as JJ,fm as OJ,gm as QJ,hm as FJ}from"./cli-0.5.11-6vqz68v0.mjs";import{uU as tq,vU as VJ}from"./cli-0.5.11-h34yntmn.mjs";import{EV as ZJ,FV as gJ,vV as eq,wV as mJ}from"./cli-0.5.11-nkfafdwt.mjs";import{YX as TJ,_V as CJ,rX as H,tX as Y}from"./cli-0.5.11-dpbhsnm8.mjs";import{AZ as lq,BZ as X,CZ as K,DZ as rq}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as DJ}from"./cli-0.5.11-9gbtz4tf.mjs";import{C1 as sq,G2 as UJ,H1 as NJ,K3 as HJ,L2 as rJ,d4 as uJ,e2 as mq,g2 as S,n1 as jq,o1 as fq,p2 as g,q1 as yq,s2 as Dq,w2 as yJ}from"./cli-0.5.11-fydbgnx6.mjs";import{E9 as _q,F9 as vq,G9 as Rq,H$ as aq,H9 as Sq,I9 as xq,J$ as iq,S9 as RJ,W$ as LJ}from"./cli-0.5.11-73qsyep8.mjs";import{dfa as $q,ffa as bJ}from"./cli-0.5.11-aa4nqg2h.mjs";import{Yna as dq,aoa as bq}from"./cli-0.5.11-hph6a44c.mjs";function iJ(J,q){if(!v(q))return;let Z=cq(q,J);return`${Lq(Z)} ${Z} · /effort`}function Lq(J){if(Eq(J))return xq;switch(J){case"low":return _q;case"medium":return vq;case"high":return Rq;case"max":return Sq;default:return Rq}}var nq=bq(()=>{RJ();pq()});function BQ(J){let q=hq.c(82),{initial:Z,sessionModel:z,onSelect:G,onCancel:w,isStandaloneCommand:W,showFastModeNotice:Yq,headerText:WJ,skipSettingsWrite:wq}=J,kq=wJ(),E=tq(),B=Z===null?x:Z,[A,BJ]=Gq.useState(B),AJ=Cq(cJ),[P,IJ]=Gq.useState(!1),R=Cq(EJ),c;if(q[0]!==R)c=R!==void 0?Vq(R):void 0,q[0]=R,q[1]=c;else c=q[1];let[b,Oq]=Gq.useState(c),Kq=AJ??!1,p;if(q[2]!==Kq)p=kJ(Kq),q[2]=Kq,q[3]=p;else p=q[3];let M=p,Uq;q:{if(Z!==null&&!M.some((Q)=>{if(Q.value===Z)return!0;if(Q.value===null)return!1;try{return S(g(String(Q.value)))===S(g(Z))}catch{return!1}})){let Q;if(q[4]!==Z)Q=Dq(Z),q[4]=Z,q[5]=Q;else Q=q[5];let k;if(q[6]!==Z||q[7]!==Q)k={value:Z,label:Q,description:"Current model"},q[6]=Z,q[7]=Q,q[8]=k;else k=q[8];let L;if(q[9]!==M||q[10]!==k)L=[...M,k],q[9]=M,q[10]=k,q[11]=L;else L=q[11];Uq=L;break q}Uq=M}let Hq=Uq,n;if(q[12]!==Hq)n=Hq.map(xJ),q[12]=Hq,q[13]=n;else n=q[13];let U=n,r;if(q[14]!==B||q[15]!==U)r=U.find((Q)=>{if(Q.value===B)return!0;if(B===x||Q.value===null)return!1;try{return S(g(String(Q.value)))===S(g(String(B)))}catch{return!1}})?.value??U[0]?.value??void 0,q[14]=B,q[15]=U,q[16]=r;else r=q[16];let Wq=r,u=Math.min(10,U.length),d=Math.max(0,U.length-u),$;if(q[17]!==A||q[18]!==U)$=U.find((Q)=>Q.value===A)?.label,q[17]=A,q[18]=U,q[19]=$;else $=q[19];let a=$,I,i;if(q[20]!==A){let Q=Tq(A);I=Q?v(Q):!1,i=Q?zJ(Q):!1,q[20]=A,q[21]=I,q[22]=i}else I=q[21],i=q[22];let f=i,s;if(q[23]!==A)s=Nq(A),q[23]=A,q[24]=s;else s=q[24];let N=s,_=b==="max"&&!f?"high":b,l;if(q[25]!==R||q[26]!==P)l=(Q)=>{if(BJ(Q),!P&&R===void 0)Oq(Nq(Q))},q[25]=R,q[26]=P,q[27]=l;else l=q[27];let Bq=l,o;if(q[28]!==N||q[29]!==I||q[30]!==f)o=(Q)=>{if(!I)return;Oq((k)=>pJ(k??N,Q,f)),IJ(!0)},q[28]=N,q[29]=I,q[30]=f,q[31]=o;else o=q[31];let e=o,t;if(q[32]!==e)t={"modelPicker:decreaseEffort":()=>e("left"),"modelPicker:increaseEffort":()=>e("right")},q[32]=e,q[33]=t;else t=q[33];let qq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))qq={context:"ModelPicker"},q[34]=qq;else qq=q[34];eq(t,qq);let Jq;if(q[35]!==b||q[36]!==P||q[37]!==G||q[38]!==kq||q[39]!==wq)Jq=function(k){if($q("tengu_model_command_menu_effort",{effort:b}),!wq){let gq=GJ(b,Nq(k),aq("userSettings")?.effortLevel,P),Mq=XJ(gq);if(Mq!==void 0)iq("userSettings",{effortLevel:Mq});kq((PJ)=>({...PJ,effortValue:gq}))}let L=Tq(k),Fq=P&&L&&v(L)?b:void 0;if(k===x){G(null,Fq);return}G(k,Fq)},q[35]=b,q[36]=P,q[37]=G,q[38]=kq,q[39]=wq,q[40]=Jq;else Jq=q[40];let Aq=Jq,Qq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Qq=X(Y,{color:"remember",bold:!0,children:"Select model"}),q[41]=Qq;else Qq=q[41];let Iq=WJ??"Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.",y;if(q[42]!==Iq)y=X(Y,{dimColor:!0,children:Iq}),q[42]=Iq,q[43]=y;else y=q[43];let D;if(q[44]!==z)D=z&&K(Y,{dimColor:!0,children:["Currently using ",Dq(z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=z,q[45]=D;else D=q[45];let C;if(q[46]!==y||q[47]!==D)C=K(H,{marginBottom:1,flexDirection:"column",children:[Qq,y,D]}),q[46]=y,q[47]=D,q[48]=C;else C=q[48];let Pq=w??SJ,T;if(q[49]!==Bq||q[50]!==Aq||q[51]!==Wq||q[52]!==B||q[53]!==U||q[54]!==Pq||q[55]!==u)T=X(H,{flexDirection:"column",children:X(KJ,{defaultValue:B,defaultFocusValue:Wq,options:U,onChange:Aq,onFocus:Bq,onCancel:Pq,visibleOptionCount:u})}),q[49]=Bq,q[50]=Aq,q[51]=Wq,q[52]=B,q[53]=U,q[54]=Pq,q[55]=u,q[56]=T;else T=q[56];let j;if(q[57]!==d)j=d>0&&X(H,{paddingLeft:3,children:K(Y,{dimColor:!0,children:["and ",d," more…"]})}),q[57]=d,q[58]=j;else j=q[58];let m;if(q[59]!==T||q[60]!==j)m=K(H,{flexDirection:"column",marginBottom:1,children:[T,j]}),q[59]=T,q[60]=j,q[61]=m;else m=q[61];let V;if(q[62]!==_||q[63]!==N||q[64]!==a||q[65]!==I)V=X(H,{marginBottom:1,flexDirection:"column",children:I?K(Y,{dimColor:!0,children:[X(uq,{effort:_})," ",oq(_)," effort",_===N?" (default)":""," ",X(Y,{color:"subtle",children:"← → to adjust"})]}):K(Y,{color:"subtle",children:[X(uq,{effort:void 0})," Effort not supported",a?` for ${a}`:""]})}),q[62]=_,q[63]=N,q[64]=a,q[65]=I,q[66]=V;else V=q[66];let h;if(q[67]!==Yq)h=jq()?Yq?X(H,{marginBottom:1,children:K(Y,{dimColor:!0,children:["Fast mode is ",X(Y,{bold:!0,children:"ON"})," and available with"," ",yq," only (/fast). Switching to other models turn off fast mode."]})}):fq()&&!sq()?X(H,{marginBottom:1,children:K(Y,{dimColor:!0,children:["Use ",X(Y,{bold:!0,children:"/fast"})," to turn on Fast mode (",yq," only)."]})}):null:null,q[67]=Yq,q[68]=h;else h=q[68];let O;if(q[69]!==C||q[70]!==m||q[71]!==V||q[72]!==h)O=K(H,{flexDirection:"column",children:[C,m,V,h]}),q[69]=C,q[70]=m,q[71]=V,q[72]=h,q[73]=O;else O=q[73];let F;if(q[74]!==E||q[75]!==W)F=W&&X(Y,{dimColor:!0,italic:!0,children:E.pending?K(lq,{children:["Press ",E.keyName," again to exit"]}):K(QJ,{children:[X(qJ,{shortcut:"Enter",action:"confirm"}),X(JJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=E,q[75]=W,q[76]=F;else F=q[76];let Zq;if(q[77]!==O||q[78]!==F)Zq=K(H,{flexDirection:"column",children:[O,F]}),q[77]=O,q[78]=F,q[79]=Zq;else Zq=q[79];let zq=Zq;if(!W)return zq;let Xq;if(q[80]!==zq)Xq=X(ZJ,{color:"permission",children:zq}),q[80]=zq,q[81]=Xq;else Xq=q[81];return Xq}function SJ(){}function xJ(J){return{...J,value:J.value===null?x:J.value}}function EJ(J){return J.effortValue}function cJ(J){return jq()?J.fastMode:!1}function Tq(J){if(!J)return;return J===x?mq():g(J)}function uq(J){let q=hq.c(5),{effort:Z}=J,z=Z?"claude":"subtle",G=Z??"low",w;if(q[0]!==G)w=Lq(G),q[0]=G,q[1]=w;else w=q[1];let W;if(q[2]!==z||q[3]!==w)W=X(Y,{color:z,children:w}),q[2]=z,q[3]=w,q[4]=W;else W=q[4];return W}function pJ(J,q,Z){let z=Z?["low","medium","high","max"]:["low","medium","high"],G=z.indexOf(J),w=G!==-1?G:z.indexOf("high");if(q==="right")return z[(w+1)%z.length];else return z[(w-1+z.length)%z.length]}function Nq(J){let q=Tq(J)??mq(),Z=YJ(q);return Z!==void 0?Vq(Z):"high"}var hq,Gq,x="__NO_PREFERENCE__";var nJ=bq(()=>{jJ();VJ();bJ();NJ();TJ();mJ();MJ();pq();yJ();_J();LJ();OJ();vJ();FJ();hJ();gJ();nq();rq();hq=dq(CJ(),1),Gq=dq(DJ(),1)});function bQ(J,q,Z){if(!HJ())return!1;if(q)return!0;if(J===null||!UJ(J))return!1;let z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),G=z==="opus"||z.includes("opus-4-6")||z.includes("opus-4-7"),w=z==="sonnet"||z.includes("sonnet-4-6");if(G&&Z)return!1;return G||w}var dJ=bq(()=>{uJ();rJ()});
2
- export{iJ as Qf,Lq as Rf,nq as Sf,BQ as Tf,nJ as Uf,bQ as Vf,dJ as Wf};
@@ -1,9 +0,0 @@
1
- import{E4 as S}from"./cli-0.5.11-s6jp1y14.mjs";import{Tfa as E,Xfa as o,fga as $,iga as d}from"./cli-0.5.11-j4hdhvj9.mjs";import{Lga as u,Mga as BG,Wga as r}from"./cli-0.5.11-f524x1te.mjs";import{Qma as q,Rma as f}from"./cli-0.5.11-tkfz368s.mjs";import{Dna as LG,lna as B}from"./cli-0.5.11-dz7nvwja.mjs";import{Hna as YG}from"./cli-0.5.11-nzn18pg0.mjs";import{Yna as QG,aoa as F,boa as FG}from"./cli-0.5.11-hph6a44c.mjs";function CG(){H.cache.clear?.(),$("Cleared CA certificates cache")}var H;var l=F(()=>{f();d();r();o();H=q(()=>{let G=u("--use-system-ca")||u("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if($(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let K=FG("tls"),Q=[];if(G){let Y=K.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)Q.push(...Z),$(`CA certs: Loaded ${Q.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){$("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else Q.push(...K.rootCertificates),$(`CA certs: Loaded ${Q.length} bundled root certificates as base (--use-system-ca fallback)`)}else Q.push(...K.rootCertificates),$(`CA certs: Loaded ${Q.length} bundled root certificates as base`);if(J)try{let Y=E().readFileSync(J,{encoding:"utf8"});Q.push(Y),$(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){$(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return Q.length>0?Q:void 0})});import{Agent as NG}from"https";function lG(){let G=j(),J=H();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function O(){let G=j(),J=H();if(!G&&!J)return{};let K={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:K};return $("TLS: Created undici agent with custom certificates"),{dispatcher:new(S()).Agent({connect:{cert:K.cert,key:K.key,passphrase:K.passphrase,...K.ca&&{ca:K.ca}},pipelining:1})}}function cG(){j.cache.clear?.(),D.cache.clear?.(),$("Cleared mTLS configuration cache")}function gG(){if(!j())return;if(process.env.NODE_EXTRA_CA_CERTS)$("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var j,D;var t=F(()=>{f();l();d();o();j=q(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=E().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),$("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){$(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=E().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),$("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){$(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,$("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),D=q(()=>{let G=j(),J=H();if(!G&&!J)return;let K={...G,...J&&{ca:J},keepAlive:!0};return $("mTLS: Creating HTTPS agent with custom certificates"),new NG(K)})});var e=()=>{};import*as GG from"net";import*as JG from"http";import{Agent as TG}from"https";var V,c;var KG=F(()=>{e();V=Symbol("AgentBaseInternalState");c=class c extends JG.Agent{constructor(G){super(G);this[V]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
- `).some((K)=>K.indexOf("(https.js:")!==-1||K.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new GG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let K=this.sockets[G],Q=K.indexOf(J);if(Q!==-1){if(K.splice(Q,1),this.totalSocketCount--,K.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return TG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,K){let Q={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(Q),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,Q)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,Q)}catch(W){return K(W)}this[V].currentSocket=w,super.createSocket(G,J,K)},(w)=>{this.decrementSockets(Y,Z),K(w)})}createConnection(){let G=this[V].currentSocket;if(this[V].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[V].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[V])this[V].defaultPort=G}get protocol(){return this[V].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[V])this[V].protocol=G}}});function $G(G){return new Promise((J,K)=>{let Q=0,Y=[];function Z(){let z=G.read();if(z)h(z);else G.once("readable",Z)}function w(){G.removeListener("end",W),G.removeListener("error",M),G.removeListener("readable",Z)}function W(){w(),b("onend"),K(Error("Proxy connection ended before receiving CONNECT response"))}function M(z){w(),b("onerror %o",z),K(z)}function h(z){Y.push(z),Q+=z.length;let X=Buffer.concat(Y,Q),i=X.indexOf(`\r
3
- \r
4
- `);if(i===-1){b("have not received end of HTTP headers yet..."),Z();return}let n=X.slice(0,i).toString("ascii").split(`\r
5
- `),C=n.shift();if(!C)return G.destroy(),K(Error("No header received from proxy CONNECT response"));let s=C.split(" "),UG=+s[1],_G=s.slice(2).join(" "),T={};for(let I of n){if(!I)continue;let x=I.indexOf(":");if(x===-1)return G.destroy(),K(Error(`Invalid header from proxy CONNECT response: "${I}"`));let m=I.slice(0,x).toLowerCase(),y=I.slice(x+1).trimStart(),R=T[m];if(typeof R==="string")T[m]=[R,y];else if(Array.isArray(R))R.push(y);else T[m]=y}b("got proxy server response: %o %o",C,T),w(),J({connect:{statusCode:UG,statusText:_G,headers:T},buffered:X})}G.on("error",M),G.on("end",W),Z()})}var ZG,b;var WG=F(()=>{ZG=QG(YG(),1),b=ZG.default("https-proxy-agent:parse-proxy-response")});import*as U from"net";import*as g from"tls";import IG from"assert";import{URL as EG}from"url";function SG(G){G.resume()}function XG(G,...J){let K={},Q;for(Q in G)if(!J.includes(Q))K[Q]=G[Q];return K}var zG,L,wG=(G)=>{if(G.servername===void 0&&G.host&&!U.isIP(G.host))return{...G,servername:G.host};return G},A;var VG=F(()=>{KG();WG();zG=QG(YG(),1),L=zG.default("https-proxy-agent");A=class A extends c{constructor(G,J){super(J);this.options={path:void 0},this.proxy=typeof G==="string"?new EG(G):G,this.proxyHeaders=J?.headers??{},L("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let K=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),Q=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?XG(J,"headers"):null,host:K,port:Q}}async connect(G,J){let{proxy:K}=this;if(!J.host)throw TypeError('No "host" provided');let Q;if(K.protocol==="https:")L("Creating `tls.Socket`: %o",this.connectOpts),Q=g.connect(wG(this.connectOpts));else L("Creating `net.Socket`: %o",this.connectOpts),Q=U.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=U.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
- `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Y))w+=`${X}: ${Y[X]}\r
7
- `;let W=$G(Q);Q.write(`${w}\r
8
- `);let{connect:M,buffered:h}=await W;if(G.emit("proxyConnect",M),this.emit("proxyConnect",M,G),M.statusCode===200){if(G.once("socket",SG),J.secureEndpoint)return L("Upgrading socket connection to TLS"),g.connect({...XG(wG(J),"host","path","port"),socket:Q});return Q}Q.destroy();let z=new U.Socket({writable:!1});return z.readable=!0,G.once("socket",(X)=>{L("Replaying proxy buffer for failed request"),IG(X.listenerCount("data")>0),X.push(h),X.push(null)}),z}};A.protocols=["http","https"]});function XJ(G){a.set(G,!0),MG(G)}function MG(G){jG.cache.delete?.(G)}function zJ(G){qG.set(G,!0),MG(G)}function RG(G){return qG.get(G)===!0}function DG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function N(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function OG(G=process.env){return G.no_proxy||G.NO_PROXY}function P(G,J=OG()){if(!J)return!1;if(J==="*")return!0;try{let K=new URL(G),Q=K.hostname.toLowerCase(),Y=K.port||(K.protocol==="https:"||K.protocol==="wss:"?"443":"80"),Z=`${Q}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some((W)=>{if(W=W.toLowerCase().trim(),W.includes(":"))return Z===W;if(W.startsWith(".")){let M=W;return Q===W.substring(1)||Q.endsWith(M)}return Q===W})}catch{return!1}}function v(G,J={}){let K=j(),Q=H(),Y={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};if(BG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,W)=>{W(null,Z,DG(w))};return new A(G,{...Y,...J})}function VJ(G={}){let J=N(),K=D(),Q=B.create({proxy:!1});if(!J){if(K)Q.defaults.httpsAgent=K;return Q}let Y=v(J,G);return Q.interceptors.request.use((Z)=>{if(Z.url&&P(Z.url))Z.httpsAgent=K,Z.httpAgent=K;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),Q}function BJ(G){let J=N();if(!J)return;if(P(G))return;return v(J)}function MJ(G){let J=N();if(!J)return;if(P(G))return;return J}function qJ(G){let J=G?.provider&&a.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let K=N();if(K){if(typeof Bun<"u")return{...J,proxy:K,...O()};return{...J,dispatcher:p(K)}}let Q=O();if(G?.provider&&!Q.dispatcher)return{...J,...Q,dispatcher:jG(G.provider)};return{...J,...Q}}function HJ(){let G=N(),J=D();if(k!==void 0)B.interceptors.request.eject(k),k=void 0;if(B.defaults.proxy=void 0,B.defaults.httpAgent=void 0,B.defaults.httpsAgent=void 0,G){B.defaults.proxy=!1;let K=v(G);k=B.interceptors.request.use((Q)=>{if(Q.url&&P(Q.url))if(J)Q.httpsAgent=J,Q.httpAgent=J;else delete Q.httpsAgent,delete Q.httpAgent;else Q.httpsAgent=K,Q.httpAgent=K;return Q}),S().setGlobalDispatcher(p(G))}else if(J){B.defaults.httpsAgent=J;let K=O();if(K.dispatcher)S().setGlobalDispatcher(K.dispatcher)}}async function jJ(){let G=N();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:K}]=await Promise.all([import("./index-0.5.11-26k11p3q.mjs"),import("./index-0.5.11-hyys7amt.mjs")]),Q=v(G),Y=new J({httpAgent:Q,httpsAgent:Q});return{requestHandler:Y,credentials:K({clientConfig:{requestHandler:Y}})}}function UJ(){p.cache.clear?.(),$("Cleared proxy agent cache")}var a,qG,p,_,HG,bG,jG,k;var AG=F(()=>{LG();VG();f();l();d();r();t();a=new Map;qG=new Map;p=q((G)=>{let J=S(),K=j(),Q=H(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(K||Q){let Z={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),_={connections:12,keepAliveTimeout:30000,pipelining:1},HG={firstParty:{..._,allowH2:!0},openai:{..._,allowH2:!0},gemini:{..._,allowH2:!0},mistral:{..._,allowH2:!0},github:{..._,allowH2:!0},codex:{..._,allowH2:!0},"nvidia-nim":{..._,allowH2:!0},minimax:{..._,allowH2:!0}},bG=HG.openai,jG=q((G)=>{let J=S(),K=HG[G]??bG,Q={...K,allowH2:K.allowH2&&!RG(G),keepAliveTimeout:a.get(G)?100:K.keepAliveTimeout};return new J.Agent(Q)})});
9
- export{CG as e4,l as f4,j as g4,lG as h4,cG as i4,gG as j4,t as k4,XJ as l4,zJ as m4,RG as n4,N as o4,P as p4,VJ as q4,BJ as r4,MJ as s4,qJ as t4,HJ as u4,jJ as v4,UJ as w4,AG as x4};