@claudiolabs/claudin 1.1.6 → 1.1.8

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 (913) hide show
  1. package/dist/chunks/AgentTool-1.1.8-6z4gxak1.mjs +1 -0
  2. package/dist/chunks/App-1.1.8-d07z7cbf.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.8-fsyn77jc.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.8-z6j52pp3.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.8-nxgt8y8q.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.8-bjsz0qfp.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.8-2mwsqmhp.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.8-24z6s4j5.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.8-abc9qq6c.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.8-8ja3a3f1.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.8-nsj1wjz4.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.8-hkq9z22m.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.8-a8tfxk9n.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.8-nt3tgbzz.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.8-ybdh3drb.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.8-qvkzvfgf.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.8-2bkd7rzz.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.8-v45zy151.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.8-mdyssah9.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.8-2d6r24bp.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.8-bkt80qn7.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.8-35s6scr9.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.8-gddzn3ac.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.8-sqrxwgy6.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.8-21pehb0t.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.8-h78w5ftj.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.8-pqvwnbce.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.8-rnbk6kxv.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.8-mdmcq32z.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.8-h8nnkdmz.mjs +1 -0
  31. package/dist/chunks/agents-1.1.8-4f1tz8xm.mjs +110 -0
  32. package/dist/chunks/agents-1.1.8-6kv8h0fa.mjs +3 -0
  33. package/dist/chunks/api-1.1.8-mp8twdfj.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.8-t2mar25c.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.8-t54n390j.mjs +1 -0
  36. package/dist/chunks/auth-1.1.8-pv29fraf.mjs +1 -0
  37. package/dist/chunks/auth-1.1.8-qm8h71j7.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.8-ahgyhzep.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.8-sdsx7fz9.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.8-b37pdha5.mjs +1 -0
  41. package/dist/chunks/branch-1.1.8-2emyy03d.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.8-dkk2n1jt.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.8-bv7zrzb6.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.8-z1sv63ct.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.8-rqp8q7sc.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.8-5hg7c4c6.mjs +1 -0
  47. package/dist/chunks/btw-1.1.8-td5e11qz.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.8-jmk0bgcs.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.8-qzw8r9my.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.8-889g7w4k.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.8-nzgv89d1.mjs +4 -0
  52. package/dist/chunks/caches-1.1.8-f09m1b12.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.8-2rww6nv3.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.8-wygkqnb3.mjs +1 -0
  55. package/dist/chunks/clear-1.1.8-71j589cf.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.8-5j0t6dtd.mjs +1 -0
  57. package/dist/chunks/cli-1.1.8-05yz3n3m.mjs +2 -0
  58. package/dist/chunks/cli-1.1.8-0fqp4nd4.mjs +2 -0
  59. package/dist/chunks/cli-1.1.8-0pb52yqp.mjs +6 -0
  60. package/dist/chunks/cli-1.1.8-0vkk8zhj.mjs +2 -0
  61. package/dist/chunks/cli-1.1.8-0xw30z19.mjs +2 -0
  62. package/dist/chunks/cli-1.1.8-125zncm7.mjs +2 -0
  63. package/dist/chunks/cli-1.1.8-12gxg7dk.mjs +3 -0
  64. package/dist/chunks/cli-1.1.8-1as5wwed.mjs +2 -0
  65. package/dist/chunks/cli-1.1.8-1at0q43h.mjs +2 -0
  66. package/dist/chunks/cli-1.1.8-1e4hz1dh.mjs +4 -0
  67. package/dist/chunks/cli-1.1.8-1m910jhy.mjs +2 -0
  68. package/dist/chunks/cli-1.1.8-205c5ayn.mjs +45 -0
  69. package/dist/chunks/cli-1.1.8-20fqtbb0.mjs +2 -0
  70. package/dist/chunks/cli-1.1.8-231ktrsd.mjs +2 -0
  71. package/dist/chunks/cli-1.1.8-2afqpefw.mjs +2 -0
  72. package/dist/chunks/cli-1.1.8-2nq1cm30.mjs +39 -0
  73. package/dist/chunks/cli-1.1.8-2q9w1hnc.mjs +2 -0
  74. package/dist/chunks/cli-1.1.8-2smp07zs.mjs +2 -0
  75. package/dist/chunks/cli-1.1.8-2vsq8a0w.mjs +2 -0
  76. package/dist/chunks/cli-1.1.8-2zp9e9zh.mjs +2 -0
  77. package/dist/chunks/cli-1.1.8-30zhxwg9.mjs +16 -0
  78. package/dist/chunks/cli-1.1.8-35pzh2ts.mjs +2 -0
  79. package/dist/chunks/cli-1.1.8-38vrxm77.mjs +3 -0
  80. package/dist/chunks/cli-1.1.8-3btvsdx3.mjs +2 -0
  81. package/dist/chunks/cli-1.1.8-3j80fvcv.mjs +2 -0
  82. package/dist/chunks/cli-1.1.8-3tazs3h1.mjs +2 -0
  83. package/dist/chunks/cli-1.1.8-462maymv.mjs +2 -0
  84. package/dist/chunks/cli-1.1.8-49wtksqb.mjs +2 -0
  85. package/dist/chunks/cli-1.1.8-4cgcvt3g.mjs +15 -0
  86. package/dist/chunks/cli-1.1.8-4cvb8vj8.mjs +2 -0
  87. package/dist/chunks/cli-1.1.8-5862s9mq.mjs +9 -0
  88. package/dist/chunks/cli-1.1.8-59r0krp6.mjs +4 -0
  89. package/dist/chunks/cli-1.1.8-5e3xx9db.mjs +8 -0
  90. package/dist/chunks/cli-1.1.8-5s0ctz15.mjs +25 -0
  91. package/dist/chunks/cli-1.1.8-6118xjzf.mjs +2 -0
  92. package/dist/chunks/cli-1.1.8-61d813en.mjs +2 -0
  93. package/dist/chunks/cli-1.1.8-656pm2np.mjs +2 -0
  94. package/dist/chunks/cli-1.1.8-67d0fesx.mjs +18 -0
  95. package/dist/chunks/cli-1.1.8-6kg3tp3t.mjs +2 -0
  96. package/dist/chunks/cli-1.1.8-6t8wtnyz.mjs +15 -0
  97. package/dist/chunks/cli-1.1.8-6w5tvkaj.mjs +2 -0
  98. package/dist/chunks/cli-1.1.8-74586mpw.mjs +9 -0
  99. package/dist/chunks/cli-1.1.8-7536y3yr.mjs +3 -0
  100. package/dist/chunks/cli-1.1.8-7e1cxc2r.mjs +2 -0
  101. package/dist/chunks/cli-1.1.8-7ghn9sgt.mjs +2 -0
  102. package/dist/chunks/cli-1.1.8-7gv7j9wf.mjs +2 -0
  103. package/dist/chunks/cli-1.1.8-7j6ztazy.mjs +2 -0
  104. package/dist/chunks/cli-1.1.8-7kf0prpp.mjs +2 -0
  105. package/dist/chunks/cli-1.1.8-7mtk34ry.mjs +4 -0
  106. package/dist/chunks/cli-1.1.8-7sft4tp3.mjs +2 -0
  107. package/dist/chunks/cli-1.1.8-85hnxfzw.mjs +2 -0
  108. package/dist/chunks/cli-1.1.8-8ethv98x.mjs +3 -0
  109. package/dist/chunks/cli-1.1.8-8gj0g1hd.mjs +2 -0
  110. package/dist/chunks/cli-1.1.8-8x1wf6wg.mjs +59 -0
  111. package/dist/chunks/cli-1.1.8-8xe9c3tx.mjs +2 -0
  112. package/dist/chunks/cli-1.1.8-8zf4nnw6.mjs +15 -0
  113. package/dist/chunks/cli-1.1.8-98pq375b.mjs +2 -0
  114. package/dist/chunks/cli-1.1.8-9bx144d4.mjs +2 -0
  115. package/dist/chunks/cli-1.1.8-9d0730ff.mjs +3 -0
  116. package/dist/chunks/cli-1.1.8-9egsv8kb.mjs +2 -0
  117. package/dist/chunks/cli-1.1.8-9mr8erq2.mjs +2 -0
  118. package/dist/chunks/cli-1.1.8-9nnn67wx.mjs +2 -0
  119. package/dist/chunks/cli-1.1.8-9yhtna2t.mjs +2 -0
  120. package/dist/chunks/cli-1.1.8-a1qac4fc.mjs +3 -0
  121. package/dist/chunks/cli-1.1.8-a3etddaa.mjs +2 -0
  122. package/dist/chunks/cli-1.1.8-a3w8yas2.mjs +24 -0
  123. package/dist/chunks/cli-1.1.8-a52qejcb.mjs +20 -0
  124. package/dist/chunks/cli-1.1.8-akxxvxcg.mjs +2 -0
  125. package/dist/chunks/cli-1.1.8-arxr9t30.mjs +2 -0
  126. package/dist/chunks/cli-1.1.8-b46m1pa5.mjs +2 -0
  127. package/dist/chunks/cli-1.1.8-bdesaqqn.mjs +2 -0
  128. package/dist/chunks/cli-1.1.8-bf0h6s2a.mjs +2 -0
  129. package/dist/chunks/cli-1.1.8-bh494psb.mjs +6 -0
  130. package/dist/chunks/cli-1.1.8-bxbg70bf.mjs +2 -0
  131. package/dist/chunks/cli-1.1.8-bzs61r0e.mjs +2 -0
  132. package/dist/chunks/cli-1.1.8-c0knk34t.mjs +2 -0
  133. package/dist/chunks/cli-1.1.8-c3rz4cxf.mjs +2 -0
  134. package/dist/chunks/cli-1.1.8-c4xc2d6s.mjs +2 -0
  135. package/dist/chunks/cli-1.1.8-cpgd4r16.mjs +2 -0
  136. package/dist/chunks/cli-1.1.8-czskf284.mjs +2 -0
  137. package/dist/chunks/cli-1.1.8-d092mrgm.mjs +2 -0
  138. package/dist/chunks/cli-1.1.8-d2gfswc3.mjs +2 -0
  139. package/dist/chunks/cli-1.1.8-d3s7xdkk.mjs +2 -0
  140. package/dist/chunks/cli-1.1.8-d4878nn2.mjs +2 -0
  141. package/dist/chunks/cli-1.1.8-d5afbx68.mjs +6 -0
  142. package/dist/chunks/cli-1.1.8-db100c4h.mjs +202 -0
  143. package/dist/chunks/cli-1.1.8-dgbh9n27.mjs +6 -0
  144. package/dist/chunks/cli-1.1.8-dv1edxg1.mjs +4 -0
  145. package/dist/chunks/cli-1.1.8-e1by1s5j.mjs +2 -0
  146. package/dist/chunks/cli-1.1.8-e3ev48gp.mjs +2 -0
  147. package/dist/chunks/cli-1.1.8-edw6k2f7.mjs +2 -0
  148. package/dist/chunks/cli-1.1.8-ee9qyzkj.mjs +2 -0
  149. package/dist/chunks/cli-1.1.8-efjw6x2m.mjs +2 -0
  150. package/dist/chunks/cli-1.1.8-ekmm2znm.mjs +2 -0
  151. package/dist/chunks/cli-1.1.8-epqqq77y.mjs +1 -0
  152. package/dist/chunks/cli-1.1.8-ernbjcgb.mjs +2 -0
  153. package/dist/chunks/cli-1.1.8-evk4j7cq.mjs +2 -0
  154. package/dist/chunks/cli-1.1.8-f0kaq070.mjs +2 -0
  155. package/dist/chunks/cli-1.1.8-f2gv8js5.mjs +2 -0
  156. package/dist/chunks/cli-1.1.8-f75mhnpd.mjs +17 -0
  157. package/dist/chunks/cli-1.1.8-fd4rat7s.mjs +2 -0
  158. package/dist/chunks/cli-1.1.8-ffx8vwwt.mjs +3 -0
  159. package/dist/chunks/cli-1.1.8-fgw4h53q.mjs +2 -0
  160. package/dist/chunks/cli-1.1.8-fqgcppxc.mjs +2 -0
  161. package/dist/chunks/cli-1.1.8-g0t0qtsv.mjs +12 -0
  162. package/dist/chunks/cli-1.1.8-g8sjkk8z.mjs +7 -0
  163. package/dist/chunks/cli-1.1.8-gf6w1neb.mjs +2 -0
  164. package/dist/chunks/cli-1.1.8-gfzzaejq.mjs +2 -0
  165. package/dist/chunks/cli-1.1.8-gqqjkrq0.mjs +4 -0
  166. package/dist/chunks/cli-1.1.8-h5zqw021.mjs +2 -0
  167. package/dist/chunks/cli-1.1.8-hws56n0s.mjs +2 -0
  168. package/dist/chunks/cli-1.1.8-hzkgx15v.mjs +3 -0
  169. package/dist/chunks/cli-1.1.8-j2mvpcgh.mjs +2 -0
  170. package/dist/chunks/cli-1.1.8-jk6kcgkf.mjs +4 -0
  171. package/dist/chunks/cli-1.1.8-jkp8ynyx.mjs +2 -0
  172. package/dist/chunks/cli-1.1.8-jmp76vj2.mjs +2 -0
  173. package/dist/chunks/cli-1.1.8-jtxcccqb.mjs +2 -0
  174. package/dist/chunks/cli-1.1.8-jv4y43ct.mjs +2 -0
  175. package/dist/chunks/cli-1.1.8-jzk8xgkw.mjs +2 -0
  176. package/dist/chunks/cli-1.1.8-k2q3jd4x.mjs +2 -0
  177. package/dist/chunks/cli-1.1.8-k3jmtdxb.mjs +2 -0
  178. package/dist/chunks/cli-1.1.8-k4q05xpp.mjs +4 -0
  179. package/dist/chunks/cli-1.1.8-k6xa7zcq.mjs +2 -0
  180. package/dist/chunks/cli-1.1.8-k878kyye.mjs +2 -0
  181. package/dist/chunks/cli-1.1.8-kgq0wj8c.mjs +2 -0
  182. package/dist/chunks/cli-1.1.8-kkzcmrxs.mjs +2 -0
  183. package/dist/chunks/cli-1.1.8-knfkgncm.mjs +5721 -0
  184. package/dist/chunks/cli-1.1.8-mayxghnz.mjs +2 -0
  185. package/dist/chunks/cli-1.1.8-mdybbj2p.mjs +133 -0
  186. package/dist/chunks/cli-1.1.8-mgz0nyed.mjs +50 -0
  187. package/dist/chunks/cli-1.1.8-mhv5xrf1.mjs +4 -0
  188. package/dist/chunks/cli-1.1.8-mkzsens1.mjs +4 -0
  189. package/dist/chunks/cli-1.1.8-mq7t5jca.mjs +3 -0
  190. package/dist/chunks/cli-1.1.8-mza3p36d.mjs +2 -0
  191. package/dist/chunks/cli-1.1.8-n14gnq6x.mjs +42 -0
  192. package/dist/chunks/cli-1.1.8-n5d4px5z.mjs +2 -0
  193. package/dist/chunks/cli-1.1.8-nh485h9b.mjs +2 -0
  194. package/dist/chunks/cli-1.1.8-nrr32j4a.mjs +2 -0
  195. package/dist/chunks/cli-1.1.8-nt403561.mjs +2 -0
  196. package/dist/chunks/cli-1.1.8-nv123ysj.mjs +5 -0
  197. package/dist/chunks/cli-1.1.8-nv181dzv.mjs +2 -0
  198. package/dist/chunks/cli-1.1.8-nv79qg54.mjs +2 -0
  199. package/dist/chunks/cli-1.1.8-nvt7cbzg.mjs +2 -0
  200. package/dist/chunks/cli-1.1.8-nx84ctb0.mjs +2 -0
  201. package/dist/chunks/cli-1.1.8-nzs4skf4.mjs +2 -0
  202. package/dist/chunks/cli-1.1.8-p3fzx1sj.mjs +24 -0
  203. package/dist/chunks/cli-1.1.8-p6bd42xj.mjs +2 -0
  204. package/dist/chunks/cli-1.1.8-pwdb2y2v.mjs +2 -0
  205. package/dist/chunks/cli-1.1.8-px4ph853.mjs +6 -0
  206. package/dist/chunks/cli-1.1.8-q6c1w0dw.mjs +2 -0
  207. package/dist/chunks/cli-1.1.8-qcyhp9k8.mjs +3 -0
  208. package/dist/chunks/cli-1.1.8-qgweycgj.mjs +6 -0
  209. package/dist/chunks/cli-1.1.8-qgzhmw5w.mjs +2 -0
  210. package/dist/chunks/cli-1.1.8-qpqcr4wt.mjs +2 -0
  211. package/dist/chunks/cli-1.1.8-r9vd968y.mjs +2 -0
  212. package/dist/chunks/cli-1.1.8-rk2akmnh.mjs +67 -0
  213. package/dist/chunks/cli-1.1.8-rk40pf8s.mjs +2 -0
  214. package/dist/chunks/cli-1.1.8-rqqgbjy2.mjs +133 -0
  215. package/dist/chunks/cli-1.1.8-sc8428te.mjs +12 -0
  216. package/dist/chunks/cli-1.1.8-sw7sne7p.mjs +25 -0
  217. package/dist/chunks/cli-1.1.8-sxkrzwwg.mjs +18 -0
  218. package/dist/chunks/cli-1.1.8-sxmsdz7p.mjs +2 -0
  219. package/dist/chunks/cli-1.1.8-syhhv2xq.mjs +21 -0
  220. package/dist/chunks/cli-1.1.8-syttwgv4.mjs +3 -0
  221. package/dist/chunks/cli-1.1.8-t4hx0et2.mjs +2 -0
  222. package/dist/chunks/cli-1.1.8-t62hkyhg.mjs +2 -0
  223. package/dist/chunks/cli-1.1.8-t8xxt1pf.mjs +2 -0
  224. package/dist/chunks/cli-1.1.8-t93r8p95.mjs +4 -0
  225. package/dist/chunks/cli-1.1.8-t9cqvdhd.mjs +2 -0
  226. package/dist/chunks/cli-1.1.8-ta0zzaw5.mjs +17 -0
  227. package/dist/chunks/cli-1.1.8-tf20w2jn.mjs +2 -0
  228. package/dist/chunks/cli-1.1.8-tw2q1gej.mjs +2 -0
  229. package/dist/chunks/cli-1.1.8-tx519hkn.mjs +2 -0
  230. package/dist/chunks/cli-1.1.8-v8hp2y41.mjs +2 -0
  231. package/dist/chunks/cli-1.1.8-vqpn0kq9.mjs +2 -0
  232. package/dist/chunks/cli-1.1.8-vrszw55m.mjs +2 -0
  233. package/dist/chunks/cli-1.1.8-vw9jfqt2.mjs +2 -0
  234. package/dist/chunks/cli-1.1.8-w1ktcdzx.mjs +34 -0
  235. package/dist/chunks/cli-1.1.8-w2e3c7g6.mjs +2 -0
  236. package/dist/chunks/cli-1.1.8-w99f42k9.mjs +3 -0
  237. package/dist/chunks/cli-1.1.8-w9h3mvb4.mjs +2 -0
  238. package/dist/chunks/cli-1.1.8-w9tz8aaw.mjs +2 -0
  239. package/dist/chunks/cli-1.1.8-wdfxmkc7.mjs +2 -0
  240. package/dist/chunks/cli-1.1.8-wew0nf1q.mjs +12 -0
  241. package/dist/chunks/cli-1.1.8-wkyr3v6g.mjs +24 -0
  242. package/dist/chunks/cli-1.1.8-x05h2zp4.mjs +2 -0
  243. package/dist/chunks/cli-1.1.8-x3vk9h1m.mjs +24 -0
  244. package/dist/chunks/cli-1.1.8-x9e1306p.mjs +2 -0
  245. package/dist/chunks/cli-1.1.8-xa445fak.mjs +2 -0
  246. package/dist/chunks/cli-1.1.8-xmcyv92d.mjs +2 -0
  247. package/dist/chunks/cli-1.1.8-xqdr42wv.mjs +2 -0
  248. package/dist/chunks/cli-1.1.8-xzb74dgc.mjs +58 -0
  249. package/dist/chunks/cli-1.1.8-y3tr91m8.mjs +2 -0
  250. package/dist/chunks/cli-1.1.8-y50med5h.mjs +4 -0
  251. package/dist/chunks/cli-1.1.8-yjmxxj4y.mjs +2 -0
  252. package/dist/chunks/cli-1.1.8-yptj5mm3.mjs +2 -0
  253. package/dist/chunks/cli-1.1.8-yv4mw1z8.mjs +2 -0
  254. package/dist/chunks/cli-1.1.8-yx9yzca1.mjs +5 -0
  255. package/dist/chunks/cli-1.1.8-yzrpw572.mjs +2 -0
  256. package/dist/chunks/cli-1.1.8-zav01h3c.mjs +2 -0
  257. package/dist/chunks/cli-1.1.8-zc2wv1d7.mjs +2 -0
  258. package/dist/chunks/cli-1.1.8-zcrckt5v.mjs +2 -0
  259. package/dist/chunks/cli-1.1.8-zfx1k21c.mjs +2 -0
  260. package/dist/chunks/client-1.1.8-h43htzv0.mjs +1 -0
  261. package/dist/chunks/color-1.1.8-zdg5fqma.mjs +1 -0
  262. package/dist/chunks/compact-1.1.8-1af2hhhd.mjs +3 -0
  263. package/dist/chunks/config-1.1.8-bs3j0bh7.mjs +1 -0
  264. package/dist/chunks/config-1.1.8-mwcwa3ha.mjs +1 -0
  265. package/dist/chunks/constants-1.1.8-6qsgmarg.mjs +1 -0
  266. package/dist/chunks/context-1.1.8-y2smmd8y.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.8-7m4c952c.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.8-2hmabtxd.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.8-nh4ys57g.mjs +1 -0
  270. package/dist/chunks/copy-1.1.8-vxmgrtv3.mjs +9 -0
  271. package/dist/chunks/cost-1.1.8-70bsspf5.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.8-4axzt4k5.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.8-c1fbb9pm.mjs +1 -0
  274. package/dist/chunks/debug-1.1.8-02x6g655.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.8-a1dxrpdz.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.8-tdtzcad0.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.8-6h2qfjfb.mjs +1 -0
  278. package/dist/chunks/detection-1.1.8-mwwyzmcq.mjs +1 -0
  279. package/dist/chunks/diff-1.1.8-dcm7epcs.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.8-a29dgfa8.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.8-njzmwvmq.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.8-7genxy96.mjs +1 -0
  283. package/dist/chunks/effort-1.1.8-y36797j4.mjs +13 -0
  284. package/dist/chunks/engine-1.1.8-fqyd5m01.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.8-ef7qwkd5.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.8-99wqsc2g.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.8-cc9g8r4w.mjs +1 -0
  288. package/dist/chunks/environments-1.1.8-hw1xqjcd.mjs +1 -0
  289. package/dist/chunks/errors-1.1.8-1493t2ga.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.8-zdxcd2qw.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.8-ntrztjxv.mjs +1 -0
  292. package/dist/chunks/exit-1.1.8-hg0x8rb4.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.8-45jxm6r3.mjs +1 -0
  294. package/dist/chunks/export-1.1.8-tjbc3yps.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.8-m07zw7z7.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.8-x0nk6gpq.mjs +1 -0
  297. package/dist/chunks/fast-1.1.8-16bcey2v.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.8-ybfs6p31.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.8-0a07kg5a.mjs +1 -0
  300. package/dist/chunks/git-1.1.8-yhtjgapj.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.8-8m2kfpj0.mjs +1 -0
  302. package/dist/chunks/goal-1.1.8-m18wqymf.mjs +4 -0
  303. package/dist/chunks/grove-1.1.8-hq8trmvx.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.8-jnc5s1gr.mjs +1 -0
  305. package/dist/chunks/headless-1.1.8-g6y7x6p5.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.8-bdd4tbc4.mjs +6 -0
  307. package/dist/chunks/help-1.1.8-adn9yj5b.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.8-jvx26rvp.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.8-10bepv2t.mjs +79 -0
  310. package/dist/chunks/hooks-1.1.8-wxrar4bk.mjs +1 -0
  311. package/dist/chunks/ide-1.1.8-e1kgf08v.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.8-7qq6cd9d.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.8-tmvsb72y.mjs +1 -0
  314. package/dist/chunks/index-1.1.8-075w4nhz.mjs +9 -0
  315. package/dist/chunks/index-1.1.8-0hkas4xw.mjs +1 -0
  316. package/dist/chunks/index-1.1.8-0vs7xmac.mjs +30 -0
  317. package/dist/chunks/index-1.1.8-15y0r0yw.mjs +1 -0
  318. package/dist/chunks/index-1.1.8-26b73x3g.mjs +2 -0
  319. package/dist/chunks/index-1.1.8-4etv37ta.mjs +1 -0
  320. package/dist/chunks/index-1.1.8-6p8c8t6k.mjs +1 -0
  321. package/dist/chunks/index-1.1.8-7ykg7nw4.mjs +1 -0
  322. package/dist/chunks/index-1.1.8-8t0g6s4j.mjs +1 -0
  323. package/dist/chunks/index-1.1.8-cgcvj82j.mjs +23 -0
  324. package/dist/chunks/index-1.1.8-cm3fqyj1.mjs +1 -0
  325. package/dist/chunks/index-1.1.8-cpf2mfhc.mjs +1 -0
  326. package/dist/chunks/index-1.1.8-f3qfkewa.mjs +1 -0
  327. package/dist/chunks/index-1.1.8-gyhxyh37.mjs +1 -0
  328. package/dist/chunks/index-1.1.8-hyz5kb4e.mjs +1 -0
  329. package/dist/chunks/index-1.1.8-k0eafjj9.mjs +1 -0
  330. package/dist/chunks/index-1.1.8-qhk5dps0.mjs +9 -0
  331. package/dist/chunks/index-1.1.8-rcyqt694.mjs +1 -0
  332. package/dist/chunks/index-1.1.8-sv9wq8vm.mjs +1 -0
  333. package/dist/chunks/index-1.1.8-tz0fvmye.mjs +5 -0
  334. package/dist/chunks/index-1.1.8-vaqk09sc.mjs +1 -0
  335. package/dist/chunks/index-1.1.8-vd2csf3e.mjs +2 -0
  336. package/dist/chunks/index-1.1.8-y6bn96fs.mjs +1 -0
  337. package/dist/chunks/init-1.1.8-e7kkbgzq.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.8-0cctke88.mjs +1 -0
  339. package/dist/chunks/ink-1.1.8-20q0h10k.mjs +1 -0
  340. package/dist/chunks/insights-1.1.8-e9hjnmbn.mjs +870 -0
  341. package/dist/chunks/install-1.1.8-fnb2k88m.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.8-dgabwyh1.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.8-2vh4newn.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.8-kth6vzt4.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.8-3g33kfsm.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.8-c69hmddw.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.8-sngea3j8.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.8-1srnp86b.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.8-wmvpm36a.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.8-9hrrn6b1.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.8-ae5zxvnn.mjs +1 -0
  352. package/dist/chunks/log-1.1.8-2wvsfegd.mjs +1 -0
  353. package/dist/chunks/main-1.1.8-53c8p1hf.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.8-3qxf1b2m.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.8-12tszewv.mjs +4 -0
  356. package/dist/chunks/mcp-1.1.8-2yw2qynw.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.8-awep4hb5.mjs +17 -0
  358. package/dist/chunks/mcpb-1.1.8-14gyeqdt.mjs +1 -0
  359. package/dist/chunks/memory-1.1.8-v7hbdb18.mjs +72 -0
  360. package/dist/chunks/model-1.1.8-70r35ayh.mjs +2 -0
  361. package/dist/chunks/model-1.1.8-wncbw1nv.mjs +1 -0
  362. package/dist/chunks/node-1.1.8-0bpza0gv.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.8-1zj1geby.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.8-eaxqv9jn.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.8-v8kk4mmm.mjs +1 -0
  366. package/dist/chunks/package-L37ZVTF4-1.1.8-f4krrwjg.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.8-tns55hj7.mjs +1 -0
  368. package/dist/chunks/parser-1.1.8-y6rm14pk.mjs +1 -0
  369. package/dist/chunks/passes-1.1.8-hyd8bv5h.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.8-e32fqvvk.mjs +3 -0
  371. package/dist/chunks/permissions-1.1.8-j0scmex7.mjs +1 -0
  372. package/dist/chunks/plan-1.1.8-1csevcqv.mjs +1 -0
  373. package/dist/chunks/plist-1.1.8-47419hwn.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.8-xcj7jz75.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.8-hqbc3c4d.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.8-nrra8gx1.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.8-2fgj7c0d.mjs +2 -0
  378. package/dist/chunks/print-1.1.8-3qy5nfzr.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.8-zsp6fsh1.mjs +1 -0
  380. package/dist/chunks/process-1.1.8-t92an9g0.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.8-5j7f3zj5.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.8-97yy5hpk.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.8-mges4wt5.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.8-tfg4jhbt.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.8-q1wrrwdr.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.8-ymb7yfxx.mjs +13 -0
  387. package/dist/chunks/provider-1.1.8-j317q85s.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.8-f2symnwy.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.8-k2r5q4vk.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.8-8chtnkxk.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.8-9wd8cb3g.mjs +34 -0
  392. package/dist/chunks/registry-1.1.8-d06az15f.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.8-rmg47yy1.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.8-wej3bnvx.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.8-bht3nad5.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.8-j57ggr86.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.8-rmrphzwh.mjs +1 -0
  398. package/dist/chunks/rename-1.1.8-t9s0vyfm.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.8-0hp49nj3.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.8-vw8ysvak.mjs +1 -0
  401. package/dist/chunks/resume-1.1.8-g13vfwpe.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.8-k2bp0x9p.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.8-jjagdnm4.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.8-szat8e81.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.8-gcn8vt8z.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.8-9k1xg4b5.mjs +1 -0
  407. package/dist/chunks/session-1.1.8-09hwr9j5.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.8-f8mhpp1n.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.8-bahxxqhe.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.8-hjk3adja.mjs +1 -0
  411. package/dist/chunks/settings-1.1.8-5vc7cx5w.mjs +1 -0
  412. package/dist/chunks/setup-1.1.8-trp83ayz.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.8-mwbk48v4.mjs +1 -0
  414. package/dist/chunks/skills-1.1.8-danp83p4.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.8-02jr5z55.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.8-69wzwvc1.mjs +1 -0
  417. package/dist/chunks/state-1.1.8-nsdn5anj.mjs +1 -0
  418. package/dist/chunks/stats-1.1.8-t5pza2rr.mjs +6 -0
  419. package/dist/chunks/status-1.1.8-68h5gqvx.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.8-0h3kkr20.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.8-kabvqrxh.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.8-zepre4hr.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.8-fcp2jsnp.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.8-qvmhwh7w.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.8-7wdmygej.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.8-p7bj9pmp.mjs +1 -0
  427. package/dist/chunks/theme-1.1.8-3szcwvrn.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.8-gap3zzg0.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.8-v89ne249.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.8-3vtrmmhc.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.8-c86299rc.mjs +1 -0
  432. package/dist/chunks/tools-1.1.8-fgh8e1kf.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.8-nysjtcf4.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.8-cqczbjvz.mjs +69 -0
  435. package/dist/chunks/types-1.1.8-paq7e73r.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.8-3k0h42t7.mjs +4 -0
  437. package/dist/chunks/update-1.1.8-c8rb7gzn.mjs +72 -0
  438. package/dist/chunks/upgrade-1.1.8-nmgtg5re.mjs +1 -0
  439. package/dist/chunks/upload-1.1.8-bwrxfje4.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.8-9n7d40g6.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.8-zd3gsw0r.mjs +1 -0
  442. package/dist/chunks/usage-1.1.8-n15nggj5.mjs +1 -0
  443. package/dist/chunks/util-1.1.8-jz0kvsrr.mjs +1 -0
  444. package/dist/chunks/utils-1.1.8-zmtfqjk6.mjs +1 -0
  445. package/dist/chunks/vim-1.1.8-f0gtc89f.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.8-rw3vn991.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.8-jcxwjkvy.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.8-e7rt9td4.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.8-crtrj2rc.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.8-50mfr61r.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.8-a7h96pt2.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.8-x1j8x6bc.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.1.6-x7n9ytww.mjs +0 -1
  456. package/dist/chunks/App-1.1.6-c6rweprc.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.1.6-6ftn2yne.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.1.6-sj9zmmtv.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.1.6-f6ddwjrx.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.1.6-k9tn0pj4.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.6-b6d7x0de.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.1.6-y50my4k1.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.1.6-f6qdk76y.mjs +0 -7
  464. package/dist/chunks/Doctor-1.1.6-qyx4qzdq.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.1.6-awsqgemk.mjs +0 -6
  466. package/dist/chunks/Grove-1.1.6-0vbvbtf9.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.1.6-jzgd98ar.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.1.6-z8tyzxq7.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.1.6-rgb0vr20.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.1.6-exfknbe3.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.1.6-hhchpr6n.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.1.6-ved8vv0y.mjs +0 -1
  473. package/dist/chunks/REPL-1.1.6-zgf6affr.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.1.6-sgk5jenb.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.1.6-vewcvzfk.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.1.6-45ejtamd.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.1.6-zpmyhte9.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.1.6-2fgj9d8c.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.1.6-k3acgnms.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.1.6-wm9edxm3.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.1.6-f5gagp9s.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.1.6-6zdk3xg9.mjs +0 -1
  483. package/dist/chunks/add-dir-1.1.6-6y5y18e6.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.1.6-x8wczn2w.mjs +0 -1
  485. package/dist/chunks/agents-1.1.6-fmrq78j4.mjs +0 -110
  486. package/dist/chunks/agents-1.1.6-zrjhvysw.mjs +0 -3
  487. package/dist/chunks/api-1.1.6-qc845wwh.mjs +0 -1
  488. package/dist/chunks/asciicast-1.1.6-sx36762w.mjs +0 -1
  489. package/dist/chunks/assistant-1.1.6-e1sg8hzr.mjs +0 -1
  490. package/dist/chunks/auth-1.1.6-mwxg5qqn.mjs +0 -1
  491. package/dist/chunks/auth-1.1.6-v1axwwg0.mjs +0 -1
  492. package/dist/chunks/autoMode-1.1.6-cda55b0q.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.1.6-mmxfdsn5.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.1.6-8k7ks7mv.mjs +0 -1
  495. package/dist/chunks/branch-1.1.6-a2650qeh.mjs +0 -4
  496. package/dist/chunks/bridge-1.1.6-q66r3557.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.1.6-rm4k81zg.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.1.6-mkvt3gef.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.1.6-bec2ff5f.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.1.6-ye36jn3c.mjs +0 -1
  501. package/dist/chunks/btw-1.1.6-39ecm53z.mjs +0 -1
  502. package/dist/chunks/buddy-1.1.6-8ae7998s.mjs +0 -3
  503. package/dist/chunks/cacache-1.1.6-x2qyv1zr.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.1.6-bbs2wjce.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.6-8z470d9r.mjs +0 -4
  506. package/dist/chunks/caches-1.1.6-tyzqjw4d.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.6-c7kf2b1x.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.6-p1b608sq.mjs +0 -1
  509. package/dist/chunks/clear-1.1.6-dkjf4k5d.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.6-10knjhkd.mjs +0 -1
  511. package/dist/chunks/cli-1.1.6-01m0y5pz.mjs +0 -4
  512. package/dist/chunks/cli-1.1.6-03q6hzb7.mjs +0 -6
  513. package/dist/chunks/cli-1.1.6-0a0rct1w.mjs +0 -2
  514. package/dist/chunks/cli-1.1.6-0ah57p2z.mjs +0 -2
  515. package/dist/chunks/cli-1.1.6-0fp87j9f.mjs +0 -2
  516. package/dist/chunks/cli-1.1.6-0ge1d3cp.mjs +0 -2
  517. package/dist/chunks/cli-1.1.6-0jyg24vq.mjs +0 -2
  518. package/dist/chunks/cli-1.1.6-0kb90hx1.mjs +0 -2
  519. package/dist/chunks/cli-1.1.6-0xjp9jz6.mjs +0 -2
  520. package/dist/chunks/cli-1.1.6-19szys5x.mjs +0 -2
  521. package/dist/chunks/cli-1.1.6-1mjbd775.mjs +0 -12
  522. package/dist/chunks/cli-1.1.6-1sc3w33e.mjs +0 -2
  523. package/dist/chunks/cli-1.1.6-1tj2qv82.mjs +0 -2
  524. package/dist/chunks/cli-1.1.6-20kf1gk7.mjs +0 -2
  525. package/dist/chunks/cli-1.1.6-20yc7rgs.mjs +0 -2
  526. package/dist/chunks/cli-1.1.6-2dcm44zg.mjs +0 -20
  527. package/dist/chunks/cli-1.1.6-2kmx6xmk.mjs +0 -3
  528. package/dist/chunks/cli-1.1.6-30cxzm2b.mjs +0 -2
  529. package/dist/chunks/cli-1.1.6-31b4v7gz.mjs +0 -25
  530. package/dist/chunks/cli-1.1.6-33fpz8x7.mjs +0 -2
  531. package/dist/chunks/cli-1.1.6-38h340te.mjs +0 -2
  532. package/dist/chunks/cli-1.1.6-3key30vx.mjs +0 -3
  533. package/dist/chunks/cli-1.1.6-3q41k22r.mjs +0 -2
  534. package/dist/chunks/cli-1.1.6-3ry7rc5m.mjs +0 -2
  535. package/dist/chunks/cli-1.1.6-3rzrj8b1.mjs +0 -2
  536. package/dist/chunks/cli-1.1.6-3v7ddvyw.mjs +0 -2
  537. package/dist/chunks/cli-1.1.6-3vfjds47.mjs +0 -3
  538. package/dist/chunks/cli-1.1.6-40zqm9vv.mjs +0 -17
  539. package/dist/chunks/cli-1.1.6-41a0kjv6.mjs +0 -2
  540. package/dist/chunks/cli-1.1.6-43e69bmz.mjs +0 -2
  541. package/dist/chunks/cli-1.1.6-46emz4hv.mjs +0 -2
  542. package/dist/chunks/cli-1.1.6-486ywdzz.mjs +0 -34
  543. package/dist/chunks/cli-1.1.6-4cqcrvjd.mjs +0 -59
  544. package/dist/chunks/cli-1.1.6-4hcybe4h.mjs +0 -18
  545. package/dist/chunks/cli-1.1.6-4jgf1x2b.mjs +0 -2
  546. package/dist/chunks/cli-1.1.6-4npgtt47.mjs +0 -4
  547. package/dist/chunks/cli-1.1.6-4pykf467.mjs +0 -5
  548. package/dist/chunks/cli-1.1.6-4rhrh6wc.mjs +0 -4
  549. package/dist/chunks/cli-1.1.6-4xxms177.mjs +0 -2
  550. package/dist/chunks/cli-1.1.6-54ze8m08.mjs +0 -2
  551. package/dist/chunks/cli-1.1.6-5g7e8tag.mjs +0 -8
  552. package/dist/chunks/cli-1.1.6-5qc0271v.mjs +0 -15
  553. package/dist/chunks/cli-1.1.6-5qjzxazj.mjs +0 -4
  554. package/dist/chunks/cli-1.1.6-5qrpf10a.mjs +0 -2
  555. package/dist/chunks/cli-1.1.6-5sfks2z8.mjs +0 -15
  556. package/dist/chunks/cli-1.1.6-5t4djfy8.mjs +0 -9
  557. package/dist/chunks/cli-1.1.6-5wbzt7d4.mjs +0 -2
  558. package/dist/chunks/cli-1.1.6-5wjyk23t.mjs +0 -2
  559. package/dist/chunks/cli-1.1.6-65jzejgc.mjs +0 -3
  560. package/dist/chunks/cli-1.1.6-6asnf40m.mjs +0 -1
  561. package/dist/chunks/cli-1.1.6-6yyqhc13.mjs +0 -25
  562. package/dist/chunks/cli-1.1.6-74vm7ckx.mjs +0 -6
  563. package/dist/chunks/cli-1.1.6-76mvpwdf.mjs +0 -2
  564. package/dist/chunks/cli-1.1.6-7nfkb575.mjs +0 -2
  565. package/dist/chunks/cli-1.1.6-7t3befhs.mjs +0 -67
  566. package/dist/chunks/cli-1.1.6-7x719hyg.mjs +0 -18
  567. package/dist/chunks/cli-1.1.6-81cgzqdp.mjs +0 -2
  568. package/dist/chunks/cli-1.1.6-81cx55jz.mjs +0 -2
  569. package/dist/chunks/cli-1.1.6-87x1xfg6.mjs +0 -2
  570. package/dist/chunks/cli-1.1.6-8fta5jph.mjs +0 -2
  571. package/dist/chunks/cli-1.1.6-8he41vy5.mjs +0 -2
  572. package/dist/chunks/cli-1.1.6-8ne4jamj.mjs +0 -2
  573. package/dist/chunks/cli-1.1.6-8sm76jvw.mjs +0 -2
  574. package/dist/chunks/cli-1.1.6-8t3q96j9.mjs +0 -2
  575. package/dist/chunks/cli-1.1.6-93rtfb0q.mjs +0 -2
  576. package/dist/chunks/cli-1.1.6-9742qvjc.mjs +0 -6
  577. package/dist/chunks/cli-1.1.6-97ga1091.mjs +0 -2
  578. package/dist/chunks/cli-1.1.6-982yfp5a.mjs +0 -2
  579. package/dist/chunks/cli-1.1.6-9a5c9435.mjs +0 -2
  580. package/dist/chunks/cli-1.1.6-9crjy3pc.mjs +0 -2
  581. package/dist/chunks/cli-1.1.6-9nk20f3c.mjs +0 -2
  582. package/dist/chunks/cli-1.1.6-9ta3aynd.mjs +0 -2
  583. package/dist/chunks/cli-1.1.6-a1n79s5x.mjs +0 -2
  584. package/dist/chunks/cli-1.1.6-a44r4vht.mjs +0 -24
  585. package/dist/chunks/cli-1.1.6-a5mwjrkm.mjs +0 -17
  586. package/dist/chunks/cli-1.1.6-a5rqr2qe.mjs +0 -2
  587. package/dist/chunks/cli-1.1.6-ag09czr1.mjs +0 -15
  588. package/dist/chunks/cli-1.1.6-akzxyfxv.mjs +0 -2
  589. package/dist/chunks/cli-1.1.6-avthrr5w.mjs +0 -2
  590. package/dist/chunks/cli-1.1.6-ay4779jc.mjs +0 -2
  591. package/dist/chunks/cli-1.1.6-bd0v70jd.mjs +0 -3
  592. package/dist/chunks/cli-1.1.6-bfchr542.mjs +0 -2
  593. package/dist/chunks/cli-1.1.6-bm7xjqpq.mjs +0 -2
  594. package/dist/chunks/cli-1.1.6-bmskrghf.mjs +0 -2
  595. package/dist/chunks/cli-1.1.6-bqwv3wss.mjs +0 -2
  596. package/dist/chunks/cli-1.1.6-cam8a83k.mjs +0 -4
  597. package/dist/chunks/cli-1.1.6-cgszz7xc.mjs +0 -24
  598. package/dist/chunks/cli-1.1.6-ckg7fah6.mjs +0 -5649
  599. package/dist/chunks/cli-1.1.6-d1aef3g5.mjs +0 -2
  600. package/dist/chunks/cli-1.1.6-d1wgc2vg.mjs +0 -21
  601. package/dist/chunks/cli-1.1.6-d2pp9pa0.mjs +0 -2
  602. package/dist/chunks/cli-1.1.6-de79nefp.mjs +0 -2
  603. package/dist/chunks/cli-1.1.6-dey5k0n6.mjs +0 -2
  604. package/dist/chunks/cli-1.1.6-df94b7hs.mjs +0 -2
  605. package/dist/chunks/cli-1.1.6-dnehk6am.mjs +0 -2
  606. package/dist/chunks/cli-1.1.6-dsx3y9mh.mjs +0 -2
  607. package/dist/chunks/cli-1.1.6-e1q2xpwf.mjs +0 -2
  608. package/dist/chunks/cli-1.1.6-ea1sc7sa.mjs +0 -2
  609. package/dist/chunks/cli-1.1.6-ee36w2t8.mjs +0 -2
  610. package/dist/chunks/cli-1.1.6-ehy04hr0.mjs +0 -2
  611. package/dist/chunks/cli-1.1.6-eyrk5vjw.mjs +0 -4
  612. package/dist/chunks/cli-1.1.6-f5754mz3.mjs +0 -2
  613. package/dist/chunks/cli-1.1.6-f5z1d08s.mjs +0 -18
  614. package/dist/chunks/cli-1.1.6-f64yrj9v.mjs +0 -2
  615. package/dist/chunks/cli-1.1.6-f6bm23x3.mjs +0 -2
  616. package/dist/chunks/cli-1.1.6-f90g0cqz.mjs +0 -39
  617. package/dist/chunks/cli-1.1.6-fdgfprar.mjs +0 -24
  618. package/dist/chunks/cli-1.1.6-fe9m89qf.mjs +0 -2
  619. package/dist/chunks/cli-1.1.6-fgd52mbf.mjs +0 -2
  620. package/dist/chunks/cli-1.1.6-fjb1m1sm.mjs +0 -2
  621. package/dist/chunks/cli-1.1.6-fk2ggp7p.mjs +0 -2
  622. package/dist/chunks/cli-1.1.6-g7jsvjwq.mjs +0 -12
  623. package/dist/chunks/cli-1.1.6-gc4cmade.mjs +0 -3
  624. package/dist/chunks/cli-1.1.6-ghcyvb6h.mjs +0 -3
  625. package/dist/chunks/cli-1.1.6-gz7wve40.mjs +0 -3
  626. package/dist/chunks/cli-1.1.6-hc502eny.mjs +0 -4
  627. package/dist/chunks/cli-1.1.6-hhggf5vv.mjs +0 -2
  628. package/dist/chunks/cli-1.1.6-hkwgvwvj.mjs +0 -2
  629. package/dist/chunks/cli-1.1.6-hm146gsn.mjs +0 -2
  630. package/dist/chunks/cli-1.1.6-hn0crvf2.mjs +0 -2
  631. package/dist/chunks/cli-1.1.6-hq074xvz.mjs +0 -2
  632. package/dist/chunks/cli-1.1.6-hs257f9p.mjs +0 -12
  633. package/dist/chunks/cli-1.1.6-hsg23shn.mjs +0 -2
  634. package/dist/chunks/cli-1.1.6-j0a0gz8c.mjs +0 -7
  635. package/dist/chunks/cli-1.1.6-j4kwtpg1.mjs +0 -2
  636. package/dist/chunks/cli-1.1.6-j8ngkdcw.mjs +0 -3
  637. package/dist/chunks/cli-1.1.6-jf4c40zg.mjs +0 -42
  638. package/dist/chunks/cli-1.1.6-jf5kbdjm.mjs +0 -2
  639. package/dist/chunks/cli-1.1.6-jhcpddxn.mjs +0 -2
  640. package/dist/chunks/cli-1.1.6-jhyybymr.mjs +0 -3
  641. package/dist/chunks/cli-1.1.6-jjwhpfnp.mjs +0 -2
  642. package/dist/chunks/cli-1.1.6-jrbegmwv.mjs +0 -2
  643. package/dist/chunks/cli-1.1.6-jx50q0sg.mjs +0 -2
  644. package/dist/chunks/cli-1.1.6-k53tny07.mjs +0 -6
  645. package/dist/chunks/cli-1.1.6-k93n8vn6.mjs +0 -50
  646. package/dist/chunks/cli-1.1.6-knbv8711.mjs +0 -4
  647. package/dist/chunks/cli-1.1.6-m7j2d00d.mjs +0 -2
  648. package/dist/chunks/cli-1.1.6-mantfyp6.mjs +0 -4
  649. package/dist/chunks/cli-1.1.6-mas7f8cv.mjs +0 -2
  650. package/dist/chunks/cli-1.1.6-metnr539.mjs +0 -2
  651. package/dist/chunks/cli-1.1.6-mf4x6fdv.mjs +0 -2
  652. package/dist/chunks/cli-1.1.6-mtznq91n.mjs +0 -2
  653. package/dist/chunks/cli-1.1.6-mvnvwgf3.mjs +0 -2
  654. package/dist/chunks/cli-1.1.6-mvxjj1r6.mjs +0 -2
  655. package/dist/chunks/cli-1.1.6-mwbmfs2b.mjs +0 -2
  656. package/dist/chunks/cli-1.1.6-myrs2n90.mjs +0 -2
  657. package/dist/chunks/cli-1.1.6-n45gq9d8.mjs +0 -2
  658. package/dist/chunks/cli-1.1.6-n7p5sqsx.mjs +0 -2
  659. package/dist/chunks/cli-1.1.6-nhrgk95j.mjs +0 -2
  660. package/dist/chunks/cli-1.1.6-np5xkmje.mjs +0 -2
  661. package/dist/chunks/cli-1.1.6-nrzxwdbd.mjs +0 -2
  662. package/dist/chunks/cli-1.1.6-pfcwqc6w.mjs +0 -2
  663. package/dist/chunks/cli-1.1.6-pgv3skh2.mjs +0 -2
  664. package/dist/chunks/cli-1.1.6-pmr766bh.mjs +0 -2
  665. package/dist/chunks/cli-1.1.6-psfxpvvw.mjs +0 -2
  666. package/dist/chunks/cli-1.1.6-q3h6xhnn.mjs +0 -2
  667. package/dist/chunks/cli-1.1.6-q7s5rc60.mjs +0 -4
  668. package/dist/chunks/cli-1.1.6-q9srpsg7.mjs +0 -2
  669. package/dist/chunks/cli-1.1.6-qem2tnkw.mjs +0 -202
  670. package/dist/chunks/cli-1.1.6-qhzcv293.mjs +0 -45
  671. package/dist/chunks/cli-1.1.6-qnnerc4q.mjs +0 -2
  672. package/dist/chunks/cli-1.1.6-qv0e27w2.mjs +0 -2
  673. package/dist/chunks/cli-1.1.6-qwafs3e9.mjs +0 -2
  674. package/dist/chunks/cli-1.1.6-r7hh6n18.mjs +0 -4
  675. package/dist/chunks/cli-1.1.6-rbnb0fqm.mjs +0 -2
  676. package/dist/chunks/cli-1.1.6-rh4e5g6a.mjs +0 -2
  677. package/dist/chunks/cli-1.1.6-rvy9sw8e.mjs +0 -6
  678. package/dist/chunks/cli-1.1.6-skhrp917.mjs +0 -2
  679. package/dist/chunks/cli-1.1.6-smg65f0q.mjs +0 -2
  680. package/dist/chunks/cli-1.1.6-sqny5wf8.mjs +0 -2
  681. package/dist/chunks/cli-1.1.6-sw693n6v.mjs +0 -2
  682. package/dist/chunks/cli-1.1.6-t0t4f70r.mjs +0 -2
  683. package/dist/chunks/cli-1.1.6-tgfrtwj2.mjs +0 -2
  684. package/dist/chunks/cli-1.1.6-tgq92np6.mjs +0 -12
  685. package/dist/chunks/cli-1.1.6-tjhvveh6.mjs +0 -9
  686. package/dist/chunks/cli-1.1.6-tp1n5k71.mjs +0 -5
  687. package/dist/chunks/cli-1.1.6-tskpkzwj.mjs +0 -2
  688. package/dist/chunks/cli-1.1.6-txa283mq.mjs +0 -2
  689. package/dist/chunks/cli-1.1.6-v4rcg48d.mjs +0 -2
  690. package/dist/chunks/cli-1.1.6-vds1erg6.mjs +0 -2
  691. package/dist/chunks/cli-1.1.6-vgfrx9zz.mjs +0 -2
  692. package/dist/chunks/cli-1.1.6-vjv782dn.mjs +0 -3
  693. package/dist/chunks/cli-1.1.6-vvj4w9mq.mjs +0 -133
  694. package/dist/chunks/cli-1.1.6-w3r2012k.mjs +0 -3
  695. package/dist/chunks/cli-1.1.6-w4nw5yvg.mjs +0 -16
  696. package/dist/chunks/cli-1.1.6-w88sm78a.mjs +0 -2
  697. package/dist/chunks/cli-1.1.6-wbyqyqra.mjs +0 -58
  698. package/dist/chunks/cli-1.1.6-wce7z6cj.mjs +0 -2
  699. package/dist/chunks/cli-1.1.6-wg1zsvap.mjs +0 -2
  700. package/dist/chunks/cli-1.1.6-wh81pn41.mjs +0 -2
  701. package/dist/chunks/cli-1.1.6-wvfzbx8v.mjs +0 -2
  702. package/dist/chunks/cli-1.1.6-xc6fegry.mjs +0 -2
  703. package/dist/chunks/cli-1.1.6-xk9kbqjj.mjs +0 -2
  704. package/dist/chunks/cli-1.1.6-xr47dpcr.mjs +0 -2
  705. package/dist/chunks/cli-1.1.6-y1ef9wcz.mjs +0 -2
  706. package/dist/chunks/cli-1.1.6-y5sst8yn.mjs +0 -2
  707. package/dist/chunks/cli-1.1.6-y629c7ce.mjs +0 -2
  708. package/dist/chunks/cli-1.1.6-yqeznpw6.mjs +0 -2
  709. package/dist/chunks/cli-1.1.6-yqy3sf86.mjs +0 -2
  710. package/dist/chunks/cli-1.1.6-yztkt1v8.mjs +0 -2
  711. package/dist/chunks/cli-1.1.6-z39g71z3.mjs +0 -2
  712. package/dist/chunks/cli-1.1.6-zf2eh2hp.mjs +0 -133
  713. package/dist/chunks/cli-1.1.6-zfad1fbs.mjs +0 -2
  714. package/dist/chunks/client-1.1.6-mkz9k1b4.mjs +0 -1
  715. package/dist/chunks/color-1.1.6-a74e7c15.mjs +0 -1
  716. package/dist/chunks/compact-1.1.6-pfqqd4k1.mjs +0 -3
  717. package/dist/chunks/config-1.1.6-4a4h6yby.mjs +0 -1
  718. package/dist/chunks/config-1.1.6-cj6rdsn7.mjs +0 -1
  719. package/dist/chunks/constants-1.1.6-fth9gfja.mjs +0 -1
  720. package/dist/chunks/context-1.1.6-zj8xnjdz.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.6-fd13cdj6.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.6-6tqbjb48.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.6-vp5s0ap6.mjs +0 -1
  724. package/dist/chunks/copy-1.1.6-kx6fygzk.mjs +0 -9
  725. package/dist/chunks/cost-1.1.6-hbeb6njn.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.6-zpnd7td2.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.6-0x11qyv4.mjs +0 -1
  728. package/dist/chunks/debug-1.1.6-dmmf0z35.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.6-awhxj7xq.mjs +0 -1446
  730. package/dist/chunks/desktop-1.1.6-2gfyp9we.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.6-3fyxh3xk.mjs +0 -1
  732. package/dist/chunks/detection-1.1.6-faf39qph.mjs +0 -1
  733. package/dist/chunks/diff-1.1.6-33264egy.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.6-nvrp802y.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.6-w7kzf528.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.6-5xc2vg5z.mjs +0 -1
  737. package/dist/chunks/effort-1.1.6-6cbcyqdk.mjs +0 -13
  738. package/dist/chunks/engine-1.1.6-tdfrzxcr.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.6-jatxh6m2.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.6-m9k7s3fw.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.6-pc4q1v3x.mjs +0 -1
  742. package/dist/chunks/environments-1.1.6-m8qj6rzb.mjs +0 -1
  743. package/dist/chunks/errors-1.1.6-w953w7jb.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.6-gs4fqq7g.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.6-c2jzb6a9.mjs +0 -1
  746. package/dist/chunks/exit-1.1.6-6t37q0td.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.6-s8znafd6.mjs +0 -1
  748. package/dist/chunks/export-1.1.6-9y48q96m.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.6-pem0zs1k.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.6-9j6d1zrm.mjs +0 -1
  751. package/dist/chunks/fast-1.1.6-rw7jfy8x.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.6-n2r6dz69.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.6-ynh9p0pa.mjs +0 -1
  754. package/dist/chunks/git-1.1.6-dmzq4r9j.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.6-y1rrmmjd.mjs +0 -1
  756. package/dist/chunks/goal-1.1.6-jstgq5mn.mjs +0 -4
  757. package/dist/chunks/grove-1.1.6-zaec0hcr.mjs +0 -1
  758. package/dist/chunks/growthbook-1.1.6-tg7gg2w1.mjs +0 -1
  759. package/dist/chunks/headless-1.1.6-kbhp9r32.mjs +0 -2
  760. package/dist/chunks/heapdump-1.1.6-y2trj2kf.mjs +0 -6
  761. package/dist/chunks/help-1.1.6-bffctqy8.mjs +0 -1
  762. package/dist/chunks/hookChains-1.1.6-3xjn2nz3.mjs +0 -3
  763. package/dist/chunks/hooks-1.1.6-qd6nqd1x.mjs +0 -79
  764. package/dist/chunks/hooks-1.1.6-zgz1tg7z.mjs +0 -1
  765. package/dist/chunks/ide-1.1.6-ds1w26yv.mjs +0 -3
  766. package/dist/chunks/image-processor-napi-1.1.6-81b82bpc.mjs +0 -1
  767. package/dist/chunks/inboundAttachments-1.1.6-0sybnqr5.mjs +0 -1
  768. package/dist/chunks/index-1.1.6-1as8yrj3.mjs +0 -1
  769. package/dist/chunks/index-1.1.6-77xmgpm9.mjs +0 -2
  770. package/dist/chunks/index-1.1.6-8er16qt9.mjs +0 -1
  771. package/dist/chunks/index-1.1.6-aqs218jc.mjs +0 -1
  772. package/dist/chunks/index-1.1.6-bp5ykp32.mjs +0 -1
  773. package/dist/chunks/index-1.1.6-dcz3x5f0.mjs +0 -1
  774. package/dist/chunks/index-1.1.6-dezs32mp.mjs +0 -1
  775. package/dist/chunks/index-1.1.6-e9dmdg4d.mjs +0 -1
  776. package/dist/chunks/index-1.1.6-kxgcs4jr.mjs +0 -2
  777. package/dist/chunks/index-1.1.6-n18eqfnp.mjs +0 -1
  778. package/dist/chunks/index-1.1.6-ncrqpack.mjs +0 -17
  779. package/dist/chunks/index-1.1.6-nfj2jf0j.mjs +0 -9
  780. package/dist/chunks/index-1.1.6-nnqd96xw.mjs +0 -1
  781. package/dist/chunks/index-1.1.6-q9zj36pw.mjs +0 -1
  782. package/dist/chunks/index-1.1.6-qmatppjr.mjs +0 -1
  783. package/dist/chunks/index-1.1.6-r1bmqay8.mjs +0 -30
  784. package/dist/chunks/index-1.1.6-sw2j9mqc.mjs +0 -1
  785. package/dist/chunks/index-1.1.6-tq6ss5ea.mjs +0 -1
  786. package/dist/chunks/index-1.1.6-vgm9924j.mjs +0 -5
  787. package/dist/chunks/index-1.1.6-vspc4xn7.mjs +0 -1
  788. package/dist/chunks/index-1.1.6-wm63hvx1.mjs +0 -9
  789. package/dist/chunks/index-1.1.6-xedyyfgd.mjs +0 -1
  790. package/dist/chunks/index-1.1.6-xz69gkvj.mjs +0 -1
  791. package/dist/chunks/init-1.1.6-hc2ca4dt.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.6-rf94v2mb.mjs +0 -1
  793. package/dist/chunks/ink-1.1.6-n63gvsds.mjs +0 -1
  794. package/dist/chunks/insights-1.1.6-f5g3mjjs.mjs +0 -870
  795. package/dist/chunks/install-1.1.6-9g5bvnbt.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.6-q742k1d8.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.6-2m0r94qq.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.6-ysyashvq.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.6-txkvfp2f.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.6-wdypqj1b.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.6-y954e8zr.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.6-3x744gm9.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.6-s7vq0hex.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.6-3brm7c6q.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.6-yjppjc3w.mjs +0 -1
  806. package/dist/chunks/log-1.1.6-wd96yvx0.mjs +0 -1
  807. package/dist/chunks/main-1.1.6-tszgcjw8.mjs +0 -1
  808. package/dist/chunks/managedEnv-1.1.6-h7wrx977.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.6-4jn435jj.mjs +0 -1
  810. package/dist/chunks/mcp-1.1.6-kttkg0aq.mjs +0 -4
  811. package/dist/chunks/mcp-1.1.6-w2pzn4yq.mjs +0 -17
  812. package/dist/chunks/mcpb-1.1.6-123k4ssd.mjs +0 -1
  813. package/dist/chunks/memory-1.1.6-zwnxw7r1.mjs +0 -72
  814. package/dist/chunks/model-1.1.6-cgt0wpc7.mjs +0 -1
  815. package/dist/chunks/model-1.1.6-f8jat8v6.mjs +0 -2
  816. package/dist/chunks/node-1.1.6-hydke02w.mjs +0 -12
  817. package/dist/chunks/oauth-1.1.6-e6mvmc8s.mjs +0 -1
  818. package/dist/chunks/openaiShim-1.1.6-fpw7ztzc.mjs +0 -14
  819. package/dist/chunks/output-style-1.1.6-2jny7104.mjs +0 -1
  820. package/dist/chunks/package-2VNCXFNY-1.1.6-1d5w8e0d.mjs +0 -1
  821. package/dist/chunks/parseConnectUrl-1.1.6-0hz3530h.mjs +0 -1
  822. package/dist/chunks/parser-1.1.6-qmfc1zqp.mjs +0 -1
  823. package/dist/chunks/passes-1.1.6-1tvcc5w4.mjs +0 -1
  824. package/dist/chunks/permissions-1.1.6-53wetvk8.mjs +0 -3
  825. package/dist/chunks/permissions-1.1.6-q44j1e6z.mjs +0 -1
  826. package/dist/chunks/plan-1.1.6-n8400ecj.mjs +0 -1
  827. package/dist/chunks/plist-1.1.6-tkmbyyha.mjs +0 -1
  828. package/dist/chunks/plugin-1.1.6-3zyn5n3k.mjs +0 -29
  829. package/dist/chunks/pluginStartupCheck-1.1.6-nhwvnpaw.mjs +0 -1
  830. package/dist/chunks/plugins-1.1.6-z5gj1xg2.mjs +0 -9
  831. package/dist/chunks/preActionHook-1.1.6-0a6sda26.mjs +0 -2
  832. package/dist/chunks/print-1.1.6-c37g4fe5.mjs +0 -57
  833. package/dist/chunks/privacy-settings-1.1.6-yr53ykx0.mjs +0 -1
  834. package/dist/chunks/process-1.1.6-mvy7evbd.mjs +0 -1
  835. package/dist/chunks/processBashCommand-1.1.6-z74wmg31.mjs +0 -1
  836. package/dist/chunks/processSlashCommand-1.1.6-98ma1epv.mjs +0 -9
  837. package/dist/chunks/prompt-1.1.6-q1tcweyb.mjs +0 -1
  838. package/dist/chunks/prompt-1.1.6-qfs7gmje.mjs +0 -1
  839. package/dist/chunks/prompts-1.1.6-7wbfe88q.mjs +0 -1
  840. package/dist/chunks/protocolHandler-1.1.6-4vqjdqs8.mjs +0 -13
  841. package/dist/chunks/provider-1.1.6-px8m07p1.mjs +0 -2
  842. package/dist/chunks/providerProfiles-1.1.6-qfcj6rna.mjs +0 -1
  843. package/dist/chunks/providerValidation-1.1.6-zpc167c0.mjs +0 -6
  844. package/dist/chunks/rate-limit-options-1.1.6-g969jwnk.mjs +0 -1
  845. package/dist/chunks/registerSubcommands-1.1.6-hxpvccxn.mjs +0 -34
  846. package/dist/chunks/registry-1.1.6-phrxb4h5.mjs +0 -1
  847. package/dist/chunks/release-notes-1.1.6-8xjvckwx.mjs +0 -5
  848. package/dist/chunks/reload-plugins-1.1.6-m01jm3hm.mjs +0 -2
  849. package/dist/chunks/remote-env-1.1.6-e7dvbp33.mjs +0 -1
  850. package/dist/chunks/remoteBridgeCore-1.1.6-xch4tnhm.mjs +0 -1
  851. package/dist/chunks/remoteSession-1.1.6-889wgdvn.mjs +0 -1
  852. package/dist/chunks/rename-1.1.6-5gm06z0q.mjs +0 -1
  853. package/dist/chunks/replBridgeHandle-1.1.6-gee84nsm.mjs +0 -1
  854. package/dist/chunks/replLauncher-1.1.6-p4kaptcr.mjs +0 -1
  855. package/dist/chunks/resume-1.1.6-dad8d44r.mjs +0 -2
  856. package/dist/chunks/rewind-1.1.6-ahd4a8a0.mjs +0 -1
  857. package/dist/chunks/rootOptions-1.1.6-tnjw4cc8.mjs +0 -1
  858. package/dist/chunks/runWorkflowHeadless-1.1.6-d8khz20w.mjs +0 -10
  859. package/dist/chunks/sandbox-adapter-1.1.6-gvshrcnv.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-1.1.6-698zj2bb.mjs +0 -1
  861. package/dist/chunks/session-1.1.6-ygn8nthq.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-1.1.6-5tf3vq7n.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-1.1.6-qdcqxsyf.mjs +0 -1
  864. package/dist/chunks/sessionStorage-1.1.6-v8j65fxd.mjs +0 -1
  865. package/dist/chunks/settings-1.1.6-pqfqbqc8.mjs +0 -1
  866. package/dist/chunks/setup-1.1.6-8gpp5q84.mjs +0 -5
  867. package/dist/chunks/sinks-1.1.6-sgbft9nd.mjs +0 -1
  868. package/dist/chunks/skills-1.1.6-xec48gah.mjs +0 -1
  869. package/dist/chunks/startupProfiler-1.1.6-xc1znvwg.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-1.1.6-09npj0tz.mjs +0 -1
  871. package/dist/chunks/state-1.1.6-h6ayf7sc.mjs +0 -1
  872. package/dist/chunks/stats-1.1.6-4yrvq5x0.mjs +0 -6
  873. package/dist/chunks/status-1.1.6-xjmnjsf0.mjs +0 -1
  874. package/dist/chunks/stickers-1.1.6-feprt06h.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-1.1.6-v558v26d.mjs +0 -1
  876. package/dist/chunks/tasks-1.1.6-fpxxmwz3.mjs +0 -1
  877. package/dist/chunks/teamHelpers-1.1.6-pvj5v856.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-1.1.6-w15n2smy.mjs +0 -1
  879. package/dist/chunks/teleport-1.1.6-n8bvdqye.mjs +0 -1
  880. package/dist/chunks/terminalSetup-1.1.6-a7j2pxzn.mjs +0 -1
  881. package/dist/chunks/theme-1.1.6-6tqv5qg4.mjs +0 -1
  882. package/dist/chunks/thinkback-1.1.6-2ape1jwq.mjs +0 -1
  883. package/dist/chunks/thinkback-play-1.1.6-3mq1jb49.mjs +0 -1
  884. package/dist/chunks/toolPool-1.1.6-jkgfq8za.mjs +0 -1
  885. package/dist/chunks/toolSearch-1.1.6-y0sb6bpz.mjs +0 -1
  886. package/dist/chunks/tools-1.1.6-rk47dxc1.mjs +0 -1
  887. package/dist/chunks/trustedDevice-1.1.6-vcnvxckf.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-1.1.6-jpzxj1ge.mjs +0 -69
  889. package/dist/chunks/types-1.1.6-vpfqv76z.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-1.1.6-qj0rj3n8.mjs +0 -4
  891. package/dist/chunks/update-1.1.6-1b0fwnqk.mjs +0 -72
  892. package/dist/chunks/upgrade-1.1.6-vwnszewt.mjs +0 -1
  893. package/dist/chunks/upload-1.1.6-y4dk84sr.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-1.1.6-rb6nathp.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-1.1.6-5tknhyb2.mjs +0 -1
  896. package/dist/chunks/usage-1.1.6-y17hrs2n.mjs +0 -1
  897. package/dist/chunks/util-1.1.6-jnjwsw36.mjs +0 -1
  898. package/dist/chunks/utils-1.1.6-v1ka47qy.mjs +0 -1
  899. package/dist/chunks/vim-1.1.6-a4e4tpt2.mjs +0 -1
  900. package/dist/chunks/watchLoop-1.1.6-ka4q3f8n.mjs +0 -13
  901. package/dist/chunks/watcher-1.1.6-tbtsan22.mjs +0 -1
  902. package/dist/chunks/wiki-1.1.6-qj7bh0ea.mjs +0 -132
  903. package/dist/chunks/workflows-1.1.6-bsfhrn83.mjs +0 -1
  904. package/dist/chunks/worktree-1.1.6-dyrbeptb.mjs +0 -1
  905. package/dist/chunks/worktreeModeEnabled-1.1.6-j4mw0mtw.mjs +0 -1
  906. package/dist/chunks/wrapper-1.1.6-eck6m7db.mjs +0 -7
  907. /package/dist/chunks/{cli-1.1.6-32gxvr4y.mjs → cli-1.1.8-15q52swp.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.6-phpnk311.mjs → cli-1.1.8-gtw37r6f.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.6-1192yjjf.mjs → cli-1.1.8-gvkpq2k1.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.6-gzsjjcf2.mjs → cli-1.1.8-k0wdtx54.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.6-p9y9z3vv.mjs → cli-1.1.8-n7gqm17w.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.6-y9xnpn7x.mjs → cli-1.1.8-rkw1dz9x.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.6-0aspjywf.mjs → cli-1.1.8-t1a3d6s9.mjs} +0 -0
