@claudiolabs/claudin 1.1.11 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (927) hide show
  1. package/README.md +3 -24
  2. package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +1 -0
  3. package/dist/chunks/App-1.1.13-d46t1gxs.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +1 -0
  31. package/dist/chunks/agents-1.1.13-86a1wgye.mjs +110 -0
  32. package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +3 -0
  33. package/dist/chunks/api-1.1.13-5ffq20rc.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +1 -0
  36. package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +1 -0
  37. package/dist/chunks/auth-1.1.13-xv576tj3.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +1 -0
  41. package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +1 -0
  47. package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +4 -0
  51. package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +1 -0
  54. package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +1 -0
  56. package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +2 -0
  57. package/dist/chunks/cli-1.1.13-0dha376x.mjs +3 -0
  58. package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +7 -0
  59. package/dist/chunks/cli-1.1.13-0qy978b3.mjs +3 -0
  60. package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +2 -0
  61. package/dist/chunks/cli-1.1.13-0y4933cs.mjs +2 -0
  62. package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +2 -0
  63. package/dist/chunks/cli-1.1.13-15nbdw38.mjs +2 -0
  64. package/dist/chunks/cli-1.1.13-17xy86gy.mjs +24 -0
  65. package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +6 -0
  66. package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +2 -0
  67. package/dist/chunks/cli-1.1.13-1jf910f2.mjs +2 -0
  68. package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +2 -0
  69. package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +2 -0
  70. package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +2 -0
  71. package/dist/chunks/cli-1.1.13-24284zna.mjs +2 -0
  72. package/dist/chunks/cli-1.1.13-284pjmzy.mjs +4 -0
  73. package/dist/chunks/cli-1.1.13-2964cc2e.mjs +2 -0
  74. package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +2 -0
  75. package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +2 -0
  76. package/dist/chunks/cli-1.1.13-2m39r998.mjs +2 -0
  77. package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +202 -0
  78. package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +2 -0
  79. package/dist/chunks/cli-1.1.13-2txesqy8.mjs +2 -0
  80. package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +2 -0
  81. package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +2 -0
  82. package/dist/chunks/cli-1.1.13-46jvx14j.mjs +2 -0
  83. package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +2 -0
  84. package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +42 -0
  85. package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +2 -0
  86. package/dist/chunks/cli-1.1.13-53ght581.mjs +3 -0
  87. package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +2 -0
  88. package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +6 -0
  89. package/dist/chunks/cli-1.1.13-61mygvzg.mjs +2 -0
  90. package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +2 -0
  91. package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +12 -0
  92. package/dist/chunks/cli-1.1.13-669vhsjj.mjs +2 -0
  93. package/dist/chunks/cli-1.1.13-6727vw4f.mjs +2 -0
  94. package/dist/chunks/cli-1.1.13-6b845car.mjs +2 -0
  95. package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +4 -0
  96. package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +17 -0
  97. package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +2 -0
  98. package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +2 -0
  99. package/dist/chunks/cli-1.1.13-6k71beqh.mjs +2 -0
  100. package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +2 -0
  101. package/dist/chunks/cli-1.1.13-74rczf0f.mjs +2 -0
  102. package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +2 -0
  103. package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +2 -0
  104. package/dist/chunks/cli-1.1.13-7s34jqge.mjs +133 -0
  105. package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +2 -0
  106. package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +2 -0
  107. package/dist/chunks/cli-1.1.13-82y6dszx.mjs +2 -0
  108. package/dist/chunks/cli-1.1.13-86kjp502.mjs +2 -0
  109. package/dist/chunks/cli-1.1.13-91q67gqp.mjs +2 -0
  110. package/dist/chunks/cli-1.1.13-9609q0ww.mjs +2 -0
  111. package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +15 -0
  112. package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +2 -0
  113. package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +25 -0
  114. package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +2 -0
  115. package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +5 -0
  116. package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +2 -0
  117. package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +2 -0
  118. package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +25 -0
  119. package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +2 -0
  120. package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +4 -0
  121. package/dist/chunks/cli-1.1.13-aac9pss7.mjs +59 -0
  122. package/dist/chunks/cli-1.1.13-aeq919w1.mjs +2 -0
  123. package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +2 -0
  124. package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +6 -0
  125. package/dist/chunks/cli-1.1.13-b47k2p92.mjs +21 -0
  126. package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +2 -0
  127. package/dist/chunks/cli-1.1.13-baxww5k9.mjs +3 -0
  128. package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +2 -0
  129. package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +2 -0
  130. package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +2 -0
  131. package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +2 -0
  132. package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +2 -0
  133. package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +2 -0
  134. package/dist/chunks/cli-1.1.13-cn9g3704.mjs +12 -0
  135. package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +2 -0
  136. package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +2 -0
  137. package/dist/chunks/cli-1.1.13-d54qh52e.mjs +3 -0
  138. package/dist/chunks/cli-1.1.13-d8d30wps.mjs +3 -0
  139. package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +3 -0
  140. package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +2 -0
  141. package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +2 -0
  142. package/dist/chunks/cli-1.1.13-e4hsds4b.mjs +2 -0
  143. package/dist/chunks/cli-1.1.13-e4k7980n.mjs +2 -0
  144. package/dist/chunks/cli-1.1.13-e68npf24.mjs +2 -0
  145. package/dist/chunks/cli-1.1.13-ehaqachs.mjs +2 -0
  146. package/dist/chunks/cli-1.1.13-epjmphrz.mjs +133 -0
  147. package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +24 -0
  148. package/dist/chunks/cli-1.1.13-ewxej7em.mjs +2 -0
  149. package/dist/chunks/cli-1.1.13-ey931psa.mjs +2 -0
  150. package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +2 -0
  151. package/dist/chunks/cli-1.1.13-far5gqfj.mjs +2 -0
  152. package/dist/chunks/cli-1.1.13-fccy9c48.mjs +2 -0
  153. package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +2 -0
  154. package/dist/chunks/cli-1.1.13-fkcaczca.mjs +2 -0
  155. package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +2 -0
  156. package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +3 -0
  157. package/dist/chunks/cli-1.1.13-g8k8na90.mjs +2 -0
  158. package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +8 -0
  159. package/dist/chunks/cli-1.1.13-gechs2yp.mjs +4 -0
  160. package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +18 -0
  161. package/dist/chunks/cli-1.1.13-gh95gh19.mjs +2 -0
  162. package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +2 -0
  163. package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +39 -0
  164. package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +16 -0
  165. package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +2 -0
  166. package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +2 -0
  167. package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +2 -0
  168. package/dist/chunks/cli-1.1.13-hb5bb8jk.mjs +3 -0
  169. package/dist/chunks/cli-1.1.13-hg8x8693.mjs +6 -0
  170. package/dist/chunks/cli-1.1.13-hzneg4va.mjs +2 -0
  171. package/dist/chunks/cli-1.1.13-j02dcs05.mjs +2 -0
  172. package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +2 -0
  173. package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +15 -0
  174. package/dist/chunks/cli-1.1.13-jdcqc6bd.mjs +2 -0
  175. package/dist/chunks/cli-1.1.13-je6371k7.mjs +2 -0
  176. package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +2 -0
  177. package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +2 -0
  178. package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +34 -0
  179. package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +4 -0
  180. package/dist/chunks/cli-1.1.13-kct81ph3.mjs +2 -0
  181. package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +15 -0
  182. package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +2 -0
  183. package/dist/chunks/cli-1.1.13-kq8spsav.mjs +2 -0
  184. package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +2 -0
  185. package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +3 -0
  186. package/dist/chunks/cli-1.1.13-m5grg33r.mjs +4 -0
  187. package/dist/chunks/cli-1.1.13-mct1fasm.mjs +2 -0
  188. package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +17 -0
  189. package/dist/chunks/cli-1.1.13-mzq23677.mjs +2 -0
  190. package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +2 -0
  191. package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +2 -0
  192. package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +3 -0
  193. package/dist/chunks/cli-1.1.13-nr09192d.mjs +2 -0
  194. package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +2 -0
  195. package/dist/chunks/cli-1.1.13-pam922jf.mjs +2 -0
  196. package/dist/chunks/cli-1.1.13-pedv9sma.mjs +9 -0
  197. package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +2 -0
  198. package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +2 -0
  199. package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +2 -0
  200. package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +50 -0
  201. package/dist/chunks/cli-1.1.13-q1hx591h.mjs +2 -0
  202. package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +2 -0
  203. package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +2 -0
  204. package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +2 -0
  205. package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +9 -0
  206. package/dist/chunks/cli-1.1.13-qr4adses.mjs +2 -0
  207. package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +2 -0
  208. package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +2 -0
  209. package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +3 -0
  210. package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +2 -0
  211. package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +2 -0
  212. package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +2 -0
  213. package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +2 -0
  214. package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +1 -0
  215. package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +24 -0
  216. package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +3 -0
  217. package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +2 -0
  218. package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +2 -0
  219. package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +2 -0
  220. package/dist/chunks/cli-1.1.13-segzta4x.mjs +2 -0
  221. package/dist/chunks/cli-1.1.13-shz97pa0.mjs +2 -0
  222. package/dist/chunks/cli-1.1.13-smefk747.mjs +2 -0
  223. package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +2 -0
  224. package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +2 -0
  225. package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +3 -0
  226. package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +2 -0
  227. package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +4 -0
  228. package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +2 -0
  229. package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +2 -0
  230. package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +24 -0
  231. package/dist/chunks/cli-1.1.13-v06xvs9s.mjs +2 -0
  232. package/dist/chunks/cli-1.1.13-v2synpdg.mjs +2 -0
  233. package/dist/chunks/cli-1.1.13-v32emtk0.mjs +26 -0
  234. package/dist/chunks/cli-1.1.13-vm8xs878.mjs +3 -0
  235. package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +4 -0
  236. package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +45 -0
  237. package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +66 -0
  238. package/dist/chunks/cli-1.1.13-wh5smpta.mjs +2 -0
  239. package/dist/chunks/cli-1.1.13-wje228e3.mjs +2 -0
  240. package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +2 -0
  241. package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +2 -0
  242. package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +58 -0
  243. package/dist/chunks/cli-1.1.13-x663d461.mjs +2 -0
  244. package/dist/chunks/cli-1.1.13-x79qava2.mjs +5413 -0
  245. package/dist/chunks/cli-1.1.13-x83epxhw.mjs +2 -0
  246. package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +6 -0
  247. package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +2 -0
  248. package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +6 -0
  249. package/dist/chunks/cli-1.1.13-xpwxcmvd.mjs +2 -0
  250. package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +2 -0
  251. package/dist/chunks/cli-1.1.13-y5d299s9.mjs +2 -0
  252. package/dist/chunks/cli-1.1.13-y6pa258f.mjs +4 -0
  253. package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +2 -0
  254. package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +2 -0
  255. package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +20 -0
  256. package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +2 -0
  257. package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +2 -0
  258. package/dist/chunks/cli-1.1.13-z9471mhs.mjs +4 -0
  259. package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +4 -0
  260. package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +2 -0
  261. package/dist/chunks/cli-1.1.13-zmb192fn.mjs +18 -0
  262. package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +5 -0
  263. package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +2 -0
  264. package/dist/chunks/client-1.1.13-6axfwqya.mjs +1 -0
  265. package/dist/chunks/color-1.1.13-g1rjvg86.mjs +1 -0
  266. package/dist/chunks/compact-1.1.13-9k4jts81.mjs +3 -0
  267. package/dist/chunks/config-1.1.13-58bj6t43.mjs +1 -0
  268. package/dist/chunks/config-1.1.13-csmwn3d0.mjs +1 -0
  269. package/dist/chunks/constants-1.1.13-cydjncsk.mjs +1 -0
  270. package/dist/chunks/context-1.1.13-04y3svxc.mjs +1 -0
  271. package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +1 -0
  272. package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +1 -0
  273. package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +1 -0
  274. package/dist/chunks/copy-1.1.13-4zq95frp.mjs +9 -0
  275. package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +1 -0
  276. package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +1 -0
  277. package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +1 -0
  278. package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +1 -0
  279. package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +1526 -0
  280. package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +1 -0
  281. package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +1 -0
  282. package/dist/chunks/detection-1.1.13-k5td7n26.mjs +1 -0
  283. package/dist/chunks/diff-1.1.13-d31m696z.mjs +1 -0
  284. package/dist/chunks/doctor-1.1.13-59947n3f.mjs +1 -0
  285. package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +1 -0
  286. package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +1 -0
  287. package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +13 -0
  288. package/dist/chunks/engine-1.1.13-p9g24e16.mjs +1 -0
  289. package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +1 -0
  290. package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +1 -0
  291. package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +1 -0
  292. package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +1 -0
  293. package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +1 -0
  294. package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +1 -0
  295. package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +1 -0
  296. package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +1 -0
  297. package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +1 -0
  298. package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +2 -0
  299. package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +1 -0
  301. package/dist/chunks/fast-1.1.13-2an1j0he.mjs +1 -0
  302. package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +1 -0
  304. package/dist/chunks/git-1.1.13-n4743t7m.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +1 -0
  306. package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +4 -0
  307. package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +1 -0
  308. package/dist/chunks/headless-1.1.13-me11khs4.mjs +2 -0
  309. package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +6 -0
  310. package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +1 -0
  311. package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +3 -0
  312. package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +1 -0
  313. package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +79 -0
  314. package/dist/chunks/ide-1.1.13-699b7xgf.mjs +3 -0
  315. package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +1 -0
  316. package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +1 -0
  317. package/dist/chunks/index-1.1.13-1magnv9t.mjs +1 -0
  318. package/dist/chunks/index-1.1.13-20fw0vyg.mjs +1 -0
  319. package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +1 -0
  320. package/dist/chunks/index-1.1.13-5fffrw39.mjs +23 -0
  321. package/dist/chunks/index-1.1.13-7v1v2795.mjs +1 -0
  322. package/dist/chunks/index-1.1.13-89b63y1a.mjs +1 -0
  323. package/dist/chunks/index-1.1.13-9hmkds89.mjs +1 -0
  324. package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +1 -0
  325. package/dist/chunks/index-1.1.13-hvpk64ts.mjs +9 -0
  326. package/dist/chunks/index-1.1.13-pfnaxhas.mjs +9 -0
  327. package/dist/chunks/index-1.1.13-pq81pd76.mjs +2 -0
  328. package/dist/chunks/index-1.1.13-q7xgkez4.mjs +1 -0
  329. package/dist/chunks/index-1.1.13-qed5hqgm.mjs +1 -0
  330. package/dist/chunks/index-1.1.13-qncvk76v.mjs +1 -0
  331. package/dist/chunks/index-1.1.13-qzm5brgp.mjs +2 -0
  332. package/dist/chunks/index-1.1.13-sqz3new4.mjs +1 -0
  333. package/dist/chunks/index-1.1.13-swwn9vsr.mjs +1 -0
  334. package/dist/chunks/index-1.1.13-tseyy72z.mjs +1 -0
  335. package/dist/chunks/index-1.1.13-v219xtkm.mjs +1 -0
  336. package/dist/chunks/index-1.1.13-vbws03kk.mjs +30 -0
  337. package/dist/chunks/index-1.1.13-vpewasbk.mjs +1 -0
  338. package/dist/chunks/index-1.1.13-yncdgpnc.mjs +5 -0
  339. package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +1 -0
  340. package/dist/chunks/init-1.1.13-6m1d58s6.mjs +1 -0
  341. package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +1 -0
  342. package/dist/chunks/ink-1.1.13-vsh153b4.mjs +1 -0
  343. package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +870 -0
  344. package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +1 -0
  345. package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +149 -0
  346. package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +1 -0
  347. package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +1 -0
  348. package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +1 -0
  349. package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +2 -0
  350. package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +2 -0
  351. package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +1 -0
  352. package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +1 -0
  353. package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +1 -0
  354. package/dist/chunks/log-1.1.13-j05vnw45.mjs +1 -0
  355. package/dist/chunks/main-1.1.13-9eb7dv86.mjs +1 -0
  356. package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +1 -0
  358. package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +4 -0
  359. package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +17 -0
  360. package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +1 -0
  361. package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +72 -0
  362. package/dist/chunks/model-1.1.13-e9231b6a.mjs +2 -0
  363. package/dist/chunks/model-1.1.13-qkp6et1j.mjs +1 -0
  364. package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +12 -0
  365. package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +1 -0
  366. package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +14 -0
  367. package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +1 -0
  368. package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +1 -0
  369. package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +1 -0
  370. package/dist/chunks/parser-1.1.13-5g8tytma.mjs +1 -0
  371. package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +1 -0
  372. package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +3 -0
  373. package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +1 -0
  374. package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +1 -0
  375. package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +1 -0
  376. package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +29 -0
  377. package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +1 -0
  378. package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +9 -0
  379. package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +2 -0
  380. package/dist/chunks/print-1.1.13-cba5ekrx.mjs +57 -0
  381. package/dist/chunks/process-1.1.13-cavp5bw3.mjs +1 -0
  382. package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +1 -0
  383. package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +9 -0
  384. package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +1 -0
  385. package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +1 -0
  386. package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +1 -0
  387. package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +13 -0
  388. package/dist/chunks/provider-1.1.13-aec8n85t.mjs +2 -0
  389. package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +1 -0
  390. package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +6 -0
  391. package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +1 -0
  392. package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +26 -0
  393. package/dist/chunks/registry-1.1.13-0gr1a931.mjs +1 -0
  394. package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +5 -0
  395. package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +2 -0
  396. package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +1 -0
  397. package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +1 -0
  398. package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +1 -0
  399. package/dist/chunks/rename-1.1.13-7mj7635m.mjs +1 -0
  400. package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +1 -0
  401. package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +1 -0
  402. package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +2 -0
  403. package/dist/chunks/rewind-1.1.13-f1jde571.mjs +1 -0
  404. package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +1 -0
  405. package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +10 -0
  406. package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +1 -0
  407. package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +1 -0
  408. package/dist/chunks/session-1.1.13-je6e2q22.mjs +2 -0
  409. package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +1 -0
  410. package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +1 -0
  411. package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +1 -0
  412. package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +1 -0
  413. package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +5 -0
  414. package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +1 -0
  415. package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +1 -0
  416. package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +1 -0
  417. package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +1 -0
  418. package/dist/chunks/state-1.1.13-m97vrspe.mjs +1 -0
  419. package/dist/chunks/stats-1.1.13-x2ranep4.mjs +6 -0
  420. package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +1 -0
  421. package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +1 -0
  422. package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +1 -0
  423. package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +1 -0
  424. package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +1 -0
  425. package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +1 -0
  426. package/dist/chunks/teleport-1.1.13-fm868anx.mjs +1 -0
  427. package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +1 -0
  428. package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +1 -0
  429. package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +1 -0
  430. package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +1 -0
  431. package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +1 -0
  432. package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +1 -0
  433. package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +1 -0
  434. package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +1 -0
  435. package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +69 -0
  436. package/dist/chunks/types-1.1.13-2f1xtenh.mjs +1 -0
  437. package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +4 -0
  438. package/dist/chunks/update-1.1.13-0hd3pst5.mjs +72 -0
  439. package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +1 -0
  440. package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +7 -0
  441. package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +14 -0
  442. package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +1 -0
  443. package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +1 -0
  444. package/dist/chunks/util-1.1.13-vzt92dj7.mjs +1 -0
  445. package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +1 -0
  446. package/dist/chunks/vim-1.1.13-1d635y0m.mjs +1 -0
  447. package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +13 -0
  448. package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +1 -0
  449. package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +132 -0
  450. package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +1 -0
  451. package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +1 -0
  452. package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +1 -0
  453. package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +7 -0
  454. package/dist/cli.mjs +2 -2
  455. package/dist/help-agents.txt +1 -1
  456. package/dist/help-auth.txt +1 -1
  457. package/dist/help-auto-mode.txt +1 -1
  458. package/dist/help-doctor.txt +1 -1
  459. package/dist/help-install.txt +1 -1
  460. package/dist/help-mcp.txt +1 -1
  461. package/dist/help-plugin.txt +1 -1
  462. package/dist/help-plugins.txt +1 -1
  463. package/dist/help-setup-token.txt +1 -1
  464. package/dist/help-update.txt +1 -1
  465. package/dist/help-upgrade.txt +1 -1
  466. package/dist/help-workflow.txt +1 -1
  467. package/dist/help.txt +3 -4
  468. package/install.cjs +2 -2
  469. package/package.json +9 -9
  470. package/dist/chunks/AgentTool-1.1.11-k2q6nh9x.mjs +0 -1
  471. package/dist/chunks/App-1.1.11-krv6wwgp.mjs +0 -1
  472. package/dist/chunks/ApproveApiKey-1.1.11-9s811hbz.mjs +0 -1
  473. package/dist/chunks/AssistantSessionChooser-1.1.11-basm4sc7.mjs +0 -1
  474. package/dist/chunks/AutoModeOptInDialog-1.1.11-aejfbb8x.mjs +0 -1
  475. package/dist/chunks/BypassPermissionsModeDialog-1.1.11-3wxr3fz9.mjs +0 -1
  476. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.11-b4v59b23.mjs +0 -1
  477. package/dist/chunks/ConsoleOAuthFlow-1.1.11-e3abm4me.mjs +0 -1
  478. package/dist/chunks/DiffDialog-1.1.11-aswpafrn.mjs +0 -6
  479. package/dist/chunks/Doctor-1.1.11-jfetmc28.mjs +0 -1
  480. package/dist/chunks/ExplorerDialog-1.1.11-sn8jmt3x.mjs +0 -6
  481. package/dist/chunks/Grove-1.1.11-f2zsmd4t.mjs +0 -1
  482. package/dist/chunks/ITermBackend-1.1.11-7ga25209.mjs +0 -1
  483. package/dist/chunks/InvalidConfigDialog-1.1.11-vcp6js2b.mjs +0 -1
  484. package/dist/chunks/InvalidSettingsDialog-1.1.11-qqr3ve61.mjs +0 -1
  485. package/dist/chunks/MigrationDialog-1.1.11-z6eadsg8.mjs +0 -1
  486. package/dist/chunks/Onboarding-1.1.11-16z484ph.mjs +0 -1
  487. package/dist/chunks/ProviderManager-1.1.11-tv77qzrq.mjs +0 -1
  488. package/dist/chunks/REPL-1.1.11-eft2tx7z.mjs +0 -1
  489. package/dist/chunks/ResumeConversation-1.1.11-hc55dc65.mjs +0 -1
  490. package/dist/chunks/SnapshotUpdateDialog-1.1.11-j4b72t5c.mjs +0 -1
  491. package/dist/chunks/TeleportProgress-1.1.11-d2ata0wm.mjs +0 -1
  492. package/dist/chunks/TeleportRepoMismatchDialog-1.1.11-3gr88x6n.mjs +0 -1
  493. package/dist/chunks/TeleportResumeWrapper-1.1.11-xf144qy6.mjs +0 -1
  494. package/dist/chunks/TmuxBackend-1.1.11-76y2a4zz.mjs +0 -9
  495. package/dist/chunks/ToolSearchTool-1.1.11-sxwd1d13.mjs +0 -1
  496. package/dist/chunks/TrustDialog-1.1.11-pbh6yxxm.mjs +0 -1
  497. package/dist/chunks/activeProvider-1.1.11-saggs5cv.mjs +0 -1
  498. package/dist/chunks/add-dir-1.1.11-4tgfptar.mjs +0 -1
  499. package/dist/chunks/agentTypes-1.1.11-af225gtm.mjs +0 -1
  500. package/dist/chunks/agents-1.1.11-0wy5khvz.mjs +0 -3
  501. package/dist/chunks/agents-1.1.11-40dk22tt.mjs +0 -110
  502. package/dist/chunks/api-1.1.11-pxj1yw19.mjs +0 -1
  503. package/dist/chunks/asciicast-1.1.11-wmt09xhy.mjs +0 -1
  504. package/dist/chunks/assistant-1.1.11-tqk05t61.mjs +0 -1
  505. package/dist/chunks/auth-1.1.11-nvrxv4q4.mjs +0 -1
  506. package/dist/chunks/auth-1.1.11-pbwjnx30.mjs +0 -1
  507. package/dist/chunks/autoMode-1.1.11-22v33wd4.mjs +0 -48
  508. package/dist/chunks/autoUpdater-1.1.11-pqjz5g38.mjs +0 -1
  509. package/dist/chunks/backgroundHousekeeping-1.1.11-9xjtajrq.mjs +0 -1
  510. package/dist/chunks/branch-1.1.11-76tya9ft.mjs +0 -4
  511. package/dist/chunks/bridge-1.1.11-1m3v2n3k.mjs +0 -2
  512. package/dist/chunks/bridgeConfig-1.1.11-fp43q2e3.mjs +0 -1
  513. package/dist/chunks/bridgeEnabled-1.1.11-tqm667fa.mjs +0 -1
  514. package/dist/chunks/bridgeMain-1.1.11-hg46g911.mjs +0 -88
  515. package/dist/chunks/bridgePointer-1.1.11-1yn4135t.mjs +0 -1
  516. package/dist/chunks/btw-1.1.11-1m97zkn4.mjs +0 -1
  517. package/dist/chunks/buddy-1.1.11-ymv78npp.mjs +0 -3
  518. package/dist/chunks/cache-probe-1.1.11-zyrqae8j.mjs +0 -21
  519. package/dist/chunks/cacheStats-1.1.11-xq2pyhs3.mjs +0 -4
  520. package/dist/chunks/caches-1.1.11-rx01cbpj.mjs +0 -1
  521. package/dist/chunks/claudeDesktop-1.1.11-hcxt0dw3.mjs +0 -1
  522. package/dist/chunks/claudemd-1.1.11-8xr3pty5.mjs +0 -1
  523. package/dist/chunks/clear-1.1.11-bj5qfbw4.mjs +0 -1
  524. package/dist/chunks/clearTerminal-1.1.11-5ttzjadf.mjs +0 -1
  525. package/dist/chunks/cli-1.1.11-00rqxf9s.mjs +0 -2
  526. package/dist/chunks/cli-1.1.11-0djzxjkz.mjs +0 -2
  527. package/dist/chunks/cli-1.1.11-0e0p0ywy.mjs +0 -2
  528. package/dist/chunks/cli-1.1.11-0mhwtkaa.mjs +0 -3
  529. package/dist/chunks/cli-1.1.11-0vywa3gz.mjs +0 -3
  530. package/dist/chunks/cli-1.1.11-0x3jb16g.mjs +0 -2
  531. package/dist/chunks/cli-1.1.11-0zmfx6fs.mjs +0 -2
  532. package/dist/chunks/cli-1.1.11-1425gpc8.mjs +0 -2
  533. package/dist/chunks/cli-1.1.11-1515mm11.mjs +0 -21
  534. package/dist/chunks/cli-1.1.11-178h39tz.mjs +0 -24
  535. package/dist/chunks/cli-1.1.11-17j0yz1c.mjs +0 -2
  536. package/dist/chunks/cli-1.1.11-1fkcr5gp.mjs +0 -2
  537. package/dist/chunks/cli-1.1.11-1he1em03.mjs +0 -2
  538. package/dist/chunks/cli-1.1.11-1jp85542.mjs +0 -6
  539. package/dist/chunks/cli-1.1.11-23hz9e80.mjs +0 -59
  540. package/dist/chunks/cli-1.1.11-2480c28s.mjs +0 -42
  541. package/dist/chunks/cli-1.1.11-2m78tg8p.mjs +0 -2
  542. package/dist/chunks/cli-1.1.11-333vj9h0.mjs +0 -6
  543. package/dist/chunks/cli-1.1.11-3gv2s1c0.mjs +0 -3
  544. package/dist/chunks/cli-1.1.11-3jw12y1k.mjs +0 -6
  545. package/dist/chunks/cli-1.1.11-3n6xajnz.mjs +0 -2
  546. package/dist/chunks/cli-1.1.11-3p62a4zk.mjs +0 -2
  547. package/dist/chunks/cli-1.1.11-3p6nmjzx.mjs +0 -4
  548. package/dist/chunks/cli-1.1.11-3re050dw.mjs +0 -2
  549. package/dist/chunks/cli-1.1.11-3y3ak28a.mjs +0 -2
  550. package/dist/chunks/cli-1.1.11-47crfax7.mjs +0 -2
  551. package/dist/chunks/cli-1.1.11-4a192z90.mjs +0 -2
  552. package/dist/chunks/cli-1.1.11-4a4wbqs3.mjs +0 -2
  553. package/dist/chunks/cli-1.1.11-4h9jnkae.mjs +0 -2
  554. package/dist/chunks/cli-1.1.11-4hkr6h2p.mjs +0 -2
  555. package/dist/chunks/cli-1.1.11-4m87wr6c.mjs +0 -45
  556. package/dist/chunks/cli-1.1.11-4pqmwv4k.mjs +0 -9
  557. package/dist/chunks/cli-1.1.11-4x7gdf33.mjs +0 -2
  558. package/dist/chunks/cli-1.1.11-4yg477hw.mjs +0 -2
  559. package/dist/chunks/cli-1.1.11-53htvfkn.mjs +0 -2
  560. package/dist/chunks/cli-1.1.11-54kmn08f.mjs +0 -2
  561. package/dist/chunks/cli-1.1.11-5716x6c7.mjs +0 -2
  562. package/dist/chunks/cli-1.1.11-57kjeck2.mjs +0 -2
  563. package/dist/chunks/cli-1.1.11-58y8zhtr.mjs +0 -26
  564. package/dist/chunks/cli-1.1.11-5ee40chc.mjs +0 -2
  565. package/dist/chunks/cli-1.1.11-5evw05k8.mjs +0 -2
  566. package/dist/chunks/cli-1.1.11-5mcr3f8x.mjs +0 -2
  567. package/dist/chunks/cli-1.1.11-6ancr21h.mjs +0 -2
  568. package/dist/chunks/cli-1.1.11-6kk88f11.mjs +0 -4
  569. package/dist/chunks/cli-1.1.11-6kp3wff0.mjs +0 -3
  570. package/dist/chunks/cli-1.1.11-6pgzp38k.mjs +0 -2
  571. package/dist/chunks/cli-1.1.11-6tyfa5hn.mjs +0 -2
  572. package/dist/chunks/cli-1.1.11-754rwfhh.mjs +0 -2
  573. package/dist/chunks/cli-1.1.11-7c5dnjyh.mjs +0 -2
  574. package/dist/chunks/cli-1.1.11-7fqzppxh.mjs +0 -2
  575. package/dist/chunks/cli-1.1.11-7h7exk8z.mjs +0 -39
  576. package/dist/chunks/cli-1.1.11-7ns0vhby.mjs +0 -2
  577. package/dist/chunks/cli-1.1.11-7vtjz4fp.mjs +0 -2
  578. package/dist/chunks/cli-1.1.11-80jnvwd3.mjs +0 -2
  579. package/dist/chunks/cli-1.1.11-80y1y33h.mjs +0 -2
  580. package/dist/chunks/cli-1.1.11-88pynw50.mjs +0 -2
  581. package/dist/chunks/cli-1.1.11-8j1jeg3y.mjs +0 -2
  582. package/dist/chunks/cli-1.1.11-8t6wwjcf.mjs +0 -2
  583. package/dist/chunks/cli-1.1.11-8vmf6185.mjs +0 -2
  584. package/dist/chunks/cli-1.1.11-99dgyvn6.mjs +0 -5
  585. package/dist/chunks/cli-1.1.11-9gtaqe5z.mjs +0 -2
  586. package/dist/chunks/cli-1.1.11-9q076mg1.mjs +0 -2
  587. package/dist/chunks/cli-1.1.11-9v76e0nn.mjs +0 -3
  588. package/dist/chunks/cli-1.1.11-9xepp7cw.mjs +0 -2
  589. package/dist/chunks/cli-1.1.11-9yb6m13t.mjs +0 -2
  590. package/dist/chunks/cli-1.1.11-a4we9vgp.mjs +0 -2
  591. package/dist/chunks/cli-1.1.11-ay57kj7t.mjs +0 -2
  592. package/dist/chunks/cli-1.1.11-aydwe9xx.mjs +0 -8
  593. package/dist/chunks/cli-1.1.11-azaecepr.mjs +0 -2
  594. package/dist/chunks/cli-1.1.11-b0bsxy6e.mjs +0 -2
  595. package/dist/chunks/cli-1.1.11-brfrsyj3.mjs +0 -2
  596. package/dist/chunks/cli-1.1.11-c2kpn3fs.mjs +0 -2
  597. package/dist/chunks/cli-1.1.11-c566maxh.mjs +0 -6
  598. package/dist/chunks/cli-1.1.11-c8yn2sy4.mjs +0 -12
  599. package/dist/chunks/cli-1.1.11-c9mw7vaf.mjs +0 -2
  600. package/dist/chunks/cli-1.1.11-ceb5eb1e.mjs +0 -4
  601. package/dist/chunks/cli-1.1.11-cetgmfd3.mjs +0 -2
  602. package/dist/chunks/cli-1.1.11-cfd7wcsr.mjs +0 -2
  603. package/dist/chunks/cli-1.1.11-cj1nzqdk.mjs +0 -6
  604. package/dist/chunks/cli-1.1.11-ctd6he1r.mjs +0 -2
  605. package/dist/chunks/cli-1.1.11-cyt97t1g.mjs +0 -2
  606. package/dist/chunks/cli-1.1.11-d8vrh841.mjs +0 -2
  607. package/dist/chunks/cli-1.1.11-dcv6a2kq.mjs +0 -2
  608. package/dist/chunks/cli-1.1.11-dfssr6vt.mjs +0 -2
  609. package/dist/chunks/cli-1.1.11-dfx7qnxc.mjs +0 -2
  610. package/dist/chunks/cli-1.1.11-dnp18qxm.mjs +0 -2
  611. package/dist/chunks/cli-1.1.11-dygnwf66.mjs +0 -2
  612. package/dist/chunks/cli-1.1.11-dzq0mt2q.mjs +0 -2
  613. package/dist/chunks/cli-1.1.11-e1nmsb3e.mjs +0 -2
  614. package/dist/chunks/cli-1.1.11-e5yvpr5d.mjs +0 -133
  615. package/dist/chunks/cli-1.1.11-e8f5j5pp.mjs +0 -20
  616. package/dist/chunks/cli-1.1.11-e9h0r9s8.mjs +0 -2
  617. package/dist/chunks/cli-1.1.11-ecfegt2j.mjs +0 -2
  618. package/dist/chunks/cli-1.1.11-ef7cg4xt.mjs +0 -2
  619. package/dist/chunks/cli-1.1.11-en4s7zr1.mjs +0 -2
  620. package/dist/chunks/cli-1.1.11-epajg619.mjs +0 -2
  621. package/dist/chunks/cli-1.1.11-erfvptpc.mjs +0 -2
  622. package/dist/chunks/cli-1.1.11-et6r8n19.mjs +0 -12
  623. package/dist/chunks/cli-1.1.11-ex37fv7p.mjs +0 -2
  624. package/dist/chunks/cli-1.1.11-ezt5j484.mjs +0 -7
  625. package/dist/chunks/cli-1.1.11-fcxz5772.mjs +0 -4
  626. package/dist/chunks/cli-1.1.11-fmb9eedn.mjs +0 -2
  627. package/dist/chunks/cli-1.1.11-fmy9jwdc.mjs +0 -3
  628. package/dist/chunks/cli-1.1.11-g0shs4yx.mjs +0 -17
  629. package/dist/chunks/cli-1.1.11-g38vgb2g.mjs +0 -2
  630. package/dist/chunks/cli-1.1.11-g9cesn9x.mjs +0 -2
  631. package/dist/chunks/cli-1.1.11-gnbty7hn.mjs +0 -9
  632. package/dist/chunks/cli-1.1.11-gnws5v1r.mjs +0 -15
  633. package/dist/chunks/cli-1.1.11-gyvneb2n.mjs +0 -2
  634. package/dist/chunks/cli-1.1.11-hazm6rky.mjs +0 -17
  635. package/dist/chunks/cli-1.1.11-hbvz2ngt.mjs +0 -2
  636. package/dist/chunks/cli-1.1.11-j4ym4b26.mjs +0 -2
  637. package/dist/chunks/cli-1.1.11-jc61pe1h.mjs +0 -15
  638. package/dist/chunks/cli-1.1.11-jejkqxzx.mjs +0 -2
  639. package/dist/chunks/cli-1.1.11-js75fbb2.mjs +0 -2
  640. package/dist/chunks/cli-1.1.11-jt8v99mz.mjs +0 -2
  641. package/dist/chunks/cli-1.1.11-jvyac5ts.mjs +0 -2
  642. package/dist/chunks/cli-1.1.11-jzhj2z0q.mjs +0 -4
  643. package/dist/chunks/cli-1.1.11-jzmj7yys.mjs +0 -18
  644. package/dist/chunks/cli-1.1.11-k3691mq1.mjs +0 -1
  645. package/dist/chunks/cli-1.1.11-k7pcdfgm.mjs +0 -2
  646. package/dist/chunks/cli-1.1.11-k8shpmad.mjs +0 -2
  647. package/dist/chunks/cli-1.1.11-kj2dg4vg.mjs +0 -2
  648. package/dist/chunks/cli-1.1.11-kwbasdd3.mjs +0 -2
  649. package/dist/chunks/cli-1.1.11-m117ak01.mjs +0 -58
  650. package/dist/chunks/cli-1.1.11-m3mwsg1h.mjs +0 -5
  651. package/dist/chunks/cli-1.1.11-m4kdt922.mjs +0 -3
  652. package/dist/chunks/cli-1.1.11-m79xp4zw.mjs +0 -50
  653. package/dist/chunks/cli-1.1.11-m7dz7jb4.mjs +0 -2
  654. package/dist/chunks/cli-1.1.11-mjhzsr8x.mjs +0 -2
  655. package/dist/chunks/cli-1.1.11-mpr8grgt.mjs +0 -6
  656. package/dist/chunks/cli-1.1.11-n797shcy.mjs +0 -24
  657. package/dist/chunks/cli-1.1.11-n9eddt48.mjs +0 -133
  658. package/dist/chunks/cli-1.1.11-na2dfshq.mjs +0 -4
  659. package/dist/chunks/cli-1.1.11-nbdb2har.mjs +0 -15
  660. package/dist/chunks/cli-1.1.11-nfcb5zpv.mjs +0 -24
  661. package/dist/chunks/cli-1.1.11-ng71jh69.mjs +0 -2
  662. package/dist/chunks/cli-1.1.11-nnxrj2y7.mjs +0 -2
  663. package/dist/chunks/cli-1.1.11-nqrzeek1.mjs +0 -2
  664. package/dist/chunks/cli-1.1.11-nsf7da8p.mjs +0 -25
  665. package/dist/chunks/cli-1.1.11-p0gdcdg7.mjs +0 -2
  666. package/dist/chunks/cli-1.1.11-p1g4cbqp.mjs +0 -2
  667. package/dist/chunks/cli-1.1.11-p99a0wsg.mjs +0 -2
  668. package/dist/chunks/cli-1.1.11-pfnjpp3j.mjs +0 -2
  669. package/dist/chunks/cli-1.1.11-qd78ng67.mjs +0 -2
  670. package/dist/chunks/cli-1.1.11-qe68985c.mjs +0 -2
  671. package/dist/chunks/cli-1.1.11-qxqfwjt2.mjs +0 -12
  672. package/dist/chunks/cli-1.1.11-qy572ahv.mjs +0 -2
  673. package/dist/chunks/cli-1.1.11-r6pat8w9.mjs +0 -2
  674. package/dist/chunks/cli-1.1.11-r6zppx5e.mjs +0 -2
  675. package/dist/chunks/cli-1.1.11-r737sg77.mjs +0 -2
  676. package/dist/chunks/cli-1.1.11-re35m5b2.mjs +0 -3
  677. package/dist/chunks/cli-1.1.11-rm1ytz6k.mjs +0 -2
  678. package/dist/chunks/cli-1.1.11-s3x93993.mjs +0 -2
  679. package/dist/chunks/cli-1.1.11-s5fsvj2a.mjs +0 -2
  680. package/dist/chunks/cli-1.1.11-sby4j4da.mjs +0 -3
  681. package/dist/chunks/cli-1.1.11-se1r4vmz.mjs +0 -2
  682. package/dist/chunks/cli-1.1.11-sen20m7k.mjs +0 -2
  683. package/dist/chunks/cli-1.1.11-smfhs04w.mjs +0 -3
  684. package/dist/chunks/cli-1.1.11-sph0eaqc.mjs +0 -4
  685. package/dist/chunks/cli-1.1.11-sptbkfhb.mjs +0 -2
  686. package/dist/chunks/cli-1.1.11-sxe5a6ht.mjs +0 -2
  687. package/dist/chunks/cli-1.1.11-sycyfbqa.mjs +0 -2
  688. package/dist/chunks/cli-1.1.11-t4vzh54z.mjs +0 -2
  689. package/dist/chunks/cli-1.1.11-t6xvy5kh.mjs +0 -2
  690. package/dist/chunks/cli-1.1.11-t95hn521.mjs +0 -2
  691. package/dist/chunks/cli-1.1.11-tg2x8my7.mjs +0 -4
  692. package/dist/chunks/cli-1.1.11-th7d92cz.mjs +0 -2
  693. package/dist/chunks/cli-1.1.11-tqtf5qtz.mjs +0 -2
  694. package/dist/chunks/cli-1.1.11-ty1grp21.mjs +0 -2
  695. package/dist/chunks/cli-1.1.11-tzw8k1nw.mjs +0 -2
  696. package/dist/chunks/cli-1.1.11-v0qc9e7x.mjs +0 -2
  697. package/dist/chunks/cli-1.1.11-v9gb0h1v.mjs +0 -2
  698. package/dist/chunks/cli-1.1.11-vaqp2v88.mjs +0 -3
  699. package/dist/chunks/cli-1.1.11-vcbj9ns4.mjs +0 -2
  700. package/dist/chunks/cli-1.1.11-vdh094gb.mjs +0 -2
  701. package/dist/chunks/cli-1.1.11-vkw5s1rv.mjs +0 -4
  702. package/dist/chunks/cli-1.1.11-vqcm2p2k.mjs +0 -3
  703. package/dist/chunks/cli-1.1.11-vtj7f6xe.mjs +0 -34
  704. package/dist/chunks/cli-1.1.11-w50fh65p.mjs +0 -2
  705. package/dist/chunks/cli-1.1.11-wf1jrvag.mjs +0 -2
  706. package/dist/chunks/cli-1.1.11-wjhta14d.mjs +0 -3
  707. package/dist/chunks/cli-1.1.11-wkmpy3a6.mjs +0 -2
  708. package/dist/chunks/cli-1.1.11-wrvqk2kb.mjs +0 -2
  709. package/dist/chunks/cli-1.1.11-ws3mhebq.mjs +0 -2
  710. package/dist/chunks/cli-1.1.11-wsr8n6yx.mjs +0 -2
  711. package/dist/chunks/cli-1.1.11-ww3qs66m.mjs +0 -2
  712. package/dist/chunks/cli-1.1.11-wzd4xr4g.mjs +0 -2
  713. package/dist/chunks/cli-1.1.11-x1cwe9h2.mjs +0 -2
  714. package/dist/chunks/cli-1.1.11-x2px8b33.mjs +0 -4
  715. package/dist/chunks/cli-1.1.11-x3d1641w.mjs +0 -66
  716. package/dist/chunks/cli-1.1.11-x4yq8238.mjs +0 -2
  717. package/dist/chunks/cli-1.1.11-xa1ktjvc.mjs +0 -18
  718. package/dist/chunks/cli-1.1.11-xdf6ka1p.mjs +0 -3
  719. package/dist/chunks/cli-1.1.11-xjejq6gc.mjs +0 -2
  720. package/dist/chunks/cli-1.1.11-xmp31p4m.mjs +0 -2
  721. package/dist/chunks/cli-1.1.11-xw1gtf4q.mjs +0 -2
  722. package/dist/chunks/cli-1.1.11-y8jb9ka1.mjs +0 -5382
  723. package/dist/chunks/cli-1.1.11-ybqaxmsq.mjs +0 -2
  724. package/dist/chunks/cli-1.1.11-ygstc2fh.mjs +0 -2
  725. package/dist/chunks/cli-1.1.11-ys88pb52.mjs +0 -2
  726. package/dist/chunks/cli-1.1.11-ys8qbdxp.mjs +0 -4
  727. package/dist/chunks/cli-1.1.11-ytd49283.mjs +0 -16
  728. package/dist/chunks/cli-1.1.11-yv8jze8x.mjs +0 -3
  729. package/dist/chunks/cli-1.1.11-yx7hmc5y.mjs +0 -24
  730. package/dist/chunks/cli-1.1.11-yz3byxtx.mjs +0 -202
  731. package/dist/chunks/cli-1.1.11-z02dbt8v.mjs +0 -25
  732. package/dist/chunks/cli-1.1.11-z08c87k7.mjs +0 -2
  733. package/dist/chunks/cli-1.1.11-zmkfqsfj.mjs +0 -2
  734. package/dist/chunks/cli-1.1.11-zz43hz3c.mjs +0 -2
  735. package/dist/chunks/client-1.1.11-4fds5q8p.mjs +0 -1
  736. package/dist/chunks/color-1.1.11-1pjrfnnd.mjs +0 -1
  737. package/dist/chunks/compact-1.1.11-qvdk635a.mjs +0 -3
  738. package/dist/chunks/config-1.1.11-3yh6sp7r.mjs +0 -1
  739. package/dist/chunks/config-1.1.11-qs94ayha.mjs +0 -1
  740. package/dist/chunks/constants-1.1.11-6f5wtx0e.mjs +0 -1
  741. package/dist/chunks/context-1.1.11-v76cyrq1.mjs +0 -1
  742. package/dist/chunks/context-noninteractive-1.1.11-59s91h4x.mjs +0 -1
  743. package/dist/chunks/conversation-1.1.11-ve2rcdbk.mjs +0 -1
  744. package/dist/chunks/copilotHeaders-1.1.11-awc75paz.mjs +0 -1
  745. package/dist/chunks/copy-1.1.11-t2yhcnhs.mjs +0 -9
  746. package/dist/chunks/cost-1.1.11-3qfqxkmj.mjs +0 -1
  747. package/dist/chunks/createSSHSession-1.1.11-d1a5c6qx.mjs +0 -1
  748. package/dist/chunks/createSession-1.1.11-tepvp40s.mjs +0 -1
  749. package/dist/chunks/debug-1.1.11-2tghvx1n.mjs +0 -1
  750. package/dist/chunks/defaultActionDeps-1.1.11-35s0feaf.mjs +0 -1526
  751. package/dist/chunks/desktop-1.1.11-hwbpq9hq.mjs +0 -1
  752. package/dist/chunks/detectRepository-1.1.11-1p7kjee0.mjs +0 -1
  753. package/dist/chunks/detection-1.1.11-96xrmjq1.mjs +0 -1
  754. package/dist/chunks/diff-1.1.11-13e093sy.mjs +0 -1
  755. package/dist/chunks/doctor-1.1.11-r1xwax5q.mjs +0 -1
  756. package/dist/chunks/doctorDiagnostic-1.1.11-05h9mhbd.mjs +0 -1
  757. package/dist/chunks/earlyInput-1.1.11-14kzyy0e.mjs +0 -1
  758. package/dist/chunks/effort-1.1.11-9avhwp0f.mjs +0 -13
  759. package/dist/chunks/engine-1.1.11-j24ha45k.mjs +0 -1
  760. package/dist/chunks/envLessBridgeConfig-1.1.11-3xh8n4ys.mjs +0 -1
  761. package/dist/chunks/envUtils-1.1.11-ef7e3q7c.mjs +0 -1
  762. package/dist/chunks/environmentSelection-1.1.11-hxdx739y.mjs +0 -1
  763. package/dist/chunks/environments-1.1.11-356znhvc.mjs +0 -1
  764. package/dist/chunks/errors-1.1.11-ev387w5m.mjs +0 -1
  765. package/dist/chunks/exampleCommands-1.1.11-pejs7gw9.mjs +0 -1
  766. package/dist/chunks/execFileNoThrow-1.1.11-4s6hv328.mjs +0 -1
  767. package/dist/chunks/exit-1.1.11-v9psfac6.mjs +0 -1
  768. package/dist/chunks/explorer-1.1.11-e3f0wt2q.mjs +0 -1
  769. package/dist/chunks/export-1.1.11-3jan1p2n.mjs +0 -2
  770. package/dist/chunks/extra-usage-1.1.11-3zfk19wt.mjs +0 -1
  771. package/dist/chunks/extra-usage-noninteractive-1.1.11-ye9dcmbd.mjs +0 -1
  772. package/dist/chunks/fast-1.1.11-q42apmz5.mjs +0 -1
  773. package/dist/chunks/feedback-1.1.11-dtj0sby7.mjs +0 -14
  774. package/dist/chunks/firstPartyEventLogger-1.1.11-jy7cazzp.mjs +0 -1
  775. package/dist/chunks/git-1.1.11-x9yx65c5.mjs +0 -1
  776. package/dist/chunks/githubModelsCredentials-1.1.11-bqkgby97.mjs +0 -1
  777. package/dist/chunks/goal-1.1.11-q2hpatj3.mjs +0 -4
  778. package/dist/chunks/grove-1.1.11-qxybpwre.mjs +0 -1
  779. package/dist/chunks/growthbook-1.1.11-3vnmw48g.mjs +0 -1
  780. package/dist/chunks/headless-1.1.11-w0ppk4vt.mjs +0 -2
  781. package/dist/chunks/heapdump-1.1.11-vh3qr7jg.mjs +0 -6
  782. package/dist/chunks/help-1.1.11-p384dp1z.mjs +0 -1
  783. package/dist/chunks/hookChains-1.1.11-088ye0xc.mjs +0 -3
  784. package/dist/chunks/hooks-1.1.11-4kkgc487.mjs +0 -79
  785. package/dist/chunks/hooks-1.1.11-a7p1se3t.mjs +0 -1
  786. package/dist/chunks/ide-1.1.11-n0zzy5nx.mjs +0 -3
  787. package/dist/chunks/image-processor-napi-1.1.11-5xcxbnxj.mjs +0 -1
  788. package/dist/chunks/inboundAttachments-1.1.11-y9exjc82.mjs +0 -1
  789. package/dist/chunks/index-1.1.11-03mzh565.mjs +0 -1
  790. package/dist/chunks/index-1.1.11-2yms0cys.mjs +0 -1
  791. package/dist/chunks/index-1.1.11-40px18hy.mjs +0 -2
  792. package/dist/chunks/index-1.1.11-4nqea2zz.mjs +0 -1
  793. package/dist/chunks/index-1.1.11-5gttv5kf.mjs +0 -1
  794. package/dist/chunks/index-1.1.11-68ffeh9a.mjs +0 -1
  795. package/dist/chunks/index-1.1.11-804qa6by.mjs +0 -1
  796. package/dist/chunks/index-1.1.11-9pwqbn5r.mjs +0 -1
  797. package/dist/chunks/index-1.1.11-a3y2aekg.mjs +0 -1
  798. package/dist/chunks/index-1.1.11-a6z5v5rh.mjs +0 -1
  799. package/dist/chunks/index-1.1.11-drr89zt1.mjs +0 -1
  800. package/dist/chunks/index-1.1.11-es7vjyrm.mjs +0 -1
  801. package/dist/chunks/index-1.1.11-fb4zcaqa.mjs +0 -9
  802. package/dist/chunks/index-1.1.11-fe66h6cm.mjs +0 -9
  803. package/dist/chunks/index-1.1.11-fmj2fbg0.mjs +0 -1
  804. package/dist/chunks/index-1.1.11-ft8kdz1m.mjs +0 -30
  805. package/dist/chunks/index-1.1.11-g7s48r9e.mjs +0 -1
  806. package/dist/chunks/index-1.1.11-jg3wztnh.mjs +0 -1
  807. package/dist/chunks/index-1.1.11-k7y5wmy4.mjs +0 -1
  808. package/dist/chunks/index-1.1.11-qykdv19z.mjs +0 -2
  809. package/dist/chunks/index-1.1.11-v4wf2vaf.mjs +0 -23
  810. package/dist/chunks/index-1.1.11-v83fr53d.mjs +0 -5
  811. package/dist/chunks/index-1.1.11-wtdppc5t.mjs +0 -1
  812. package/dist/chunks/init-1.1.11-hmef4hjd.mjs +0 -1
  813. package/dist/chunks/initReplBridge-1.1.11-pwmx5fqy.mjs +0 -1
  814. package/dist/chunks/ink-1.1.11-jw026dnf.mjs +0 -1
  815. package/dist/chunks/insights-1.1.11-6dzm6fbk.mjs +0 -870
  816. package/dist/chunks/install-1.1.11-pmvq4tzr.mjs +0 -1
  817. package/dist/chunks/install-github-app-1.1.11-6yraca1d.mjs +0 -149
  818. package/dist/chunks/install-slack-app-1.1.11-f7kv64nn.mjs +0 -1
  819. package/dist/chunks/instrumentation-1.1.11-5vjxebja.mjs +0 -1
  820. package/dist/chunks/interactiveHelpers-1.1.11-7pncqt0h.mjs +0 -1
  821. package/dist/chunks/keybindings-1.1.11-t04nc417.mjs +0 -2
  822. package/dist/chunks/knowledge-1.1.11-14y01py7.mjs +0 -2
  823. package/dist/chunks/latestVersionCache-1.1.11-0y248exe.mjs +0 -1
  824. package/dist/chunks/loadAgentsDir-1.1.11-281da8yy.mjs +0 -1
  825. package/dist/chunks/loadPluginHooks-1.1.11-smwnwfy1.mjs +0 -1
  826. package/dist/chunks/log-1.1.11-bg8ah9ag.mjs +0 -1
  827. package/dist/chunks/main-1.1.11-6myv71xs.mjs +0 -1
  828. package/dist/chunks/managedEnv-1.1.11-g7a35vm9.mjs +0 -1
  829. package/dist/chunks/mcp-1.1.11-4pdz9q1w.mjs +0 -17
  830. package/dist/chunks/mcp-1.1.11-63cbatj7.mjs +0 -1
  831. package/dist/chunks/mcp-1.1.11-jr7ccm2q.mjs +0 -4
  832. package/dist/chunks/mcpb-1.1.11-w2vyza13.mjs +0 -1
  833. package/dist/chunks/memory-1.1.11-hfwa4d07.mjs +0 -72
  834. package/dist/chunks/model-1.1.11-m73f7dnk.mjs +0 -1
  835. package/dist/chunks/model-1.1.11-s35tcbyz.mjs +0 -2
  836. package/dist/chunks/node-1.1.11-h3t9a7m9.mjs +0 -12
  837. package/dist/chunks/oauth-1.1.11-z19rt783.mjs +0 -1
  838. package/dist/chunks/openaiShim-1.1.11-hw1h9m6b.mjs +0 -14
  839. package/dist/chunks/output-style-1.1.11-9wars2zm.mjs +0 -1
  840. package/dist/chunks/package-L37ZVTF4-1.1.11-xdrqg8t2.mjs +0 -1
  841. package/dist/chunks/parseConnectUrl-1.1.11-1xctyq5g.mjs +0 -1
  842. package/dist/chunks/parser-1.1.11-hdctc99h.mjs +0 -1
  843. package/dist/chunks/passes-1.1.11-cyfzrm0v.mjs +0 -1
  844. package/dist/chunks/permissions-1.1.11-gmeavwga.mjs +0 -1
  845. package/dist/chunks/permissions-1.1.11-k82nchw7.mjs +0 -3
  846. package/dist/chunks/plan-1.1.11-113qc4m4.mjs +0 -1
  847. package/dist/chunks/plist-1.1.11-tn2gma22.mjs +0 -1
  848. package/dist/chunks/plugin-1.1.11-v8jsy700.mjs +0 -29
  849. package/dist/chunks/pluginStartupCheck-1.1.11-ak2j3gqk.mjs +0 -1
  850. package/dist/chunks/plugins-1.1.11-ne541702.mjs +0 -9
  851. package/dist/chunks/preActionHook-1.1.11-trzavag7.mjs +0 -2
  852. package/dist/chunks/print-1.1.11-438pp8v9.mjs +0 -57
  853. package/dist/chunks/privacy-settings-1.1.11-mn1z3vsm.mjs +0 -1
  854. package/dist/chunks/process-1.1.11-eyv3rsh3.mjs +0 -1
  855. package/dist/chunks/processBashCommand-1.1.11-mmp13p2q.mjs +0 -1
  856. package/dist/chunks/processSlashCommand-1.1.11-0q3vxz7d.mjs +0 -9
  857. package/dist/chunks/prompt-1.1.11-r4p751ar.mjs +0 -1
  858. package/dist/chunks/prompt-1.1.11-yrfr0vn1.mjs +0 -1
  859. package/dist/chunks/prompts-1.1.11-qxywq1b7.mjs +0 -1
  860. package/dist/chunks/protocolHandler-1.1.11-h9k096sf.mjs +0 -13
  861. package/dist/chunks/provider-1.1.11-xwrj8dzx.mjs +0 -2
  862. package/dist/chunks/providerProfiles-1.1.11-dwy6je4r.mjs +0 -1
  863. package/dist/chunks/providerValidation-1.1.11-5x71hcx3.mjs +0 -6
  864. package/dist/chunks/rate-limit-options-1.1.11-cex3vev6.mjs +0 -1
  865. package/dist/chunks/registerSubcommands-1.1.11-pa8cx5ka.mjs +0 -34
  866. package/dist/chunks/registry-1.1.11-3s5s5x2w.mjs +0 -1
  867. package/dist/chunks/release-notes-1.1.11-dcephgep.mjs +0 -5
  868. package/dist/chunks/reload-plugins-1.1.11-06znv97n.mjs +0 -2
  869. package/dist/chunks/remote-env-1.1.11-ycaxf826.mjs +0 -1
  870. package/dist/chunks/remoteBridgeCore-1.1.11-3f2qdc67.mjs +0 -1
  871. package/dist/chunks/remoteSession-1.1.11-yr9z4qxr.mjs +0 -1
  872. package/dist/chunks/rename-1.1.11-cjn09qj8.mjs +0 -1
  873. package/dist/chunks/replBridgeHandle-1.1.11-ym5wskq3.mjs +0 -1
  874. package/dist/chunks/replLauncher-1.1.11-b5w7tmfr.mjs +0 -1
  875. package/dist/chunks/resume-1.1.11-nth616a4.mjs +0 -2
  876. package/dist/chunks/rewind-1.1.11-57ydss59.mjs +0 -1
  877. package/dist/chunks/rootOptions-1.1.11-j9g626rf.mjs +0 -1
  878. package/dist/chunks/runWorkflowHeadless-1.1.11-pj37xkbn.mjs +0 -10
  879. package/dist/chunks/sandbox-adapter-1.1.11-ke832djs.mjs +0 -1
  880. package/dist/chunks/sandbox-toggle-1.1.11-fybgyn3j.mjs +0 -1
  881. package/dist/chunks/session-1.1.11-85hpfa2y.mjs +0 -2
  882. package/dist/chunks/sessionDiscovery-1.1.11-wkjk4q5q.mjs +0 -1
  883. package/dist/chunks/sessionFileAccessHooks-1.1.11-9rq4xh7v.mjs +0 -1
  884. package/dist/chunks/sessionStorage-1.1.11-bmy7c4ce.mjs +0 -1
  885. package/dist/chunks/settings-1.1.11-x92a7782.mjs +0 -1
  886. package/dist/chunks/setup-1.1.11-ft54z574.mjs +0 -5
  887. package/dist/chunks/sinks-1.1.11-qj6hh6fq.mjs +0 -1
  888. package/dist/chunks/skills-1.1.11-yb1h8f1p.mjs +0 -1
  889. package/dist/chunks/startupProfiler-1.1.11-aymsv2q9.mjs +0 -1
  890. package/dist/chunks/startupUpdateCheck-1.1.11-q539pk5f.mjs +0 -1
  891. package/dist/chunks/state-1.1.11-z5q89e5v.mjs +0 -1
  892. package/dist/chunks/stats-1.1.11-5tdk8rvw.mjs +0 -6
  893. package/dist/chunks/status-1.1.11-xnqp4j47.mjs +0 -1
  894. package/dist/chunks/stickers-1.1.11-qj2z8gxy.mjs +0 -1
  895. package/dist/chunks/subprocessEnv-1.1.11-p65stpt5.mjs +0 -1
  896. package/dist/chunks/tasks-1.1.11-wxw0xx0j.mjs +0 -1
  897. package/dist/chunks/teamHelpers-1.1.11-60crs4z7.mjs +0 -1
  898. package/dist/chunks/teammateModeSnapshot-1.1.11-s3btrevg.mjs +0 -1
  899. package/dist/chunks/teleport-1.1.11-0xf6aa7g.mjs +0 -1
  900. package/dist/chunks/terminalSetup-1.1.11-pfz13me0.mjs +0 -1
  901. package/dist/chunks/theme-1.1.11-2p323zvq.mjs +0 -1
  902. package/dist/chunks/thinkback-1.1.11-s0m1n5ww.mjs +0 -1
  903. package/dist/chunks/thinkback-play-1.1.11-2sq4jkjt.mjs +0 -1
  904. package/dist/chunks/toolPool-1.1.11-je8wzeg0.mjs +0 -1
  905. package/dist/chunks/toolSearch-1.1.11-w74d8xmb.mjs +0 -1
  906. package/dist/chunks/tools-1.1.11-y36gvdes.mjs +0 -1
  907. package/dist/chunks/trustedDevice-1.1.11-x8dc07e5.mjs +0 -1
  908. package/dist/chunks/turndown.cjs-1.1.11-sr4p4fht.mjs +0 -69
  909. package/dist/chunks/types-1.1.11-hmv5s58r.mjs +0 -1
  910. package/dist/chunks/ultrareviewCommand-1.1.11-k569tjhq.mjs +0 -4
  911. package/dist/chunks/update-1.1.11-p39vapmz.mjs +0 -72
  912. package/dist/chunks/upgrade-1.1.11-tbgxp1ct.mjs +0 -1
  913. package/dist/chunks/upload-1.1.11-2ww1n0bh.mjs +0 -7
  914. package/dist/chunks/upstreamproxy-1.1.11-1y1aettm.mjs +0 -14
  915. package/dist/chunks/url-handler-napi-1.1.11-6g43s7vc.mjs +0 -1
  916. package/dist/chunks/usage-1.1.11-q123k500.mjs +0 -1
  917. package/dist/chunks/util-1.1.11-vtdjcaqr.mjs +0 -1
  918. package/dist/chunks/utils-1.1.11-tratqgvk.mjs +0 -1
  919. package/dist/chunks/vim-1.1.11-07nhad2c.mjs +0 -1
  920. package/dist/chunks/watchLoop-1.1.11-w662caa3.mjs +0 -13
  921. package/dist/chunks/watcher-1.1.11-jjk2rcc6.mjs +0 -1
  922. package/dist/chunks/wiki-1.1.11-kdevp06r.mjs +0 -132
  923. package/dist/chunks/workflows-1.1.11-s711sqq1.mjs +0 -1
  924. package/dist/chunks/worktree-1.1.11-y6c7aw7x.mjs +0 -1
  925. package/dist/chunks/worktreeModeEnabled-1.1.11-afx643vn.mjs +0 -1
  926. package/dist/chunks/wrapper-1.1.11-yx4yqang.mjs +0 -7
  927. /package/dist/chunks/{cli-1.1.11-qx2jtemb.mjs → cli-1.1.13-8812dqjq.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{Zw as o,_w as n}from"./cli-1.1.11-y8jb9ka1.mjs";import{_sa as e}from"./cli-1.1.11-s5fsvj2a.mjs";function i(m){t.setState(()=>[...m])}var t,r=()=>t.getState(),d;var s=e(()=>{n();t=o([]),d=t.subscribe});
2
- export{r as Dd,d as Ed,i as Fd,s as Gd};
@@ -1,2 +0,0 @@
1
- import{_sa as K}from"./cli-1.1.11-s5fsvj2a.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 Ska,N as Tka,Q as Uka,R as Vka,S as Wka,L as Xka};
@@ -1,2 +0,0 @@
1
- import{tf as R,vf as d}from"./cli-1.1.11-e9h0r9s8.mjs";import{E2 as j,H2 as c}from"./cli-1.1.11-r6zppx5e.mjs";import{Oka as K,Rka as D}from"./cli-1.1.11-1jp85542.mjs";import{mla as C,tla as h}from"./cli-1.1.11-sph0eaqc.mjs";import{$sa as J,_sa as I}from"./cli-1.1.11-s5fsvj2a.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-1.1.11-pbwjnx30.mjs"),{getOrganizationUUID:Z}=await import("./client-1.1.11-4fds5q8p.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.11-z19rt783.mjs"),{getOAuthHeaders:P}=await import("./api-1.1.11-pxj1yw19.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-1.1.11-1p7kjee0.mjs"),{getDefaultBranch:_}=await import("./git-1.1.11-x9yx65c5.mjs"),{getMainLoopModel:M}=await import("./model-1.1.11-m73f7dnk.mjs"),{default:T}=await import("./index-1.1.11-9pwqbn5r.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-1.1.11-1p7kjee0.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.11-pbwjnx30.mjs"),{getOrganizationUUID:$}=await import("./client-1.1.11-4fds5q8p.mjs"),{getOauthConfig:Y}=await import("./oauth-1.1.11-z19rt783.mjs"),{getOAuthHeaders:z}=await import("./api-1.1.11-pxj1yw19.mjs"),{default:G}=await import("./index-1.1.11-9pwqbn5r.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.11-pbwjnx30.mjs"),{getOrganizationUUID:$}=await import("./client-1.1.11-4fds5q8p.mjs"),{getOauthConfig:Y}=await import("./oauth-1.1.11-z19rt783.mjs"),{getOAuthHeaders:z}=await import("./api-1.1.11-pxj1yw19.mjs"),{default:G}=await import("./index-1.1.11-9pwqbn5r.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-1.1.11-pbwjnx30.mjs"),{getOrganizationUUID:Y}=await import("./client-1.1.11-4fds5q8p.mjs"),{getOauthConfig:z}=await import("./oauth-1.1.11-z19rt783.mjs"),{getOAuthHeaders:G}=await import("./api-1.1.11-pxj1yw19.mjs"),{default:L}=await import("./index-1.1.11-9pwqbn5r.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
2
- export{i as kf,r as lf,t as mf,o as nf,p as of};
@@ -1,4 +0,0 @@
1
- import{Vsa as Z}from"./cli-1.1.11-g0shs4yx.mjs";import{$sa as O,Ysa as Y}from"./cli-1.1.11-s5fsvj2a.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
4
- export{ye as Osa};
@@ -1,16 +0,0 @@
1
- import{n9 as P5,p9 as w7}from"./cli-1.1.11-c8yn2sy4.mjs";import{r9 as f,s9 as o8}from"./cli-1.1.11-3jw12y1k.mjs";import{C9 as a2,E9 as b7}from"./cli-1.1.11-cfd7wcsr.mjs";import{B_ as H0,C_ as H1,Ffa as B4,Hba as x2,Hea as c,Hfa as J4,Jga as k,Kfa as N5,Lda as P,Lfa as JZ,Mea as t2,N_ as v2,Nda as j5,Nea as S,Q_ as e8,Qda as N,Qea as D,Rga as t0,Wea as e1,Yba as B8,Zda as j0,b$ as P2,d$ as ZZ,fda as o1,gea as a4,iea as $Z,iga as l2,jea as S1,jfa as $0,kea as c7,lfa as Z4,lga as G4,mfa as H8,oda as G8,qfa as $4,r_ as f4,rga as s2,s_ as n,t_ as K5,tba as M1,u_ as D0,uba as m7,uga as L,v_ as C4,w_ as s5,xga as J0}from"./cli-1.1.11-yz3byxtx.mjs";import{$ha as T1,Pha as S0,Rha as h4}from"./cli-1.1.11-4x7gdf33.mjs";import{Cja as f2,Dja as s4,Eja as B0,Gja as H7,Hja as R7,Jja as U,Kja as h0}from"./cli-1.1.11-17j0yz1c.mjs";import{Lja as j,Oja as x5}from"./cli-1.1.11-nnxrj2y7.mjs";import{Aka as t5,Eka as A7,Oka as z,Qka as m0,Rka as Z0,ska as U2,wka as r8}from"./cli-1.1.11-1jp85542.mjs";import{mla as g,ola as x1,tla as j1}from"./cli-1.1.11-sph0eaqc.mjs";import{Bla as u,Dla as v5,Gla as l4,Jla as d,wla as N2,zla as K}from"./cli-1.1.11-8vmf6185.mjs";import{Aoa as r1,Apa as q1,Bpa as V1,Cpa as W1,Dpa as z1,Eoa as y4,Joa as y0,Koa as Z5,Ppa as z5,cpa as C,jna as Y0,jpa as I1,kna as D1,moa as d1,mra as Q0}from"./cli-1.1.11-9q076mg1.mjs";import{Lra as h,Mra as n0}from"./cli-1.1.11-7ns0vhby.mjs";import{gsa as v,ysa as Y5}from"./cli-1.1.11-yx7hmc5y.mjs";import{$sa as r,Xsa as _0,Zsa as c5,_sa as R}from"./cli-1.1.11-s5fsvj2a.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve: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 u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.11-5gttv5kf.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.11-es7vjyrm.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function aZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.11-5gttv5kf.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.11-es7vjyrm.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function F7(Z){return Z.startsWith("anthropic.")}function L7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function D7(Z){let $=L7(Z);for(let J of K7)if($.startsWith(`${J}.anthropic.`))return J;return}function oZ(Z,$){let J=D7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(F7(Z))return`${$}.${Z}`;return Z}var g2,rZ,K7;var c2=R(()=>{n0();o();d();t0();w7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),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 k(Y),Y}});rZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let 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 k($),null}});K7=["us","eu","apac","global"]});var O5,E5,_5,y5,h5,I5,T5,M5,S5,l0,s0,a0,U0,A5,f5,C5,v0,d2;var u5=R(()=>{O5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},E5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_5={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"},y5={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"},h5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},I5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},T5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},M5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},S5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},l0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},s0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},a0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},U0={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"},A5={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"},f5={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"},C5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},v0={haiku35:_5,haiku45:y5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:f5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:U0,fable5:A5},d2=Object.fromEntries(Object.entries(v0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var O0={};c5(O0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>P7,getCopilotDisplayName:()=>O7,getCatalogCopilotMaxOutputTokens:()=>y7,getCatalogCopilotContextWindow:()=>_7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>E7,_setCopilotCatalogForTesting:()=>h7});function P0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=P0();return Z!==null&&x0===Z}function N7(){if(n2)return;n2=!0,t2(()=>{let Z=P0();if(Z&&x0!==Z)i5()})}function d5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function U7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function v7(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:U7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),k7);try{let X=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},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=v7(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 i5(){N7();let Z=P0();if(!Z)return;if(e&&x0!==Z)e=null,x0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&P0()===Z)e=$,x0=Z}).finally(()=>{o0=null,m5=null})}function P7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function O7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function E7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function _7(Z){return e0(Z)?.model.limit.context}function y7(Z){return e0(Z)?.model.limit.output}function h7(Z){e=Z,x0=Z?P0():null}var k7=5000,e=null,x0=null,o0=null,m5=null,n2=!1;var E0=R(()=>{J0();b7();s2();$0();Z0();p5()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function z$(){return W()==="firstParty"}function I7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(E0(),_0(O0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function x$(Z){let $=L()?.transport??"anthropic";if(!T7.has($))return!1;if($==="github_copilot"&&I7(Z))return!1;return!0}function j$(){return W()}function B$(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var T7;var i=R(()=>{J0();T7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=v0[Q][$];return J}async function M7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=v0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=d2[Q];if(X&&Y)J[X]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function S7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return S7(),e2($5(W()));return e2(Z)}async function b$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();t0();u2();j0();c2();u5();i();Z1=Object.keys(v0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await M7();Z5(Z)}catch(Z){k(Z)}})});function N$(Z){return Z}function U$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function h$(){let $=D().oauthAccount?.accountUuid,J=I0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var n5=R(()=>{Y5();h0();o();$0();t0()});import{mkdirSync as f7,writeFileSync as C7}from"fs";function p7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(X5,{recursive:!0,mode:448}),C7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function X1(Z,$){try{let Q=t5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!x1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[Z];if(!q){let x=X1($,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=t5(),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),p7($,H,J),H}catch(x){z(`Failed to read ${J} from file descriptor ${V}: ${g(x)}`,{level:"error"});let G=X1($,J);return Y(G),G}}function q5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:u7,label:"OAuth token",getCached:q1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:g7,label:"API key",getCached:W1,setCached:z1})}var X5="/home/claude/.claude/remote",u7,g7,u$;var G1=R(()=>{Q0();Z0();d();j1();A7();u7=`${X5}/.oauth_token`,g7=`${X5}/.api_key`,u$=`${X5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=n();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function i$(Z){return Z?.name==="CredentialsProviderError"}function F1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",s$="effort-2025-11-24",a$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",r$="extended-cache-ttl-2025-04-11",o$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",_1="thinking-token-count-2026-05-13",y1="token-efficient-tools-2026-03-28",e$="afk-mode-2026-01-31",ZJ="advisor-tool-2026-03-01",o5,$J;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),$J=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function A1(){if(!I())return!1;return i7()===null}function d7(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 i7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&z5()&&!I1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=d7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function LJ(){let Z=B5(q0());return"opus"+(J2()&&!Z?"[1m]":"")}function DJ(Z){if(!I())return!1;if(!A1())return!1;if(!f1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function f1(Z){if(!I())return!1;let $=Z??A0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function n7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function NJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),j("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function UJ(){R0={status:"active"}}function vJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},j5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function l7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function OJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),j("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!l7(Z))j5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function s7(){return n7().status==="cooldown"}function EJ(Z,$){let J=I()&&A1()&&!!$&&f1(Z);if(J&&s7())return"cooldown";if(J)return"on";return"off"}async function a7(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await v.get($,{headers:J})).data}function yJ(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function hJ(){if(S1())return;if(!I())return;if(M0)return z("Fast mode prefetch in progress, returning in-flight promise"),M0;let Z=I0();if(!(w()?.accessToken&&X0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<r7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let X=w(),q=X?.accessToken&&X0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return a7(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(v.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await Q2(G),X=await Q();else throw V}else throw V}let q=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)j5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:X.enabled})),$2.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),j("tengu_org_penguin_mode_fetch_failed",{})}finally{M0=null}}return M0=Y(),M0}var KJ="Opus 5",R0,Z2=!1,C1,u1,bJ,kJ,g1,PJ,E,$2,_J,r7=30000,h1=0,M0=null;var p1=R(()=>{Y5();h0();T1();Q0();x5();o();m7();$0();Z0();d();w0();i();c7();j0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),bJ=C1.subscribe,kJ=u1.subscribe;g1=Y0(),PJ=g1.subscribe;E={status:"pending"},$2=Y0(),_J=$2.subscribe});function Q8(Z){for(let $ of J8)if($.pattern.test(Z))return $.cost;return}function X2(Z){if(I()&&Z)return i1;return t}function q2(Z){if(I()&&Z)return i1;return Y2[F(U0.firstParty)]??t}function Y8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function X8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return X2(Y)}if(J===F(U0.firstParty))return q2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=Q8(Z);if(Y)return Y;return q8(Z,J),Y2[b(A0())]??$8}return Q}function q8(Z,$){j("tengu_unknown_model_cost",{model:Z,shortName:$}),d1()}function V8(Z,$){let J=X8(Z,$);return Y8(J,$)}function CJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return V8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var F0,m1,t,o7,i1,e7,Z8,$8,J8,Y2;var n1=R(()=>{x5();Q0();p1();u5();w0();F0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},t={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},o7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},e7={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},Z8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},$8=t,J8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];Y2={[F(_5.firstParty)]:e7,[F(y5.firstParty)]:Z8,[F(E5.firstParty)]:F0,[F(O5.firstParty)]:F0,[F(h5.firstParty)]:F0,[F(I5.firstParty)]:F0,[F(f5.firstParty)]:F0,[F(C5.firstParty)]:F0,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:t,[F(l0.firstParty)]:t,[F(s0.firstParty)]:t,[F(a0.firstParty)]:t,[F(U0.firstParty)]:t,[F(A5.firstParty)]:o7}});function p(Z){return W8.includes(Z)}function K0(Z){return z8.includes(Z)}var W8,z8;var W2=R(()=>{W8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];z8=["sonnet","opus","haiku"]});function x8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function t1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function j8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(t1(J,$))return!0;if(!$.startsWith("claude-")&&t1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(K0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),X=J.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!K0(Y)||!l1(Y,X))return!0}for(let q of X)if(K0(q)&&!l1(q,X)&&x8(Y,q))return!0;if(p(Y)){let q=T(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!K0(q)&&p(q)){if(T(q).toLowerCase()===Y)return!0}for(let q of X)if(!K0(q)&&!p(q)){if(j8(Y,q))return!0}return!1}var a1=R(()=>{j0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function z9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function x9(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function z2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),X=L0()||Q||void 0,q=e1(),V=G5(q.activeModelForProject);if(V){let x=$4()?.id,G=q.activeModelForProjectProfileId;Z=G===void 0||G===x?V:X}else Z=X}if(Z&&!s1(Z))return;return Z}function j9(){let Z=z2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function R8(){return q0()}function q0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();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 f0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();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=L0();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 B9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(z2()==="opusplan"&&$==="plan"&&!Q)return q0();if(z2()==="haiku"&&$==="plan")return f0();return J}function A0(){let Z=L0();if(W()==="github"){let $=N()||{};return G5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(H5()||R5()){let $=q0();return $+(J2()&&!B5($)?"[1m]":"")}return f0()}function Y4(){return T(A0())}function F(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 b(Z){return F(J5(Z))}function w8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?F8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function G9(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return q4(T(Z))}function H9(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${x2})`:""} ${$}`}function F8(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${x2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(_()&&A()===null)return!1;return!0}function R9(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(p(Z))return o1(Z);return q4(Z)}function X4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(E0(),_0(O0));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 q4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function w9(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return f0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let X=(q)=>Q&&!B5(q)?q+"[1m]":q;switch(Y){case"opusplan":return X(f0());case"sonnet":return X(f0());case"haiku":return X(Q4());case"opus":return X(q0());case"best":return R8();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"&&L8(Y)&&D8())return q0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function F9(Z,$){if(l(Z)||!l($))return Z;if(j2(T(Z)))return Z+"[1m]";return Z}function L8(Z){return K8.includes(Z)}function D8(){return!K(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function K9(Z){if(Z===null){if(_())return`Default (${w8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function L9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(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 D9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function b9(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var K8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();H8();Q5();n1();j0();i();B8();a1();W2();G8();p5();K8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function N9(){}var V4=()=>{};function U8(Z,$={}){if($.isPro??(N8.test(Z)||W4.has(Z)))return!1;if(b8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(k8);return Q?Number.parseFloat(Q[1])>5.4:!1}function v9(){return w5.filter((Z)=>U8(Z.id,{isPro:Z.isPro}))}var w5,b8,W4,k8,N8,z4,x4;var j4=R(()=>{w5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],b8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),k8=/^gpt-(\d+\.\d+)/,N8=/-pro$/;z4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),x4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>M8,getDiscoveredContextWindow:()=>v8,discoverOpenAICompatibleModelOptions:()=>F4});function v8(Z){return R4.get(Z)}function P8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function O8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function E8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(O8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function _8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(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 y8(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 h8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function I8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),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)R4.set(V,G);let H=G?` · ${h8(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 T8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=P8(),$=E8(Z),J=await I8(_8(Z),$);if(J.length>0)return J;let Q=y8(Z);if(Q)return T8(Q,$);return[]}function M8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),_0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(S8,f8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(E0(),_0(O0));return J(Z)}catch{return}}function N4(Z){let $=b4(A8,C8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(E0(),_0(O0));return J(Z)}catch{return}}var S8,A8,f8,C8;var U4=R(()=>{J0();j4();S8={"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,...z4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},A8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...x4,"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},f8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),C8=(()=>{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 v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function j2(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function n9(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),u8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(T0)&&j2(Z))return 1e6;if(m8(Z))return 1e6;return R2}function m8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function t9(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 l9(Z){let $,J;if(v4()){let X=N4(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=g8,J=p8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,u8,c9=20000,g8=32000,p8=64000,d9=8000,i9=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();u8=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var c8,P4;var O4=R(()=>{n0();i();c8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of c8){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 d8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function B3(Z){if(!Z||Z.length===0)return;if(_()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=d8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function i8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function n8(Z){let $=b(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function t8(Z){let $=b(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function G3(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function H3(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function R3(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function w3(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),l8.cache?.clear?.()}var I4,w2,T4,l8;var S4=R(()=>{n0();T1();Q0();e5();h0();o();B2();d();w0();O4();i();j0();I4=[T0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(W5);if(_())$.push(B0);if(l(Z))$.push(T0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(_1);let X=n8(Z);if(_4()&&X)$.push(N1);let q=h4("tengu_tool_pear"),V=!q&&(K(process.env.CLAUDE_CODE_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&t8(Z)&&q)$.push(U1);if(Y&&V)$.push(y1);if(Q==="vertex"&&i8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((x)=>x.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),l8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as s8}from"child_process";function A4(Z){return new Promise(($)=>{s8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:a8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function b3(){if(process.platform!=="darwin"||F5||u())return;let Z=A4(n(f4)),$=A4(n());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function k3(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var a8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let 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 p4=()=>{};function v3(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var gZ={};c5(gZ,{validateForceLoginOrg:()=>uZ,saveOAuthTokensIfNeeded:()=>V7,saveApiKey:()=>S2,removeApiKey:()=>PZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>X7,refreshAwsAuth:()=>Q7,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>kZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>NZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>jZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>IZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>yZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>j7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>TZ,isCustomApiKeyApproved:()=>vZ,isConsumerSubscriber:()=>fZ,isClaudeAISubscriber:()=>_,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>_2,isAnthropicAuthEnabled:()=>N0,is1PApiCustomer:()=>_Z,hasProfileScope:()=>X0,hasOpusAccess:()=>hZ,hasAnthropicApiKeyAuth:()=>VZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>A,getSubscriptionName:()=>z7,getRateLimitTier:()=>W7,getOtelHeadersFromHelper:()=>SZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>WZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>J7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>I0,getAccountInformation:()=>CZ,clearOAuthTokenCache:()=>A2,clearGcpCredentialsCache:()=>bZ,clearAwsCredentialsCache:()=>wZ,clearApiKeyHelperCache:()=>xZ,checkGcpCredentialsValid:()=>Y7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>$7});import{exec as e4}from"child_process";import{mkdir as QZ,stat as YZ}from"fs/promises";import{join as XZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function N0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||X&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(q5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function I0(){let{key:Z}=c0();return Z}function VZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let q=L();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(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=l4()?void 0:$;if(z5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let q=l5();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!k5()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let X=U5();if(X)return X;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function Z7(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function _2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y2(){return(N()||{}).awsCredentialExport}function h2(){let Z=y2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function $7(){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 qZ}function WZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function J7(Z){if(!s())return null;let $=$7();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!m)m={promise:i4(Z,!1,b0),startedAt:null};return y.value}if(m)return m.promise;return m={promise:i4(Z,!0,b0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await zZ(Z);if(J!==b0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==b0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(f.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===b0)m=null}}async function zZ(Z){let $=s();if(!$)return null;if(Z7()){if(!c()&&!Z){let X=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",X),j("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await H0($,{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 b2(){return y?.value??null}function xZ(){b0++,y=null,m=null}function jZ(Z){if(Z7()&&!c())return;J7(Z)}async function GZ(){let Z=E2();if(!Z)return!1;if(_2()){if(!c()&&!C()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsAuthRefresh invoked before trust check",J),j("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return Q7(Z)}}function Q7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:HZ});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"?f.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):f.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function RZ(){let Z=y2();if(!Z)return null;if(h2()){if(!c()&&!C()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsCredentialExport invoked before trust check",J),j("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=U2($.stdout.trim());if(!F1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=f.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 wZ(){z0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Y7(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=L2(FZ).then(()=>{throw new B7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function LZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("gcpAuthRefresh invoked before trust check",J),j("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Y7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return X7(Z)}function X7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:DZ});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"?f.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):f.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function bZ(){M2.cache.clear()}function kZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function NZ(){let Z=E2(),$=y2();if(!Z&&!$)return;if(_2()||h2()){if(!c()&&!C())return}z0(),B()}function UZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!UZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q7();let $=!1;if(process.platform==="darwin")try{let Q=n(),Y=K5(),X=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
- `;await H0("security",["-i"],{input:q,reject:!1}),j("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){k(Q),j("tengu_api_key_keychain_error",{error:g(Q)}),j("tengu_api_key_saved_to_config",{})}else j("tengu_api_key_saved_to_config",{});let J=V5(Z);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U5.cache.clear?.(),K2()}function vZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function PZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function V7(Z){if(!k0(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 $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let 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?.(),M4(),c4(),X}catch(Q){return k(Q),j("tengu_oauth_tokens_save_exception",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function A2(){w.cache?.clear?.(),D0()}async function OZ(){try{let{mtimeMs:Z}=await YZ(XZ(N2(),".credentials.json"));if(Z!==n4)n4=Z,A2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=EZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function EZ(Z){A2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return j("tengu_oauth_401_recovered_from_keychain",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||q5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await OZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),D0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let X=N2();await QZ(X,{recursive:!0});let q;try{j("tengu_oauth_token_refresh_lock_acquiring",{}),q=await a4(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 L2(1000+Math.random()*1000),k2(Z+1,$);return j("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return k(V),j("tengu_oauth_token_refresh_lock_error",{error:g(V)}),!1}try{w.cache?.clear?.(),D0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return j("tengu_oauth_token_refresh_race_resolved",{}),!1;j("tengu_oauth_token_refresh_starting",{});let x=await r4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return V7(x),w.cache?.clear?.(),D0(),!0}catch(V){k(V),w.cache?.clear?.(),D0();let x=await p0();if(x&&!g0(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 _(){if(!N0())return!1;return k0(w()?.scopes)}function X0(){return w()?.scopes?.includes(s4)??!1}function _Z(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(_())return!1;return!0}function b5(){return N0()?D().oauthAccount:void 0}function yZ(){let $=b5()?.billingType;if(!_()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function hZ(){let Z=A();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function A(){if(Q1())return J1();if(!N0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return A()==="max"}function IZ(){return A()==="team"}function R5(){return A()==="team"&&W7()==="default_claude_max_5x"}function TZ(){return A()==="enterprise"}function G2(){return A()==="pro"}function W7(){if(!N0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function z7(){switch(A()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function x7(){return(N()||{}).otelHeadersHelper}function j7(){let Z=x7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function SZ(){let Z=x7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||MZ.toString());if(L5&&Date.now()-t4<$)return L5;if(j7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return L5=Q,t4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function AZ(Z){return Z==="max"||Z==="pro"}function fZ(){let Z=A();return _()&&Z!==null&&AZ(Z)}function CZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(_())J.subscription=z7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let q=b5()?.organizationName;if(q)J.organization=q}let X=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function uZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!N0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y)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 qZ=300000,y=null,m=null,b0=0,BZ=3600000,HZ=180000,z0,FZ=5000,KZ=3600000,DZ=180000,M2,U5,w,n4=0,D2,u0=null,L5=null,t4=0,MZ=1740000,B7;var o=R(()=>{o8();H1();n0();h0();x5();Q5();i();Q0();J0();Y1();o4();n5();G1();w1();L1();b1();S4();$0();Z0();d();j1();e8();$Z();t0();ZZ();JZ();g4();s5();j0();p4();r8();d4();z0=P2(async()=>{let Z=await GZ(),$=await RZ();if(Z||$)await K1();return $},BZ);M2=P2(async()=>{return await LZ()},KZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=n();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=q5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;B7=class B7 extends Error{}});function k0(Z){return Boolean(Z?.includes(f2))}function pZ(Z){return Z?.split(" ").filter(Boolean)??[]}function RQ({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 W0=X?[f2]:R7;if(H.searchParams.append("scope",W0.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 wQ(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 v.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 r4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:H7).join(" ")};try{let Q=await v.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:q=Z,expires_in:V}=Y,x=Date.now()+V*1000,G=pZ(Y.scope);j("tengu_oauth_token_refresh_success",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await mZ(X);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:x,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw j("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function FQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),j("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function KQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),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 g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function mZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return j("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function LQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!X0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function DQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!D().oauthAccount)G7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!_()||!X0())return!1;let X=w();if(X?.accessToken){let q=await G0(X.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return G7({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 G7({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;S((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 o4=R(()=>{Y5();x5();h0();o();$0();Z0();n5()});
16
- export{b3 as O4,k3 as P4,g4 as Q4,C2 as R4,u2 as S4,aZ as T4,rZ as U4,F7 as V4,D7 as W4,oZ as X4,c2 as Y4,l0 as Z4,U0 as _4,v0 as $4,u5 as a5,i5 as b5,P7 as c5,E0 as d5,W as e5,z$ as f5,I7 as g5,x$ as h5,j$ as i5,B$ as j5,i as k5,B as l5,b$ as m5,Q5 as n5,N$ as o5,U$ as p5,Y1 as q5,h$ as r5,G0 as s5,n5 as t5,k0 as u5,pZ as v5,RQ as w5,wQ as x5,r4 as y5,FQ as z5,KQ as A5,g0 as B5,mZ as C5,LQ as D5,DQ as E5,G7 as F5,o4 as G5,u$ as H5,p7 as I5,X1 as J5,G1 as K5,V5 as L5,w1 as M5,i$ as N5,L1 as O5,M as P5,b1 as Q5,T0 as R5,N1 as S5,U1 as T5,s$ as U5,a$ as V5,O1 as W5,r$ as X5,o$ as Y5,E1 as Z5,e$ as _5,ZJ as $5,$J as a6,e5 as b6,I as c6,A1 as d6,i7 as e6,KJ as f6,LJ as g6,DJ as h6,f1 as i6,bJ as j6,kJ as k6,n7 as l6,NJ as m6,UJ as n6,vJ as o6,PJ as p6,OJ as q6,s7 as r6,EJ as s6,_J as t6,yJ as u6,hJ as v6,p1 as w6,F0 as x6,o7 as y6,e7 as z6,Z8 as A6,X2 as B6,V8 as C6,CJ as D6,V2 as E6,n1 as F6,W8 as G6,W2 as H6,s1 as I6,a1 as J6,z9 as K6,x9 as L6,B5 as M6,z2 as N6,j9 as O6,R8 as P6,q0 as Q6,f0 as R6,Q4 as S6,B9 as T6,A0 as U6,Y4 as V6,F as W6,b as X6,w8 as Y6,G9 as Z6,H9 as _6,F8 as $6,J2 as a7,R9 as b7,X4 as c7,q4 as d7,w9 as e7,T as f7,F9 as g7,D8 as h7,K9 as i7,L9 as j7,D9 as k7,b9 as l7,w0 as m7,N9 as n7,V4 as o7,v9 as p7,j4 as q7,F4 as r7,M8 as s7,L4 as t7,c9 as u7,d9 as v7,i9 as w7,V0 as x7,l as y7,n9 as z7,m8 as A7,t9 as B7,l9 as C7,B2 as D7,P4 as E7,O4 as F7,B3 as G7,t8 as H7,G3 as I7,H3 as J7,_4 as K7,R3 as L7,T4 as M7,l8 as N7,w3 as O7,M4 as P7,S4 as Q7,L2 as R7,p4 as S7,v3 as T7,c4 as U7,d4 as V7,N0 as W7,O2 as X7,I0 as Y7,VZ as Z7,c0 as _7,s as $7,_2 as a8,h2 as b8,$7 as c8,WZ as d8,J7 as e8,b2 as f8,xZ as g8,jZ as h8,Q7 as i8,z0 as j8,wZ as k8,T2 as l8,Y7 as m8,X7 as n8,M2 as o8,bZ as p8,kZ as q8,NZ as r8,U5 as s8,S2 as t8,vZ as u8,PZ as v8,V7 as w8,w as x8,A2 as y8,Q2 as z8,p0 as A8,d0 as B8,_ as C8,X0 as D8,_Z as E8,b5 as F8,yZ as G8,hZ as H8,A as I8,H5 as J8,IZ as K8,R5 as L8,TZ as M8,G2 as N8,W7 as O8,z7 as P8,k5 as Q8,j7 as R8,SZ as S8,fZ as T8,CZ as U8,uZ as V8,gZ as W8,o as X8};
@@ -1,3 +0,0 @@
1
- import{$0 as s,DZ as t,H1 as o,MZ as p,_0 as j,a1 as F,c1 as V}from"./cli-1.1.11-23hz9e80.mjs";import{k4 as w,l4 as g,m4 as y}from"./cli-1.1.11-dzq0mt2q.mjs";import{D_ as _,E_ as n,x_ as $,y_ as a}from"./cli-1.1.11-yz3byxtx.mjs";import{Wsa as i,_sa as v}from"./cli-1.1.11-s5fsvj2a.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
- `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
- export{Hq as lg,Mq as mg};