@claudiolabs/claudin 0.6.6 → 0.6.7

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 (892) hide show
  1. package/README.md +56 -25
  2. package/dist/chunks/AgentTool-0.6.7-f7t2mgqb.mjs +1 -0
  3. package/dist/chunks/App-0.6.7-9x70f9jb.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.6.7-2tb75j23.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.6.7-afdtan0w.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.6.7-pyzr75b3.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.6.7-nfncnj0q.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.7-n2e142wm.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.6.7-phc7vznz.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.6.7-s9x3mya9.mjs +7 -0
  11. package/dist/chunks/Doctor-0.6.7-smded214.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-0.6.7-4hy6ry9q.mjs +6 -0
  13. package/dist/chunks/Grove-0.6.7-ahyrvw0t.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.6.7-fcnt914g.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-0.6.7-00bjfj0e.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.6.7-13q0q9de.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.6.7-858rv0qw.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.6.7-dt8tdzek.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.6.7-6v39p38e.mjs +1 -0
  20. package/dist/chunks/REPL-0.6.7-q0nc0w32.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.6.7-pdhahpga.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-0.6.7-m392exrv.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-0.6.7-1dr1gjn2.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.6.7-sv7jdzae.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.6.7-p36an880.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.6.7-aefcv1eq.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.6.7-ff2nyjj7.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.6.7-seknmzsh.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.6.7-0w1yte74.mjs +1 -0
  30. package/dist/chunks/add-dir-0.6.7-85gjr3q5.mjs +1 -0
  31. package/dist/chunks/agents-0.6.7-bwmzpbmy.mjs +110 -0
  32. package/dist/chunks/agents-0.6.7-zctgtzc9.mjs +3 -0
  33. package/dist/chunks/api-0.6.7-mfw9d6jg.mjs +1 -0
  34. package/dist/chunks/asciicast-0.6.7-tecyvajs.mjs +1 -0
  35. package/dist/chunks/assistant-0.6.7-0krnapvp.mjs +1 -0
  36. package/dist/chunks/auth-0.6.7-vsm2s3fs.mjs +1 -0
  37. package/dist/chunks/auth-0.6.7-y4kcahyj.mjs +1 -0
  38. package/dist/chunks/autoMode-0.6.7-ysajwbz7.mjs +48 -0
  39. package/dist/chunks/autoUpdater-0.6.7-ztgvnr84.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-0.6.7-hyrc03zs.mjs +1 -0
  41. package/dist/chunks/branch-0.6.7-hs9qva1m.mjs +4 -0
  42. package/dist/chunks/bridge-0.6.7-6tz3q7eh.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-0.6.7-nb52xna6.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-0.6.7-a4xw7wv8.mjs +1 -0
  45. package/dist/chunks/bridgeMain-0.6.7-tdh5qxzb.mjs +88 -0
  46. package/dist/chunks/bridgePointer-0.6.7-dh27kqnd.mjs +1 -0
  47. package/dist/chunks/btw-0.6.7-7mwpkxc8.mjs +1 -0
  48. package/dist/chunks/buddy-0.6.7-nq3yjbfx.mjs +3 -0
  49. package/dist/chunks/cacache-0.6.7-g9830zbt.mjs +1 -0
  50. package/dist/chunks/cache-probe-0.6.7-f97mkfrz.mjs +21 -0
  51. package/dist/chunks/cacheStats-0.6.7-cajakjmn.mjs +4 -0
  52. package/dist/chunks/caches-0.6.7-j5y9mwvb.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-0.6.7-86f3d3gt.mjs +1 -0
  54. package/dist/chunks/claudemd-0.6.7-bhnp37nv.mjs +1 -0
  55. package/dist/chunks/clear-0.6.7-b2weanr6.mjs +1 -0
  56. package/dist/chunks/clearTerminal-0.6.7-dtmyqs1m.mjs +1 -0
  57. package/dist/chunks/cli-0.6.7-04v8p8ay.mjs +2 -0
  58. package/dist/chunks/cli-0.6.7-09aymh1b.mjs +2 -0
  59. package/dist/chunks/cli-0.6.7-0a04vzzk.mjs +28 -0
  60. package/dist/chunks/cli-0.6.7-0a406bqw.mjs +2 -0
  61. package/dist/chunks/cli-0.6.7-0c5ban8m.mjs +2 -0
  62. package/dist/chunks/cli-0.6.7-0ecsc6v5.mjs +2 -0
  63. package/dist/chunks/cli-0.6.7-0eeyfjk8.mjs +2 -0
  64. package/dist/chunks/cli-0.6.7-0fc4sq47.mjs +42 -0
  65. package/dist/chunks/cli-0.6.7-0ncx2c9t.mjs +2 -0
  66. package/dist/chunks/cli-0.6.7-0qzj0d6r.mjs +2 -0
  67. package/dist/chunks/cli-0.6.7-0t1e9vab.mjs +2 -0
  68. package/dist/chunks/cli-0.6.7-0t5ssfvj.mjs +2 -0
  69. package/dist/chunks/cli-0.6.7-0z5z87v6.mjs +1 -0
  70. package/dist/chunks/cli-0.6.7-105zxdx5.mjs +2 -0
  71. package/dist/chunks/cli-0.6.7-11a89p5q.mjs +2 -0
  72. package/dist/chunks/cli-0.6.7-15mn3n46.mjs +2 -0
  73. package/dist/chunks/cli-0.6.7-17dafwxd.mjs +2 -0
  74. package/dist/chunks/cli-0.6.7-1jmt8r8f.mjs +7 -0
  75. package/dist/chunks/cli-0.6.7-1mvkcg2k.mjs +2 -0
  76. package/dist/chunks/cli-0.6.7-1nxk10ra.mjs +12 -0
  77. package/dist/chunks/cli-0.6.7-1v8p5kj1.mjs +2 -0
  78. package/dist/chunks/cli-0.6.7-1vdk7j2f.mjs +2 -0
  79. package/dist/chunks/cli-0.6.7-1wy6neqr.mjs +2 -0
  80. package/dist/chunks/cli-0.6.7-26ph2hrd.mjs +2 -0
  81. package/dist/chunks/cli-0.6.7-26tkvqk3.mjs +2 -0
  82. package/dist/chunks/cli-0.6.7-29j5a7qt.mjs +2 -0
  83. package/dist/chunks/cli-0.6.7-2kkhf54p.mjs +133 -0
  84. package/dist/chunks/cli-0.6.7-2rppvwcw.mjs +2 -0
  85. package/dist/chunks/cli-0.6.7-2rxv4h2n.mjs +5348 -0
  86. package/dist/chunks/cli-0.6.7-30y87jp9.mjs +3 -0
  87. package/dist/chunks/cli-0.6.7-31vjvqm0.mjs +2 -0
  88. package/dist/chunks/cli-0.6.7-32sp32ph.mjs +2 -0
  89. package/dist/chunks/cli-0.6.7-37a1n221.mjs +2 -0
  90. package/dist/chunks/cli-0.6.7-393mf77x.mjs +2 -0
  91. package/dist/chunks/cli-0.6.7-3anc14y3.mjs +2 -0
  92. package/dist/chunks/cli-0.6.7-3nk6g2dp.mjs +2 -0
  93. package/dist/chunks/cli-0.6.7-3rkngb3p.mjs +2 -0
  94. package/dist/chunks/cli-0.6.7-3w59rctc.mjs +2 -0
  95. package/dist/chunks/cli-0.6.7-3zgmbaw1.mjs +2 -0
  96. package/dist/chunks/cli-0.6.7-417g4eq7.mjs +2 -0
  97. package/dist/chunks/cli-0.6.7-4723xt8g.mjs +4 -0
  98. package/dist/chunks/cli-0.6.7-4qezg54y.mjs +2 -0
  99. package/dist/chunks/cli-0.6.7-4qv89taa.mjs +2 -0
  100. package/dist/chunks/cli-0.6.7-4r8s96as.mjs +18 -0
  101. package/dist/chunks/cli-0.6.7-4rswb0s0.mjs +2 -0
  102. package/dist/chunks/cli-0.6.7-4y6eh566.mjs +2 -0
  103. package/dist/chunks/cli-0.6.7-568qkrtn.mjs +2 -0
  104. package/dist/chunks/cli-0.6.7-5jkermx7.mjs +2 -0
  105. package/dist/chunks/cli-0.6.7-5tksrgt5.mjs +2 -0
  106. package/dist/chunks/cli-0.6.7-5y4c00t6.mjs +2 -0
  107. package/dist/chunks/cli-0.6.7-6ezmhmp0.mjs +67 -0
  108. package/dist/chunks/cli-0.6.7-6fh5e7r0.mjs +2 -0
  109. package/dist/chunks/cli-0.6.7-79a1ryqj.mjs +17 -0
  110. package/dist/chunks/cli-0.6.7-7eze8zyh.mjs +2 -0
  111. package/dist/chunks/cli-0.6.7-7ggj90ge.mjs +26 -0
  112. package/dist/chunks/cli-0.6.7-7hqt2520.mjs +2 -0
  113. package/dist/chunks/cli-0.6.7-7jnmn6s1.mjs +2 -0
  114. package/dist/chunks/cli-0.6.7-7p1zvk1f.mjs +4 -0
  115. package/dist/chunks/cli-0.6.7-7q89ngt8.mjs +4 -0
  116. package/dist/chunks/cli-0.6.7-7wfcpd35.mjs +5 -0
  117. package/dist/chunks/cli-0.6.7-895afk0q.mjs +39 -0
  118. package/dist/chunks/cli-0.6.7-8hg68yde.mjs +3 -0
  119. package/dist/chunks/cli-0.6.7-8npy06pd.mjs +2 -0
  120. package/dist/chunks/cli-0.6.7-8nt66wx8.mjs +2 -0
  121. package/dist/chunks/cli-0.6.7-8rckbxrq.mjs +2 -0
  122. package/dist/chunks/cli-0.6.7-94jxfcfx.mjs +2 -0
  123. package/dist/chunks/cli-0.6.7-986a2c9a.mjs +20 -0
  124. package/dist/chunks/cli-0.6.7-9ewdkgf6.mjs +2 -0
  125. package/dist/chunks/cli-0.6.7-9qjmzyph.mjs +59 -0
  126. package/dist/chunks/cli-0.6.7-9zvbhkwn.mjs +2 -0
  127. package/dist/chunks/cli-0.6.7-a49h84jx.mjs +2 -0
  128. package/dist/chunks/cli-0.6.7-a8d5a7gy.mjs +2 -0
  129. package/dist/chunks/cli-0.6.7-ad305tsz.mjs +2 -0
  130. package/dist/chunks/cli-0.6.7-aj0r6e7f.mjs +2 -0
  131. package/dist/chunks/cli-0.6.7-ajy2kcrw.mjs +4 -0
  132. package/dist/chunks/cli-0.6.7-askr0gdn.mjs +12 -0
  133. package/dist/chunks/cli-0.6.7-axgab18a.mjs +2 -0
  134. package/dist/chunks/cli-0.6.7-b6ssk5st.mjs +50 -0
  135. package/dist/chunks/cli-0.6.7-bf5gjw6d.mjs +4 -0
  136. package/dist/chunks/cli-0.6.7-bgtwgprg.mjs +2 -0
  137. package/dist/chunks/cli-0.6.7-bvke740f.mjs +58 -0
  138. package/dist/chunks/cli-0.6.7-bvsyxh29.mjs +45 -0
  139. package/dist/chunks/cli-0.6.7-c9drqby8.mjs +5 -0
  140. package/dist/chunks/cli-0.6.7-cc1w6ch6.mjs +2 -0
  141. package/dist/chunks/cli-0.6.7-csw6s95q.mjs +2 -0
  142. package/dist/chunks/cli-0.6.7-cykfmytk.mjs +2 -0
  143. package/dist/chunks/cli-0.6.7-d0hce9x9.mjs +2 -0
  144. package/dist/chunks/cli-0.6.7-d513frqa.mjs +2 -0
  145. package/dist/chunks/cli-0.6.7-d6md6s9z.mjs +2 -0
  146. package/dist/chunks/cli-0.6.7-dn51gm8s.mjs +2 -0
  147. package/dist/chunks/cli-0.6.7-dzhzeyee.mjs +2 -0
  148. package/dist/chunks/cli-0.6.7-e96htnt8.mjs +2 -0
  149. package/dist/chunks/cli-0.6.7-egf9dysz.mjs +2 -0
  150. package/dist/chunks/cli-0.6.7-ej85ys91.mjs +133 -0
  151. package/dist/chunks/cli-0.6.7-ery7wb2b.mjs +25 -0
  152. package/dist/chunks/cli-0.6.7-ewn2cwb7.mjs +6 -0
  153. package/dist/chunks/cli-0.6.7-ex9w59mx.mjs +3 -0
  154. package/dist/chunks/cli-0.6.7-fbgdkq7p.mjs +2 -0
  155. package/dist/chunks/cli-0.6.7-fbkbnkmx.mjs +2 -0
  156. package/dist/chunks/cli-0.6.7-g3bdwra6.mjs +12 -0
  157. package/dist/chunks/cli-0.6.7-g4r471w6.mjs +15 -0
  158. package/dist/chunks/cli-0.6.7-ggbx3zye.mjs +21 -0
  159. package/dist/chunks/cli-0.6.7-gj1zv8je.mjs +2 -0
  160. package/dist/chunks/cli-0.6.7-gp1x8mcf.mjs +2 -0
  161. package/dist/chunks/cli-0.6.7-hcp3t5gk.mjs +2 -0
  162. package/dist/chunks/cli-0.6.7-hd512c6x.mjs +2 -0
  163. package/dist/chunks/cli-0.6.7-hsf1v92p.mjs +2 -0
  164. package/dist/chunks/cli-0.6.7-hsxghzzr.mjs +2 -0
  165. package/dist/chunks/cli-0.6.7-hvjb13p8.mjs +2 -0
  166. package/dist/chunks/cli-0.6.7-hxpbsv1t.mjs +2 -0
  167. package/dist/chunks/cli-0.6.7-jayzyra3.mjs +2 -0
  168. package/dist/chunks/cli-0.6.7-jry3hr0z.mjs +18 -0
  169. package/dist/chunks/cli-0.6.7-jt8cfe25.mjs +3 -0
  170. package/dist/chunks/cli-0.6.7-jvyry09r.mjs +3 -0
  171. package/dist/chunks/cli-0.6.7-k0h6t7d8.mjs +3 -0
  172. package/dist/chunks/cli-0.6.7-k69edthm.mjs +2 -0
  173. package/dist/chunks/cli-0.6.7-k7qq705k.mjs +2 -0
  174. package/dist/chunks/cli-0.6.7-kfm63wm2.mjs +17 -0
  175. package/dist/chunks/cli-0.6.7-m5a4md2p.mjs +24 -0
  176. package/dist/chunks/cli-0.6.7-m7f7sbcz.mjs +3 -0
  177. package/dist/chunks/cli-0.6.7-m9gs7avb.mjs +2 -0
  178. package/dist/chunks/cli-0.6.7-me667czz.mjs +2 -0
  179. package/dist/chunks/cli-0.6.7-mfw4bdkw.mjs +2 -0
  180. package/dist/chunks/cli-0.6.7-mgzf6br3.mjs +2 -0
  181. package/dist/chunks/cli-0.6.7-mh4wva6p.mjs +2 -0
  182. package/dist/chunks/cli-0.6.7-mjkd8p19.mjs +16 -0
  183. package/dist/chunks/cli-0.6.7-mq2xzatd.mjs +34 -0
  184. package/dist/chunks/cli-0.6.7-mr3rwnv4.mjs +2 -0
  185. package/dist/chunks/cli-0.6.7-msab4rsa.mjs +3 -0
  186. package/dist/chunks/cli-0.6.7-mxbbt73y.mjs +2 -0
  187. package/dist/chunks/cli-0.6.7-n4hcg1jw.mjs +2 -0
  188. package/dist/chunks/cli-0.6.7-n7v99j1c.mjs +3 -0
  189. package/dist/chunks/cli-0.6.7-n9b6fykd.mjs +2 -0
  190. package/dist/chunks/cli-0.6.7-ndz1ybhe.mjs +2 -0
  191. package/dist/chunks/cli-0.6.7-nembqgq6.mjs +4 -0
  192. package/dist/chunks/cli-0.6.7-njtz9caz.mjs +2 -0
  193. package/dist/chunks/cli-0.6.7-nkk7dy60.mjs +3 -0
  194. package/dist/chunks/cli-0.6.7-nkngqbzm.mjs +2 -0
  195. package/dist/chunks/cli-0.6.7-nmasp64q.mjs +2 -0
  196. package/dist/chunks/cli-0.6.7-nsaek892.mjs +2 -0
  197. package/dist/chunks/cli-0.6.7-nyj8vj8s.mjs +2 -0
  198. package/dist/chunks/cli-0.6.7-p01n2g5q.mjs +3 -0
  199. package/dist/chunks/cli-0.6.7-p0s9xa7d.mjs +2 -0
  200. package/dist/chunks/cli-0.6.7-p140ghs7.mjs +4 -0
  201. package/dist/chunks/cli-0.6.7-p1s9dq5f.mjs +2 -0
  202. package/dist/chunks/cli-0.6.7-p76h2hj4.mjs +193 -0
  203. package/dist/chunks/cli-0.6.7-p77b3p80.mjs +4 -0
  204. package/dist/chunks/cli-0.6.7-p8qqm0e2.mjs +10 -0
  205. package/dist/chunks/cli-0.6.7-pacmjx4t.mjs +6 -0
  206. package/dist/chunks/cli-0.6.7-pd4qacrw.mjs +2 -0
  207. package/dist/chunks/cli-0.6.7-pt6c37tf.mjs +2 -0
  208. package/dist/chunks/cli-0.6.7-pz0hvq11.mjs +2 -0
  209. package/dist/chunks/cli-0.6.7-q2qk5c16.mjs +2 -0
  210. package/dist/chunks/cli-0.6.7-q7rhxc3k.mjs +2 -0
  211. package/dist/chunks/cli-0.6.7-qcc8znjg.mjs +2 -0
  212. package/dist/chunks/cli-0.6.7-qkzax44g.mjs +2 -0
  213. package/dist/chunks/cli-0.6.7-qnpad07x.mjs +15 -0
  214. package/dist/chunks/cli-0.6.7-qwv7z40j.mjs +2 -0
  215. package/dist/chunks/cli-0.6.7-qz4f20t8.mjs +9 -0
  216. package/dist/chunks/cli-0.6.7-r2phypw4.mjs +2 -0
  217. package/dist/chunks/cli-0.6.7-r4494gs0.mjs +2 -0
  218. package/dist/chunks/cli-0.6.7-r4njgjve.mjs +2 -0
  219. package/dist/chunks/cli-0.6.7-r57fq6gw.mjs +4 -0
  220. package/dist/chunks/cli-0.6.7-rcx8mb9z.mjs +2 -0
  221. package/dist/chunks/cli-0.6.7-rgfh878z.mjs +2 -0
  222. package/dist/chunks/cli-0.6.7-rp0ejp3a.mjs +2 -0
  223. package/dist/chunks/cli-0.6.7-rq1v6xnn.mjs +2 -0
  224. package/dist/chunks/cli-0.6.7-rqfxfpg7.mjs +2 -0
  225. package/dist/chunks/cli-0.6.7-sdxzxe1y.mjs +2 -0
  226. package/dist/chunks/cli-0.6.7-sea2kbnt.mjs +2 -0
  227. package/dist/chunks/cli-0.6.7-sfc53wbe.mjs +2 -0
  228. package/dist/chunks/cli-0.6.7-sfvrze2k.mjs +2 -0
  229. package/dist/chunks/cli-0.6.7-sh9fbs9v.mjs +2 -0
  230. package/dist/chunks/cli-0.6.7-sw46gwfw.mjs +2 -0
  231. package/dist/chunks/cli-0.6.7-sx1q6ybw.mjs +2 -0
  232. package/dist/chunks/cli-0.6.7-t4vdc40t.mjs +2 -0
  233. package/dist/chunks/cli-0.6.7-tb1cvasf.mjs +5 -0
  234. package/dist/chunks/cli-0.6.7-tg6w7ex7.mjs +8 -0
  235. package/dist/chunks/cli-0.6.7-tnrt8ht0.mjs +2 -0
  236. package/dist/chunks/cli-0.6.7-tqfm4g33.mjs +2 -0
  237. package/dist/chunks/cli-0.6.7-tthw17vc.mjs +6 -0
  238. package/dist/chunks/cli-0.6.7-v1emd8z7.mjs +4 -0
  239. package/dist/chunks/cli-0.6.7-v65b4qmr.mjs +2 -0
  240. package/dist/chunks/cli-0.6.7-v82zs0dw.mjs +6 -0
  241. package/dist/chunks/cli-0.6.7-vd2t62t5.mjs +2 -0
  242. package/dist/chunks/cli-0.6.7-vdks0afp.mjs +3 -0
  243. package/dist/chunks/cli-0.6.7-vs95ynh5.mjs +2 -0
  244. package/dist/chunks/cli-0.6.7-vy64g49j.mjs +2 -0
  245. package/dist/chunks/cli-0.6.7-w2amr6nt.mjs +2 -0
  246. package/dist/chunks/cli-0.6.7-wbqq7cmg.mjs +15 -0
  247. package/dist/chunks/cli-0.6.7-wjg0q7hk.mjs +2 -0
  248. package/dist/chunks/cli-0.6.7-wyped9p6.mjs +2 -0
  249. package/dist/chunks/cli-0.6.7-xjbwt2hg.mjs +2 -0
  250. package/dist/chunks/cli-0.6.7-xzf3g8pg.mjs +3 -0
  251. package/dist/chunks/cli-0.6.7-y6pqw2vj.mjs +2 -0
  252. package/dist/chunks/cli-0.6.7-ybk07j40.mjs +2 -0
  253. package/dist/chunks/cli-0.6.7-z26mhn5a.mjs +2 -0
  254. package/dist/chunks/cli-0.6.7-z4dw5tyz.mjs +2 -0
  255. package/dist/chunks/cli-0.6.7-z7jett9s.mjs +2 -0
  256. package/dist/chunks/cli-0.6.7-zwd8kz5t.mjs +24 -0
  257. package/dist/chunks/cli-0.6.7-zwf5adf9.mjs +2 -0
  258. package/dist/chunks/client-0.6.7-445v9987.mjs +1 -0
  259. package/dist/chunks/color-0.6.7-856m55kg.mjs +1 -0
  260. package/dist/chunks/compact-0.6.7-xkjxsjky.mjs +3 -0
  261. package/dist/chunks/config-0.6.7-8cp9wg00.mjs +1 -0
  262. package/dist/chunks/config-0.6.7-h357gwre.mjs +1 -0
  263. package/dist/chunks/constants-0.6.7-jz2rzgah.mjs +1 -0
  264. package/dist/chunks/context-0.6.7-52mqtjt5.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-0.6.7-0vn31bty.mjs +1 -0
  266. package/dist/chunks/conversation-0.6.7-6rb0jxt5.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-0.6.7-6szcxcqp.mjs +1 -0
  268. package/dist/chunks/copy-0.6.7-kt6m78c9.mjs +9 -0
  269. package/dist/chunks/cost-0.6.7-mcmacwts.mjs +1 -0
  270. package/dist/chunks/createSSHSession-0.6.7-2bxjzphp.mjs +1 -0
  271. package/dist/chunks/createSession-0.6.7-h53s0r94.mjs +1 -0
  272. package/dist/chunks/debug-0.6.7-40mxhr43.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-0.6.7-swjqrq2d.mjs +1367 -0
  274. package/dist/chunks/desktop-0.6.7-m8hceses.mjs +1 -0
  275. package/dist/chunks/detectRepository-0.6.7-37snr69q.mjs +1 -0
  276. package/dist/chunks/detection-0.6.7-796dd7my.mjs +1 -0
  277. package/dist/chunks/diff-0.6.7-jvhy5bfv.mjs +1 -0
  278. package/dist/chunks/doctor-0.6.7-69xecv72.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-0.6.7-86wn5fas.mjs +1 -0
  280. package/dist/chunks/earlyInput-0.6.7-j5kqcad7.mjs +1 -0
  281. package/dist/chunks/effort-0.6.7-pzsgdygp.mjs +10 -0
  282. package/dist/chunks/envLessBridgeConfig-0.6.7-8ev8zrnr.mjs +1 -0
  283. package/dist/chunks/envUtils-0.6.7-t2mfcf3k.mjs +1 -0
  284. package/dist/chunks/environmentSelection-0.6.7-qsjyn0qh.mjs +1 -0
  285. package/dist/chunks/environments-0.6.7-s37ppzq2.mjs +1 -0
  286. package/dist/chunks/errors-0.6.7-ewn9ej98.mjs +1 -0
  287. package/dist/chunks/exampleCommands-0.6.7-ha5gh86w.mjs +1 -0
  288. package/dist/chunks/exit-0.6.7-ke7w1zfb.mjs +1 -0
  289. package/dist/chunks/explorer-0.6.7-mwasq7vb.mjs +1 -0
  290. package/dist/chunks/export-0.6.7-nxr4yk69.mjs +2 -0
  291. package/dist/chunks/extra-usage-0.6.7-4y4y16s7.mjs +1 -0
  292. package/dist/chunks/extra-usage-noninteractive-0.6.7-39bqy32f.mjs +1 -0
  293. package/dist/chunks/fast-0.6.7-kq9cp91g.mjs +1 -0
  294. package/dist/chunks/feedback-0.6.7-negh6v8m.mjs +14 -0
  295. package/dist/chunks/firstPartyEventLogger-0.6.7-tx7c7x8t.mjs +1 -0
  296. package/dist/chunks/git-0.6.7-2vwe8z3v.mjs +1 -0
  297. package/dist/chunks/githubModelsCredentials-0.6.7-33qbe5yn.mjs +1 -0
  298. package/dist/chunks/goal-0.6.7-h6jz54qb.mjs +4 -0
  299. package/dist/chunks/grove-0.6.7-54ezkxs0.mjs +1 -0
  300. package/dist/chunks/growthbook-0.6.7-dtryf1q9.mjs +1 -0
  301. package/dist/chunks/headless-0.6.7-35yksmzv.mjs +2 -0
  302. package/dist/chunks/heapdump-0.6.7-k6xhk8rq.mjs +6 -0
  303. package/dist/chunks/help-0.6.7-xe78z9ep.mjs +1 -0
  304. package/dist/chunks/hookChains-0.6.7-cr0c8y5v.mjs +3 -0
  305. package/dist/chunks/hooks-0.6.7-3dzcec4j.mjs +79 -0
  306. package/dist/chunks/hooks-0.6.7-8d0h5mh8.mjs +1 -0
  307. package/dist/chunks/ide-0.6.7-5yx4zawt.mjs +3 -0
  308. package/dist/chunks/image-processor-napi-0.6.7-58mhvg4s.mjs +1 -0
  309. package/dist/chunks/inboundAttachments-0.6.7-9afh5jdh.mjs +1 -0
  310. package/dist/chunks/index-0.6.7-0p9m5cfc.mjs +1 -0
  311. package/dist/chunks/index-0.6.7-1ngjds1q.mjs +30 -0
  312. package/dist/chunks/index-0.6.7-269433vt.mjs +2 -0
  313. package/dist/chunks/index-0.6.7-299hd0kq.mjs +1 -0
  314. package/dist/chunks/index-0.6.7-2p1qzv7b.mjs +9 -0
  315. package/dist/chunks/index-0.6.7-7fw7s1w6.mjs +1 -0
  316. package/dist/chunks/index-0.6.7-938hete3.mjs +1 -0
  317. package/dist/chunks/index-0.6.7-9qxbggwj.mjs +1 -0
  318. package/dist/chunks/index-0.6.7-adw6e99t.mjs +1 -0
  319. package/dist/chunks/index-0.6.7-da5n32m6.mjs +1 -0
  320. package/dist/chunks/index-0.6.7-ebdnq1xs.mjs +1 -0
  321. package/dist/chunks/index-0.6.7-fewh0t9g.mjs +1 -0
  322. package/dist/chunks/index-0.6.7-jyep217e.mjs +1 -0
  323. package/dist/chunks/index-0.6.7-mmh99nq4.mjs +1 -0
  324. package/dist/chunks/index-0.6.7-p9vm0q7s.mjs +2 -0
  325. package/dist/chunks/index-0.6.7-pspakten.mjs +1 -0
  326. package/dist/chunks/index-0.6.7-qy50jasm.mjs +5 -0
  327. package/dist/chunks/index-0.6.7-r7sewgza.mjs +1 -0
  328. package/dist/chunks/index-0.6.7-tet87444.mjs +1 -0
  329. package/dist/chunks/index-0.6.7-vwv8f9ey.mjs +1 -0
  330. package/dist/chunks/index-0.6.7-xhxjqdft.mjs +1 -0
  331. package/dist/chunks/index-0.6.7-yc13tnk8.mjs +1 -0
  332. package/dist/chunks/index-0.6.7-zm9ed9xd.mjs +9 -0
  333. package/dist/chunks/init-0.6.7-9mxee8s9.mjs +1 -0
  334. package/dist/chunks/initReplBridge-0.6.7-2v1w7wq6.mjs +1 -0
  335. package/dist/chunks/ink-0.6.7-24swqw8m.mjs +1 -0
  336. package/dist/chunks/insights-0.6.7-wf368crb.mjs +870 -0
  337. package/dist/chunks/install-0.6.7-a9dezzjy.mjs +1 -0
  338. package/dist/chunks/install-github-app-0.6.7-wr0r1fb5.mjs +149 -0
  339. package/dist/chunks/install-slack-app-0.6.7-ftc8w786.mjs +1 -0
  340. package/dist/chunks/instrumentation-0.6.7-y1xv08zm.mjs +1 -0
  341. package/dist/chunks/interactiveHelpers-0.6.7-kg2yqwhs.mjs +1 -0
  342. package/dist/chunks/keybindings-0.6.7-xa10wdn0.mjs +2 -0
  343. package/dist/chunks/knowledge-0.6.7-p8ys3wf6.mjs +2 -0
  344. package/dist/chunks/latestVersionCache-0.6.7-7ss3jynk.mjs +1 -0
  345. package/dist/chunks/loadAgentsDir-0.6.7-g16npyc7.mjs +1 -0
  346. package/dist/chunks/loadPluginHooks-0.6.7-d1p7v7wd.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-0.6.7-qy17rc72.mjs +1 -0
  348. package/dist/chunks/log-0.6.7-a9pyn4zr.mjs +1 -0
  349. package/dist/chunks/main-0.6.7-epme77xk.mjs +1 -0
  350. package/dist/chunks/managedEnv-0.6.7-1h0tpwq1.mjs +1 -0
  351. package/dist/chunks/mcp-0.6.7-1pq6d47c.mjs +17 -0
  352. package/dist/chunks/mcp-0.6.7-krdmdzbj.mjs +4 -0
  353. package/dist/chunks/mcp-0.6.7-sh0wnst3.mjs +1 -0
  354. package/dist/chunks/mcpb-0.6.7-wethrsb6.mjs +1 -0
  355. package/dist/chunks/memory-0.6.7-wwbx8j9h.mjs +3 -0
  356. package/dist/chunks/model-0.6.7-bnf162h5.mjs +2 -0
  357. package/dist/chunks/model-0.6.7-ta2zt9yw.mjs +1 -0
  358. package/dist/chunks/node-0.6.7-9wgtbtkn.mjs +12 -0
  359. package/dist/chunks/oauth-0.6.7-ecry38es.mjs +1 -0
  360. package/dist/chunks/openaiShim-0.6.7-6haddefk.mjs +14 -0
  361. package/dist/chunks/output-style-0.6.7-heg5p49f.mjs +1 -0
  362. package/dist/chunks/package-FMOR3ELU-0.6.7-g0c2811q.mjs +1 -0
  363. package/dist/chunks/parseConnectUrl-0.6.7-rmje9xpc.mjs +1 -0
  364. package/dist/chunks/parser-0.6.7-dwxttek7.mjs +1 -0
  365. package/dist/chunks/passes-0.6.7-6md5xpaz.mjs +1 -0
  366. package/dist/chunks/permissions-0.6.7-25nzz9y0.mjs +3 -0
  367. package/dist/chunks/permissions-0.6.7-bm6zx02e.mjs +1 -0
  368. package/dist/chunks/plan-0.6.7-9pxaje2z.mjs +1 -0
  369. package/dist/chunks/plist-0.6.7-vcn459ke.mjs +1 -0
  370. package/dist/chunks/plugin-0.6.7-a5erdt59.mjs +29 -0
  371. package/dist/chunks/pluginStartupCheck-0.6.7-4v446m9d.mjs +1 -0
  372. package/dist/chunks/plugins-0.6.7-g2r5qgvr.mjs +9 -0
  373. package/dist/chunks/preActionHook-0.6.7-m3b66d2g.mjs +2 -0
  374. package/dist/chunks/print-0.6.7-qwsqdjpa.mjs +57 -0
  375. package/dist/chunks/privacy-settings-0.6.7-f7mdzrj9.mjs +1 -0
  376. package/dist/chunks/process-0.6.7-mwpj2ag5.mjs +1 -0
  377. package/dist/chunks/processBashCommand-0.6.7-zmq7s8bg.mjs +1 -0
  378. package/dist/chunks/processSlashCommand-0.6.7-aeq77f0r.mjs +9 -0
  379. package/dist/chunks/prompt-0.6.7-bjk6r969.mjs +1 -0
  380. package/dist/chunks/prompt-0.6.7-cqwn4ebm.mjs +1 -0
  381. package/dist/chunks/prompts-0.6.7-sx1ddpn3.mjs +1 -0
  382. package/dist/chunks/protocolHandler-0.6.7-4htrgj10.mjs +13 -0
  383. package/dist/chunks/provider-0.6.7-cf13j8jp.mjs +2 -0
  384. package/dist/chunks/providerProfiles-0.6.7-s1vbbbf8.mjs +1 -0
  385. package/dist/chunks/providerValidation-0.6.7-d5tsv9wn.mjs +6 -0
  386. package/dist/chunks/rate-limit-options-0.6.7-xxb91evy.mjs +1 -0
  387. package/dist/chunks/registerSubcommands-0.6.7-qmmn95tv.mjs +34 -0
  388. package/dist/chunks/registry-0.6.7-vnf153w2.mjs +1 -0
  389. package/dist/chunks/release-notes-0.6.7-140nchxs.mjs +5 -0
  390. package/dist/chunks/reload-plugins-0.6.7-2zjnq8rk.mjs +2 -0
  391. package/dist/chunks/remote-env-0.6.7-dmn903f9.mjs +1 -0
  392. package/dist/chunks/remoteBridgeCore-0.6.7-vjavg15v.mjs +1 -0
  393. package/dist/chunks/remoteSession-0.6.7-j6t9wnvq.mjs +1 -0
  394. package/dist/chunks/rename-0.6.7-9hky49hm.mjs +1 -0
  395. package/dist/chunks/replBridgeHandle-0.6.7-fg56fjhe.mjs +1 -0
  396. package/dist/chunks/replLauncher-0.6.7-135zqkvm.mjs +1 -0
  397. package/dist/chunks/resume-0.6.7-ag66nvjc.mjs +2 -0
  398. package/dist/chunks/rewind-0.6.7-pbgnt37r.mjs +1 -0
  399. package/dist/chunks/rootOptions-0.6.7-dhbhchhw.mjs +1 -0
  400. package/dist/chunks/sandbox-adapter-0.6.7-wav9ed7k.mjs +1 -0
  401. package/dist/chunks/sandbox-toggle-0.6.7-xvjvjn90.mjs +1 -0
  402. package/dist/chunks/session-0.6.7-dv8ptwrb.mjs +2 -0
  403. package/dist/chunks/sessionDiscovery-0.6.7-k5zpyw84.mjs +1 -0
  404. package/dist/chunks/sessionFileAccessHooks-0.6.7-rrcrsek8.mjs +1 -0
  405. package/dist/chunks/sessionStorage-0.6.7-fx0mbvg6.mjs +1 -0
  406. package/dist/chunks/settings-0.6.7-nwqqfy0f.mjs +1 -0
  407. package/dist/chunks/setup-0.6.7-1w2gtqvq.mjs +5 -0
  408. package/dist/chunks/sinks-0.6.7-rh7wgd1s.mjs +1 -0
  409. package/dist/chunks/skills-0.6.7-p7nm0dqx.mjs +1 -0
  410. package/dist/chunks/startupProfiler-0.6.7-0sgmtd5m.mjs +1 -0
  411. package/dist/chunks/startupUpdateCheck-0.6.7-pe8vnbmy.mjs +1 -0
  412. package/dist/chunks/state-0.6.7-7zgmm7bx.mjs +1 -0
  413. package/dist/chunks/stats-0.6.7-qwjhmd0m.mjs +6 -0
  414. package/dist/chunks/status-0.6.7-4dybregh.mjs +1 -0
  415. package/dist/chunks/stickers-0.6.7-me3v3dmh.mjs +1 -0
  416. package/dist/chunks/subprocessEnv-0.6.7-qnce4qzp.mjs +1 -0
  417. package/dist/chunks/tasks-0.6.7-sbx5a37t.mjs +1 -0
  418. package/dist/chunks/teamHelpers-0.6.7-pwbpqycb.mjs +1 -0
  419. package/dist/chunks/teammateModeSnapshot-0.6.7-qef93h04.mjs +1 -0
  420. package/dist/chunks/teleport-0.6.7-rtj4ts5d.mjs +1 -0
  421. package/dist/chunks/terminalSetup-0.6.7-tka4bjp2.mjs +1 -0
  422. package/dist/chunks/theme-0.6.7-x8qqpmm6.mjs +1 -0
  423. package/dist/chunks/thinkback-0.6.7-w6wj1na3.mjs +1 -0
  424. package/dist/chunks/thinkback-play-0.6.7-m433zrvk.mjs +1 -0
  425. package/dist/chunks/toolPool-0.6.7-5x90r1f5.mjs +1 -0
  426. package/dist/chunks/toolSearch-0.6.7-ev30cxmd.mjs +1 -0
  427. package/dist/chunks/tools-0.6.7-w23c68c1.mjs +1 -0
  428. package/dist/chunks/trustedDevice-0.6.7-yp482r12.mjs +1 -0
  429. package/dist/chunks/turndown.cjs-0.6.7-6qtfbqqk.mjs +69 -0
  430. package/dist/chunks/types-0.6.7-q8m8v654.mjs +1 -0
  431. package/dist/chunks/ultrareviewCommand-0.6.7-8azkbc2y.mjs +4 -0
  432. package/dist/chunks/update-0.6.7-gwfz54bh.mjs +86 -0
  433. package/dist/chunks/upgrade-0.6.7-3mraezx0.mjs +1 -0
  434. package/dist/chunks/upload-0.6.7-xxfcdyx1.mjs +7 -0
  435. package/dist/chunks/upstreamproxy-0.6.7-5w2ftmfc.mjs +14 -0
  436. package/dist/chunks/url-handler-napi-0.6.7-3jfvm422.mjs +1 -0
  437. package/dist/chunks/usage-0.6.7-pkmqvqgq.mjs +1 -0
  438. package/dist/chunks/util-0.6.7-3z6r92wt.mjs +1 -0
  439. package/dist/chunks/utils-0.6.7-sdkkjj30.mjs +1 -0
  440. package/dist/chunks/vim-0.6.7-3rsss4ez.mjs +1 -0
  441. package/dist/chunks/watcher-0.6.7-kh7rkhx8.mjs +1 -0
  442. package/dist/chunks/wiki-0.6.7-jrn54nk5.mjs +132 -0
  443. package/dist/chunks/worktree-0.6.7-214cy52d.mjs +1 -0
  444. package/dist/chunks/worktreeModeEnabled-0.6.7-3z7e768n.mjs +1 -0
  445. package/dist/chunks/wrapper-0.6.7-h3kjv9nf.mjs +7 -0
  446. package/dist/claudin-vscode.vsix +0 -0
  447. package/dist/cli.mjs +2 -2
  448. package/package.json +1 -1
  449. package/dist/chunks/AgentTool-0.6.6-bdcafcej.mjs +0 -1
  450. package/dist/chunks/App-0.6.6-k5gj5n4h.mjs +0 -1
  451. package/dist/chunks/ApproveApiKey-0.6.6-7fdtwksv.mjs +0 -1
  452. package/dist/chunks/AssistantSessionChooser-0.6.6-2j0e7ev9.mjs +0 -1
  453. package/dist/chunks/AutoModeOptInDialog-0.6.6-6yx84pzc.mjs +0 -1
  454. package/dist/chunks/BypassPermissionsModeDialog-0.6.6-vjc7apke.mjs +0 -1
  455. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.6-td62cgn4.mjs +0 -1
  456. package/dist/chunks/ConsoleOAuthFlow-0.6.6-5aqhvkcg.mjs +0 -1
  457. package/dist/chunks/DiffDialog-0.6.6-d2jxy48y.mjs +0 -11
  458. package/dist/chunks/Doctor-0.6.6-me4wn4j5.mjs +0 -1
  459. package/dist/chunks/Grove-0.6.6-xfwy6rbw.mjs +0 -1
  460. package/dist/chunks/ITermBackend-0.6.6-qthf2vr3.mjs +0 -1
  461. package/dist/chunks/InvalidConfigDialog-0.6.6-mp5b6a5j.mjs +0 -1
  462. package/dist/chunks/InvalidSettingsDialog-0.6.6-awc54gyk.mjs +0 -1
  463. package/dist/chunks/MigrationDialog-0.6.6-4qg3bf91.mjs +0 -1
  464. package/dist/chunks/Onboarding-0.6.6-fewq1c0b.mjs +0 -1
  465. package/dist/chunks/ProviderManager-0.6.6-cx15mb4s.mjs +0 -1
  466. package/dist/chunks/REPL-0.6.6-ev64pese.mjs +0 -1
  467. package/dist/chunks/ResumeConversation-0.6.6-gkxw58n4.mjs +0 -1
  468. package/dist/chunks/SnapshotUpdateDialog-0.6.6-45f8nb47.mjs +0 -1
  469. package/dist/chunks/TeleportProgress-0.6.6-5314g8tw.mjs +0 -1
  470. package/dist/chunks/TeleportRepoMismatchDialog-0.6.6-w4svp0jn.mjs +0 -1
  471. package/dist/chunks/TeleportResumeWrapper-0.6.6-5vjtrnya.mjs +0 -1
  472. package/dist/chunks/TmuxBackend-0.6.6-rphhdvq8.mjs +0 -9
  473. package/dist/chunks/ToolSearchTool-0.6.6-s2f271df.mjs +0 -1
  474. package/dist/chunks/TrustDialog-0.6.6-s74swp6v.mjs +0 -1
  475. package/dist/chunks/activeProvider-0.6.6-r3wwyv1a.mjs +0 -1
  476. package/dist/chunks/add-dir-0.6.6-nm6s9jm3.mjs +0 -1
  477. package/dist/chunks/agents-0.6.6-yfx529qm.mjs +0 -3
  478. package/dist/chunks/agents-0.6.6-z45zpb7a.mjs +0 -110
  479. package/dist/chunks/api-0.6.6-rrs0y38h.mjs +0 -1
  480. package/dist/chunks/asciicast-0.6.6-qrz006k9.mjs +0 -1
  481. package/dist/chunks/assistant-0.6.6-tfmwrg23.mjs +0 -1
  482. package/dist/chunks/auth-0.6.6-61djjn63.mjs +0 -1
  483. package/dist/chunks/auth-0.6.6-8pgs8nej.mjs +0 -1
  484. package/dist/chunks/autoMode-0.6.6-d0vbqpdq.mjs +0 -48
  485. package/dist/chunks/autoUpdater-0.6.6-xacp5fck.mjs +0 -1
  486. package/dist/chunks/backgroundHousekeeping-0.6.6-dnhts5fj.mjs +0 -1
  487. package/dist/chunks/branch-0.6.6-84wkac2e.mjs +0 -4
  488. package/dist/chunks/bridge-0.6.6-p3dy64f9.mjs +0 -2
  489. package/dist/chunks/bridgeConfig-0.6.6-fvzjs1pa.mjs +0 -1
  490. package/dist/chunks/bridgeEnabled-0.6.6-ge15dg1p.mjs +0 -1
  491. package/dist/chunks/bridgeMain-0.6.6-w0xmef6b.mjs +0 -88
  492. package/dist/chunks/bridgePointer-0.6.6-cba0ahq2.mjs +0 -1
  493. package/dist/chunks/btw-0.6.6-46grbbjr.mjs +0 -1
  494. package/dist/chunks/buddy-0.6.6-90qdgfw4.mjs +0 -3
  495. package/dist/chunks/cacache-0.6.6-v19w3dxf.mjs +0 -1
  496. package/dist/chunks/cache-probe-0.6.6-k4ev06pn.mjs +0 -21
  497. package/dist/chunks/cacheStats-0.6.6-dehpnmz9.mjs +0 -4
  498. package/dist/chunks/caches-0.6.6-4a0mnm1h.mjs +0 -1
  499. package/dist/chunks/claudeDesktop-0.6.6-fhspw8yv.mjs +0 -1
  500. package/dist/chunks/claudemd-0.6.6-s2nktt1h.mjs +0 -1
  501. package/dist/chunks/clear-0.6.6-e06ssw4n.mjs +0 -1
  502. package/dist/chunks/clearTerminal-0.6.6-062bve0j.mjs +0 -1
  503. package/dist/chunks/cli-0.6.6-0ak8r49x.mjs +0 -2
  504. package/dist/chunks/cli-0.6.6-0j61q3w5.mjs +0 -2
  505. package/dist/chunks/cli-0.6.6-0pptmkkg.mjs +0 -4
  506. package/dist/chunks/cli-0.6.6-0w254y38.mjs +0 -2
  507. package/dist/chunks/cli-0.6.6-10re6ept.mjs +0 -2
  508. package/dist/chunks/cli-0.6.6-141tbvn2.mjs +0 -2
  509. package/dist/chunks/cli-0.6.6-1a0fnhh0.mjs +0 -2
  510. package/dist/chunks/cli-0.6.6-1dy4fd01.mjs +0 -2
  511. package/dist/chunks/cli-0.6.6-1jt6s6c8.mjs +0 -2
  512. package/dist/chunks/cli-0.6.6-23snct9d.mjs +0 -5348
  513. package/dist/chunks/cli-0.6.6-27tkk39p.mjs +0 -2
  514. package/dist/chunks/cli-0.6.6-2dtp6rc2.mjs +0 -2
  515. package/dist/chunks/cli-0.6.6-2fasp96a.mjs +0 -2
  516. package/dist/chunks/cli-0.6.6-2gjay42h.mjs +0 -2
  517. package/dist/chunks/cli-0.6.6-2mf6j1pf.mjs +0 -4
  518. package/dist/chunks/cli-0.6.6-36kc5vh1.mjs +0 -3
  519. package/dist/chunks/cli-0.6.6-37wcg59v.mjs +0 -2
  520. package/dist/chunks/cli-0.6.6-3agn70fr.mjs +0 -50
  521. package/dist/chunks/cli-0.6.6-3qbz76xq.mjs +0 -2
  522. package/dist/chunks/cli-0.6.6-3s3k6nsb.mjs +0 -2
  523. package/dist/chunks/cli-0.6.6-3t45jvj0.mjs +0 -2
  524. package/dist/chunks/cli-0.6.6-3t9gkjhn.mjs +0 -8
  525. package/dist/chunks/cli-0.6.6-3ykkcpjf.mjs +0 -2
  526. package/dist/chunks/cli-0.6.6-40n0q9g3.mjs +0 -2
  527. package/dist/chunks/cli-0.6.6-44bk8ev1.mjs +0 -2
  528. package/dist/chunks/cli-0.6.6-4d55s633.mjs +0 -3
  529. package/dist/chunks/cli-0.6.6-4jrf033h.mjs +0 -12
  530. package/dist/chunks/cli-0.6.6-4m7r4esm.mjs +0 -4
  531. package/dist/chunks/cli-0.6.6-4nxq7s1k.mjs +0 -2
  532. package/dist/chunks/cli-0.6.6-4qj9brbk.mjs +0 -2
  533. package/dist/chunks/cli-0.6.6-4qrnzmjb.mjs +0 -2
  534. package/dist/chunks/cli-0.6.6-4r50eqxg.mjs +0 -2
  535. package/dist/chunks/cli-0.6.6-4tp2yb2x.mjs +0 -2
  536. package/dist/chunks/cli-0.6.6-4tzkbyes.mjs +0 -2
  537. package/dist/chunks/cli-0.6.6-504vvx3q.mjs +0 -2
  538. package/dist/chunks/cli-0.6.6-5eww20j0.mjs +0 -2
  539. package/dist/chunks/cli-0.6.6-5p4qy3we.mjs +0 -2
  540. package/dist/chunks/cli-0.6.6-61wnn1as.mjs +0 -3
  541. package/dist/chunks/cli-0.6.6-6gzy2tvk.mjs +0 -12
  542. package/dist/chunks/cli-0.6.6-6p78renb.mjs +0 -2
  543. package/dist/chunks/cli-0.6.6-6zs5dyhh.mjs +0 -20
  544. package/dist/chunks/cli-0.6.6-731hhd3s.mjs +0 -2
  545. package/dist/chunks/cli-0.6.6-73eg8qn0.mjs +0 -2
  546. package/dist/chunks/cli-0.6.6-76rkjh7v.mjs +0 -2
  547. package/dist/chunks/cli-0.6.6-7n7fwzth.mjs +0 -2
  548. package/dist/chunks/cli-0.6.6-7pfzbq40.mjs +0 -2
  549. package/dist/chunks/cli-0.6.6-7r4esgkf.mjs +0 -2
  550. package/dist/chunks/cli-0.6.6-7r817n5d.mjs +0 -2
  551. package/dist/chunks/cli-0.6.6-7s8bhv18.mjs +0 -2
  552. package/dist/chunks/cli-0.6.6-7tnsnb0c.mjs +0 -2
  553. package/dist/chunks/cli-0.6.6-816nja7p.mjs +0 -2
  554. package/dist/chunks/cli-0.6.6-85mqgh7w.mjs +0 -133
  555. package/dist/chunks/cli-0.6.6-8bvd4smw.mjs +0 -3
  556. package/dist/chunks/cli-0.6.6-8e7c224v.mjs +0 -2
  557. package/dist/chunks/cli-0.6.6-8gcxhg7t.mjs +0 -3
  558. package/dist/chunks/cli-0.6.6-8gmesggf.mjs +0 -2
  559. package/dist/chunks/cli-0.6.6-8hzhy95p.mjs +0 -2
  560. package/dist/chunks/cli-0.6.6-8s6h2xee.mjs +0 -3
  561. package/dist/chunks/cli-0.6.6-8vnkmjet.mjs +0 -2
  562. package/dist/chunks/cli-0.6.6-8wwb7c4z.mjs +0 -10
  563. package/dist/chunks/cli-0.6.6-8yvh28tb.mjs +0 -16
  564. package/dist/chunks/cli-0.6.6-92dvpnqv.mjs +0 -3
  565. package/dist/chunks/cli-0.6.6-962my51a.mjs +0 -2
  566. package/dist/chunks/cli-0.6.6-99e532z3.mjs +0 -2
  567. package/dist/chunks/cli-0.6.6-9r04g0xa.mjs +0 -2
  568. package/dist/chunks/cli-0.6.6-9rjdy05g.mjs +0 -2
  569. package/dist/chunks/cli-0.6.6-9tjtzwyt.mjs +0 -2
  570. package/dist/chunks/cli-0.6.6-a2e4eek5.mjs +0 -2
  571. package/dist/chunks/cli-0.6.6-a837m6n5.mjs +0 -2
  572. package/dist/chunks/cli-0.6.6-aep3cnz5.mjs +0 -2
  573. package/dist/chunks/cli-0.6.6-akjyt0hr.mjs +0 -2
  574. package/dist/chunks/cli-0.6.6-akqfmyeb.mjs +0 -2
  575. package/dist/chunks/cli-0.6.6-am3sz82d.mjs +0 -58
  576. package/dist/chunks/cli-0.6.6-ap1eg2xa.mjs +0 -2
  577. package/dist/chunks/cli-0.6.6-apq4h0nf.mjs +0 -2
  578. package/dist/chunks/cli-0.6.6-aq30fm8p.mjs +0 -1
  579. package/dist/chunks/cli-0.6.6-ar43nqjq.mjs +0 -3
  580. package/dist/chunks/cli-0.6.6-arvcw19g.mjs +0 -2
  581. package/dist/chunks/cli-0.6.6-as18fmg3.mjs +0 -2
  582. package/dist/chunks/cli-0.6.6-at7yytqj.mjs +0 -2
  583. package/dist/chunks/cli-0.6.6-axvjexmr.mjs +0 -15
  584. package/dist/chunks/cli-0.6.6-b1wqaqv9.mjs +0 -4
  585. package/dist/chunks/cli-0.6.6-bbv794xs.mjs +0 -4
  586. package/dist/chunks/cli-0.6.6-bn18ty4n.mjs +0 -18
  587. package/dist/chunks/cli-0.6.6-by1ngr5q.mjs +0 -5
  588. package/dist/chunks/cli-0.6.6-c267ckfv.mjs +0 -2
  589. package/dist/chunks/cli-0.6.6-c2xmgnfp.mjs +0 -7
  590. package/dist/chunks/cli-0.6.6-ct7zap14.mjs +0 -2
  591. package/dist/chunks/cli-0.6.6-czhez59x.mjs +0 -2
  592. package/dist/chunks/cli-0.6.6-d0qrt51j.mjs +0 -2
  593. package/dist/chunks/cli-0.6.6-d5dexg4d.mjs +0 -2
  594. package/dist/chunks/cli-0.6.6-dmd73xa3.mjs +0 -2
  595. package/dist/chunks/cli-0.6.6-dmtpt4r7.mjs +0 -17
  596. package/dist/chunks/cli-0.6.6-dnx45tc3.mjs +0 -2
  597. package/dist/chunks/cli-0.6.6-drg8zfkg.mjs +0 -2
  598. package/dist/chunks/cli-0.6.6-e4pcw0z3.mjs +0 -3
  599. package/dist/chunks/cli-0.6.6-eeaxd1dd.mjs +0 -2
  600. package/dist/chunks/cli-0.6.6-efkct3rx.mjs +0 -2
  601. package/dist/chunks/cli-0.6.6-ek8y79wd.mjs +0 -2
  602. package/dist/chunks/cli-0.6.6-en2sexw5.mjs +0 -59
  603. package/dist/chunks/cli-0.6.6-enc586ry.mjs +0 -4
  604. package/dist/chunks/cli-0.6.6-esnwdj9p.mjs +0 -2
  605. package/dist/chunks/cli-0.6.6-ezhp9zxv.mjs +0 -2
  606. package/dist/chunks/cli-0.6.6-f6wc5yc6.mjs +0 -17
  607. package/dist/chunks/cli-0.6.6-fep3xed7.mjs +0 -2
  608. package/dist/chunks/cli-0.6.6-fj9rpekf.mjs +0 -2
  609. package/dist/chunks/cli-0.6.6-g6ja9jcs.mjs +0 -4
  610. package/dist/chunks/cli-0.6.6-g9mdc3pd.mjs +0 -2
  611. package/dist/chunks/cli-0.6.6-gk8s7mch.mjs +0 -67
  612. package/dist/chunks/cli-0.6.6-gte1km05.mjs +0 -2
  613. package/dist/chunks/cli-0.6.6-h02v66zq.mjs +0 -2
  614. package/dist/chunks/cli-0.6.6-h12zw82h.mjs +0 -3
  615. package/dist/chunks/cli-0.6.6-h2aqs05m.mjs +0 -2
  616. package/dist/chunks/cli-0.6.6-h8d7s4qz.mjs +0 -21
  617. package/dist/chunks/cli-0.6.6-h8ew0rcw.mjs +0 -24
  618. package/dist/chunks/cli-0.6.6-hcajyfhg.mjs +0 -6
  619. package/dist/chunks/cli-0.6.6-hejk0ae6.mjs +0 -5
  620. package/dist/chunks/cli-0.6.6-hetrxwwb.mjs +0 -2
  621. package/dist/chunks/cli-0.6.6-heymhe69.mjs +0 -24
  622. package/dist/chunks/cli-0.6.6-hp08wrzx.mjs +0 -15
  623. package/dist/chunks/cli-0.6.6-hsgfy54f.mjs +0 -2
  624. package/dist/chunks/cli-0.6.6-hyqpcaay.mjs +0 -2
  625. package/dist/chunks/cli-0.6.6-j4j7a9y4.mjs +0 -2
  626. package/dist/chunks/cli-0.6.6-je6w2y3h.mjs +0 -2
  627. package/dist/chunks/cli-0.6.6-jh33fwqe.mjs +0 -18
  628. package/dist/chunks/cli-0.6.6-jjj2qt22.mjs +0 -2
  629. package/dist/chunks/cli-0.6.6-jqxfz350.mjs +0 -2
  630. package/dist/chunks/cli-0.6.6-jrpy2bkk.mjs +0 -2
  631. package/dist/chunks/cli-0.6.6-kca8bnv6.mjs +0 -2
  632. package/dist/chunks/cli-0.6.6-khr65dty.mjs +0 -2
  633. package/dist/chunks/cli-0.6.6-ktwh4wvp.mjs +0 -6
  634. package/dist/chunks/cli-0.6.6-mb1z3n48.mjs +0 -2
  635. package/dist/chunks/cli-0.6.6-mc9x1jry.mjs +0 -28
  636. package/dist/chunks/cli-0.6.6-mezb9tga.mjs +0 -2
  637. package/dist/chunks/cli-0.6.6-mk746t95.mjs +0 -2
  638. package/dist/chunks/cli-0.6.6-mmgfr8v9.mjs +0 -2
  639. package/dist/chunks/cli-0.6.6-mrkkgjdh.mjs +0 -2
  640. package/dist/chunks/cli-0.6.6-mzjbzje2.mjs +0 -2
  641. package/dist/chunks/cli-0.6.6-nbrpn6xq.mjs +0 -2
  642. package/dist/chunks/cli-0.6.6-ncqg4xxp.mjs +0 -2
  643. package/dist/chunks/cli-0.6.6-ntyx46a7.mjs +0 -2
  644. package/dist/chunks/cli-0.6.6-nw0nh4e0.mjs +0 -2
  645. package/dist/chunks/cli-0.6.6-nymfz9tw.mjs +0 -2
  646. package/dist/chunks/cli-0.6.6-p3xdjh86.mjs +0 -12
  647. package/dist/chunks/cli-0.6.6-phfaae6k.mjs +0 -2
  648. package/dist/chunks/cli-0.6.6-py5db2ds.mjs +0 -2
  649. package/dist/chunks/cli-0.6.6-q1j20ysc.mjs +0 -193
  650. package/dist/chunks/cli-0.6.6-q6pybpxh.mjs +0 -2
  651. package/dist/chunks/cli-0.6.6-qvmtyvz3.mjs +0 -3
  652. package/dist/chunks/cli-0.6.6-r5fnevcm.mjs +0 -2
  653. package/dist/chunks/cli-0.6.6-r6ph5dqe.mjs +0 -2
  654. package/dist/chunks/cli-0.6.6-rhcte81y.mjs +0 -15
  655. package/dist/chunks/cli-0.6.6-rqfeyzcp.mjs +0 -2
  656. package/dist/chunks/cli-0.6.6-rxhq7h6p.mjs +0 -2
  657. package/dist/chunks/cli-0.6.6-s3y8t7we.mjs +0 -2
  658. package/dist/chunks/cli-0.6.6-sc6nf44p.mjs +0 -2
  659. package/dist/chunks/cli-0.6.6-sh4pyhkw.mjs +0 -2
  660. package/dist/chunks/cli-0.6.6-sqvm4f1y.mjs +0 -2
  661. package/dist/chunks/cli-0.6.6-ssjjspdc.mjs +0 -2
  662. package/dist/chunks/cli-0.6.6-sxde5jj7.mjs +0 -2
  663. package/dist/chunks/cli-0.6.6-t3vvf5fy.mjs +0 -2
  664. package/dist/chunks/cli-0.6.6-t7p08nsw.mjs +0 -2
  665. package/dist/chunks/cli-0.6.6-tam4amwx.mjs +0 -2
  666. package/dist/chunks/cli-0.6.6-tg1e3sdx.mjs +0 -2
  667. package/dist/chunks/cli-0.6.6-tk00k0e1.mjs +0 -34
  668. package/dist/chunks/cli-0.6.6-v17a8yzy.mjs +0 -2
  669. package/dist/chunks/cli-0.6.6-vesqvt0y.mjs +0 -2
  670. package/dist/chunks/cli-0.6.6-vjj3g5dm.mjs +0 -2
  671. package/dist/chunks/cli-0.6.6-vt1181th.mjs +0 -39
  672. package/dist/chunks/cli-0.6.6-vvz9vw7f.mjs +0 -5
  673. package/dist/chunks/cli-0.6.6-vy3wa7f9.mjs +0 -2
  674. package/dist/chunks/cli-0.6.6-w687eya6.mjs +0 -2
  675. package/dist/chunks/cli-0.6.6-w6tqtrzg.mjs +0 -4
  676. package/dist/chunks/cli-0.6.6-wctj7gmc.mjs +0 -6
  677. package/dist/chunks/cli-0.6.6-ww6zy0p0.mjs +0 -2
  678. package/dist/chunks/cli-0.6.6-wxst92je.mjs +0 -4
  679. package/dist/chunks/cli-0.6.6-x1zrpt5g.mjs +0 -45
  680. package/dist/chunks/cli-0.6.6-x3tz7qvq.mjs +0 -2
  681. package/dist/chunks/cli-0.6.6-x88t5n54.mjs +0 -133
  682. package/dist/chunks/cli-0.6.6-xe6egv3r.mjs +0 -25
  683. package/dist/chunks/cli-0.6.6-xmd2zss3.mjs +0 -2
  684. package/dist/chunks/cli-0.6.6-xna6taqd.mjs +0 -9
  685. package/dist/chunks/cli-0.6.6-xnazk7t9.mjs +0 -2
  686. package/dist/chunks/cli-0.6.6-xq4cysdk.mjs +0 -2
  687. package/dist/chunks/cli-0.6.6-xt0p4ems.mjs +0 -4
  688. package/dist/chunks/cli-0.6.6-xtj65dsh.mjs +0 -2
  689. package/dist/chunks/cli-0.6.6-y305shhz.mjs +0 -2
  690. package/dist/chunks/cli-0.6.6-yakt9hjc.mjs +0 -3
  691. package/dist/chunks/cli-0.6.6-yj2tafrk.mjs +0 -26
  692. package/dist/chunks/cli-0.6.6-ymge82rt.mjs +0 -2
  693. package/dist/chunks/cli-0.6.6-ythetarc.mjs +0 -3
  694. package/dist/chunks/cli-0.6.6-ytskhcd3.mjs +0 -42
  695. package/dist/chunks/cli-0.6.6-ytws2j1w.mjs +0 -2
  696. package/dist/chunks/cli-0.6.6-yve3e654.mjs +0 -2
  697. package/dist/chunks/cli-0.6.6-yxd04fex.mjs +0 -2
  698. package/dist/chunks/cli-0.6.6-zb8ddz0k.mjs +0 -2
  699. package/dist/chunks/cli-0.6.6-ze6rx70y.mjs +0 -2
  700. package/dist/chunks/cli-0.6.6-zhky93y3.mjs +0 -2
  701. package/dist/chunks/cli-0.6.6-zwk7a82m.mjs +0 -2
  702. package/dist/chunks/cli-0.6.6-zx0cgvxq.mjs +0 -2
  703. package/dist/chunks/client-0.6.6-epndq4qc.mjs +0 -1
  704. package/dist/chunks/color-0.6.6-8rzmvtwk.mjs +0 -1
  705. package/dist/chunks/compact-0.6.6-hx8hw1kn.mjs +0 -3
  706. package/dist/chunks/config-0.6.6-0j07cdc5.mjs +0 -1
  707. package/dist/chunks/config-0.6.6-2fm368ym.mjs +0 -1
  708. package/dist/chunks/constants-0.6.6-0yxw2f7y.mjs +0 -1
  709. package/dist/chunks/context-0.6.6-1ask7yck.mjs +0 -1
  710. package/dist/chunks/context-noninteractive-0.6.6-kk5a8p4w.mjs +0 -1
  711. package/dist/chunks/conversation-0.6.6-fetjq503.mjs +0 -1
  712. package/dist/chunks/copilotHeaders-0.6.6-fwqs850f.mjs +0 -1
  713. package/dist/chunks/copy-0.6.6-8j7h9rrr.mjs +0 -9
  714. package/dist/chunks/cost-0.6.6-1b4svxh2.mjs +0 -1
  715. package/dist/chunks/createSSHSession-0.6.6-nj5vfp9k.mjs +0 -1
  716. package/dist/chunks/createSession-0.6.6-mphh6gbj.mjs +0 -1
  717. package/dist/chunks/debug-0.6.6-ghaq68w2.mjs +0 -1
  718. package/dist/chunks/defaultActionDeps-0.6.6-t8g2hnht.mjs +0 -1367
  719. package/dist/chunks/desktop-0.6.6-a4mc0bda.mjs +0 -1
  720. package/dist/chunks/detectRepository-0.6.6-ncw5b2aj.mjs +0 -1
  721. package/dist/chunks/detection-0.6.6-214xzj0w.mjs +0 -1
  722. package/dist/chunks/diff-0.6.6-7nwejtje.mjs +0 -1
  723. package/dist/chunks/doctor-0.6.6-2wetaw67.mjs +0 -1
  724. package/dist/chunks/doctorDiagnostic-0.6.6-wvp7h2xr.mjs +0 -1
  725. package/dist/chunks/earlyInput-0.6.6-9jbsyrke.mjs +0 -1
  726. package/dist/chunks/effort-0.6.6-ncb29f3c.mjs +0 -10
  727. package/dist/chunks/envLessBridgeConfig-0.6.6-6pv90cvs.mjs +0 -1
  728. package/dist/chunks/envUtils-0.6.6-mwnbc88a.mjs +0 -1
  729. package/dist/chunks/environmentSelection-0.6.6-gac9h0m9.mjs +0 -1
  730. package/dist/chunks/environments-0.6.6-dyqm7563.mjs +0 -1
  731. package/dist/chunks/errors-0.6.6-q707mqqm.mjs +0 -1
  732. package/dist/chunks/exampleCommands-0.6.6-wd6w9zh5.mjs +0 -1
  733. package/dist/chunks/exit-0.6.6-8vj2yn2g.mjs +0 -1
  734. package/dist/chunks/export-0.6.6-ze9h049t.mjs +0 -2
  735. package/dist/chunks/extra-usage-0.6.6-mp9th9v6.mjs +0 -1
  736. package/dist/chunks/extra-usage-noninteractive-0.6.6-rmjhm3ng.mjs +0 -1
  737. package/dist/chunks/fast-0.6.6-764x92hh.mjs +0 -1
  738. package/dist/chunks/feedback-0.6.6-5x42sy6a.mjs +0 -14
  739. package/dist/chunks/firstPartyEventLogger-0.6.6-x2gcw7ns.mjs +0 -1
  740. package/dist/chunks/git-0.6.6-rw5vzxwm.mjs +0 -1
  741. package/dist/chunks/githubModelsCredentials-0.6.6-f2n56xmf.mjs +0 -1
  742. package/dist/chunks/goal-0.6.6-9rtva22g.mjs +0 -4
  743. package/dist/chunks/grove-0.6.6-97994twv.mjs +0 -1
  744. package/dist/chunks/growthbook-0.6.6-8reejkag.mjs +0 -1
  745. package/dist/chunks/headless-0.6.6-qgkvkz56.mjs +0 -2
  746. package/dist/chunks/heapdump-0.6.6-s68hkj7v.mjs +0 -6
  747. package/dist/chunks/help-0.6.6-a74x2714.mjs +0 -1
  748. package/dist/chunks/hookChains-0.6.6-wrp608b1.mjs +0 -3
  749. package/dist/chunks/hooks-0.6.6-skad5kp2.mjs +0 -79
  750. package/dist/chunks/hooks-0.6.6-zy3p5ymd.mjs +0 -1
  751. package/dist/chunks/ide-0.6.6-xpbxyf5x.mjs +0 -3
  752. package/dist/chunks/image-processor-napi-0.6.6-8ggh2rjn.mjs +0 -1
  753. package/dist/chunks/inboundAttachments-0.6.6-xfbtg9vz.mjs +0 -1
  754. package/dist/chunks/index-0.6.6-0g09kzhh.mjs +0 -1
  755. package/dist/chunks/index-0.6.6-1p1fy7cz.mjs +0 -5
  756. package/dist/chunks/index-0.6.6-27ems47g.mjs +0 -9
  757. package/dist/chunks/index-0.6.6-4v2spjs5.mjs +0 -1
  758. package/dist/chunks/index-0.6.6-5me3rm4s.mjs +0 -9
  759. package/dist/chunks/index-0.6.6-70tj26f9.mjs +0 -1
  760. package/dist/chunks/index-0.6.6-8zcthv4z.mjs +0 -1
  761. package/dist/chunks/index-0.6.6-aef14n9j.mjs +0 -2
  762. package/dist/chunks/index-0.6.6-apxc13te.mjs +0 -1
  763. package/dist/chunks/index-0.6.6-dq42pv3d.mjs +0 -1
  764. package/dist/chunks/index-0.6.6-ebp0mayr.mjs +0 -1
  765. package/dist/chunks/index-0.6.6-ejmkdrzm.mjs +0 -1
  766. package/dist/chunks/index-0.6.6-kqbyedrd.mjs +0 -1
  767. package/dist/chunks/index-0.6.6-m0dywyy2.mjs +0 -30
  768. package/dist/chunks/index-0.6.6-pjnpey6d.mjs +0 -1
  769. package/dist/chunks/index-0.6.6-pykm48ja.mjs +0 -1
  770. package/dist/chunks/index-0.6.6-pzvhyk3s.mjs +0 -1
  771. package/dist/chunks/index-0.6.6-rxae4gv4.mjs +0 -1
  772. package/dist/chunks/index-0.6.6-s4wsdcz8.mjs +0 -2
  773. package/dist/chunks/index-0.6.6-spnbnmsj.mjs +0 -1
  774. package/dist/chunks/index-0.6.6-sqygenvb.mjs +0 -1
  775. package/dist/chunks/index-0.6.6-t43srges.mjs +0 -1
  776. package/dist/chunks/index-0.6.6-zgh9z1rm.mjs +0 -1
  777. package/dist/chunks/init-0.6.6-6yxjq5pc.mjs +0 -1
  778. package/dist/chunks/initReplBridge-0.6.6-eeynkqk3.mjs +0 -1
  779. package/dist/chunks/ink-0.6.6-keyn52qn.mjs +0 -1
  780. package/dist/chunks/insights-0.6.6-2wjtvjnd.mjs +0 -870
  781. package/dist/chunks/install-0.6.6-vdpf15fp.mjs +0 -1
  782. package/dist/chunks/install-github-app-0.6.6-8zk1xfpw.mjs +0 -149
  783. package/dist/chunks/install-slack-app-0.6.6-j2a9c586.mjs +0 -1
  784. package/dist/chunks/instrumentation-0.6.6-35f0r0ts.mjs +0 -1
  785. package/dist/chunks/interactiveHelpers-0.6.6-18x9yezm.mjs +0 -1
  786. package/dist/chunks/keybindings-0.6.6-9r4m4jvq.mjs +0 -2
  787. package/dist/chunks/knowledge-0.6.6-1rjjrsqn.mjs +0 -2
  788. package/dist/chunks/latestVersionCache-0.6.6-32rrz0z9.mjs +0 -1
  789. package/dist/chunks/loadAgentsDir-0.6.6-tjygbn96.mjs +0 -1
  790. package/dist/chunks/loadPluginHooks-0.6.6-8xsdzy59.mjs +0 -1
  791. package/dist/chunks/loadPluginHooks-0.6.6-fr4gdkcy.mjs +0 -1
  792. package/dist/chunks/log-0.6.6-6nzgdpd0.mjs +0 -1
  793. package/dist/chunks/main-0.6.6-aq9jq72v.mjs +0 -1
  794. package/dist/chunks/managedEnv-0.6.6-6bth8e56.mjs +0 -1
  795. package/dist/chunks/mcp-0.6.6-4xb16x7y.mjs +0 -1
  796. package/dist/chunks/mcp-0.6.6-chps3y13.mjs +0 -4
  797. package/dist/chunks/mcp-0.6.6-fxy3qcdv.mjs +0 -17
  798. package/dist/chunks/mcpb-0.6.6-bhpebgzm.mjs +0 -1
  799. package/dist/chunks/memory-0.6.6-89t2e497.mjs +0 -3
  800. package/dist/chunks/model-0.6.6-8bpwy4gg.mjs +0 -1
  801. package/dist/chunks/model-0.6.6-m3x9crqt.mjs +0 -2
  802. package/dist/chunks/node-0.6.6-rm65t01m.mjs +0 -12
  803. package/dist/chunks/oauth-0.6.6-akp7n7mb.mjs +0 -1
  804. package/dist/chunks/openaiShim-0.6.6-ft40jfrp.mjs +0 -14
  805. package/dist/chunks/output-style-0.6.6-bvhtp4tc.mjs +0 -1
  806. package/dist/chunks/package-FMOR3ELU-0.6.6-0ykwzcyt.mjs +0 -1
  807. package/dist/chunks/parseConnectUrl-0.6.6-jve0dvpn.mjs +0 -1
  808. package/dist/chunks/parser-0.6.6-xa5qsjfh.mjs +0 -1
  809. package/dist/chunks/passes-0.6.6-tdv74eqj.mjs +0 -1
  810. package/dist/chunks/permissions-0.6.6-46df10nj.mjs +0 -3
  811. package/dist/chunks/permissions-0.6.6-8wcv4q7d.mjs +0 -1
  812. package/dist/chunks/plan-0.6.6-qw8t4gpk.mjs +0 -1
  813. package/dist/chunks/plist-0.6.6-5m3etrhq.mjs +0 -1
  814. package/dist/chunks/plugin-0.6.6-narwef70.mjs +0 -29
  815. package/dist/chunks/pluginStartupCheck-0.6.6-v7kxdq6w.mjs +0 -1
  816. package/dist/chunks/plugins-0.6.6-10y990d0.mjs +0 -9
  817. package/dist/chunks/preActionHook-0.6.6-0vkxazxv.mjs +0 -2
  818. package/dist/chunks/print-0.6.6-ym6tndvq.mjs +0 -57
  819. package/dist/chunks/privacy-settings-0.6.6-05da2gne.mjs +0 -1
  820. package/dist/chunks/process-0.6.6-da3h3zfe.mjs +0 -1
  821. package/dist/chunks/processBashCommand-0.6.6-m76r9et2.mjs +0 -1
  822. package/dist/chunks/processSlashCommand-0.6.6-xxwnh0cf.mjs +0 -9
  823. package/dist/chunks/prompt-0.6.6-60sg3pmt.mjs +0 -1
  824. package/dist/chunks/prompt-0.6.6-vfh4fr6f.mjs +0 -1
  825. package/dist/chunks/prompts-0.6.6-vbfva1a5.mjs +0 -1
  826. package/dist/chunks/protocolHandler-0.6.6-73vezfvr.mjs +0 -13
  827. package/dist/chunks/provider-0.6.6-ch5qq6n3.mjs +0 -2
  828. package/dist/chunks/providerProfiles-0.6.6-jtysbyrm.mjs +0 -1
  829. package/dist/chunks/providerValidation-0.6.6-5509e4cb.mjs +0 -6
  830. package/dist/chunks/rate-limit-options-0.6.6-cfm37mqk.mjs +0 -1
  831. package/dist/chunks/registerSubcommands-0.6.6-7p5mr9t1.mjs +0 -34
  832. package/dist/chunks/registry-0.6.6-z5cnbznq.mjs +0 -1
  833. package/dist/chunks/release-notes-0.6.6-90zjvqjx.mjs +0 -5
  834. package/dist/chunks/reload-plugins-0.6.6-jyxrw2jq.mjs +0 -2
  835. package/dist/chunks/remote-env-0.6.6-wyekcz2k.mjs +0 -1
  836. package/dist/chunks/remoteBridgeCore-0.6.6-favpnrd5.mjs +0 -1
  837. package/dist/chunks/remoteSession-0.6.6-snjkbaw2.mjs +0 -1
  838. package/dist/chunks/rename-0.6.6-3wang66e.mjs +0 -1
  839. package/dist/chunks/replBridgeHandle-0.6.6-dmxdjqjy.mjs +0 -1
  840. package/dist/chunks/replLauncher-0.6.6-bvhzfdx8.mjs +0 -1
  841. package/dist/chunks/resume-0.6.6-zqn712k4.mjs +0 -2
  842. package/dist/chunks/rewind-0.6.6-h8kc53mc.mjs +0 -1
  843. package/dist/chunks/rootOptions-0.6.6-wcam7tjd.mjs +0 -1
  844. package/dist/chunks/sandbox-adapter-0.6.6-qbm1rqdf.mjs +0 -1
  845. package/dist/chunks/sandbox-toggle-0.6.6-m882ckxv.mjs +0 -1
  846. package/dist/chunks/session-0.6.6-ezqqmxrd.mjs +0 -2
  847. package/dist/chunks/sessionDiscovery-0.6.6-0q34cmbe.mjs +0 -1
  848. package/dist/chunks/sessionFileAccessHooks-0.6.6-3tek8yje.mjs +0 -1
  849. package/dist/chunks/sessionStorage-0.6.6-pgfjqhdj.mjs +0 -1
  850. package/dist/chunks/settings-0.6.6-ms6t0ray.mjs +0 -1
  851. package/dist/chunks/setup-0.6.6-n2vjxxmx.mjs +0 -5
  852. package/dist/chunks/sinks-0.6.6-mq00wrfa.mjs +0 -1
  853. package/dist/chunks/skills-0.6.6-vgr1dpf7.mjs +0 -1
  854. package/dist/chunks/startupProfiler-0.6.6-5nbjv2gp.mjs +0 -1
  855. package/dist/chunks/startupUpdateCheck-0.6.6-z6adga96.mjs +0 -1
  856. package/dist/chunks/state-0.6.6-w2grqwqw.mjs +0 -1
  857. package/dist/chunks/stats-0.6.6-z11zcde6.mjs +0 -6
  858. package/dist/chunks/status-0.6.6-vbcqezgp.mjs +0 -1
  859. package/dist/chunks/stickers-0.6.6-c1pczjgd.mjs +0 -1
  860. package/dist/chunks/subprocessEnv-0.6.6-95tf6phx.mjs +0 -1
  861. package/dist/chunks/tasks-0.6.6-pm1cbtt0.mjs +0 -1
  862. package/dist/chunks/teamHelpers-0.6.6-ec57k1fn.mjs +0 -1
  863. package/dist/chunks/teammateModeSnapshot-0.6.6-964bq8fq.mjs +0 -1
  864. package/dist/chunks/teleport-0.6.6-ksymynm4.mjs +0 -1
  865. package/dist/chunks/terminalSetup-0.6.6-r5q2y7w0.mjs +0 -1
  866. package/dist/chunks/theme-0.6.6-y46frztn.mjs +0 -1
  867. package/dist/chunks/thinkback-0.6.6-3j0w6yjk.mjs +0 -1
  868. package/dist/chunks/thinkback-play-0.6.6-rrcqmyxk.mjs +0 -1
  869. package/dist/chunks/toolPool-0.6.6-2jmzd43n.mjs +0 -1
  870. package/dist/chunks/toolSearch-0.6.6-2rrd60cx.mjs +0 -1
  871. package/dist/chunks/tools-0.6.6-13yxm82t.mjs +0 -1
  872. package/dist/chunks/trustedDevice-0.6.6-yk1yrpb0.mjs +0 -1
  873. package/dist/chunks/turndown.cjs-0.6.6-nhq9m5br.mjs +0 -69
  874. package/dist/chunks/types-0.6.6-stnrzm1j.mjs +0 -1
  875. package/dist/chunks/ultrareviewCommand-0.6.6-7ytrj9jv.mjs +0 -4
  876. package/dist/chunks/update-0.6.6-5hf3mst5.mjs +0 -86
  877. package/dist/chunks/upgrade-0.6.6-y2gdvy9z.mjs +0 -1
  878. package/dist/chunks/upload-0.6.6-mwd7k6ym.mjs +0 -7
  879. package/dist/chunks/upstreamproxy-0.6.6-2fc9x5pq.mjs +0 -14
  880. package/dist/chunks/url-handler-napi-0.6.6-gbs8n3ne.mjs +0 -1
  881. package/dist/chunks/usage-0.6.6-8n0sxpw2.mjs +0 -1
  882. package/dist/chunks/util-0.6.6-hpjf8dnn.mjs +0 -1
  883. package/dist/chunks/utils-0.6.6-w937v7sr.mjs +0 -1
  884. package/dist/chunks/vim-0.6.6-b8g833z7.mjs +0 -1
  885. package/dist/chunks/watcher-0.6.6-bsqe9pa4.mjs +0 -1
  886. package/dist/chunks/wiki-0.6.6-2fstcx28.mjs +0 -132
  887. package/dist/chunks/worktree-0.6.6-yctkpbmx.mjs +0 -1
  888. package/dist/chunks/worktreeModeEnabled-0.6.6-yv2bvj70.mjs +0 -1
  889. package/dist/chunks/wrapper-0.6.6-02cwy0nm.mjs +0 -7
  890. /package/dist/chunks/{cli-0.6.6-mfee7shn.mjs → cli-0.6.7-790sqdfy.mjs} +0 -0
  891. /package/dist/chunks/{cli-0.6.6-zk5p5pm9.mjs → cli-0.6.7-nzdwcqxv.mjs} +0 -0
  892. /package/dist/chunks/{cli-0.6.6-7bzhgmhp.mjs → cli-0.6.7-pgcg3w1c.mjs} +0 -0