@@ -1,3 +0,0 @@
1
- import{Rc as m,Sc as v,Tc as wk}from"./cli-1.1.6-hn0crvf2.mjs";import{Iz as l,JG as n,JS as r,Jz as Vk,KG as V,KS as kk,LG as i,OG as Tk,OS as jk,QO as o,SO as t,Tn as p,Un as zk,VO as Dk,ZO as e,_O as Uk,eB as s,fB as Gk,iF as g,jF as a,rF as Lk}from"./cli-1.1.6-ckg7fah6.mjs";import{K5 as d,M5 as Ok,h5 as T,n5 as Jk}from"./cli-1.1.6-w4nw5yvg.mjs";import{h9 as f,i9 as Ik,s9 as c,v9 as Mk}from"./cli-1.1.6-tgq92np6.mjs";import{q_ as S,v_ as _k}from"./cli-1.1.6-rh4e5g6a.mjs";import{$$ as $k,Cga as _,Fga as Hk,Q_ as K,S_ as Zk,Sda as j,X$ as P,Yea as x,afa as b,fea as Kk,jfa as u,rfa as $}from"./cli-1.1.6-qem2tnkw.mjs";import{Eha as Yk,zha as J}from"./cli-1.1.6-eyrk5vjw.mjs";import{vja as L,wja as Bk}from"./cli-1.1.6-qwafs3e9.mjs";import{Aka as B,Dja as O,Dka as U,Fja as Rk}from"./cli-1.1.6-rvy9sw8e.mjs";import{Uka as h,_ka as Y,fla as Xk}from"./cli-1.1.6-cam8a83k.mjs";import{lla as E,vla as Wk}from"./cli-1.1.6-d1aef3g5.mjs";import{Aoa as y,Qoa as w,_qa as z,yoa as F}from"./cli-1.1.6-dsx3y9mh.mjs";import{xra as A,yra as Qk}from"./cli-1.1.6-mf4x6fdv.mjs";import{Ksa as W}from"./cli-1.1.6-xc6fegry.mjs";Yk();z();$();Qk();z();z();Vk();Ok();Lk();Tk();Bk();Hk();Jk();var G=!1;function D(){if(G)return;if(G=!0,T()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDE_CODE_CLIENT_CERT||process.env.CLAUDE_CODE_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||L().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();U();Kk();function C(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=x()?.env,Q=j("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();U();_k();Zk();zk();Wk();Xk();jk();wk();Ik();Dk();Mk();Uk();Gk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(m(),C(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-1.1.6-ynh9p0pa.mjs"),import("./growthbook-1.1.6-tg7gg2w1.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),d(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),V())n();if(a())g();J("init_after_remote_settings_check"),u();let Q=Date.now();B("[init] configureGlobalMTLS starting"),f(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),c(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),D(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-1.1.6-rb6nathp.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-1.1.6-v558v26d.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-1.1.6-pvj5v856.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(w()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
2
- `),kk(1);return}return import("./InvalidConfigDialog-1.1.6-z8tyzxq7.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(V()){if(w()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),v(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await xk()}catch(k){throw I=!1,k}}async function xk(){let{initializeTelemetry:k}=await import("./instrumentation-1.1.6-ysyashvq.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
3
- export{Yq as $,Zq as aa};
@@ -1,16 +0,0 @@
1
- import{t9 as E2,v9 as L8}from"./cli-1.1.6-tgq92np6.mjs";import{x9 as C,y9 as J$}from"./cli-1.1.6-03q6hzb7.mjs";import{J9 as r5,L9 as k8}from"./cli-1.1.6-f5754mz3.mjs";import{A_ as D2,Aba as C1,B_ as U0,Bba as l8,C_ as p4,Cga as D,D_ as r2,Fga as J0,I_ as F0,J_ as F1,Nfa as R4,Oba as B5,Pea as d,Pfa as X4,Rga as b,Sda as O,Sfa as P2,Tfa as q$,U_ as v5,Uda as G2,Uea as t5,Vea as A,X_ as Q$,Xda as Y0,Yda as M,Yea as K,Zga as s0,cfa as J4,dca as wZ,fea as H0,i$ as E5,k$ as Y$,mda as $4,oea as e4,qea as X$,qga as s5,rea as f1,rfa as i,sea as i8,tfa as Q4,tga as w4,ufa as KZ,vda as FZ,y_ as g4,yfa as Y4,z_ as s,zga as a5}from"./cli-1.1.6-qem2tnkw.mjs";import{$ha as M4,Zha as C0,jia as A1}from"./cli-1.1.6-81cgzqdp.mjs";import{oja as f5,pja as o4,qja as R0,sja as F8,tja as K8,vja as U,wja as M0}from"./cli-1.1.6-qwafs3e9.mjs";import{Aja as B2,xja as j}from"./cli-1.1.6-0a0rct1w.mjs";import{Aka as z,Cka as d0,Dka as $0,eka as O5,ika as $$,mka as s2,qka as g8}from"./cli-1.1.6-rvy9sw8e.mjs";import{_ka as p,ala as G1,fla as H1}from"./cli-1.1.6-cam8a83k.mjs";import{ila as P5,lla as F,nla as u,pla as v2,sla as r4,vla as g}from"./cli-1.1.6-d1aef3g5.mjs";import{Bpa as j2,Qoa as f,Xma as q0,Xoa as h1,Yma as U1,_na as i1,_qa as Q0,moa as Z4,mpa as z1,npa as x1,opa as j1,ppa as B1,qoa as S4,voa as T0,woa as J2}from"./cli-1.1.6-dsx3y9mh.mjs";import{xra as y,yra as t0}from"./cli-1.1.6-mf4x6fdv.mjs";import{Ura as P,ksa as q2}from"./cli-1.1.6-7x719hyg.mjs";import{Gsa as y0,Isa as n2,Jsa as R,Ksa as Z0}from"./cli-1.1.6-xc6fegry.mjs";function u5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:q,context:V}=$.shift();try{let x=await Z.apply(V,Y);X(x)}catch(x){q(x)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,q)=>{$.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var g5=()=>{};function m5(Z,$){return Z.find((J)=>J.includes($))??null}async function c5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v2(),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-1.1.6-aqs218jc.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.6-q9zj36pw.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function ZJ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v2(),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-1.1.6-aqs218jc.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.6-q9zj36pw.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function D8(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 U8(Z){let $=b8(Z);for(let J of N8)if($.startsWith(`${J}.anthropic.`))return J;return}function JJ(Z,$){let J=U8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(D8(Z))return`${$}.${Z}`;return Z}var p5,$J,N8;var d5=R(()=>{t0();n();g();s0();L8();p5=y(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([c5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw b(Y),Y}});$J=y(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([c5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch($){return b($),null}});N8=["us","eu","apac","global"]});var _2,I2,y2,T2,S2,M2,h2,A2,C2,a0,r0,o0,v0,f2,u2,g2,B0,YJ,n5;var p2=R(()=>{_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"},I2={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"},y2={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"},T2={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"},S2={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"},M2={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"},h2={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"},A2={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"},r0={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"},o0={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"},v0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f2={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"},u2={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"},g2={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},B0={haiku35:y2,haiku45:T2,sonnet35:I2,sonnet37:_2,sonnet40:S2,sonnet45:M2,sonnet46:u2,sonnet5:g2,opus40:h2,opus41:A2,opus45:C2,opus46:a0,opus47:r0,opus48:o0,opus5:v0,fable5:f2},YJ=Object.values(B0).map((Z)=>Z.firstParty),n5=Object.fromEntries(Object.entries(B0).map(([Z,$])=>[$.firstParty,Z]))});function l5(){return Object.values(e0)}var e0,m2;var c2=R(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},m2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};n2(_0,{prefetchCopilotModelCatalog:()=>i2,normalizeBareCopilotModelId:()=>l2,getEffectiveCopilotModels:()=>I8,getCopilotDisplayName:()=>y8,getCatalogCopilotMaxOutputTokens:()=>M8,getCatalogCopilotContextWindow:()=>S8,getCachedCopilotCatalog:()=>_8,fetchCopilotModelCatalog:()=>e5,copilotModelSupportsAnthropicMessages:()=>T8,_setCopilotCatalogForTesting:()=>h8});function E0(){let Z=D();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function o5(){if(!l)return!1;let Z=E0();return Z!==null&&G0===Z}function O8(){if(i5)return;i5=!0,t5(()=>{let Z=E0();if(Z&&G0!==Z)i2()})}function l2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function v8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function E8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},X=Y.vision===!0||Boolean(Q.vision),q=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["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:v8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function e5(){let Z=D();if(Z?.transport!=="github_copilot")return null;if(s5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),P8);try{let X=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...r5},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,x=[];for(let G of q.data){let H=E8(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),x.push(H)}return x.length>0?x:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i2(){O8();let Z=E0();if(!Z)return;if(l&&G0!==Z)l=null,G0=null;if(Z2){if(d2===Z)return;Z2.finally(()=>i2());return}d2=Z,Z2=e5().then(($)=>{if($&&E0()===Z)l=$,G0=Z}).finally(()=>{Z2=null,d2=null})}function _8(){return l}function I8(){if(o5()){let Z=l?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return l5()}function $2(Z){if(!o5())return;let $=l2(Z);return l.find((J)=>J.model.id===$)}function y8(Z){let $=l2(Z);return $2($)?.model.name??e0[$]?.name}function T8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function S8(Z){return $2(Z)?.model.limit.context}function M8(Z){return $2(Z)?.model.limit.output}function h8(Z){l=Z,G0=Z?E0():null}var P8=5000,l=null,G0=null,Z2=null,d2=null,i5=!1;var I0=R(()=>{J0();k8();a5();i();$0();c2()});function W(){let Z=D();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 HJ(){return W()==="firstParty"}function A8(Z){let $=D();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(I0(),y0(_0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function RJ(Z){let $=D()?.transport??"anthropic";if(!C8.has($))return!1;if($==="github_copilot"&&A8(Z))return!1;return!0}function wJ(){return W()}function FJ(){let Z=D();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 C8;var t=R(()=>{J0();C8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of $1)J[Q]=B0[Q][$];return J}async function f8(){let Z=Q2("bedrock"),$;try{$=await p5()}catch(Q){return b(Q),Z}if(!$?.length)return Z;let J={};for(let Q of $1){let Y=B0[Q].firstParty;J[Q]=m5($,Y)||Z[Q]}return J}function Z1(Z){let $=Y0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=n5[Q];if(X&&Y)J[X]=Y}return J}function Y2(Z){let $;try{$=Y0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function u8(){if(T0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}J1()}function B(){let Z=T0();if(Z===null)return u8(),Z1(Q2(W()));return Z1(Z)}async function OJ(){if(T0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}await J1()}var $1,J1;var X2=R(()=>{Q0();s0();g5();H0();d5();p2();t();$1=Object.keys(B0);J1=u5(async()=>{if(T0()!==null)return;try{let Z=await f8();J2(Z)}catch(Z){b(Z)}})});function yJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(k())return!1;let $=S0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=K(),Y=Q.oauthAccount?.organizationRole,X=Q.oauthAccount?.workspaceRole;if(!Y||!X)return!1;return["admin","billing"].includes(Y)||["workspace_admin","workspace_billing"].includes(X)}function TJ(){if(Q1!==null)return Q1;if(!k())return!1;let Z=_();if(Z==="max"||Z==="pro")return!0;let J=K().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var Q1=null;var Y1=R(()=>{n();i();g()});function AJ(Z){return Z}function CJ(){return!1}function X1(){return null}function q1(){return!1}var V1=R(()=>{Y1()});async function dJ(){let $=K().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":R0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){b(Y)}}async function w0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){b(J)}}var t2=R(()=>{q2();M0();n();i();s0()});import{mkdirSync as p8,writeFileSync as m8}from"fs";function n8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{p8(V2,{recursive:!0,mode:448}),m8(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 W1(Z,$){try{let Q=s2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!G1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function R1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[Z];if(!q){let x=W1($,J);return Y(x),x}let V=parseInt(q,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let x=s2(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=x.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),n8($,H,J),H}catch(x){z(`Failed to read ${J} from file descriptor ${V}: ${p(x)}`,{level:"error"});let G=W1($,J);return Y(G),G}}function W2(){return R1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:c8,label:"OAuth token",getCached:z1,setCached:x1})}function a2(){return R1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:d8,label:"API key",getCached:j1,setCached:B1})}var V2="/home/claude/.claude/remote",c8,d8,oJ;var w1=R(()=>{Q0();$0();g();H1();g8();c8=`${V2}/.oauth_token`,d8=`${V2}/.api_key`,oJ=`${V2}/.session_ingress_token`});async function K1(){if(process.platform==="darwin"){let Z=s();if((await F0(`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 L1=R(()=>{F1();r2()});function Y3(Z){return Z?.name==="CredentialsProviderError"}function D1(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 o2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function N1(){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 b1=R(()=>{$0()});class h{static instance=null;status={isAuthenticating:!1,output:[]};changed=q0();static getInstance(){if(!h.instance)h.instance=new h;return h.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(h.instance)h.instance.changed.clear(),h.instance=null}}var k1=R(()=>{U1()});var x2="claude-code-20250219",P1="interleaved-thinking-2025-05-14",h0="context-1m-2025-08-07",O1="context-management-2025-06-27",v1="structured-outputs-2025-12-15",e2="web-search-2025-03-05",E1="advanced-tool-use-2025-11-20",_1="tool-search-tool-2025-10-19",W3="effort-2025-11-24",z3="task-budgets-2026-03-13",I1="prompt-caching-scope-2026-01-05",x3="extended-cache-ttl-2025-04-11",j3="fast-mode-2026-02-01",y1="redact-thinking-2026-02-12",T1="thinking-token-count-2026-05-13",S1="token-efficient-tools-2026-03-28",B3="afk-mode-2026-01-31",G3="advisor-tool-2026-03-01",Z5,H3;var $5=R(()=>{Z5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),H3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function T(){if(W()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function u1(){if(!T())return!1;return s8()===null}function t8(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 s8(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!T())return"Fast mode is not available";let Z=C0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!C1()&&C0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&j2()&&!h1()){if(!O("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=t8(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function T3(){let Z=H2(W0());return"opus"+(Y5()&&!Z?"[1m]":"")}function S3(Z){if(!T())return!1;if(!u1())return!1;if(!g1(Z))return!1;let $=Y0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function g1(Z){if(!T())return!1;let $=Z??f0(),J=S($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function a8(){if(K0.status==="cooldown"&&Date.now()>=K0.resetAt){if(T()&&!J5)z("Fast mode cooldown expired, re-enabling fast mode"),J5=!0,m1.emit();K0={status:"active"}}return K0}function A3(Z,$){if(!T())return;K0={status:"cooldown",resetAt:Z,reason:$},J5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),j("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),p1.emit(Z,$)}function C3(){K0={status:"active"}}function f3(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},G2("userSettings",{fastMode:void 0}),A((Z)=>({...Z,penguinModeOrgEnabled:!1})),Q5.emit(!1)}function r8(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 o8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function g3(Z){let $=r8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),j("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!o8(Z))G2("userSettings",{fastMode:void 0}),A((J)=>({...J,penguinModeOrgEnabled:!1}));c1.emit($)}function e8(){return a8().status==="cooldown"}function p3(Z,$){let J=T()&&u1()&&!!$&&g1(Z);if(J&&e8())return"cooldown";if(J)return"on";return"off"}async function ZZ(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":R0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function c3(){if(!T())return;if(E.status!=="pending")return;E=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function d3(){if(f1())return;if(!T())return;if(A0)return z("Fast mode prefetch in progress, returning in-flight promise"),A0;let Z=X0();if(!(w()?.accessToken&&V0())&&!Z){E=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-M1<$Z){z("Skipping fast mode prefetch, fetched recently");return}M1=J;let Q=async()=>{let X=w(),q=X?.accessToken&&V0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return ZZ(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(P.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await X5(G),X=await Q();else throw V}else throw V}let q=E.status!=="pending"?E.status==="enabled":K().penguinModeOrgEnabled;if(E=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)G2("userSettings",{fastMode:void 0});A((V)=>({...V,penguinModeOrgEnabled:X.enabled})),Q5.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){E=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),j("tengu_org_penguin_mode_fetch_failed",{})}finally{A0=null}}return A0=Y(),A0}var y3="Opus 5",K0,J5=!1,p1,m1,M3,h3,c1,u3,E,Q5,m3,$Z=30000,M1=0,A0=null;var d1=R(()=>{q2();M0();A1();Q0();B2();n();l8();i();$0();g();L0();t();i8();H0();U1();K0={status:"active"},p1=q0(),m1=q0(),M3=p1.subscribe,h3=m1.subscribe;c1=q0(),u3=c1.subscribe;E={status:"pending"},Q5=q0(),m3=Q5.subscribe});function VZ(Z){for(let $ of qZ)if($.pattern.test(Z))return $.cost;return}function V5(Z){if(T()&&Z)return t1;return a}function W5(Z){if(T()&&Z)return t1;return q5[L(v0.firstParty)]??a}function WZ(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function zZ(Z,$){let J=N(Z);if(J===L(a0.firstParty)||J===L(r0.firstParty)||J===L(o0.firstParty)){let Y=$.speed==="fast";return V5(Y)}if(J===L(v0.firstParty))return W5($.speed==="fast");let Q=q5[J];if(!Q){let Y=VZ(Z);if(Y)return Y;return xZ(Z,J),q5[N(f0())]??XZ}return Q}function xZ(Z,$){j("tengu_unknown_model_cost",{model:Z,shortName:$}),i1()}function jZ(Z,$){let J=zZ(Z,$);return WZ(J,$)}function r3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return jZ(Z,J)}function l1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function z5(Z){return`${l1(Z.inputTokens)}/${l1(Z.outputTokens)} per Mtok`}var D0,n1,a,JZ,t1,QZ,YZ,XZ,qZ,q5;var s1=R(()=>{B2();Q0();d1();p2();L0();D0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},n1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},a={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},JZ={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},t1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},QZ={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},YZ={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},XZ=a,qZ=[{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}}];q5={[L(y2.firstParty)]:QZ,[L(T2.firstParty)]:YZ,[L(I2.firstParty)]:D0,[L(_2.firstParty)]:D0,[L(S2.firstParty)]:D0,[L(M2.firstParty)]:D0,[L(u2.firstParty)]:D0,[L(g2.firstParty)]:D0,[L(h2.firstParty)]:n1,[L(A2.firstParty)]:n1,[L(C2.firstParty)]:a,[L(a0.firstParty)]:a,[L(r0.firstParty)]:a,[L(o0.firstParty)]:a,[L(v0.firstParty)]:a,[L(f2.firstParty)]:JZ}});function m(Z){return BZ.includes(Z)}function N0(Z){return GZ.includes(Z)}var BZ,GZ;var x5=R(()=>{BZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];GZ=["sonnet","opus","haiku"]});function HZ(Z,$){if(Z.includes($))return!0;if(m(Z))return S(Z).toLowerCase().includes($);return!1}function a1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function RZ(Z,$){let J=m(Z)?S(Z).toLowerCase():Z;if(a1(J,$))return!0;if(!$.startsWith("claude-")&&a1(J,`claude-${$}`))return!0;return!1}function r1(Z,$){for(let J of $){if(N0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function o1(Z){let $=M()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=Y2(Z).trim().toLowerCase(),X=J.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!N0(Y)||!r1(Y,X))return!0}for(let q of X)if(N0(q)&&!r1(q,X)&&HZ(Y,q))return!0;if(m(Y)){let q=S(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!N0(q)&&m(q)){if(S(q).toLowerCase()===Y)return!0}for(let q of X)if(!N0(q)&&!m(q)){if(RZ(Y,q))return!0}return!1}var e1=R(()=>{H0();x5();L0();X2()});function R2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function b0(){let Z=D();if(!Z?.model)return;return Q4(Z.model)}function b7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=b0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return q4()}function U7(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function H2(Z){let $=N(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j5(){let Z,$=Z4();if($!==void 0)Z=$;else{let J=M()||{},Q=R2(J.model),X=b0()||Q||void 0,q=J4(),V=R2(q.activeModelForProject);if(V){let x=Y4()?.id,G=q.activeModelForProjectProfileId;Z=G===void 0||G===x?V:X}else Z=X}if(Z&&!o1(Z))return;return Z}function k7(){let Z=j5();if(Z!==void 0&&Z!==null)return S(Z);return V4()}function LZ(){return W0()}function W0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=b0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function u0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=b0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=b0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function P7(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j5()==="opusplan"&&$==="plan"&&!Q)return W0();if(j5()==="haiku"&&$==="plan")return u0();return J}function f0(){let Z=b0();if(W()==="github"){let $=M()||{};return R2($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(w2()||F2()){let $=W0();return $+(Y5()&&!H2($)?"[1m]":"")}return u0()}function V4(){return S(f0())}function L(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function N(Z){return L(Y2(Z))}function DZ(Z=!1){if(w2()||F2())return`Opus 5 · Most capable for complex work${Z?NZ(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function O7(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return z4(S(Z))}function v7(Z){if(W()!=="firstParty")return"";let $=z5(V5(Z));return` ·${Z?` (${B5})`:""} ${$}`}function NZ(Z){if(W()!=="firstParty")return"";let $=z5(W5(Z));return` ·${Z?` (${B5})`:""} ${$}`}function Y5(){if(z0()||R5()||W()!=="firstParty")return!1;if(k()&&_()===null)return!1;return!0}function E7(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 $4(Z);return z4(Z)}function W4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(m2[Z])return m2[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(I0(),y0(_0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable5:return"Fable 5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function z4(Z){let $=W4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function _7(Z){let $=W4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function S(Z){let $=R2(Z);if(!$)return u0();let J=$.toLowerCase(),Q=r(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y)){let X=(q)=>Q&&!H2(q)?q+"[1m]":q;switch(Y){case"opusplan":return X(u0());case"sonnet":return X(u0());case"haiku":return X(q4());case"opus":return X(W0());case"best":return LZ();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return B().fable5;if(W()==="firstParty"&&UZ(Y)&&kZ())return W0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function I7(Z,$){if(r(Z)||!r($))return Z;if(G5(S(Z)))return Z+"[1m]";return Z}function UZ(Z){return bZ.includes(Z)}function kZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function y7(Z){if(Z===null){if(k())return`Default (${DZ()})`;return`Default (${V4()})`}let $=S(Z);return Z===$?$:`${Z} (${$})`}function T7(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=N(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function S7(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function M7(Z){let $=N(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var bZ;var L0=R(()=>{Q0();J0();i();X4();n();H5();g();KZ();X2();s1();H0();t();wZ();e1();x5();FZ();c2();bZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function w5(Z){return}async function A7(){}var x4=()=>{};function EZ(Z,$={}){if($.isPro??(vZ.test(Z)||j4.has(Z)))return!1;if(PZ.has(Z))return!0;if(j4.has(Z))return!1;let Q=Z.match(OZ);return Q?Number.parseFloat(Q[1])>5.4:!1}function f7(){return K2.filter((Z)=>EZ(Z.id,{isPro:Z.isPro}))}var K2,PZ,j4,OZ,vZ,B4,G4;var H4=R(()=>{K2=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],PZ=new Set(K2.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),j4=new Set(["gpt-5.5-pro"]),OZ=/^gpt-(\d+\.\d+)/,vZ=/-pro$/;B4=Object.fromEntries(K2.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),G4=Object.fromEntries(K2.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var N4={};n2(N4,{prefetchOpenAICompatibleModels:()=>fZ,getDiscoveredContextWindow:()=>_Z,discoverOpenAICompatibleModelOptions:()=>D4});function _Z(Z){return K4.get(Z)}function IZ(){return(D()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function L4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function yZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function TZ(Z){let $=D()?.apiKey?.trim();if(!$)return{};if(yZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(L4(Z))J["api-key"]=$;return J}function SZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&L4(Z)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function MZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function hZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function AZ(Z,$){let J=new Set;for(let Q of Z)try{let Y=await P.get(Q,{headers:$,timeout:F4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let x=q.name?.trim()||V,G=q.context_length??null;if(G&&G>0)K4.set(V,G);let H=G?` · ${hZ(G)}`:"";X.push({value:V,label:x,description:`${V}${H}`})}if(X.length>0)return X.sort((q,V)=>{let x=String(q.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=x.localeCompare(G);return H!==0?H:String(q.value).localeCompare(String(V.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function CZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:F4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function D4(){if(W()!=="openai")return[];let Z=IZ(),$=TZ(Z),J=await AZ(SZ(Z),$);if(J.length>0)return J;let Q=MZ(Z);if(Q)return CZ(Q,$);return[]}function fZ(){if(g0)return g0;return g0=(async()=>{if(!w4()?.startsWith("openai:"))return;try{let $=await D4();if($.length>0)R4($)}catch{}finally{g0=null}})(),g0}var F4=5000,K4,g0=null;var b4=R(()=>{q2();J0();a5();$0();t();X4();K4=new Map});function k4(Z,$,J){let Q=D()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=U4($,J);if(Y!==void 0)return Y;return U4(Z,J)}function U4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function P4(Z){try{let{getDiscoveredContextWindow:J}=(b4(),y0(N4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=k4(uZ,pZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(I0(),y0(_0));return J(Z)}catch{return}}function O4(Z){let $=k4(gZ,mZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(I0(),y0(_0));return J(Z)}catch{return}}var uZ,gZ,pZ,mZ;var v4=R(()=>{J0();H4();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,...B4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},gZ={"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,...G4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},pZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),mZ=(()=>{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 E4(){let Z=D()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function z0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function r(Z){if(z0())return!1;return/\[1m\]/i.test(Z)}function G5(Z){if(z0())return!1;let $=N(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function X9(Z,$){if(r(Z))return 1e6;if(E4()){let Q=P4(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."),cZ}let J=w5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>F5&&z0())return F5;return J.max_input_tokens}if(!z0()&&(N(Z).includes("fable-5")||N(Z).includes("sonnet-5")||N(Z).includes("opus-5")))return 1e6;if($?.includes(h0)&&G5(Z))return 1e6;if(lZ(Z))return 1e6;return F5}function lZ(Z){if(z0())return!1;if(r(Z))return!1;if(!N(Z).includes("sonnet-4-6"))return!1;return K().clientDataCache?.coral_reef_sonnet==="true"}function q9(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function V9(Z){let $,J;if(E4()){let X=O4(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=N(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=dZ,J=nZ;let Y=w5(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var F5=200000,cZ,J9=20000,dZ=32000,nZ=64000,Q9=8000,Y9=64000;var H5=R(()=>{$5();J0();i();g();L0();x4();v4();cZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var iZ,_4;var I4=R(()=>{t0();t();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"}],_4=y((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of iZ){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function tZ(Z){let $=[],J=[];for(let Q of Z)if(h4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function P9(Z){if(!Z||Z.length===0)return;if(k()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=tZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${h4.join(", ")}`);return $.length>0?$:void 0}function y4(Z){let $=_4(Z,"interleaved_thinking");if($!==void 0)return $;let J=N(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function sZ(Z){let $=N(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function aZ(Z){let $=N(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function rZ(Z){let $=N(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function O9(Z){let $=N(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 v9(){let Z=W();if(Z==="vertex"||Z==="bedrock")return _1;return E1}function T4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function E9(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function _9(Z,$){let J=[...A4(Z)];if($?.isAgenticQuery){if(!J.includes(x2))J.push(x2)}let Q=S4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function C4(){K5.cache?.clear?.(),A4.cache?.clear?.(),oZ.cache?.clear?.()}var h4,K5,A4,oZ;var f4=R(()=>{t0();A1();Q0();$5();M0();n();H5();g();L0();I4();t();H0();h4=[h0];K5=y((Z)=>{let $=[],J=N(Z).includes("haiku"),Q=W(),Y=T4();if(!J)$.push(x2);if(k())$.push(R0);if(r(Z))$.push(h0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&y4(Z))$.push(P1);if(Y&&y4(Z)&&!f()&&Y0().showThinkingSummaries!==!0)$.push(y1),$.push(T1);let X=aZ(Z);if(T4()&&X)$.push(O1);let q=M4("tengu_tool_pear"),V=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||C0("tengu_amber_json_tools",!1));if(Y&&rZ(Z)&&q)$.push(v1);if(Y&&V)$.push(S1);if(Q==="vertex"&&sZ(Z))$.push(e2);if(Q==="foundry")$.push(e2);if(Y)$.push(I1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((x)=>x.trim()).filter(Boolean));return $}),A4=y((Z)=>{let $=K5(Z);if(W()==="bedrock")return $.filter((J)=>!Z5.has(J));return $}),oZ=y((Z)=>{return K5(Z).filter((J)=>Z5.has(J))})});import{execFile as eZ}from"child_process";function u4(Z){return new Promise(($)=>{eZ("security",["find-generic-password","-a",D2(),"-w","-s",Z],{encoding:"utf-8",timeout:Z$},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function M9(){if(process.platform!=="darwin"||L2||u())return;let Z=u4(s(g4)),$=u4(s());L2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)p4(J.stdout);if(!Q.timedOut)L5={stdout:Q.stdout}})}async function h9(){if(L2)await L2}function m4(){return L5}function D5(){L5=null}var Z$=1e4,L5=null,L2=null;var c4=R(()=>{g();r2()});function N5(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((V,x,G)=>{V?.removeEventListener("abort",x),G()},Z,$,q,Q);function q(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)X.unref()})}var d4=()=>{};function f9(){return n4}function l4(){n4.clear()}var n4;var i4=R(()=>{n4=new Map});var d$={};n2(d$,{validateForceLoginOrg:()=>c$,saveOAuthTokensIfNeeded:()=>x8,saveApiKey:()=>A5,removeApiKey:()=>I$,refreshGcpCredentialsIfNeeded:()=>h5,refreshGcpAuth:()=>W8,refreshAwsAuth:()=>q8,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>O$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>v$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>R$,isUsing3PServices:()=>k2,isTeamSubscriber:()=>A$,isTeamPremiumSubscriber:()=>F2,isProSubscriber:()=>R5,isOverageProvisioningAllowed:()=>M$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>H8,isMaxSubscriber:()=>w2,isGcpAuthRefreshFromProjectSettings:()=>M5,isEnterpriseSubscriber:()=>C$,isCustomApiKeyApproved:()=>_$,isConsumerSubscriber:()=>p$,isClaudeAISubscriber:()=>k,isAwsCredentialExportFromProjectSettings:()=>T5,isAwsAuthRefreshFromProjectSettings:()=>I5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>S$,hasProfileScope:()=>V0,hasOpusAccess:()=>h$,hasAnthropicApiKeyAuth:()=>j$,handleOAuth401Error:()=>X5,getSubscriptionType:()=>_,getSubscriptionName:()=>B8,getRateLimitTier:()=>j8,getOtelHeadersFromHelper:()=>u$,getOauthAccountInfo:()=>U2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>S0,getApiKeyHelperElapsedMs:()=>B$,getApiKeyFromConfigOrMacOSKeychain:()=>O2,getApiKeyFromApiKeyHelperCached:()=>U5,getApiKeyFromApiKeyHelper:()=>X8,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>m$,clearOAuthTokenCache:()=>C5,clearGcpCredentialsCache:()=>P$,clearAwsCredentialsCache:()=>D$,clearApiKeyHelperCache:()=>H$,checkGcpCredentialsValid:()=>V8,checkAndRefreshOAuthTokenIfNeeded:()=>l0,calculateApiKeyHelperTTL:()=>Y8});import{exec as J8}from"child_process";import{mkdir as V$,stat as W$}from"fs/promises";import{join as z$}from"path";function b2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k2(),J=(M()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!b2()||X&&!b2())}function S0(){if(u()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!b2())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()&&!b2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(P0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function j$(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=D();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:U5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=r4()?void 0:$;if(j2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=a2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!k2()&&!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&&!k2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&K().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=a2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:U5(),source:"apiKeyHelper"}}let X=O2();if(X)return X;return{key:null,source:"none"}}function o(){if(u())return O("flagSettings")?.apiKeyHelper;return(M()||{}).apiKeyHelper}function Q8(){let Z=o();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function _5(){return(M()||{}).awsAuthRefresh}function I5(){let Z=_5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y5(){return(M()||{}).awsCredentialExport}function T5(){let Z=y5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Y8(){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 x$}function B$(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function X8(Z){if(!o())return null;let $=Y8();if(I){if(Date.now()-I.timestamp<$)return I.value;if(!c)c={promise:t4(Z,!1,k0),startedAt:null};return I.value}if(c)return c.promise;return c={promise:t4(Z,!0,k0),startedAt:Date.now()},c.promise}async function t4(Z,$,J){try{let Q=await G$(Z);if(J!==k0)return Q;if(Q!==null)I={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==k0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(C.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&I&&I.value!==" ")return I={...I,timestamp:Date.now()},I.value;return I={value:" ",timestamp:Date.now()}," "}finally{if(J===k0)c=null}}async function G$(Z){let $=o();if(!$)return null;if(Q8()){if(!d()&&!Z){let X=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",X),j("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await F0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function U5(){return I?.value??null}function H$(){k0++,I=null,c=null}function R$(Z){if(Q8()&&!d())return;X8(Z)}async function F$(){let Z=_5();if(!Z)return!1;if(I5()){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),j("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await o2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return q8(Z)}}function q8(Z){z("Running AWS auth refresh command");let $=h.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=J8(Z,{timeout:K$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?C.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):C.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function L$(){let Z=y5();if(!Z)return null;if(T5()){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),j("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await o2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await F0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=O5($.stdout.trim());if(!D1(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=C.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 D$(){j0.cache.clear()}function S5(){return(M()||{}).gcpAuthRefresh}function M5(){let Z=S5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function V8(){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=N5(N$).then(()=>{throw new R8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function U$(){let Z=S5();if(!Z)return!1;if(M5()){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),j("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await V8())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return W8(Z)}function W8(Z){z("Running GCP auth refresh command");let $=h.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=J8(Z,{timeout:k$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?C.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):C.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function P$(){h5.cache.clear()}function O$(){if(!S5())return;if(M5()){if(!d()&&!f())return}h5()}function v$(){let Z=_5(),$=y5();if(!Z&&!$)return;if(I5()||T5()){if(!d()&&!f())return}j0(),B()}function E$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function A5(Z){if(!E$(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(),Y=D2(),X=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
- `;await F0("security",["-i"],{input:q,reject:!1}),j("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){b(Q),j("tengu_api_key_keychain_error",{error:p(Q)}),j("tengu_api_key_saved_to_config",{})}else j("tengu_api_key_saved_to_config",{});let J=z2(Z);A((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),O2.cache.clear?.(),D5()}function _$(Z){let $=K(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function I$(){await z8(),A((Z)=>({...Z,primaryApiKey:void 0})),O2.cache.clear?.(),D5()}async function z8(){try{await K1()}catch(Z){b(Z)}}function x8(Z){if(!P0(Z.scopes))return j("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return j("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=P2(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)j("tengu_oauth_tokens_saved",{storageBackend:J});else j("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),C4(),l4(),X}catch(Q){return b(Q),j("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function C5(){w.cache?.clear?.(),U0()}async function y$(){try{let{mtimeMs:Z}=await W$(z$(P5(),".credentials.json"));if(Z!==s4)s4=Z,C5()}catch{w.cache?.clear?.()}}function X5(Z){let $=b5.get(Z);if($)return $;let J=T$(Z).finally(()=>{b5.delete(Z)});return b5.set(Z,J),J}async function T$(Z){C5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return j("tengu_oauth_401_recovered_from_keychain",{}),!0;return l0(0,!0)}async function c0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await P2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return b(Z),null}}function l0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=k5(Z,$).finally(()=>{p0=null}),p0}return k5(Z,$)}async function k5(Z,$){await y$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!P0(Q.scopes))return!1;w.cache?.clear?.(),U0();let Y=await c0();if(!Y?.refreshToken||!m0(Y.expiresAt))return!1;let X=P5();await V$(X,{recursive:!0});let q;try{j("tengu_oauth_token_refresh_lock_acquiring",{}),q=await e4(X),j("tengu_oauth_token_refresh_lock_acquired",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return j("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await N5(1000+Math.random()*1000),k5(Z+1,$);return j("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return b(V),j("tengu_oauth_token_refresh_lock_error",{error:p(V)}),!1}try{w.cache?.clear?.(),U0();let V=await c0();if(!V?.refreshToken||!m0(V.expiresAt))return j("tengu_oauth_token_refresh_race_resolved",{}),!1;j("tengu_oauth_token_refresh_starting",{});let x=await Z8(V.refreshToken,{scopes:P0(V.scopes)?void 0:V.scopes});return x8(x),w.cache?.clear?.(),U0(),!0}catch(V){b(V),w.cache?.clear?.(),U0();let x=await c0();if(x&&!m0(x.expiresAt))return j("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{j("tengu_oauth_token_refresh_lock_releasing",{}),await q(),j("tengu_oauth_token_refresh_lock_released",{})}}function k(){if(!O0())return!1;return P0(w()?.scopes)}function V0(){return w()?.scopes?.includes(o4)??!1}function S$(){{let Z=D()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(k())return!1;return!0}function U2(){return O0()?K().oauthAccount:void 0}function M$(){let $=U2()?.billingType;if(!k()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function h$(){let Z=_();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function _(){if(q1())return X1();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function w2(){return _()==="max"}function A$(){return _()==="team"}function F2(){return _()==="team"&&j8()==="default_claude_max_5x"}function C$(){return _()==="enterprise"}function R5(){return _()==="pro"}function j8(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function B8(){switch(_()){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 k2(){let Z=D()?.transport;if(!Z)return!1;return Z!=="anthropic"}function G8(){return(M()||{}).otelHeadersHelper}function H8(){let Z=G8();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function u$(){let Z=G8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||f$.toString());if(N2&&Date.now()-a4<$)return N2;if(H8()){if(!d())return{}}try{let J=v5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=O5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return N2=Q,a4=Date.now(),N2}catch(J){throw b(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function g$(Z){return Z==="max"||Z==="pro"}function p$(){let Z=_();return k()&&Z!==null&&g$(Z)}function m$(){if(W()!=="firstParty")return;let{source:$}=S0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(k())J.subscription=B8();else J.tokenSource=$;let{key:Q,source:Y}=n0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let q=U2()?.organizationName;if(q)J.organization=q}let X=U2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function c$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=O("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await l0();let $=w();if(!$)return{valid:!0};let{source:J}=S0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await w0($.accessToken);if(!Y)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
- This machine requires organization ${Z} but the profile could not be fetched.
4
- This may be a network error, or the token may lack the user:profile scope required for
5
- verification (tokens from 'claude setup-token' do not include this scope).
6
- Try again, or obtain a full-scope token via 'claude auth login'.`};let X=Y.organization.uuid;if(X===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
- different organization than required by this machine's managed settings.
8
-
9
- Required organization: ${Z}
10
- Token organization: ${X}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var x$=300000,I=null,c=null,k0=0,w$=3600000,K$=180000,j0,N$=5000,b$=3600000,k$=180000,h5,O2,w,s4=0,b5,p0=null,N2=null,a4=0,f$=1740000,R8;var n=R(()=>{J$();F1();t0();M0();B2();X2();t();Q0();J0();V1();$8();t2();w1();L1();b1();k1();f4();i();$0();g();H1();Q$();X$();s0();Y$();q$();c4();r2();H0();d4();$$();i4();j0=E5(async()=>{let Z=await F$(),$=await L$();if(Z||$)await N1();return $},w$);h5=E5(async()=>{return await U$()},b$);O2=y(()=>{if(u())return null;if(process.platform==="darwin"){let $=m4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=s();try{let Q=v5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){b(Q)}}}let Z=K();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=y(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=P2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return b($),null}});b5=new Map;R8=class R8 extends Error{}});function P0(Z){return Boolean(Z?.includes(f5))}function n$(Z){return Z?.split(" ").filter(Boolean)??[]}function EQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:x}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let x0=X?[f5]:K8;if(H.searchParams.append("scope",x0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),q)H.searchParams.append("orgUUID",q);if(V)H.searchParams.append("login_hint",V);if(x)H.searchParams.append("login_method",x);return H.toString()}async function _Q(Z,$,J,Q,Y=!1,X){let q={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)q.expires_in=X;let V=await P.post(U().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return j("tengu_oauth_token_exchange_success",{}),V.data}async function Z8(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:F8).join(" ")};try{let Q=await P.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:q=Z,expires_in:V}=Y,x=Date.now()+V*1000,G=n$(Y.scope);j("tengu_oauth_token_refresh_success",{});let H=K(),x0=w(),v=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&x0?.subscriptionType!=null&&x0?.rateLimitTier!=null?null:await l$(X);if(v&&H.oauthAccount){let e={};if(v.displayName!==void 0)e.displayName=v.displayName;if(typeof v.hasExtraUsageEnabled==="boolean")e.hasExtraUsageEnabled=v.hasExtraUsageEnabled;if(v.billingType!==null)e.billingType=v.billingType;if(v.accountCreatedAt!==void 0)e.accountCreatedAt=v.accountCreatedAt;if(v.subscriptionCreatedAt!==void 0)e.subscriptionCreatedAt=v.subscriptionCreatedAt;if(Object.keys(e).length>0)A((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...e}:i0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:x,scopes:G,subscriptionType:v?.subscriptionType??x0?.subscriptionType??null,rateLimitTier:v?.rateLimitTier??x0?.rateLimitTier??null,profile:v?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw j("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function IQ(Z){let $=await P.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!K().oauthAccount)throw Error("OAuth account information not found in config");A((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),j("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function yQ(Z){try{let $=await P.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await A5(J),j("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw j("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 l$(Z){let $=await w0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return j("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function TQ(){let $=K().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!V0())return null;let Y=(await w0(J))?.organization?.uuid;if(!Y)return null;return Y}async function SQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!K().oauthAccount)w8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await l0();let Y=K();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!k()||!V0())return!1;let X=w();if(X?.accessToken){let q=await w0(X.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return w8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function w8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let x={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)x.displayName=Q;A((G)=>{if(G.oauthAccount?.accountUuid===x.accountUuid&&G.oauthAccount?.emailAddress===x.emailAddress&&G.oauthAccount?.organizationUuid===x.organizationUuid&&G.oauthAccount?.displayName===x.displayName&&G.oauthAccount?.hasExtraUsageEnabled===x.hasExtraUsageEnabled&&G.oauthAccount?.billingType===x.billingType&&G.oauthAccount?.accountCreatedAt===x.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===x.subscriptionCreatedAt)return G;return{...G,oauthAccount:x}})}var $8=R(()=>{q2();B2();M0();n();i();$0();t2()});
16
- export{M9 as R4,h9 as S4,c4 as T4,u5 as U4,g5 as V4,ZJ as W4,$J as X4,D8 as Y4,U8 as Z4,JJ as _4,d5 as $4,a0 as a5,v0 as b5,B0 as c5,p2 as d5,i2 as e5,I8 as f5,I0 as g5,W as h5,HJ as i5,A8 as j5,RJ as k5,wJ as l5,FJ as m5,t as n5,B as o5,OJ as p5,X2 as q5,yJ as r5,TJ as s5,Y1 as t5,AJ as u5,CJ as v5,V1 as w5,dJ as x5,w0 as y5,t2 as z5,P0 as A5,n$ as B5,EQ as C5,_Q as D5,Z8 as E5,IQ as F5,yQ as G5,m0 as H5,l$ as I5,TQ as J5,SQ as K5,w8 as L5,$8 as M5,oJ as N5,n8 as O5,W1 as P5,w1 as Q5,z2 as R5,L1 as S5,Y3 as T5,b1 as U5,h as V5,k1 as W5,h0 as X5,O1 as Y5,v1 as Z5,W3 as _5,z3 as $5,I1 as a6,x3 as b6,j3 as c6,y1 as d6,B3 as e6,G3 as f6,H3 as g6,$5 as h6,T as i6,u1 as j6,s8 as k6,y3 as l6,T3 as m6,S3 as n6,g1 as o6,M3 as p6,h3 as q6,a8 as r6,A3 as s6,C3 as t6,f3 as u6,u3 as v6,g3 as w6,e8 as x6,p3 as y6,m3 as z6,c3 as A6,d3 as B6,d1 as C6,D0 as D6,JZ as E6,QZ as F6,YZ as G6,V5 as H6,jZ as I6,r3 as J6,z5 as K6,s1 as L6,BZ as M6,x5 as N6,o1 as O6,e1 as P6,b7 as Q6,U7 as R6,H2 as S6,j5 as T6,k7 as U6,LZ as V6,W0 as W6,u0 as X6,q4 as Y6,P7 as Z6,f0 as _6,V4 as $6,L as a7,N as b7,DZ as c7,O7 as d7,v7 as e7,NZ as f7,Y5 as g7,E7 as h7,W4 as i7,z4 as j7,_7 as k7,S as l7,I7 as m7,kZ as n7,y7 as o7,T7 as p7,S7 as q7,M7 as r7,L0 as s7,A7 as t7,x4 as u7,f7 as v7,H4 as w7,D4 as x7,fZ as y7,b4 as z7,J9 as A7,Q9 as B7,Y9 as C7,z0 as D7,r as E7,X9 as F7,lZ as G7,q9 as H7,V9 as I7,H5 as J7,_4 as K7,I4 as L7,P9 as M7,rZ as N7,O9 as O7,v9 as P7,T4 as Q7,E9 as R7,A4 as S7,oZ as T7,_9 as U7,C4 as V7,f4 as W7,N5 as X7,d4 as Y7,f9 as Z7,l4 as _7,i4 as $7,O0 as a8,S0 as b8,X0 as c8,j$ as d8,n0 as e8,o as f8,I5 as g8,T5 as h8,Y8 as i8,B$ as j8,X8 as k8,U5 as l8,H$ as m8,R$ as n8,q8 as o8,j0 as p8,D$ as q8,M5 as r8,V8 as s8,W8 as t8,h5 as u8,P$ as v8,O$ as w8,v$ as x8,O2 as y8,A5 as z8,_$ as A8,I$ as B8,x8 as C8,w as D8,C5 as E8,X5 as F8,c0 as G8,l0 as H8,k as I8,V0 as J8,S$ as K8,U2 as L8,M$ as M8,h$ as N8,_ as O8,w2 as P8,A$ as Q8,F2 as R8,C$ as S8,R5 as T8,j8 as U8,B8 as V8,k2 as W8,H8 as X8,u$ as Y8,p$ as Z8,m$ as _8,c$ as $8,d$ as a9,n as b9};
@@ -1,2 +0,0 @@
1
- import{Jsa as e}from"./cli-1.1.6-xc6fegry.mjs";function o(){return!0}var t=()=>{};
2
- export{o as oU,t as pU};
@@ -1,58 +0,0 @@
1
- import{Br as U,Er as h,OR as L,fS as a,hD as A,iD as p,kj as $,nj as m,pK as F,sB as k,tB as I}from"./cli-1.1.6-ckg7fah6.mjs";import{U4 as O,V4 as f}from"./cli-1.1.6-w4nw5yvg.mjs";import{mka as S,qka as E}from"./cli-1.1.6-rvy9sw8e.mjs";import{dla as b,fla as T}from"./cli-1.1.6-cam8a83k.mjs";import{ila as y,vla as C}from"./cli-1.1.6-d1aef3g5.mjs";import{Jsa as N}from"./cli-1.1.6-xc6fegry.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 ai,Zw as bi,s as ci};
@@ -1,2 +0,0 @@
1
- import{Nd as x,Od as o}from"./cli-1.1.6-myrs2n90.mjs";import{BL as R,Cz as $,Dz as d,EL as i,HM as W,Hz as y,Jz as u,KM as t,av as Z,gv as v,mp as Y,oA as K,oD as M,op as g,pL as O,qA as m,qL as a,uD as l}from"./cli-1.1.6-ckg7fah6.mjs";import{Rga as X,Zga as h}from"./cli-1.1.6-qem2tnkw.mjs";import{Aka as I,Dka as c}from"./cli-1.1.6-rvy9sw8e.mjs";import{_ka as V,fla as f}from"./cli-1.1.6-cam8a83k.mjs";import{_qa as _,fna as U}from"./cli-1.1.6-dsx3y9mh.mjs";import{Jsa as C}from"./cli-1.1.6-xc6fegry.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),K();let G=await W(),[E,F]=await Promise.all([O(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Y(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await $(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),y();let N=!1;try{await M()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();u();o();v();c();f();h();i();a();l();d();g();m();t()});
2
- export{Lj as Jd,p as Kd};
@@ -1,2 +0,0 @@
1
- import{Ni as W,Oi as B}from"./cli-1.1.6-38h340te.mjs";import{p4 as U,r4 as J}from"./cli-1.1.6-a5rqr2qe.mjs";import{P4 as V,Q4 as v}from"./cli-1.1.6-bd0v70jd.mjs";import{D8 as Q,I8 as R,b9 as $,y5 as N,z5 as _}from"./cli-1.1.6-w4nw5yvg.mjs";import{Rga as K,Zga as Z}from"./cli-1.1.6-qem2tnkw.mjs";import{Jsa as Y}from"./cli-1.1.6-xc6fegry.mjs";async function w(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await V("https://claude.ai/upgrade/max"),U(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var E=Y(()=>{_();$();v();Z();B();J()});
2
- export{w as hc,E as ic};
@@ -1,2 +0,0 @@
1
- import{Jsa as y}from"./cli-1.1.6-xc6fegry.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function x(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||A.test(B))return!0;return!1}function N(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(x(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,A,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,A=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function S(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function w(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var O=500,V,J;var k=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=S(O)});
2
- export{N as _2,P as $2,M as a3,C as b3,I as c3,L as d3,w as e3,T as f3,R as g3,b as h3,g as i3,l as j3,k as k3};
@@ -1,2 +0,0 @@
1
- import{$s as X,Ys as I}from"./cli-1.1.6-ckg7fah6.mjs";import{lla as H,vla as W}from"./cli-1.1.6-d1aef3g5.mjs";import{Jsa as V}from"./cli-1.1.6-xc6fegry.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
2
- export{q as Uc,F as Vc,K as Wc,Q as Xc,R as Yc,_ as Zc,j as _c,Y as $c};
@@ -1,2 +0,0 @@
1
- import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
2
- export{z as Fsa,A as Gsa,B as Hsa,C as Isa,D as Jsa,F as Ksa,G as Lsa,H as Msa};
@@ -1,2 +0,0 @@
1
- import{EZ as f,G1 as X,I1 as k,s1 as W}from"./cli-1.1.6-4cqcrvjd.mjs";import{o4 as V,p4 as J,r4 as K}from"./cli-1.1.6-a5rqr2qe.mjs";import{s4 as P}from"./cli-1.1.6-5wjyk23t.mjs";import{aha as U,bha as O}from"./cli-1.1.6-eyrk5vjw.mjs";import{Fsa as Q,Jsa as L}from"./cli-1.1.6-xc6fegry.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
2
- export{g as ne,N as oe,j as pe};
@@ -1,2 +0,0 @@
1
- import{Hc as l,Ic as m,Lc as u,Mc as y}from"./cli-1.1.6-hsg23shn.mjs";import{AG as b,yG as p}from"./cli-1.1.6-ckg7fah6.mjs";import{I1 as C,b1 as s,d1 as e}from"./cli-1.1.6-4cqcrvjd.mjs";import{p4 as i,q4 as r,r4 as g}from"./cli-1.1.6-a5rqr2qe.mjs";import{s4 as M}from"./cli-1.1.6-5wjyk23t.mjs";import{Fsa as h,Jsa as f}from"./cli-1.1.6-xc6fegry.mjs";function T({enabled:c,onDismiss:a}){let[n,t]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",o=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:o}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),t({kind:"hidden"}),a?.("skipped");return}t({kind:"running"}),(async()=>{let o=await l();t({kind:o.errors.length===0?"success":"error",report:o}),a?.("migrated")})()},onCancel:()=>{t({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
2
- export{T as Fc,w as Gc};
@@ -1,2 +0,0 @@
1
- import{Aka as Q,Dka as $}from"./cli-1.1.6-rvy9sw8e.mjs";import{ala as K,fla as Z}from"./cli-1.1.6-cam8a83k.mjs";import{ila as J,vla as Y}from"./cli-1.1.6-d1aef3g5.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
- export{T as ha,w as ia,y as ja};
@@ -1,2 +0,0 @@
1
- import{L as D}from"./cli-1.1.6-y9xnpn7x.mjs";import{V as x}from"./cli-1.1.6-5g7e8tag.mjs";import{eb as A}from"./cli-1.1.6-01m0y5pz.mjs";import{fb as L}from"./cli-1.1.6-5qrpf10a.mjs";import{Qo as k,Ro as U,Uo as F,Vo as p,mU as b,nU as u}from"./cli-1.1.6-ckg7fah6.mjs";import{$U as O,cV as c}from"./cli-1.1.6-ehy04hr0.mjs";import{b9 as m,h5 as Y,n5 as I,t7 as w,u7 as M,w8 as E,x8 as G}from"./cli-1.1.6-w4nw5yvg.mjs";import{Cga as $,Fga as z,rea as X,sea as B}from"./cli-1.1.6-qem2tnkw.mjs";import{Jia as _,Lia as y}from"./cli-1.1.6-a1n79s5x.mjs";import{Aka as K,Dka as T}from"./cli-1.1.6-rvy9sw8e.mjs";import{_ka as V,fla as S}from"./cli-1.1.6-cam8a83k.mjs";import{lla as J,nla as N,vla as v}from"./cli-1.1.6-d1aef3g5.mjs";import{Ura as W,ksa as j}from"./cli-1.1.6-7x719hyg.mjs";v();c();u();z();m();p();y();j();T();S();I();B();var C=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let R of P.server.remotes??[]){let Q=h(R.url);if(Q)H.add(Q)}C=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}M();U();function Xq(){if(J(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||N())return;O(),b(),x(),A();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))G();if(q==="vertex"&&!J(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))E();if(F(_(),AbortSignal.timeout(3000),[]),D(),Z(),w(),k.initialize(),!N())L.initialize()}
2
- export{Xq as K};
@@ -1,2 +0,0 @@
1
- import{AG as Fq,MS as a,OS as Uq,Wz as c,Xn as S,Yn as Zq,Zn as V,Zz as T,_n as $q,_z as _q,bA as r,bo as p,cA as Vq,co as zq,jy as u,ky as g,my as Wq,yG as h}from"./cli-1.1.6-ckg7fah6.mjs";import{AY as j,BY as Qq,CY as m,EY as Xq,HY as d,IY as Yq,oY as w,pY as Nq}from"./cli-1.1.6-fjb1m1sm.mjs";import{I1 as Lq,NZ as v,OZ as H,PZ as y,b1 as J,d1 as N}from"./cli-1.1.6-4cqcrvjd.mjs";import{o4 as _,p4 as q,q4 as G,r4 as B}from"./cli-1.1.6-a5rqr2qe.mjs";import{s4 as Jq}from"./cli-1.1.6-5wjyk23t.mjs";import{Uda as b,fea as Gq}from"./cli-1.1.6-qem2tnkw.mjs";import{Fsa as e,Jsa as qq}from"./cli-1.1.6-xc6fegry.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
2
- export{mq as oh,Aq as ph};
@@ -1,2 +0,0 @@
1
- import{AG as j,fo as y,go as p,yG as O}from"./cli-1.1.6-ckg7fah6.mjs";import{EZ as S,I1 as v,b1 as F,d1 as I,h1 as R}from"./cli-1.1.6-4cqcrvjd.mjs";import{p4 as Z,q4 as N,r4 as U}from"./cli-1.1.6-a5rqr2qe.mjs";import{s4 as d}from"./cli-1.1.6-5wjyk23t.mjs";import{Uda as M,fea as E}from"./cli-1.1.6-qem2tnkw.mjs";import{Aja as b,xja as H}from"./cli-1.1.6-0a0rct1w.mjs";import{Fsa as k}from"./cli-1.1.6-xc6fegry.mjs";b();v();E();j();p();U();var T=k(S(),1),h=k(d(),1),x="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function l(A){let f=T.c(18),{onAccept:J,onDecline:q,declineExits:C}=A,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];h.default.useEffect(_,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(m){f:switch(m){case"accept":{H("tengu_auto_mode_opt_in_dialog_accept",{}),M("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("tengu_auto_mode_opt_in_dialog_accept_default",{}),M("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("tengu_auto_mode_opt_in_dialog_decline",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let B=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=N(F,{flexDirection:"column",gap:1,children:[Z(I,{children:x}),Z(R,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let L=C?"No, exit":"No, go back",w;if(f[7]!==L)w=[...W,X,{label:L,value:"decline"}],f[7]=L,f[8]=w;else w=f[8];let z;if(f[9]!==B)z=(P)=>B(P),f[9]=B,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(O,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=N(y,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function _(){H("tengu_auto_mode_opt_in_dialog_shown",{})}
2
- export{x as ab,l as bb};
@@ -1,2 +0,0 @@
1
- import{Jsa as K}from"./cli-1.1.6-xc6fegry.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
2
- export{M as Eka,N as Fka,Q as Gka,R as Hka,S as Ika,L as Jka};
@@ -1,2 +0,0 @@
1
- import{Aja as z,xja as X}from"./cli-1.1.6-0a0rct1w.mjs";import{Aka as $,Dka as P,dka as Z,ika as O}from"./cli-1.1.6-rvy9sw8e.mjs";import{_ka as Y,fla as H}from"./cli-1.1.6-cam8a83k.mjs";import{Jsa as x}from"./cli-1.1.6-xc6fegry.mjs";function h(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function R(q){let K=typeof q==="string"?q:Z(q),J=h(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function U(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function j(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
2
- export{N as zf,R as Af,U as Bf,j as Cf,D as Df,L as Ef,m as Ff};
@@ -1,2 +0,0 @@
1
- import{iU as z,qs as _}from"./cli-1.1.6-ckg7fah6.mjs";import{B4 as f}from"./cli-1.1.6-jjwhpfnp.mjs";import{Y7 as k,b9 as A,n5 as K}from"./cli-1.1.6-w4nw5yvg.mjs";import{S_ as L,T$ as T,fea as v,rfa as x,uba as W}from"./cli-1.1.6-qem2tnkw.mjs";import{jia as H}from"./cli-1.1.6-81cgzqdp.mjs";import{Cia as b,Eia as Q,Fia as q,Gia as V}from"./cli-1.1.6-7t3befhs.mjs";import{wja as w}from"./cli-1.1.6-qwafs3e9.mjs";import{Aja as O}from"./cli-1.1.6-0a0rct1w.mjs";import{fla as U}from"./cli-1.1.6-cam8a83k.mjs";import{Wma as X,_qa as B}from"./cli-1.1.6-dsx3y9mh.mjs";import{Jsa as G}from"./cli-1.1.6-xc6fegry.mjs";var Z,$;var J=G(()=>{Q();V();Z=q(()=>b.object({entries:b.record(b.string(),b.string())})),$=q(()=>b.object({userId:b.string(),version:b.number(),lastModified:b.string(),checksum:b.string(),content:Z()}))});var Y=G(()=>{B();w();A();z();x();L();U();T();K();W();v();X();k();f();H();O();_();J()});
2
- export{Y as Id};