@@ -1,16 +0,0 @@
1
- import{t6 as E2,v6 as G8}from"./cli-0.6.6-4jrf033h.mjs";import{x6 as h,y6 as pZ}from"./cli-0.6.6-wctj7gmc.mjs";import{J6 as c5,L6 as H8}from"./cli-0.6.6-akjyt0hr.mjs";import{Aca as e1,Bda as K,C_ as M1,D7 as v4,D_ as C8,E7 as s,Eda as $0,F7 as L2,G7 as O0,H7 as I4,I7 as l2,O7 as H0,Oca as q4,P7 as z1,Q_ as s1,Qba as d,Qca as Z4,Qda as D,Tca as b2,Uaa as E,Uca as nZ,Vba as u5,Waa as B2,Wba as C,Yda as s0,Z7 as K5,Zaa as Q0,Zba as L,_aa as y,a8 as mZ,dca as o1,f$ as qZ,hba as j0,n8 as D5,oaa as a1,p8 as cZ,qba as d4,qda as p5,sba as dZ,sca as i,sda as V4,tba as S1,uba as A8,uca as r1,vca as WZ,xaa as VZ,yda as m5}from"./cli-0.6.6-q1j20ysc.mjs";import{Yea as C0,_ea as P4,ifa as k1}from"./cli-0.6.6-y305shhz.mjs";import{nga as S5,oga as c4,pga as B0,rga as W8,sga as z8,uga as O,vga as I0}from"./cli-0.6.6-7r4esgkf.mjs";import{wga as x,zga as j2}from"./cli-0.6.6-a837m6n5.mjs";import{Bha as d0,Cha as Z0,dha as L5,hha as uZ,lha as t2,pha as M8,zha as z}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as p,Vha as Y1,_ha as q1}from"./cli-0.6.6-g6ja9jcs.mjs";import{bia as F5,eia as F,gia as g,iia as P2,lia as m4,oia as u}from"./cli-0.6.6-nw0nh4e0.mjs";import{Hla as f,Ola as _1,Qja as Y0,Rja as H1,Rka as u1,Rna as J0,dla as l1,dma as $1,ema as J1,fma as Q1,gma as X1,hla as U4,mla as S0,nla as J2,sma as x2}from"./cli-0.6.6-ncqg4xxp.mjs";import{ooa as v,poa as l0}from"./cli-0.6.6-sqvm4f1y.mjs";import{Moa as P,cpa as q2}from"./cli-0.6.6-mc9x1jry.mjs";import{tpa as M0,vpa as m2,wpa as H,xpa as e}from"./cli-0.6.6-py5db2ds.mjs";function v5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:q,context:W}=$.shift();try{let G=await Z.apply(W,X);Y(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,q)=>{$.push({args:X,resolve:Y,reject:q,context:this}),Q()})}}var I5=()=>{};function T5(Z,$){return Z.find((J)=>J.includes($))??null}async function C5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=P2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-0.6.6-rxae4gv4.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.6.6-4v2spjs5.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function g$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=P2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-0.6.6-rxae4gv4.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.6.6-4v2spjs5.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function x8(Z){return Z.startsWith("anthropic.")}function B8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function R8(Z){let $=B8(Z);for(let J of j8)if($.startsWith(`${J}.anthropic.`))return J;return}function p$(Z,$){let J=R8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(x8(Z))return`${$}.${Z}`;return Z}var y5,u$,j8;var A5=H(()=>{l0();n();u();s0();G8();y5=v(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([C5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw D(X),X}});u$=v(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([C5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let q=Y.modelArn.lastIndexOf("/");return q>=0?Y.modelArn.substring(q+1):Y.modelArn}catch($){return D($),null}});j8=["us","eu","apac","global"]});var _2,k2,M2,S2,v2,I2,y2,T2,C2,a0,o0,r0,A2,h2,G0,c$,h5;var f2=H(()=>{_2={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"},k2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},M2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},S2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},v2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},I2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},y2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},T2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},C2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},a0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},o0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},r0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},A2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},h2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},G0={haiku35:M2,haiku45:S2,sonnet35:k2,sonnet37:_2,sonnet40:v2,sonnet45:I2,sonnet46:h2,opus40:y2,opus41:T2,opus45:C2,opus46:a0,opus47:o0,opus48:r0,fable5:A2},c$=Object.values(G0).map((Z)=>Z.firstParty),h5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function f5(){return Object.values(e0)}var e0,g2;var u2=H(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};m2(_0,{prefetchCopilotModelCatalog:()=>d2,normalizeBareCopilotModelId:()=>c2,getEffectiveCopilotModels:()=>N8,getCopilotDisplayName:()=>O8,getCatalogCopilotMaxOutputTokens:()=>P8,getCatalogCopilotContextWindow:()=>U8,getCachedCopilotCatalog:()=>D8,fetchCopilotModelCatalog:()=>n5,copilotModelSupportsAnthropicMessages:()=>b8,_setCopilotCatalogForTesting:()=>E8});function E0(){let Z=K();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function d5(){if(!t)return!1;let Z=E0();return Z!==null&&x0===Z}function F8(){if(g5)return;g5=!0,u5(()=>{let Z=E0();if(Z&&x0!==Z)d2()})}function c2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),X=Q.indexOf("/");return X===-1?Q:Q.slice(X+1)}function L8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function K8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},X=Z.capabilities?.supports??{},Y=X.vision===!0||Boolean(Q.vision),q=X.adaptive_thinking===!0||Array.isArray(X.reasoning_effort)||typeof X.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:Y,reasoning:q,tool_call:X.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:Y?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:L8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function n5(){let Z=K();if(Z?.transport!=="github_copilot")return null;if(p5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,X=setTimeout(()=>Q.abort(),w8);try{let Y=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...c5},signal:Q.signal});if(!Y.ok)return null;let q=await Y.json();if(!Array.isArray(q?.data))return null;let W=new Set,G=[];for(let B of q.data){let R=K8(B);if(!R||W.has(R.model.id))continue;W.add(R.model.id),G.push(R)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(X)}}function d2(){F8();let Z=E0();if(!Z)return;if(t&&x0!==Z)t=null,x0=null;if(Z2){if(p2===Z)return;Z2.finally(()=>d2());return}p2=Z,Z2=n5().then(($)=>{if($&&E0()===Z)t=$,x0=Z}).finally(()=>{Z2=null,p2=null})}function D8(){return t}function N8(){if(d5()){let Z=t?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return f5()}function $2(Z){if(!d5())return;let $=c2(Z);return t.find((J)=>J.model.id===$)}function O8(Z){let $=c2(Z);return $2($)?.model.name??e0[$]?.name}function b8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function U8(Z){return $2(Z)?.model.limit.context}function P8(Z){return $2(Z)?.model.limit.output}function E8(Z){t=Z,x0=Z?E0():null}var w8=5000,t=null,x0=null,Z2=null,p2=null,g5=!1;var k0=H(()=>{$0();H8();m5();i();Z0();u2()});function V(){let Z=K();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function e$(){return V()==="firstParty"}function ZJ(Z){let $=K();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(k0(),M0(_0)),X=Q(J);if(X!==null)return X}catch{}return!0}function $J(){return V()}function JJ(){let Z=K();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var l=H(()=>{$0()});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of i5)J[Q]=G0[Q][$];return J}async function _8(){let Z=Q2("bedrock"),$;try{$=await y5()}catch(Q){return D(Q),Z}if(!$?.length)return Z;let J={};for(let Q of i5){let X=G0[Q].firstParty;J[Q]=T5($,X)||Z[Q]}return J}function t5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=h5[Q];if(Y&&X)J[Y]=X}return J}function X2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function k8(){if(S0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}l5()}function j(){let Z=S0();if(Z===null)return k8(),t5(Q2(V()));return t5(Z)}async function xJ(){if(S0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}await l5()}var i5,l5;var Y2=H(()=>{J0();s0();I5();j0();A5();f2();l();i5=Object.keys(G0);l5=v5(async()=>{if(S0()!==null)return;try{let Z=await _8();J2(Z)}catch(Z){D(Z)}})});function wJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(U())return!1;let $=v0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function FJ(){if(s5!==null)return s5;if(!U())return!1;let Z=M();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var s5=null;var a5=H(()=>{n();i();u()});function NJ(Z){return Z}function OJ(){return!1}function o5(){return null}function r5(){return!1}var e5=H(()=>{a5()});async function MJ(){let $=L().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${O().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(X){D(X)}}async function R0(Z){let $=`${O().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){D(J)}}var n2=H(()=>{q2();I0();n();i();s0()});import{mkdirSync as S8,writeFileSync as v8}from"fs";function T8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{S8(V2,{recursive:!0,mode:448}),v8(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 Z1(Z,$){try{let Q=t2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!Y1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function V1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let q=process.env[Z];if(!q){let G=Z1($,J);return X(G),G}let W=parseInt(q,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),X(null),null;try{let G=t2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,R=G.readFileSync(B,{encoding:"utf8"}).trim();if(!R)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),X(R),T8($,R,J),R}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=Z1($,J);return X(B),B}}function W2(){return V1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:I8,label:"OAuth token",getCached:$1,setCached:J1})}function i2(){return V1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:y8,label:"API key",getCached:Q1,setCached:X1})}var V2="/home/claude/.claude/remote",I8,y8,hJ;var W1=H(()=>{J0();Z0();u();q1();M8();I8=`${V2}/.oauth_token`,y8=`${V2}/.api_key`,hJ=`${V2}/.session_ingress_token`});async function G1(){if(process.platform==="darwin"){let Z=s();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function z2(Z){return Z.slice(-20)}var x1=H(()=>{z1();l2()});function cJ(Z){return Z?.name==="CredentialsProviderError"}function j1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function s2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function B1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var R1=H(()=>{Z0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(T.instance)T.instance.changed.clear(),T.instance=null}}var w1=H(()=>{H1()});var G2="claude-code-20250219",F1="interleaved-thinking-2025-05-14",y0="context-1m-2025-08-07",L1="context-management-2025-06-27",K1="structured-outputs-2025-12-15",a2="web-search-2025-03-05",D1="advanced-tool-use-2025-11-20",N1="tool-search-tool-2025-10-19",iJ="effort-2025-11-24",lJ="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",sJ="extended-cache-ttl-2025-04-11",aJ="fast-mode-2026-02-01",b1="redact-thinking-2026-02-12",U1="thinking-token-count-2026-05-13",P1="token-efficient-tools-2026-03-28",oJ="afk-mode-2026-01-31",rJ="advisor-tool-2026-03-01",o2,eJ;var r2=H(()=>{o2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),eJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(V()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function v1(){if(!A())return!1;return f8()===null}function h8(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 f8(){if(V()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=C0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&C0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&x2()&&!_1()){if(!E("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=h8(k.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function F3(){return"opus"+(h0()?"[1m]":"")}function L3(Z){if(!A())return!1;if(!v1())return!1;if(!I1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function I1(Z){if(!A())return!1;let $=Z??A0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function g8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!e2)z("Fast mode cooldown expired, re-enabling fast mode"),e2=!0,T1.emit();w0={status:"active"}}return w0}function N3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},e2=!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:$}),y1.emit(Z,$)}function O3(){w0={status:"active"}}function b3(){if(k.status==="disabled")return;k={status:"disabled",reason:"preference"},B2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),Z5.emit(!1)}function u8(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 p8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function P3(Z){let $=u8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!p8(Z))B2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));C1.emit($)}function m8(){return g8().status==="cooldown"}function E3(Z,$){let J=A()&&v1()&&!!$&&I1(Z);if(J&&m8())return"cooldown";if(J)return"on";return"off"}async function c8(Z){let $=`${O().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function k3(){if(!A())return;if(k.status!=="pending")return;k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function M3(){if(S1())return;if(!A())return;if(T0)return z("Fast mode prefetch in progress, returning in-flight promise"),T0;let Z=X0();if(!(w()?.accessToken&&q0())&&!Z){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-E1<d8){z("Skipping fast mode prefetch, fetched recently");return}E1=J;let Q=async()=>{let Y=w(),q=Y?.accessToken&&q0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return c8(q)};async function X(){try{let Y;try{Y=await Q()}catch(W){if(P.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await $5(B),Y=await Q();else throw W}else throw W}let q=k.status!=="pending"?k.status==="enabled":L().penguinModeOrgEnabled;if(k=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},q!==Y.enabled){if(!Y.enabled)B2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:Y.enabled})),Z5.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){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)"}: ${Y}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{T0=null}}return T0=X(),T0}var w3="Opus 4.7",w0,e2=!1,y1,T1,K3,D3,C1,U3,k,Z5,_3,d8=30000,E1=0,T0=null;var A1=H(()=>{q2();I0();k1();J0();j2();n();C8();i();Z0();u();F0();l();A8();j0();H1();w0={status:"active"},y1=Y0(),T1=Y0(),K3=y1.subscribe,D3=T1.subscribe;C1=Y0(),U3=C1.subscribe;k={status:"pending"},Z5=Y0(),_3=Z5.subscribe});function o8(Z){for(let $ of a8)if($.pattern.test(Z))return $.cost;return}function J5(Z){if(A()&&Z)return t8;return L0}function r8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,X=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+X+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function e8(Z,$){let J=b(Z);if(J===N(a0.firstParty)||J===N(o0.firstParty)||J===N(r0.firstParty)){let X=$.speed==="fast";return J5(X)}let Q=f1[J];if(!Q){let X=o8(Z);if(X)return X;return ZZ(Z,J),f1[b(A0())]??s8}return Q}function ZZ(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),u1()}function $Z(Z,$){let J=e8(Z,$);return r8(J,$)}function A3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return $Z(Z,J)}function g1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function p1(Z){return`${g1(Z.inputTokens)}/${g1(Z.outputTokens)} per Mtok`}var f0,h1,L0,n8,t8,i8,l8,s8,a8,f1;var m1=H(()=>{j2();J0();A1();f2();F0();f0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},h1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},L0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},n8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},t8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},i8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},l8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},s8=L0,a8=[{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}}];f1={[N(M2.firstParty)]:i8,[N(S2.firstParty)]:l8,[N(k2.firstParty)]:f0,[N(_2.firstParty)]:f0,[N(v2.firstParty)]:f0,[N(I2.firstParty)]:f0,[N(h2.firstParty)]:f0,[N(y2.firstParty)]:h1,[N(T2.firstParty)]:h1,[N(C2.firstParty)]:L0,[N(a0.firstParty)]:L0,[N(o0.firstParty)]:L0,[N(r0.firstParty)]:L0,[N(A2.firstParty)]:n8}});function m(Z){return JZ.includes(Z)}function K0(Z){return QZ.includes(Z)}var JZ,QZ;var Q5=H(()=>{JZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];QZ=["sonnet","opus","haiku"]});function XZ(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function c1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function YZ(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(c1(J,$))return!0;if(!$.startsWith("claude-")&&c1(J,`claude-${$}`))return!0;return!1}function d1(Z,$){for(let J of $){if(K0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function n1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=X2(Z).trim().toLowerCase(),Y=J.map((q)=>q.trim().toLowerCase());if(Y.includes(X)){if(!K0(X)||!d1(X,Y))return!0}for(let q of Y)if(K0(q)&&!d1(q,Y)&&XZ(X,q))return!0;if(m(X)){let q=I(X).toLowerCase();if(Y.includes(q))return!0}for(let q of Y)if(!K0(q)&&m(q)){if(I(q).toLowerCase()===X)return!0}for(let q of Y)if(!K0(q)&&!m(q)){if(YZ(X,q))return!0}return!1}var t1=H(()=>{j0();Q5();F0();Y2()});function R2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function N0(){let Z=K();if(!Z?.model)return;return r1(Z.model)}function V7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=N0();if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"codexspark";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return $4()}function W7(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function X5(){let Z,$=l1();if($!==void 0)Z=$;else{let J=y()||{},Q=R2(J.model),X=N0();if(e1()!==void 0)Z=R2(o1().activeModelForProject)||void 0;else Z=X||Q||void 0}if(Z&&!n1(Z))return;return Z}function z7(){let Z=X5();if(Z!==void 0&&Z!==null)return I(Z);return J4()}function zZ(){return D0()}function D0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=N0();if(V()==="gemini")return Z||"gemini-2.5-pro";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.7";if(V()!=="firstParty")return j().opus46;return j().opus48}function g0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=N0();if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"mistral-medium-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5";if(V()!=="firstParty")return j().sonnet45;return j().sonnet46}function $4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=N0();if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function G7(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(X5()==="opusplan"&&$==="plan"&&!Q)return D0();if(X5()==="haiku"&&$==="plan")return g0();return J}function A0(){let Z=N0();if(V()==="github"){let $=y()||{};return R2($.model)||Z||"github:copilot"}if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(H2())return D0()+(h0()?"[1m]":"");if(w2())return D0()+(h0()?"[1m]":"");return g0()}function J4(){return I(A0())}function N(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return N(X2(Z))}function GZ(Z=!1){if(H2()||w2()){if(h0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?i1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?i1(!0):""}`}return"Sonnet 4.6 · Best for everyday tasks"}function x7(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 4.6";return X4(I(Z))}function i1(Z){if(V()!=="firstParty")return"";let $=p1(J5(Z));return` ·${Z?` (${s1})`:""} ${$}`}function h0(){if(V0()||V5()||V()!=="firstParty")return!1;if(U()&&M()===null)return!1;return!0}function j7(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 a1(Z);return X4(Z)}function Q4(Z){if(V()==="openai"||V()==="gemini"||V()==="codex"||V()==="github"){if(g2[Z])return g2[Z];if(V()==="github"){let{getCopilotDisplayName:$}=(k0(),M0(_0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().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 X4(Z){let $=Q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function B7(Z){let $=Q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=R2(Z);if(!$)return g0();let J=$.toLowerCase(),Q=a(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return g0()+(Q?"[1m]":"");case"sonnet":return g0()+(Q?"[1m]":"");case"haiku":return $4()+(Q?"[1m]":"");case"opus":return D0()+(Q?"[1m]":"");case"best":return zZ();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(X==="fable"||X==="fable5")return j().fable5;if(V()==="firstParty"&&jZ(X)&&BZ())return D0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function R7(Z,$){if(a(Z)||!a($))return Z;if(Y5(I(Z)))return Z+"[1m]";return Z}function jZ(Z){return xZ.includes(Z)}function BZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function H7(Z){if(Z===null){if(U())return`Default (${GZ()})`;return`Default (${J4()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function w7(Z){if(V()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-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 F7(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function L7(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}var xZ;var F0=H(()=>{J0();$0();i();Z4();n();q5();u();WZ();Y2();m1();j0();l();qZ();t1();Q5();VZ();u2();xZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function W5(Z){return}async function D7(){}var Y4=()=>{};var j4={};m2(j4,{prefetchOpenAICompatibleModels:()=>bZ,getDiscoveredContextWindow:()=>RZ,discoverOpenAICompatibleModelOptions:()=>x4});function RZ(Z){return z4.get(Z)}function HZ(){return(K()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function G4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function wZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function FZ(Z){let $=K()?.apiKey?.trim();if(!$)return{};if(wZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(G4(Z))J["api-key"]=$;return J}function LZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&G4(Z)?(Y)=>{try{let q=new URL(Y);return q.searchParams.set("api-version",Q),q.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function KZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function DZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function NZ(Z,$){let J=new Set;for(let Q of Z)try{let X=await P.get(Q,{headers:$,timeout:W4}),Y=[];for(let q of X.data?.data??[]){let W=q.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=q.name?.trim()||W,B=q.context_length??null;if(B&&B>0)z4.set(W,B);let R=B?` · ${DZ(B)}`:"";Y.push({value:W,label:G,description:`${W}${R}`})}if(Y.length>0)return Y.sort((q,W)=>{let G=String(q.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",R=G.localeCompare(B);return R!==0?R:String(q.value).localeCompare(String(W.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function OZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:W4}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function x4(){if(V()!=="openai")return[];let Z=HZ(),$=FZ(Z),J=await NZ(LZ(Z),$);if(J.length>0)return J;let Q=KZ(Z);if(Q)return OZ(Q,$);return[]}function bZ(){if(u0)return u0;return u0=(async()=>{if(!V4()?.startsWith("openai:"))return;try{let $=await x4();if($.length>0)q4($)}catch{}finally{u0=null}})(),u0}var W4=5000,z4,u0=null;var B4=H(()=>{q2();$0();m5();Z0();l();Z4();z4=new Map});function H4(Z,$,J){let Q=K()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=R4($,J);if(X!==void 0)return X;return R4(Z,J)}function R4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function w4(Z){let $=H4(UZ,EZ,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(B4(),M0(j4)),Q=J(Z);if(Q!==void 0)return Q}catch{}try{let{getCatalogCopilotContextWindow:J}=(k0(),M0(_0));return J(Z)}catch{return}}function F4(Z){let $=H4(PZ,_Z,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(k0(),M0(_0));return J(Z)}catch{return}}var UZ,PZ,EZ,_Z;var L4=H(()=>{$0();UZ={"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},PZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},EZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),_Z=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function K4(){let Z=K()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function a(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function Y5(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function u7(Z,$){if(a(Z))return 1e6;if(K4()){let Q=w4(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."),kZ}let J=W5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>z5&&V0())return z5;return J.max_input_tokens}if(!V0()&&b(Z).includes("fable-5"))return 1e6;if($?.includes(y0)&&Y5(Z))return 1e6;if(vZ(Z))return 1e6;return z5}function vZ(Z){if(V0())return!1;if(a(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function p7(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function m7(Z){let $,J;if(K4()){let Y=F4(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=MZ,J=SZ;let X=W5(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var z5=200000,kZ,h7=20000,MZ=32000,SZ=64000,f7=8000,g7=64000;var q5=H(()=>{r2();$0();i();u();F0();Y4();L4();kZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var IZ,D4;var N4=H(()=>{l0();l();IZ=[{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"}],D4=v((Z,$)=>{if(V()==="firstParty")return;let J=Z.toLowerCase();for(let Q of IZ){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function yZ(Z){let $=[],J=[];for(let Q of Z)if(E4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function q9(Z){if(!Z||Z.length===0)return;if(U()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=yZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${E4.join(", ")}`);return $.length>0?$:void 0}function O4(Z){let $=D4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=V();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-4")}function TZ(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function CZ(Z){let $=b(Z),J=V();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function AZ(Z){let $=b(Z),J=V();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function V9(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function W9(){let Z=V();if(Z==="vertex"||Z==="bedrock")return N1;return D1}function b4(){return(V()==="firstParty"||V()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function z9(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return V()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function G9(Z,$){let J=[..._4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=U4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function k4(){G5.cache?.clear?.(),_4.cache?.clear?.(),hZ.cache?.clear?.()}var E4,G5,_4,hZ;var M4=H(()=>{l0();k1();J0();r2();I0();n();q5();u();F0();N4();l();j0();E4=[y0];G5=v((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=V(),X=b4();if(!J)$.push(G2);if(U())$.push(B0);if(a(Z))$.push(y0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&O4(Z))$.push(F1);if(X&&O4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(b1),$.push(U1);let Y=CZ(Z);if(b4()&&Y)$.push(L1);let q=P4("tengu_tool_pear"),W=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||C0("tengu_amber_json_tools",!1));if(X&&AZ(Z)&&q)$.push(K1);if(X&&W)$.push(P1);if(Q==="vertex"&&TZ(Z))$.push(a2);if(Q==="foundry")$.push(a2);if(X)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),_4=v((Z)=>{let $=G5(Z);if(V()==="bedrock")return $.filter((J)=>!o2.has(J));return $}),hZ=v((Z)=>{return G5(Z).filter((J)=>o2.has(J))})});import{execFile as fZ}from"child_process";function S4(Z){return new Promise(($)=>{fZ("security",["find-generic-password","-a",L2(),"-w","-s",Z],{encoding:"utf-8",timeout:gZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function H9(){if(process.platform!=="darwin"||F2||g())return;let Z=S4(s(v4)),$=S4(s());F2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)I4(J.stdout);if(!Q.timedOut)x5={stdout:Q.stdout}})}async function w9(){if(F2)await F2}function y4(){return x5}function j5(){x5=null}var gZ=1e4,x5=null,F2=null;var T4=H(()=>{u();l2()});function B5(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)Y.unref()})}var C4=()=>{};function K9(){return A4}function h4(){A4.clear()}var A4;var f4=H(()=>{A4=new Map});var M$={};m2(M$,{validateForceLoginOrg:()=>k$,saveOAuthTokensIfNeeded:()=>$8,saveApiKey:()=>k5,removeApiKey:()=>H$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>e4,refreshAwsAuth:()=>o4,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>x$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>j$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>Z$,isUsing3PServices:()=>O2,isTeamSubscriber:()=>N$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>V5,isOverageProvisioningAllowed:()=>K$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>Y8,isMaxSubscriber:()=>H2,isGcpAuthRefreshFromProjectSettings:()=>E5,isEnterpriseSubscriber:()=>O$,isCustomApiKeyApproved:()=>R$,isConsumerSubscriber:()=>E$,isClaudeAISubscriber:()=>U,isAwsCredentialExportFromProjectSettings:()=>U5,isAwsAuthRefreshFromProjectSettings:()=>O5,isAnthropicAuthEnabled:()=>P0,is1PApiCustomer:()=>L$,hasProfileScope:()=>q0,hasOpusAccess:()=>D$,hasAnthropicApiKeyAuth:()=>aZ,handleOAuth401Error:()=>$5,getSubscriptionType:()=>M,getSubscriptionName:()=>Q8,getRateLimitTier:()=>J8,getOtelHeadersFromHelper:()=>U$,getOauthAccountInfo:()=>N2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>v0,getApiKeyHelperElapsedMs:()=>oZ,getApiKeyFromConfigOrMacOSKeychain:()=>U2,getApiKeyFromApiKeyHelperCached:()=>H5,getApiKeyFromApiKeyHelper:()=>a4,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>_$,clearOAuthTokenCache:()=>M5,clearGcpCredentialsCache:()=>G$,clearAwsCredentialsCache:()=>Y$,clearApiKeyHelperCache:()=>eZ,checkGcpCredentialsValid:()=>r4,checkAndRefreshOAuthTokenIfNeeded:()=>t0,calculateApiKeyHelperTTL:()=>s4});import{exec as i4}from"child_process";import{mkdir as tZ,stat as iZ}from"fs/promises";import{join as lZ}from"path";function D2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function P0(){if(g())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=O2(),J=(y()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!D2()||Y&&!D2())}function v0(){if(g()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(o()&&!D2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(U0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function aZ(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=K();if(q?.transport!=="anthropic")return;let W=q.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:H5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=m4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=i2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!O2()&&!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&&!O2())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=i2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:H5(),source:"apiKeyHelper"}}let Y=U2();if(Y)return Y;return{key:null,source:"none"}}function o(){if(g())return E("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function l4(){let Z=o();if(!Z)return!1;let $=E("projectSettings"),J=E("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function N5(){return(y()||{}).awsAuthRefresh}function O5(){let Z=N5();if(!Z)return!1;let $=E("projectSettings"),J=E("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function b5(){return(y()||{}).awsCredentialExport}function U5(){let Z=b5();if(!Z)return!1;let $=E("projectSettings"),J=E("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 sZ}function oZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function a4(Z){if(!o())return null;let $=s4();if(S){if(Date.now()-S.timestamp<$)return S.value;if(!c)c={promise:g4(Z,!1,b0),startedAt:null};return S.value}if(c)return c.promise;return c={promise:g4(Z,!0,b0),startedAt:Date.now()},c.promise}async function g4(Z,$,J){try{let Q=await rZ(Z);if(J!==b0)return Q;if(Q!==null)S={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==b0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&S&&S.value!==" ")return S={...S,timestamp:Date.now()},S.value;return S={value:" ",timestamp:Date.now()}," "}finally{if(J===b0)c=null}}async function rZ(Z){let $=o();if(!$)return null;if(l4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",Y),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function H5(){return S?.value??null}function eZ(){b0++,S=null,c=null}function Z$(Z){if(l4()&&!d())return;a4(Z)}async function J$(){let Z=N5();if(!Z)return!1;if(O5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await s2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return o4(Z)}}function o4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=i4(Z,{timeout:Q$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function X$(){let Z=b5();if(!Z)return null;if(U5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await s2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=L5($.stdout.trim());if(!j1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function Y$(){z0.cache.clear()}function P5(){return(y()||{}).gcpAuthRefresh}function E5(){let Z=P5();if(!Z)return!1;let $=E("projectSettings"),J=E("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function r4(){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=B5(q$).then(()=>{throw new q8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function W$(){let Z=P5();if(!Z)return!1;if(E5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await r4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return e4(Z)}function e4(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=i4(Z,{timeout:z$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function G$(){_5.cache.clear()}function x$(){if(!P5())return;if(E5()){if(!d()&&!f())return}_5()}function j$(){let Z=N5(),$=b5();if(!Z&&!$)return;if(O5()||U5()){if(!d()&&!f())return}z0(),j()}function B$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function k5(Z){if(!B$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await Z8();let $=!1;if(process.platform==="darwin")try{let Q=s(),X=L2(),Y=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
2
- `;await H0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){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 X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U2.cache.clear?.(),j5()}function R$(Z){let $=L(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function H$(){await Z8(),C((Z)=>({...Z,primaryApiKey:void 0})),U2.cache.clear?.(),j5()}async function Z8(){try{await G1()}catch(Z){D(Z)}}function $8(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 $=b2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),k4(),h4(),Y}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 M5(){w.cache?.clear?.(),O0()}async function w$(){try{let{mtimeMs:Z}=await iZ(lZ(F5(),".credentials.json"));if(Z!==u4)u4=Z,M5()}catch{w.cache?.clear?.()}}function $5(Z){let $=R5.get(Z);if($)return $;let J=F$(Z).finally(()=>{R5.delete(Z)});return R5.set(Z,J),J}async function F$(Z){M5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return t0(0,!0)}async function c0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await b2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return D(Z),null}}function t0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=w5(Z,$).finally(()=>{p0=null}),p0}return w5(Z,$)}async function w5(Z,$){await w$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!U0(Q.scopes))return!1;w.cache?.clear?.(),O0();let X=await c0();if(!X?.refreshToken||!m0(X.expiresAt))return!1;let Y=F5();await tZ(Y,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await d4(Y),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await B5(1000+Math.random()*1000),w5(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?.(),O0();let W=await c0();if(!W?.refreshToken||!m0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await n4(W.refreshToken,{scopes:U0(W.scopes)?void 0:W.scopes});return $8(G),w.cache?.clear?.(),O0(),!0}catch(W){D(W),w.cache?.clear?.(),O0();let G=await c0();if(G&&!m0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await q(),x("tengu_oauth_token_refresh_lock_released",{})}}function U(){if(!P0())return!1;return U0(w()?.scopes)}function q0(){return w()?.scopes?.includes(c4)??!1}function L$(){{let Z=K()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(U())return!1;return!0}function N2(){return P0()?L().oauthAccount:void 0}function K$(){let $=N2()?.billingType;if(!U()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function D$(){let Z=M();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function M(){if(r5())return o5();if(!P0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H2(){return M()==="max"}function N$(){return M()==="team"}function w2(){return M()==="team"&&J8()==="default_claude_max_5x"}function O$(){return M()==="enterprise"}function V5(){return M()==="pro"}function J8(){if(!P0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function Q8(){switch(M()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function O2(){let Z=K()?.transport;if(!Z)return!1;return Z!=="anthropic"}function X8(){return(y()||{}).otelHeadersHelper}function Y8(){let Z=X8();if(!Z)return!1;let $=E("projectSettings"),J=E("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function U$(){let Z=X8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||b$.toString());if(K2&&Date.now()-p4<$)return K2;if(Y8()){if(!d())return{}}try{let J=K5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=L5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return K2=Q,p4=Date.now(),K2}catch(J){throw D(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function P$(Z){return Z==="max"||Z==="pro"}function E$(){let Z=M();return U()&&Z!==null&&P$(Z)}function _$(){if(V()!=="firstParty")return;let{source:$}=v0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(U())J.subscription=Q8();else J.tokenSource=$;let{key:Q,source:X}=n0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let q=N2()?.organizationName;if(q)J.organization=q}let Y=N2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function k$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!P0())return{valid:!0};let Z=E("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await t0();let $=w();if(!$)return{valid:!0};let{source:J}=v0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await R0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
- This machine requires organization ${Z} but the profile could not be fetched.
4
- This may be a network error, or the token may lack the user:profile scope required for
5
- verification (tokens from 'claude setup-token' do not include this scope).
6
- Try again, or obtain a full-scope token via 'claude auth login'.`};let Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
- different organization than required by this machine's managed settings.
8
-
9
- Required organization: ${Z}
10
- Token organization: ${Y}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var sZ=300000,S=null,c=null,b0=0,$$=3600000,Q$=180000,z0,q$=5000,V$=3600000,z$=180000,_5,U2,w,u4=0,R5,p0=null,K2=null,p4=0,b$=1740000,q8;var n=H(()=>{pZ();z1();l0();I0();j2();Y2();l();J0();$0();e5();t4();n2();W1();x1();R1();w1();M4();i();Z0();u();q1();mZ();dZ();s0();cZ();nZ();T4();l2();j0();C4();uZ();f4();z0=D5(async()=>{let Z=await J$(),$=await X$();if(Z||$)await B1();return $},$$);_5=D5(async()=>{return await W$()},V$);U2=v(()=>{if(g())return null;if(process.platform==="darwin"){let $=y4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=s();try{let Q=K5(`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=v(()=>{if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=b2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return D($),null}});R5=new Map;q8=class q8 extends Error{}});function U0(Z){return Boolean(Z?.includes(S5))}function S$(Z){return Z?.split(" ").filter(Boolean)??[]}function zQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:q,loginHint:W,loginMethod:G}){let B=X?O().CLAUDE_AI_AUTHORIZE_URL:O().CONSOLE_AUTHORIZE_URL,R=new URL(B);R.searchParams.append("code","true"),R.searchParams.append("client_id",O().CLIENT_ID),R.searchParams.append("response_type","code"),R.searchParams.append("redirect_uri",Q?O().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=Y?[S5]:z8;if(R.searchParams.append("scope",W0.join(" ")),R.searchParams.append("code_challenge",Z),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("state",$),q)R.searchParams.append("orgUUID",q);if(W)R.searchParams.append("login_hint",W);if(G)R.searchParams.append("login_method",G);return R.toString()}async function GQ(Z,$,J,Q,X=!1,Y){let q={grant_type:"authorization_code",code:Z,redirect_uri:X?O().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:O().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)q.expires_in=Y;let W=await P.post(O().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return x("tengu_oauth_token_exchange_success",{}),W.data}async function n4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:O().CLIENT_ID,scope:(($?.length)?$:W8).join(" ")};try{let Q=await P.post(O().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:q=Z,expires_in:W}=X,G=Date.now()+W*1000,B=S$(X.scope);x("tengu_oauth_token_refresh_success",{});let R=L(),W0=w(),_=R.oauthAccount?.billingType!==void 0&&R.oauthAccount?.accountCreatedAt!==void 0&&R.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await v$(Y);if(_&&R.oauthAccount){let r={};if(_.displayName!==void 0)r.displayName=_.displayName;if(typeof _.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=_.hasExtraUsageEnabled;if(_.billingType!==null)r.billingType=_.billingType;if(_.accountCreatedAt!==void 0)r.accountCreatedAt=_.accountCreatedAt;if(_.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=_.subscriptionCreatedAt;if(Object.keys(r).length>0)C((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...r}:i0.oauthAccount}))}return{accessToken:Y,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:_?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:_?.rateLimitTier??W0?.rateLimitTier??null,profile:_?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function xQ(Z){let $=await P.get(O().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!L().oauthAccount)throw Error("OAuth account information not found in config");C((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function jQ(Z){try{let $=await P.post(O().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await k5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function v$(Z){let $=await R0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function BQ(){let $=L().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let X=(await R0(J))?.organization?.uuid;if(!X)return null;return X}async function RQ(){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)V8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await t0();let X=L();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!U()||!q0())return!1;let Y=w();if(Y?.accessToken){let q=await R0(Y.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return V8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function V8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var t4=H(()=>{q2();j2();I0();n();i();Z0();n2()});
16
- export{H9 as W1,w9 as X1,T4 as Y1,v5 as Z1,I5 as _1,g$ as $1,u$ as a2,x8 as b2,R8 as c2,p$ as d2,A5 as e2,a0 as f2,o0 as g2,G0 as h2,f2 as i2,d2 as j2,N8 as k2,k0 as l2,V as m2,e$ as n2,ZJ as o2,$J as p2,JJ as q2,l as r2,j as s2,xJ as t2,Y2 as u2,wJ as v2,FJ as w2,a5 as x2,NJ as y2,OJ as z2,e5 as A2,MJ as B2,R0 as C2,n2 as D2,U0 as E2,S$ as F2,zQ as G2,GQ as H2,n4 as I2,xQ as J2,jQ as K2,m0 as L2,v$ as M2,BQ as N2,RQ as O2,V8 as P2,t4 as Q2,hJ as R2,T8 as S2,Z1 as T2,W1 as U2,z2 as V2,x1 as W2,cJ as X2,R1 as Y2,T as Z2,w1 as _2,y0 as $2,L1 as a3,K1 as b3,iJ as c3,lJ as d3,O1 as e3,sJ as f3,aJ as g3,b1 as h3,oJ as i3,rJ as j3,eJ as k3,r2 as l3,A as m3,v1 as n3,f8 as o3,w3 as p3,F3 as q3,L3 as r3,I1 as s3,K3 as t3,D3 as u3,g8 as v3,N3 as w3,O3 as x3,b3 as y3,U3 as z3,P3 as A3,m8 as B3,E3 as C3,_3 as D3,k3 as E3,M3 as F3,A1 as G3,f0 as H3,n8 as I3,i8 as J3,l8 as K3,J5 as L3,$Z as M3,A3 as N3,p1 as O3,m1 as P3,JZ as Q3,Q5 as R3,n1 as S3,t1 as T3,V7 as U3,W7 as V3,X5 as W3,z7 as X3,zZ as Y3,D0 as Z3,g0 as _3,$4 as $3,G7 as a4,A0 as b4,J4 as c4,N as d4,b as e4,GZ as f4,x7 as g4,i1 as h4,h0 as i4,j7 as j4,Q4 as k4,X4 as l4,B7 as m4,I as n4,R7 as o4,BZ as p4,H7 as q4,w7 as r4,F7 as s4,L7 as t4,F0 as u4,D7 as v4,Y4 as w4,x4,bZ as y4,B4 as z4,h7 as A4,f7 as B4,g7 as C4,V0 as D4,a as E4,u7 as F4,vZ as G4,p7 as H4,m7 as I4,q5 as J4,D4 as K4,N4 as L4,q9 as M4,AZ as N4,V9 as O4,W9 as P4,b4 as Q4,z9 as R4,_4 as S4,hZ as T4,G9 as U4,k4 as V4,M4 as W4,B5 as X4,C4 as Y4,K9 as Z4,h4 as _4,f4 as $4,P0 as a5,v0 as b5,X0 as c5,aZ as d5,n0 as e5,o as f5,O5 as g5,U5 as h5,s4 as i5,oZ as j5,a4 as k5,H5 as l5,eZ as m5,Z$ as n5,o4 as o5,z0 as p5,Y$ as q5,E5 as r5,r4 as s5,e4 as t5,_5 as u5,G$ as v5,x$ as w5,j$ as x5,U2 as y5,k5 as z5,R$ as A5,H$ as B5,$8 as C5,w as D5,M5 as E5,$5 as F5,c0 as G5,t0 as H5,U as I5,q0 as J5,L$ as K5,N2 as L5,K$ as M5,D$ as N5,M as O5,H2 as P5,N$ as Q5,w2 as R5,O$ as S5,V5 as T5,J8 as U5,Q8 as V5,O2 as W5,Y8 as X5,U$ as Y5,E$ as Z5,_$ as _5,k$ as $5,M$ as a6,n as b6};
@@ -1,3 +0,0 @@
1
- import{Gea as L,Kea as O}from"./cli-0.6.6-czhez59x.mjs";import{wpa as N}from"./cli-0.6.6-py5db2ds.mjs";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
2
- `,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
3
- export{S as pZ,J as qZ,T as rZ,U as sZ,V as tZ,W as uZ,Q as vZ};
@@ -1,2 +0,0 @@
1
- import{$X as T,aY as X,bY as I,dY as Y,eY as p,rY as v,sY as Z,tY as D}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as P,w1 as V}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as H}from"./cli-0.6.6-c267ckfv.mjs";import{Rna as F,_ka as W}from"./cli-0.6.6-ncqg4xxp.mjs";import{spa as A,wpa as C}from"./cli-0.6.6-py5db2ds.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
- export{u as sh,M as th};
@@ -1,2 +0,0 @@
1
- import{QT as k,RT as f,fU as u}from"./cli-0.6.6-ww6zy0p0.mjs";import{mV as C,yV as d}from"./cli-0.6.6-fj9rpekf.mjs";import{Q1 as A,S1 as F}from"./cli-0.6.6-nymfz9tw.mjs";import{m2 as q,r2 as i}from"./cli-0.6.6-8yvh28tb.mjs";import{f6 as W,i6 as _,p6 as j,q6 as w,v6 as I}from"./cli-0.6.6-4jrf033h.mjs";import{Qda as V,Yda as U}from"./cli-0.6.6-q1j20ysc.mjs";import{uga as M,vga as v}from"./cli-0.6.6-7r4esgkf.mjs";import{Cha as x,cha as X,dha as R,hha as p,zha as J}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as P,_ha as T}from"./cli-0.6.6-g6ja9jcs.mjs";import{xpa as O}from"./cli-0.6.6-py5db2ds.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.6.6-02cwy0nm.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 ua,$z as va,Xz as wa,Wz as xa,Lz as ya};
@@ -1,2 +0,0 @@
1
- import{Pb as p}from"./cli-0.6.6-xnazk7t9.mjs";import{As as h,BR as Kj,Bs as k,Cl as R,Ct as w,FQ as f,Ft as V,GQ as m,Gs as jj,HQ as S,Hl as r,JR as I,Lt as qj,NO as x,Nt as zj,Rl as y,Rv as C,SQ as A,Sl as s,Sv as Bj,Wk as $,XR as Qj,Xk as P,ZQ as c,_Q as X,as as W,ck as O,cs as e,dk as o,kB as E,lB as Gj,lj as T,nj as u,oP as Jj,pl as n}from"./cli-0.6.6-23snct9d.mjs";import{JT as t,vT as v}from"./cli-0.6.6-ww6zy0p0.mjs";import{_U as D,bV as Hj}from"./cli-0.6.6-heymhe69.mjs";import{n4 as b,u4 as i}from"./cli-0.6.6-8yvh28tb.mjs";import{Ifa as Z,Jfa as l}from"./cli-0.6.6-d5dexg4d.mjs";import{Cha as g,zha as N}from"./cli-0.6.6-hcajyfhg.mjs";import{Rna as a,Uja as L,Xja as U,aka as Y,dla as _,fla as M,lna as K}from"./cli-0.6.6-ncqg4xxp.mjs";a();s();jj();qj();o();u();import{dirname as Vj}from"path";Qj();zj();Hj();l();g();e();Jj();i();r();Gj();Kj();t();Bj();n();function Xj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===O);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=C().safeParse(G.todos);return H.success?H.data:[]}return[]}function cj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)W(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!v()&&j.messages&&j.messages.length>0){let B=Xj(j.messages);if(B.length>0){let z=L();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function Yj(j){return}function Zj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function $j(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return N(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!_()&&z.model&&z.model!=="inherit")M(b(z.model));return{agentDefinition:z,agentType:z.agentType}}async function Pj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:w(H)}}function Rj(j){let q=$();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}E(j.worktreePath),Y(Z()),P(j),I(),y(),R.cache.clear?.()}function pj(){let j=$();if(!j)return;P(null),I(),y(),R.cache.clear?.();try{process.chdir(j.originalCwd)}catch{return}E(j.originalCwd),Y(Z())}async function dj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(x(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(U(T(Q),q.transcriptPath?Vj(q.transcriptPath):null),await p(),await m(),!h(Q))k(j.messages)}}else if(j.contentReplacements?.length)await f(j.contentReplacements);if(A(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Rj(j.worktreeSession),S();let{agentDefinition:G,agentType:H}=$j(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);c(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?Yj(j):void 0,F=Zj(j.agentName,j.agentColor);D(j.agentName);let d=await Pj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...F&&{standaloneAgentContext:F},agentDefinitions:d}}}
2
- export{cj as za,Zj as Aa,$j as Ba,Rj as Ca,pj as Da,dj as Ea};
@@ -1,2 +0,0 @@
1
- import{$u as _f,Yu as g,Zu as Zf,kn as Xf,ln as Uf}from"./cli-0.6.6-23snct9d.mjs";import{nW as Wf,oW as Tf}from"./cli-0.6.6-1a0fnhh0.mjs";import{HY as F,IY as cf,JY as r,LY as q,PY as Vf,oX as n,oZ as a,uX as s,vX as If}from"./cli-0.6.6-en2sexw5.mjs";import{t1 as Qf,u1 as H,v1 as X,w1 as T}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as Rf}from"./cli-0.6.6-c267ckfv.mjs";import{F3 as Jf,G3 as hf,L3 as M,O3 as p,P3 as Ef,m3 as Nf,o3 as b,p3 as _,q3 as Hf,s3 as j,v3 as qf,x3 as zf}from"./cli-0.6.6-8yvh28tb.mjs";import{x6 as i,y6 as yf}from"./cli-0.6.6-wctj7gmc.mjs";import{Q_ as w,Waa as Gf,Zba as l,f$ as Bf,hba as Cf,sca as Pf}from"./cli-0.6.6-q1j20ysc.mjs";import{lea as mf,tea as Of}from"./cli-0.6.6-b1wqaqv9.mjs";import{wga as D,zga as Lf}from"./cli-0.6.6-a837m6n5.mjs";import{spa as x,wpa as o}from"./cli-0.6.6-py5db2ds.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=H(q,{color:"promptBorder",dimColor:!0,children:w}),f[0]=z;else z=f[0];return z}let N;if(f[1]===Symbol.for("react.memo_cache_sentinel"))N=H(q,{color:"fastMode",children:w}),f[1]=N;else N=f[1];return N}function U(m=!0,f=!1){if(!m)return w;let G=s(l().theme);if(f)return i.dim(F("promptBorder",G)(w));return F("fastMode",G)(w)}var t;var ff=o(()=>{yf();Bf();a();Pf();If();cf();T();t=x(n(),1)});function S(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let N=!j(G.mainLoopModel);return{...G,...N?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function Df(m){let f=kf.c(30),{onDone:G,unavailableReason:N}=m,z=g(vf),V=g(Af),W=Zf(),[J,wf]=Kf.useState(V??!1),y;if(f[0]===Symbol.for("react.memo_cache_sentinel"))y=qf(),f[0]=y;else y=f[0];let B=y,$=B.status==="cooldown",Q=N!==null,P;if(f[1]===Symbol.for("react.memo_cache_sentinel"))P=p(M(!0)),f[1]=P;else P=f[1];let d=P,I;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==W)I=function(){if(Q)return;if(S(J,W),D("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let v=U(J),rf=!j(z)?` · model set to ${_}`:"";G(`${v} Fast mode ON${rf} · ${d}`)}else W(uf),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=W,f[7]=I;else I=f[7];let u=I,c;if(f[8]!==V||f[9]!==Q||f[10]!==G||f[11]!==W)c=function(){if(Q){if(V)S(!1,W);G("Fast mode OFF",{display:"system"});return}let v=V?`${U()} Kept Fast mode ON`:"Kept Fast mode OFF";G(v,{display:"system"})},f[8]=V,f[9]=Q,f[10]=G,f[11]=W,f[12]=c;else c=f[12];let A=c,L;if(f[13]!==Q)L=function(){if(Q)return;wf(jf)},f[13]=Q,f[14]=L;else L=f[14];let Z=L,O;if(f[15]!==u||f[16]!==Z)O={"confirm:yes":u,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=u,f[16]=Z,f[17]=O;else O=f[17];let C;if(f[18]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},f[18]=C;else C=f[18];Wf(O,C);let h;if(f[19]===Symbol.for("react.memo_cache_sentinel"))h=X(q,{children:[H(e,{cooldown:$})," Fast mode (research preview)"]}),f[19]=h;else h=f[19];let Yf=h,k;if(f[20]!==Q)k=(Y)=>Y.pending?X(q,{children:["Press ",Y.keyName," again to exit"]}):Q?H(q,{children:"Esc to cancel"}):H(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),f[20]=Q,f[21]=k;else k=f[21];let K;if(f[22]!==J||f[23]!==N)K=N?H(r,{marginLeft:2,children:H(q,{color:"error",children:N})}):X(Qf,{children:[H(r,{flexDirection:"column",gap:0,marginLeft:2,children:X(r,{flexDirection:"row",gap:2,children:[H(q,{bold:!0,children:"Fast mode"}),H(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"}),H(q,{dimColor:!0,children:d})]})}),$&&B.status==="cooldown"&&H(r,{marginLeft:2,children:X(q,{color:"warning",children:[B.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(B.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),f[22]=J,f[23]=N,f[24]=K;else K=f[24];let E;if(f[25]===Symbol.for("react.memo_cache_sentinel"))E=X(q,{dimColor:!0,children:["Learn more:"," ",H(Vf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),f[25]=E;else E=f[25];let R;if(f[26]!==A||f[27]!==K||f[28]!==k)R=X(Xf,{title:Yf,subtitle:`High-speed mode for ${_}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:A,color:"fastMode",inputGuide:k,children:[K,E]}),f[26]=A,f[27]=K,f[28]=k,f[29]=R;else R=f[29];return R}function jf(m){return!m}function uf(m){return{...m,fastMode:!1}}function Af(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let N=b();if(N)return`Fast mode unavailable: ${N}`;let{mainLoopModel:z}=f();if(S(m,G),D("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let V=U(!0),W=!j(z)?` · model set to ${_}`:"",J=p(M(!0));return`${V} Fast mode ON${W} · ${J}`}else return"Fast mode OFF"}async function H0(m,f,G){if(!Nf())return null;await Jf();let N=G?.trim().toLowerCase();if(N==="on"||N==="off"){let V=await Ff(N==="on",f.getAppState,f.setAppState);return m(V),null}let z=b();return D("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),H(Df,{onDone:m,unavailableReason:z})}var kf,Kf;var xf=o(()=>{Uf();ff();a();Tf();Lf();_f();hf();Of();Ef();Cf();T();kf=x(n(),1),Kf=x(Rf(),1)});
2
- export{U as _d,ff as $d,Df as ae,H0 as be,xf as ce};
@@ -1,2 +0,0 @@
1
- import{AK as C,KK as N,TK as $,UK as k,_K as V}from"./cli-0.6.6-23snct9d.mjs";import{JY as f,LY as t,PY as v,oX as P,oZ as D}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as n,v1 as i,w1 as M}from"./cli-0.6.6-arvcw19g.mjs";import{spa as w,wpa as L}from"./cli-0.6.6-py5db2ds.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
2
- export{J as Zf,z as _f};
@@ -1,2 +0,0 @@
1
- import{DB as K,FB as I,GB as _,IB as p,IN as r,MA as P,RP as i,SA as b,YA as j,fw as T,xN as f,yN as L}from"./cli-0.6.6-23snct9d.mjs";import{KU as A,LU as n}from"./cli-0.6.6-hyqpcaay.mjs";import{wga as E,zga as C}from"./cli-0.6.6-a837m6n5.mjs";import{Cga as F,Cha as u,Ega as S,lha as M,pha as m,zha as Z}from"./cli-0.6.6-hcajyfhg.mjs";import{Qja as Y,Rja as k,Rna as c,tna as v}from"./cli-0.6.6-ncqg4xxp.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
2
- export{Zq as Qa};
@@ -1,2 +0,0 @@
1
- import{vpa as n,wpa as o}from"./cli-0.6.6-py5db2ds.mjs";var p={};n(p,{stripProtoFields:()=>e,logEventAsync:()=>c,logEvent:()=>i,attachAnalyticsSink:()=>r,_resetForTesting:()=>s});function e(t){return t}function r(){}function i(){}async function c(){}function s(){}var u=()=>{};
2
- export{i as wga,c as xga,p as yga,u as zga};
@@ -1,2 +0,0 @@
1
- import{Vu as o,Wu as n}from"./cli-0.6.6-23snct9d.mjs";import{wpa as e}from"./cli-0.6.6-py5db2ds.mjs";function i(m){t.setState(()=>[...m])}var t,r=()=>t.getState(),d;var s=e(()=>{n();t=o([]),d=t.subscribe});
2
- export{r as td,d as ud,i as vd,s as wd};
@@ -1,2 +0,0 @@
1
- import{wpa as o}from"./cli-0.6.6-py5db2ds.mjs";var t="https://api.githubcopilot.com",i=3,n=1,s=32,c="generativelanguage.googleapis.com",r,a="api.kimi.com",p,_,S,E;var e=o(()=>{r=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),_=new Set(["api.deepseek.com"]),S={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
- export{t as A6,i as B6,n as C6,s as D6,c as E6,r as F6,a as G6,p as H6,_ as I6,S as J6,E as K6,e as L6};
@@ -1,2 +0,0 @@
1
- import{cha as E,dha as F,hha as M}from"./cli-0.6.6-hcajyfhg.mjs";import{Moa as H,cpa as N}from"./cli-0.6.6-mc9x1jry.mjs";N();M();function V(z){let C=Buffer.from(z,"base64url").toString("utf-8"),q=F(C);if(!q||typeof q!=="object"||!("version"in q)||q.version!==1)throw Error(`Unsupported work secret version: ${q&&typeof q==="object"&&"version"in q?q.version:"unknown"}`);let A=q;if(typeof A.session_ingress_token!=="string"||A.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof A.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return q}function W(z,C){let q=new URL(z).hostname,A=q==="localhost"||q==="127.0.0.1",D=A?"ws":"wss",J=A?"v2":"v1",K=z.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${D}://${K}/${J}/session_ingress/ws/${C}`}function X(z,C){if(z===C)return!0;let q=z.slice(z.lastIndexOf("_")+1),A=C.slice(C.lastIndexOf("_")+1);return q.length>=4&&q===A}function Y(z,C){return`${z.replace(/\/+$/,"")}/v1/code/sessions/${C}`}async function Z(z,C){let q=await H.post(`${z}/worker/register`,{},{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),A=q.data?.worker_epoch,D=typeof A==="string"?Number(A):A;if(typeof D!=="number"||!Number.isFinite(D)||!Number.isSafeInteger(D))throw Error(`registerWorker: invalid worker_epoch in response: ${E(q.data)}`);return D}
2
- export{V as jb,W as kb,X as lb,Y as mb,Z as nb};
@@ -1,58 +0,0 @@
1
- import{Bi as m,HO as F,JB as A,KB as p,Uz as k,Vz as I,XO as L,oP as a,tw as U,vw as h,yi as $}from"./cli-0.6.6-23snct9d.mjs";import{Z1 as O,_1 as f}from"./cli-0.6.6-8yvh28tb.mjs";import{lha as S,pha as E}from"./cli-0.6.6-hcajyfhg.mjs";import{Yha as b,_ha as T}from"./cli-0.6.6-g6ja9jcs.mjs";import{bia as y,oia as C}from"./cli-0.6.6-nw0nh4e0.mjs";import{wpa as N}from"./cli-0.6.6-py5db2ds.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
-
3
- Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
-
5
- The file {{docPath}} has already been read for you. Here are its current contents:
6
- <current_doc_content>
7
- {{docContents}}
8
- </current_doc_content>
9
-
10
- Document title: {{docTitle}}
11
- {{customInstructions}}
12
-
13
- Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
-
15
- CRITICAL RULES FOR EDITING:
16
- - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
- - If there's an italicized line immediately after the header, preserve it exactly as-is
18
- - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
- - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
- - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
- - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
- - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
- - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
-
25
- DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
- - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
- - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
- - Do NOT duplicate information that's already obvious from reading the source code
29
- - Do NOT document every function, parameter, or line number reference
30
- - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
- - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
-
33
- What TO document:
34
- - High-level architecture and system design
35
- - Non-obvious patterns, conventions, or gotchas
36
- - Key entry points and where to start reading code
37
- - Important design decisions and their rationale
38
- - Critical dependencies or integration points
39
- - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
-
41
- What NOT to document:
42
- - Anything obvious from reading the code itself
43
- - Exhaustive lists of files, functions, or parameters
44
- - Step-by-step implementation details
45
- - Low-level code mechanics
46
- - Information already in CLAUDE.md or other project docs
47
-
48
- Use the Edit tool with file_path: {{docPath}}
49
-
50
- REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
51
-
52
- DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
- The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
-
55
- "${J}"
56
-
57
- These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
- export{Xw as Fh,Zw as Gh,s as Hh};
@@ -1,2 +0,0 @@
1
- import{sh as Vq,th as fq}from"./cli-0.6.6-962my51a.mjs";import{$V as mq,_V as Pq,nW as o,oW as pq,uW as Qq,wW as Uq,xW as Hq}from"./cli-0.6.6-1a0fnhh0.mjs";import{JY as M,LY as g,oX as Sq,oZ as Wq}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as Z,v1 as F,w1 as Jq}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as _q}from"./cli-0.6.6-c267ckfv.mjs";import{bea as s,cea as jq}from"./cli-0.6.6-b1wqaqv9.mjs";import{spa as Lq,wpa as wq}from"./cli-0.6.6-py5db2ds.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
2
- export{lq as Sg,oq as Tg,sq as Ug,aq as Vg,Tq as Wg};
@@ -1,2 +0,0 @@
1
- import{Cha as $,zha as Q}from"./cli-0.6.6-hcajyfhg.mjs";import{Vha as K,_ha as Z}from"./cli-0.6.6-g6ja9jcs.mjs";import{bia as J,oia as Y}from"./cli-0.6.6-nw0nh4e0.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
- export{T as Q,w as R,y as S};
@@ -1 +0,0 @@
1
- import{Bfa as q,Dfa as A,Efa as x,Ffa as B}from"./cli-0.6.6-gk8s7mch.mjs";import{hha as J}from"./cli-0.6.6-hcajyfhg.mjs";import{_ha as G}from"./cli-0.6.6-g6ja9jcs.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -1,3 +0,0 @@
1
- import{Q0 as k,S0 as w}from"./cli-0.6.6-4nxq7s1k.mjs";import{J5 as j,b6 as v}from"./cli-0.6.6-8yvh28tb.mjs";import{Yea as d,hfa as h,ifa as s}from"./cli-0.6.6-y305shhz.mjs";import{oia as q}from"./cli-0.6.6-nw0nh4e0.mjs";import{wpa as p}from"./cli-0.6.6-py5db2ds.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
- Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
3
- export{x as yU,O as zU,P as AU,Q as BU,R as CU,U as DU,W as EU,X as FU,z as GU};
@@ -1,2 +0,0 @@
1
- import{wpa as l}from"./cli-0.6.6-py5db2ds.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
- export{u as t1,E as u1,a as v1,c as w1};
@@ -1,2 +0,0 @@
1
- import{go as Z,lo as G}from"./cli-0.6.6-23snct9d.mjs";import{Qda as X,Yda as R}from"./cli-0.6.6-q1j20ysc.mjs";import{Cha as O,cha as v,dha as B,hha as A,lha as C,pha as M,zha as U}from"./cli-0.6.6-hcajyfhg.mjs";import{wpa as b}from"./cli-0.6.6-py5db2ds.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
- export{o as kd,c as ld,p as md,d as nd,g as od,w as pd};
@@ -1,2 +0,0 @@
1
- import{D5 as j,b6 as f,e5 as M,m2 as G,q2 as W,r2 as V}from"./cli-0.6.6-8yvh28tb.mjs";import{B9 as Y,tba as x,uba as B,x9 as w,y9 as z}from"./cli-0.6.6-q1j20ysc.mjs";import{nga as J,vga as F}from"./cli-0.6.6-7r4esgkf.mjs";import{wpa as Z}from"./cli-0.6.6-py5db2ds.mjs";function g(){q=void 0,w()}function p(){if(q!==void 0)return q;if(G()!=="firstParty")return q=z(!1);if(!W())return q=z(!1);if(x())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=j();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(J)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=M({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var X=Z(()=>{F();f();V();B();Y()});function S(Q){let $=Q.toUpperCase();return K.has($)||k.some((m)=>$.startsWith(m))}var K,k,y,I;var b=Z(()=>{K=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),k=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
2
- export{g as DS,p as ES,X as FS,S as GS,y as HS,I as IS,b as JS};
@@ -1,15 +0,0 @@
1
- import{P0 as o,S0 as OJ}from"./cli-0.6.6-4nxq7s1k.mjs";import{$7 as K,I_ as G,K_ as BJ,Qda as q,Wba as v,Yda as E,Zaa as i,a8 as I,hba as HJ,sca as D}from"./cli-0.6.6-q1j20ysc.mjs";import{wga as A,zga as XJ}from"./cli-0.6.6-a837m6n5.mjs";import{Cha as zJ,cha as k,dha as j,hha as C,lha as y,pha as F,zha as W}from"./cli-0.6.6-hcajyfhg.mjs";import{Jha as l,Uha as O,Vha as w,Yha as p,_ha as R}from"./cli-0.6.6-g6ja9jcs.mjs";import{bia as H,oia as b}from"./cli-0.6.6-nw0nh4e0.mjs";import{wpa as M}from"./cli-0.6.6-py5db2ds.mjs";import{access as P,chmod as JJ,writeFile as QJ}from"fs/promises";import{homedir as f}from"os";import{join as B}from"path";function S(){return B(H(),"local")}function YJ(J=f()){return B(J,".claude","local")}function m(J){let Q=J?.homeDir??f(),Y=J?.configHomeDir??H();return Array.from(new Set([B(Y,"local"),YJ(Q)]))}function d(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function ZJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function T(){return B(S(),"claudin")}function DJ(){return ZJ(process.argv[1]||"")}async function L(J,Q,Y){try{return await QJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(O(Z)==="EEXIST")return!1;throw Z}}async function $J(){try{let J=S();await y().mkdir(J),await L(B(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=T();if(await L(Q,`#!/bin/sh
2
- exec "${J}/node_modules/.bin/claudin" "$@"`,493))await JJ(Q,493);return!0}catch(J){return q(J),!1}}async function EJ(J,Q){try{if(!await $J())return"install_failed";let Z=await K("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:S(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return v(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function PJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),!0}catch{}return!1}async function fJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),J}catch{}return null}function mJ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var u=M(()=>{D();b();R();I();F();E();C()});import{open as qJ,readFile as WJ,stat as KJ}from"fs/promises";import{homedir as h}from"os";import{join as U}from"path";function V(J){let Q=J?.homedir??h(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:U(Z,".zshrc"),bash:U(Q,".bashrc"),fish:U(Q,".config/fish/config.fish")}}function g(J){let Q=!1;return{filtered:J.filter((Z)=>{if(c.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===T())return Q=!0,!1}}return!0}),hadAlias:Q}}async function x(J){try{return(await WJ(J,{encoding:"utf8"})).split(`
3
- `)}catch(Q){if(p(Q))return null;throw Q}}async function n(J,Q){let Y=await qJ(J,"w");try{await Y.writeFile(Q.join(`
4
- `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function NJ(J){let Q=V(J);for(let Y of Object.values(Q)){let Z=await x(Y);if(!Z)continue;for(let $ of Z)if(c.test($)){let N=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(N&&N[1])return N[1]}}return null}async function nJ(J){let Q=await NJ(J);if(!Q)return null;let Y=J?.homedir??h(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await KJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var c;var s=M(()=>{R();u();c=/^\s*alias\s+claude\s*=/});import{constants as yJ}from"fs";import{access as GJ,writeFile as a}from"fs/promises";import{homedir as X}from"os";import{join as _J}from"path";function r(){let J=process.argv[1]||"";if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}async function vJ(){let J=await K("bun",["pm","ls","-g"],{cwd:X()});if(J.code!==0)return!1;return J.stdout.includes("@claudiolabs/claudin")}async function zQ(){}async function BQ(){return}async function HQ(){return}function OQ(J){let Y=i()?.minimumVersion;if(!Y)return!1;let Z=!o(J,Y);if(Z)W(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function e(){return _J(H(),".update.lock")}async function wJ(){let J=y(),Q=e();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<t)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<t)return!1;await J.unlink(Q)}catch($){if(!w($))return q($),!1}}catch(Y){if(!w(Y))return q(Y),!1}try{return await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=O(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(H()),await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(O($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function MJ(){let J=y(),Q=e();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(w(Y))return;q(Y)}}async function RJ(){let J=G.isRunningWithBun()||r(),Q=null;if(J)Q=await K("bun",["pm","bin","-g"],{cwd:X()});else Q=await K("npm",["-g","config","get","prefix"],{cwd:X()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function SJ(){try{let J=await RJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await GJ(J,yJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new _("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function yQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await K("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:X()});if($.code!==0){if(W(`npm view failed with code ${$.code}`),$.stderr)W(`npm stderr: ${$.stderr.trim()}`);else W("npm stderr: (empty)");if($.stdout)W(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function GQ(){let J=await K("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:X()});if(J.code!==0)return W(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=j(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return W(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function _Q(J){return null}async function vQ(){return{latest:null,stable:null}}async function wQ(J){let Y=await K("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:X()});if(Y.code!==0){if(W(`npm view versions failed with code ${Y.code}`),Y.stderr)W(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return j(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return W(`Failed to parse version history: ${Z}`),[]}}async function MQ(J){if(!await wJ())return q(new _("Another process is currently installing an update")),A("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{if(await TJ(),!G.isRunningWithBun()&&G.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),A("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
5
- Error: Windows NPM detected in WSL
6
-
7
- You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
8
- This configuration is not supported for updates.
9
-
10
- To fix this issue:
11
- 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
- 2. Make sure Linux NPM is in your PATH before the Windows version
13
- 3. Try updating again with 'claude update'
14
- `),"install_failed";let{hasPermissions:Q}=await SJ();if(!Q)return"no_permissions";let Y=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",Z=G.isRunningWithBun()||r()?"bun":"npm",N=await K(Z,Z==="npm"?["install","-g","--force",Y]:["install","-g",Y],{cwd:X()});if(N.code!==0){let z=new _(`Failed to install new version of claude: ${N.stdout} ${N.stderr}`);return q(z),"install_failed"}if(Z==="npm"&&await vJ()){let z=await K("bun",["install","-g",Y],{cwd:X()});if(z.code!==0)q(new _(`Failed to update bun global install: ${z.stdout} ${z.stderr}`))}return v((z)=>({...z,installMethod:"global"})),"success"}finally{await MJ()}}async function TJ(){let J=V();for(let[,Q]of Object.entries(J))try{let Y=await x(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=g(Y);if($)await n(Q,Z),W(`Removed claude alias from ${Q}`)}catch(Y){W(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var _,t=300000;var UJ=M(()=>{XJ();D();zJ();BJ();b();R();I();F();E();OJ();HJ();s();C();_=class _ extends l{}});
15
- export{DJ as dS,EJ as eS,PJ as fS,fJ as gS,mJ as hS,u as iS,V as jS,g as kS,x as lS,n as mS,NJ as nS,nJ as oS,s as pS,zQ as qS,BQ as rS,HQ as sS,OQ as tS,e as uS,SJ as vS,yQ as wS,GQ as xS,_Q as yS,vQ as zS,wQ as AS,MQ as BS,UJ as CS};