@claudiolabs/claudin 1.1.32 → 1.1.33

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 (836) hide show
  1. package/dist/chunks/App-1.1.33-y76d67dw.mjs +1 -0
  2. package/dist/chunks/ApproveApiKey-1.1.33-fz6kxvwx.mjs +1 -0
  3. package/dist/chunks/AutoModeOptInDialog-1.1.33-99ykhjpz.mjs +1 -0
  4. package/dist/chunks/BypassPermissionsModeDialog-1.1.33-tzr7atf1.mjs +1 -0
  5. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.33-3ehzc9bn.mjs +1 -0
  6. package/dist/chunks/ConsoleOAuthFlow-1.1.33-mptzgfxf.mjs +1 -0
  7. package/dist/chunks/DiffDialog-1.1.33-anvv0w3b.mjs +6 -0
  8. package/dist/chunks/Doctor-1.1.33-8m3ek5ex.mjs +1 -0
  9. package/dist/chunks/ExplorerDialog-1.1.33-70aphca6.mjs +6 -0
  10. package/dist/chunks/ITermBackend-1.1.33-0syshawj.mjs +1 -0
  11. package/dist/chunks/InvalidConfigDialog-1.1.33-40sq04vm.mjs +1 -0
  12. package/dist/chunks/InvalidSettingsDialog-1.1.33-tgp186pw.mjs +1 -0
  13. package/dist/chunks/MigrationDialog-1.1.33-9tcy3d33.mjs +1 -0
  14. package/dist/chunks/Onboarding-1.1.33-zjx8xhqz.mjs +1 -0
  15. package/dist/chunks/ProviderManager-1.1.33-zm2tkf0s.mjs +1 -0
  16. package/dist/chunks/REPL-1.1.33-gh2kz8dk.mjs +1 -0
  17. package/dist/chunks/ResumeConversation-1.1.33-v284310j.mjs +1 -0
  18. package/dist/chunks/TeleportProgress-1.1.33-5dqj1qp9.mjs +1 -0
  19. package/dist/chunks/TeleportRepoMismatchDialog-1.1.33-q3p5maex.mjs +1 -0
  20. package/dist/chunks/TeleportResumeWrapper-1.1.33-dhrpj9a6.mjs +1 -0
  21. package/dist/chunks/TmuxBackend-1.1.33-gph2cfsr.mjs +9 -0
  22. package/dist/chunks/ToolSearchTool-1.1.33-qv8tchk3.mjs +1 -0
  23. package/dist/chunks/TrustDialog-1.1.33-bq45cvv6.mjs +1 -0
  24. package/dist/chunks/activeProvider-1.1.33-v055y8f3.mjs +1 -0
  25. package/dist/chunks/add-dir-1.1.33-e811cqdx.mjs +1 -0
  26. package/dist/chunks/agentTypes-1.1.33-t5nvprgp.mjs +1 -0
  27. package/dist/chunks/agents-1.1.33-mbve4trn.mjs +3 -0
  28. package/dist/chunks/agents-1.1.33-nhfb2axy.mjs +110 -0
  29. package/dist/chunks/api-1.1.33-2sg5ga0j.mjs +1 -0
  30. package/dist/chunks/asciicast-1.1.33-xr41erq2.mjs +1 -0
  31. package/dist/chunks/auth-1.1.33-k778a810.mjs +1 -0
  32. package/dist/chunks/auth-1.1.33-xappxyn1.mjs +1 -0
  33. package/dist/chunks/autoMode-1.1.33-wb6nwcf3.mjs +52 -0
  34. package/dist/chunks/autoModeSetup-1.1.33-43tmanjr.mjs +44 -0
  35. package/dist/chunks/autoUpdater-1.1.33-py6amejh.mjs +1 -0
  36. package/dist/chunks/backgroundHousekeeping-1.1.33-zn01axaz.mjs +1 -0
  37. package/dist/chunks/branch-1.1.33-gthrar82.mjs +4 -0
  38. package/dist/chunks/bridge-1.1.33-9s3v1h77.mjs +2 -0
  39. package/dist/chunks/bridgeConfig-1.1.33-183x874k.mjs +1 -0
  40. package/dist/chunks/bridgeEnabled-1.1.33-42yktg6p.mjs +1 -0
  41. package/dist/chunks/bridgeMain-1.1.33-62ytf81q.mjs +88 -0
  42. package/dist/chunks/bridgePointer-1.1.33-weh8egz5.mjs +1 -0
  43. package/dist/chunks/btw-1.1.33-xhjhwhex.mjs +1 -0
  44. package/dist/chunks/buddy-1.1.33-6e4bcghj.mjs +3 -0
  45. package/dist/chunks/cache-probe-1.1.33-65t8nv3y.mjs +21 -0
  46. package/dist/chunks/cacheStats-1.1.33-anfjhga9.mjs +4 -0
  47. package/dist/chunks/caches-1.1.33-ehvfr1c6.mjs +1 -0
  48. package/dist/chunks/cd-1.1.33-xbpsa40s.mjs +3 -0
  49. package/dist/chunks/claudeDesktop-1.1.33-en5r91rv.mjs +1 -0
  50. package/dist/chunks/clear-1.1.33-90jr5w5d.mjs +1 -0
  51. package/dist/chunks/clearTerminal-1.1.33-4ts9jf6w.mjs +1 -0
  52. package/dist/chunks/cli-1.1.33-05291q1a.mjs +2 -0
  53. package/dist/chunks/cli-1.1.33-0bk8mrfh.mjs +15 -0
  54. package/dist/chunks/cli-1.1.33-0ktq50cd.mjs +133 -0
  55. package/dist/chunks/cli-1.1.33-0kvxjey5.mjs +24 -0
  56. package/dist/chunks/cli-1.1.33-0sckqj39.mjs +2 -0
  57. package/dist/chunks/cli-1.1.33-1fpzq80d.mjs +2 -0
  58. package/dist/chunks/cli-1.1.33-1mfasbf1.mjs +2 -0
  59. package/dist/chunks/cli-1.1.33-20v60hvd.mjs +203 -0
  60. package/dist/chunks/cli-1.1.33-20zqrzzq.mjs +2 -0
  61. package/dist/chunks/cli-1.1.33-22addsh7.mjs +4 -0
  62. package/dist/chunks/cli-1.1.33-231zj4yg.mjs +2 -0
  63. package/dist/chunks/cli-1.1.33-241y9eee.mjs +5 -0
  64. package/dist/chunks/cli-1.1.33-283f43sy.mjs +2 -0
  65. package/dist/chunks/cli-1.1.33-2chamq3v.mjs +2 -0
  66. package/dist/chunks/cli-1.1.33-2xqjkz7r.mjs +2 -0
  67. package/dist/chunks/cli-1.1.33-303jm377.mjs +2 -0
  68. package/dist/chunks/cli-1.1.33-30vd7w1w.mjs +10 -0
  69. package/dist/chunks/cli-1.1.33-39q98nwa.mjs +2 -0
  70. package/dist/chunks/cli-1.1.33-3by7vn1v.mjs +2 -0
  71. package/dist/chunks/cli-1.1.33-3de2dtv6.mjs +2 -0
  72. package/dist/chunks/cli-1.1.33-3kk4en4s.mjs +2 -0
  73. package/dist/chunks/cli-1.1.33-3yjvh7fr.mjs +2 -0
  74. package/dist/chunks/cli-1.1.33-46bkj0rz.mjs +5 -0
  75. package/dist/chunks/cli-1.1.33-4ghpq4rw.mjs +24 -0
  76. package/dist/chunks/cli-1.1.33-4t7b2799.mjs +2 -0
  77. package/dist/chunks/cli-1.1.33-525zf497.mjs +16 -0
  78. package/dist/chunks/cli-1.1.33-56fen5jd.mjs +4 -0
  79. package/dist/chunks/cli-1.1.33-5c19q87v.mjs +2 -0
  80. package/dist/chunks/cli-1.1.33-5ehc9tkd.mjs +2 -0
  81. package/dist/chunks/cli-1.1.33-5fc0dkzm.mjs +2 -0
  82. package/dist/chunks/cli-1.1.33-5ff9vmz9.mjs +3 -0
  83. package/dist/chunks/cli-1.1.33-5pa215hx.mjs +2 -0
  84. package/dist/chunks/cli-1.1.33-6fq5cn5g.mjs +17 -0
  85. package/dist/chunks/cli-1.1.33-726gr74y.mjs +2 -0
  86. package/dist/chunks/cli-1.1.33-7b2yeb1x.mjs +2 -0
  87. package/dist/chunks/cli-1.1.33-7qjhgket.mjs +2 -0
  88. package/dist/chunks/cli-1.1.33-7qr8n3qn.mjs +2 -0
  89. package/dist/chunks/cli-1.1.33-7rd596wq.mjs +2 -0
  90. package/dist/chunks/cli-1.1.33-7shybbdj.mjs +2 -0
  91. package/dist/chunks/cli-1.1.33-7sm3r61g.mjs +50 -0
  92. package/dist/chunks/cli-1.1.33-87p06j57.mjs +2 -0
  93. package/dist/chunks/cli-1.1.33-8dxvf995.mjs +2 -0
  94. package/dist/chunks/cli-1.1.33-8esj8tkg.mjs +18 -0
  95. package/dist/chunks/cli-1.1.33-8p3h818h.mjs +2 -0
  96. package/dist/chunks/cli-1.1.33-8q8sfbe6.mjs +2 -0
  97. package/dist/chunks/cli-1.1.33-8xyzgp13.mjs +2 -0
  98. package/dist/chunks/cli-1.1.33-90w26xxw.mjs +4 -0
  99. package/dist/chunks/cli-1.1.33-94s66kd2.mjs +2 -0
  100. package/dist/chunks/cli-1.1.33-9dt8xzkt.mjs +2 -0
  101. package/dist/chunks/cli-1.1.33-9fetbt6a.mjs +2 -0
  102. package/dist/chunks/cli-1.1.33-9z2gy96d.mjs +2 -0
  103. package/dist/chunks/cli-1.1.33-9zba2a1d.mjs +60 -0
  104. package/dist/chunks/cli-1.1.33-a49fwy5a.mjs +3 -0
  105. package/dist/chunks/cli-1.1.33-a6dvne78.mjs +2 -0
  106. package/dist/chunks/cli-1.1.33-ad43mr1x.mjs +2 -0
  107. package/dist/chunks/cli-1.1.33-ad75ezdj.mjs +2 -0
  108. package/dist/chunks/cli-1.1.33-afsw641c.mjs +2 -0
  109. package/dist/chunks/cli-1.1.33-aj5dy49h.mjs +3 -0
  110. package/dist/chunks/cli-1.1.33-apx2xgzn.mjs +11 -0
  111. package/dist/chunks/cli-1.1.33-bczwyjaq.mjs +2 -0
  112. package/dist/chunks/cli-1.1.33-bfx6z02g.mjs +2 -0
  113. package/dist/chunks/cli-1.1.33-bh8452tq.mjs +2 -0
  114. package/dist/chunks/cli-1.1.33-btd9w5q2.mjs +2 -0
  115. package/dist/chunks/cli-1.1.33-bxw3sz3d.mjs +2 -0
  116. package/dist/chunks/cli-1.1.33-c14msjsc.mjs +2 -0
  117. package/dist/chunks/cli-1.1.33-c37dxjja.mjs +2 -0
  118. package/dist/chunks/cli-1.1.33-c45mt1yq.mjs +2 -0
  119. package/dist/chunks/cli-1.1.33-c5j1t4gd.mjs +2 -0
  120. package/dist/chunks/cli-1.1.33-cdzhbn5g.mjs +15 -0
  121. package/dist/chunks/cli-1.1.33-cfj1bzen.mjs +2 -0
  122. package/dist/chunks/cli-1.1.33-cj2t55an.mjs +2 -0
  123. package/dist/chunks/cli-1.1.33-cjfrq2jz.mjs +4 -0
  124. package/dist/chunks/cli-1.1.33-czpahv90.mjs +25 -0
  125. package/dist/chunks/cli-1.1.33-czrp8ff2.mjs +2 -0
  126. package/dist/chunks/cli-1.1.33-d2jds1x5.mjs +4 -0
  127. package/dist/chunks/cli-1.1.33-d9fea5m8.mjs +2 -0
  128. package/dist/chunks/cli-1.1.33-das1k5jq.mjs +3 -0
  129. package/dist/chunks/cli-1.1.33-dd7gk6d2.mjs +5 -0
  130. package/dist/chunks/cli-1.1.33-df8tggjt.mjs +2 -0
  131. package/dist/chunks/cli-1.1.33-dfb8xrtp.mjs +2 -0
  132. package/dist/chunks/cli-1.1.33-dfbvd02g.mjs +3 -0
  133. package/dist/chunks/cli-1.1.33-dm8nxxnv.mjs +2 -0
  134. package/dist/chunks/cli-1.1.33-dp41gds0.mjs +2 -0
  135. package/dist/chunks/cli-1.1.33-dv29f6yk.mjs +2 -0
  136. package/dist/chunks/cli-1.1.33-e2jx0b65.mjs +2 -0
  137. package/dist/chunks/cli-1.1.33-e4gbaaq5.mjs +3 -0
  138. package/dist/chunks/cli-1.1.33-e87tvy6n.mjs +2 -0
  139. package/dist/chunks/cli-1.1.33-edgxaxbt.mjs +10 -0
  140. package/dist/chunks/cli-1.1.33-effqmrgb.mjs +2 -0
  141. package/dist/chunks/cli-1.1.33-evp1q65w.mjs +2 -0
  142. package/dist/chunks/cli-1.1.33-ezzc0e6x.mjs +2 -0
  143. package/dist/chunks/cli-1.1.33-f0vf76a6.mjs +26 -0
  144. package/dist/chunks/cli-1.1.33-f4vhy9zk.mjs +2 -0
  145. package/dist/chunks/cli-1.1.33-f83qf2zv.mjs +63 -0
  146. package/dist/chunks/cli-1.1.33-fcfv2vn6.mjs +2 -0
  147. package/dist/chunks/cli-1.1.33-g3wvn6f8.mjs +2 -0
  148. package/dist/chunks/cli-1.1.33-gbjym0yt.mjs +6 -0
  149. package/dist/chunks/cli-1.1.33-gfehnxj8.mjs +2 -0
  150. package/dist/chunks/cli-1.1.33-ggk9m978.mjs +7 -0
  151. package/dist/chunks/cli-1.1.33-ghcxb1ce.mjs +34 -0
  152. package/dist/chunks/cli-1.1.33-gnejtk17.mjs +7 -0
  153. package/dist/chunks/cli-1.1.33-gpp6mbxj.mjs +17 -0
  154. package/dist/chunks/cli-1.1.33-h0mx2ccc.mjs +2 -0
  155. package/dist/chunks/cli-1.1.33-h27b2an0.mjs +2 -0
  156. package/dist/chunks/cli-1.1.33-h75frpfe.mjs +2 -0
  157. package/dist/chunks/cli-1.1.33-heys42qe.mjs +9 -0
  158. package/dist/chunks/cli-1.1.33-hfkfz9g9.mjs +2 -0
  159. package/dist/chunks/cli-1.1.33-hwmqqtqr.mjs +45 -0
  160. package/dist/chunks/cli-1.1.33-j5q2mpwf.mjs +2 -0
  161. package/dist/chunks/cli-1.1.33-j6ep4mfm.mjs +6 -0
  162. package/dist/chunks/cli-1.1.33-j75f13gr.mjs +2 -0
  163. package/dist/chunks/cli-1.1.33-j8ajj3nv.mjs +2 -0
  164. package/dist/chunks/cli-1.1.33-jdtfdqvz.mjs +2 -0
  165. package/dist/chunks/cli-1.1.33-jp2qs3mr.mjs +2 -0
  166. package/dist/chunks/cli-1.1.33-jsyd53zn.mjs +2 -0
  167. package/dist/chunks/cli-1.1.33-jww2z5yy.mjs +2 -0
  168. package/dist/chunks/cli-1.1.33-k1vhqgx4.mjs +2 -0
  169. package/dist/chunks/cli-1.1.33-k466m68a.mjs +2 -0
  170. package/dist/chunks/cli-1.1.33-k51bffb8.mjs +2 -0
  171. package/dist/chunks/cli-1.1.33-kdbb1eq4.mjs +2 -0
  172. package/dist/chunks/cli-1.1.33-kg221c89.mjs +2 -0
  173. package/dist/chunks/cli-1.1.33-kqsskxv0.mjs +133 -0
  174. package/dist/chunks/cli-1.1.33-kth7ttsa.mjs +4 -0
  175. package/dist/chunks/cli-1.1.33-kty1kjfd.mjs +2 -0
  176. package/dist/chunks/cli-1.1.33-kx980gfw.mjs +2 -0
  177. package/dist/chunks/cli-1.1.33-kxjb58yw.mjs +2 -0
  178. package/dist/chunks/cli-1.1.33-m06xge1a.mjs +2 -0
  179. package/dist/chunks/cli-1.1.33-m08stm17.mjs +2 -0
  180. package/dist/chunks/cli-1.1.33-m402nk5n.mjs +2 -0
  181. package/dist/chunks/cli-1.1.33-mg60nkfe.mjs +2 -0
  182. package/dist/chunks/cli-1.1.33-mgmqjt4t.mjs +2 -0
  183. package/dist/chunks/cli-1.1.33-mhph00kg.mjs +24 -0
  184. package/dist/chunks/cli-1.1.33-mkzxq2c9.mjs +2 -0
  185. package/dist/chunks/cli-1.1.33-mm3hdty7.mjs +2 -0
  186. package/dist/chunks/cli-1.1.33-n2d1txyn.mjs +4 -0
  187. package/dist/chunks/cli-1.1.33-n55k105y.mjs +2 -0
  188. package/dist/chunks/cli-1.1.33-n7rpkhs4.mjs +2 -0
  189. package/dist/chunks/cli-1.1.33-nd6tv1an.mjs +15 -0
  190. package/dist/chunks/cli-1.1.33-ndste4rf.mjs +39 -0
  191. package/dist/chunks/cli-1.1.33-nq2hxcp4.mjs +9 -0
  192. package/dist/chunks/cli-1.1.33-nvfshp5c.mjs +6 -0
  193. package/dist/chunks/cli-1.1.33-p0fb1k1s.mjs +7 -0
  194. package/dist/chunks/cli-1.1.33-pcsrkgrn.mjs +8 -0
  195. package/dist/chunks/cli-1.1.33-pw7bmns5.mjs +42 -0
  196. package/dist/chunks/cli-1.1.33-q8hq263y.mjs +2 -0
  197. package/dist/chunks/cli-1.1.33-qr675sx2.mjs +2 -0
  198. package/dist/chunks/cli-1.1.33-qss1gs3e.mjs +2 -0
  199. package/dist/chunks/cli-1.1.33-ra054vbq.mjs +2 -0
  200. package/dist/chunks/cli-1.1.33-raynjbkq.mjs +2 -0
  201. package/dist/chunks/cli-1.1.33-rr2q4wq6.mjs +2 -0
  202. package/dist/chunks/cli-1.1.33-rr5sxpa0.mjs +2 -0
  203. package/dist/chunks/cli-1.1.33-rrhe6g9q.mjs +2 -0
  204. package/dist/chunks/cli-1.1.33-rrvgm0jd.mjs +2 -0
  205. package/dist/chunks/cli-1.1.33-rtme70ck.mjs +2 -0
  206. package/dist/chunks/cli-1.1.33-rv2bkx6b.mjs +2 -0
  207. package/dist/chunks/cli-1.1.33-rxe1dmbg.mjs +2 -0
  208. package/dist/chunks/cli-1.1.33-s5kw6064.mjs +3 -0
  209. package/dist/chunks/cli-1.1.33-sbgh2rsy.mjs +2 -0
  210. package/dist/chunks/cli-1.1.33-sf95jk5d.mjs +2 -0
  211. package/dist/chunks/cli-1.1.33-sv5dwqh6.mjs +3 -0
  212. package/dist/chunks/cli-1.1.33-t0fg1hsr.mjs +2 -0
  213. package/dist/chunks/cli-1.1.33-t10xrxez.mjs +2 -0
  214. package/dist/chunks/cli-1.1.33-t26pazs8.mjs +2 -0
  215. package/dist/chunks/cli-1.1.33-t591k29k.mjs +21 -0
  216. package/dist/chunks/cli-1.1.33-t63yat1z.mjs +2 -0
  217. package/dist/chunks/cli-1.1.33-t78313g4.mjs +3 -0
  218. package/dist/chunks/cli-1.1.33-t8cxmf0c.mjs +12 -0
  219. package/dist/chunks/cli-1.1.33-tp6bhara.mjs +4 -0
  220. package/dist/chunks/cli-1.1.33-ts50d9at.mjs +2 -0
  221. package/dist/chunks/cli-1.1.33-ttc7emph.mjs +25 -0
  222. package/dist/chunks/cli-1.1.33-ty6y9kn2.mjs +2 -0
  223. package/dist/chunks/cli-1.1.33-v08vb0sv.mjs +6 -0
  224. package/dist/chunks/cli-1.1.33-v615gn7w.mjs +3 -0
  225. package/dist/chunks/cli-1.1.33-vgynvhys.mjs +5491 -0
  226. package/dist/chunks/cli-1.1.33-vr8cqqar.mjs +2 -0
  227. package/dist/chunks/cli-1.1.33-wfjtjsvq.mjs +6 -0
  228. package/dist/chunks/cli-1.1.33-wrdskpzf.mjs +2 -0
  229. package/dist/chunks/cli-1.1.33-wx8rtpc5.mjs +2 -0
  230. package/dist/chunks/cli-1.1.33-x6zgk4kb.mjs +2 -0
  231. package/dist/chunks/cli-1.1.33-xdqetcyr.mjs +2 -0
  232. package/dist/chunks/cli-1.1.33-xfawy00r.mjs +2 -0
  233. package/dist/chunks/cli-1.1.33-xt2ehzej.mjs +2 -0
  234. package/dist/chunks/cli-1.1.33-xyh0vcv7.mjs +2 -0
  235. package/dist/chunks/cli-1.1.33-yd2b6czv.mjs +2 -0
  236. package/dist/chunks/cli-1.1.33-yd4xhx6x.mjs +20 -0
  237. package/dist/chunks/cli-1.1.33-ypfa1t3b.mjs +2 -0
  238. package/dist/chunks/cli-1.1.33-yqqr1e67.mjs +2 -0
  239. package/dist/chunks/cli-1.1.33-yqxphe1x.mjs +2 -0
  240. package/dist/chunks/cli-1.1.33-yy53bmhe.mjs +2 -0
  241. package/dist/chunks/cli-1.1.33-yygdy86h.mjs +2 -0
  242. package/dist/chunks/cli-1.1.33-z5rv4tr3.mjs +3 -0
  243. package/dist/chunks/cli-1.1.33-z7fa1fgt.mjs +2 -0
  244. package/dist/chunks/cli-1.1.33-zqqj4d1f.mjs +2 -0
  245. package/dist/chunks/cli-1.1.33-zsk851wd.mjs +2 -0
  246. package/dist/chunks/client-1.1.33-qhf9zz8n.mjs +1 -0
  247. package/dist/chunks/color-1.1.33-q69y353w.mjs +1 -0
  248. package/dist/chunks/compact-1.1.33-5vxewt1w.mjs +2 -0
  249. package/dist/chunks/config-1.1.33-h6tzt18x.mjs +1 -0
  250. package/dist/chunks/config-1.1.33-m6rgj5rq.mjs +1 -0
  251. package/dist/chunks/constants-1.1.33-myvdtn6q.mjs +1 -0
  252. package/dist/chunks/context-1.1.33-pm79kmgf.mjs +1 -0
  253. package/dist/chunks/context-noninteractive-1.1.33-6pd4by4q.mjs +1 -0
  254. package/dist/chunks/conversation-1.1.33-acjggjj2.mjs +1 -0
  255. package/dist/chunks/copilotHeaders-1.1.33-s1k9b90v.mjs +1 -0
  256. package/dist/chunks/copy-1.1.33-yynkyja4.mjs +9 -0
  257. package/dist/chunks/cost-1.1.33-sjebbq22.mjs +1 -0
  258. package/dist/chunks/createSession-1.1.33-cw4pppsw.mjs +1 -0
  259. package/dist/chunks/debug-1.1.33-h1ep6bea.mjs +1 -0
  260. package/dist/chunks/defaultActionDeps-1.1.33-t1wa4x2g.mjs +1480 -0
  261. package/dist/chunks/desktop-1.1.33-cgj2ar5t.mjs +2 -0
  262. package/dist/chunks/detectRepository-1.1.33-5yfd53ae.mjs +1 -0
  263. package/dist/chunks/detection-1.1.33-dnyn9hs6.mjs +1 -0
  264. package/dist/chunks/diff-1.1.33-nf6wy43p.mjs +1 -0
  265. package/dist/chunks/doctor-1.1.33-58atgaxs.mjs +1 -0
  266. package/dist/chunks/doctorDiagnostic-1.1.33-v3ht88pf.mjs +1 -0
  267. package/dist/chunks/earlyInput-1.1.33-qff3qk4b.mjs +1 -0
  268. package/dist/chunks/effort-1.1.33-nf63b81y.mjs +13 -0
  269. package/dist/chunks/engine-1.1.33-bqcqevb5.mjs +1 -0
  270. package/dist/chunks/envLessBridgeConfig-1.1.33-1bfctzjp.mjs +1 -0
  271. package/dist/chunks/envUtils-1.1.33-1jg5pqx5.mjs +1 -0
  272. package/dist/chunks/errors-1.1.33-xdf8frps.mjs +1 -0
  273. package/dist/chunks/exampleCommands-1.1.33-br81c33d.mjs +1 -0
  274. package/dist/chunks/execFileNoThrow-1.1.33-mmyfbtpt.mjs +1 -0
  275. package/dist/chunks/exit-1.1.33-s8c549bt.mjs +1 -0
  276. package/dist/chunks/explorer-1.1.33-q2kc2yjm.mjs +1 -0
  277. package/dist/chunks/export-1.1.33-wzsrmyr9.mjs +2 -0
  278. package/dist/chunks/fast-1.1.33-hh2t95cz.mjs +1 -0
  279. package/dist/chunks/feedback-1.1.33-fhamzkxx.mjs +16 -0
  280. package/dist/chunks/git-1.1.33-nb9mf6gs.mjs +1 -0
  281. package/dist/chunks/githubModelsCredentials-1.1.33-zzecd9we.mjs +1 -0
  282. package/dist/chunks/goal-1.1.33-6ptfsbeb.mjs +4 -0
  283. package/dist/chunks/headless-1.1.33-2ks3qpn2.mjs +2 -0
  284. package/dist/chunks/heapdump-1.1.33-48a71a5d.mjs +6 -0
  285. package/dist/chunks/help-1.1.33-65k2zqsp.mjs +1 -0
  286. package/dist/chunks/hooks-1.1.33-7zb4rp07.mjs +1 -0
  287. package/dist/chunks/hooks-1.1.33-87w55gzt.mjs +79 -0
  288. package/dist/chunks/ide-1.1.33-jpbj91cb.mjs +3 -0
  289. package/dist/chunks/image-processor-napi-1.1.33-cb605b4s.mjs +1 -0
  290. package/dist/chunks/import-1.1.33-9vq41kwx.mjs +261 -0
  291. package/dist/chunks/inboundAttachments-1.1.33-pshb9f55.mjs +1 -0
  292. package/dist/chunks/index-1.1.33-0szd959f.mjs +9 -0
  293. package/dist/chunks/index-1.1.33-1cyg72cg.mjs +5 -0
  294. package/dist/chunks/index-1.1.33-20n0wyay.mjs +2 -0
  295. package/dist/chunks/index-1.1.33-37m0wr5f.mjs +1 -0
  296. package/dist/chunks/index-1.1.33-4e6weswv.mjs +2 -0
  297. package/dist/chunks/index-1.1.33-5at6jw86.mjs +9 -0
  298. package/dist/chunks/index-1.1.33-5bb2bqbt.mjs +1 -0
  299. package/dist/chunks/index-1.1.33-6r4xb4kw.mjs +1 -0
  300. package/dist/chunks/index-1.1.33-809kmg0e.mjs +1 -0
  301. package/dist/chunks/index-1.1.33-av56945n.mjs +1 -0
  302. package/dist/chunks/index-1.1.33-ayj1khn3.mjs +1 -0
  303. package/dist/chunks/index-1.1.33-d4h14a2g.mjs +1 -0
  304. package/dist/chunks/index-1.1.33-j01a41jn.mjs +1 -0
  305. package/dist/chunks/index-1.1.33-j3pffnmd.mjs +30 -0
  306. package/dist/chunks/index-1.1.33-nbb1jr6q.mjs +23 -0
  307. package/dist/chunks/index-1.1.33-pdret8nd.mjs +1 -0
  308. package/dist/chunks/index-1.1.33-px65xz19.mjs +1 -0
  309. package/dist/chunks/index-1.1.33-q02fr1yn.mjs +1 -0
  310. package/dist/chunks/index-1.1.33-qckmwfjb.mjs +1 -0
  311. package/dist/chunks/index-1.1.33-sj1fgs0b.mjs +1 -0
  312. package/dist/chunks/index-1.1.33-thfe8yxq.mjs +1 -0
  313. package/dist/chunks/index-1.1.33-vpdejaqk.mjs +1 -0
  314. package/dist/chunks/index-1.1.33-x6vn8g63.mjs +1 -0
  315. package/dist/chunks/init-1.1.33-8jzeqmrh.mjs +2 -0
  316. package/dist/chunks/initReplBridge-1.1.33-xhzad71d.mjs +1 -0
  317. package/dist/chunks/ink-1.1.33-8xkyvv5c.mjs +1 -0
  318. package/dist/chunks/insights-1.1.33-p2xfqqpr.mjs +870 -0
  319. package/dist/chunks/install-1.1.33-yddevjtj.mjs +1 -0
  320. package/dist/chunks/install-github-app-1.1.33-3wksmje2.mjs +149 -0
  321. package/dist/chunks/install-slack-app-1.1.33-mgb365bd.mjs +1 -0
  322. package/dist/chunks/interactiveHelpers-1.1.33-ac7wkzh0.mjs +1 -0
  323. package/dist/chunks/keybindings-1.1.33-pwx8bd0q.mjs +2 -0
  324. package/dist/chunks/latestVersionCache-1.1.33-fqw2q9w0.mjs +1 -0
  325. package/dist/chunks/loadAgentsDir-1.1.33-y4yydpcn.mjs +1 -0
  326. package/dist/chunks/loadPluginHooks-1.1.33-3rxrvf8b.mjs +1 -0
  327. package/dist/chunks/log-1.1.33-pqjf8wsv.mjs +1 -0
  328. package/dist/chunks/main-1.1.33-qvas86jh.mjs +1 -0
  329. package/dist/chunks/managedEnv-1.1.33-67fc5dj7.mjs +1 -0
  330. package/dist/chunks/mcp-1.1.33-88w7d35a.mjs +1 -0
  331. package/dist/chunks/mcp-1.1.33-ewqaq0ms.mjs +4 -0
  332. package/dist/chunks/mcp-1.1.33-v74knj3c.mjs +17 -0
  333. package/dist/chunks/mcpb-1.1.33-dnjbpy7e.mjs +1 -0
  334. package/dist/chunks/memory-1.1.33-9qffk96q.mjs +128 -0
  335. package/dist/chunks/model-1.1.33-h0mjh5z8.mjs +1 -0
  336. package/dist/chunks/model-1.1.33-v4vqzg9w.mjs +2 -0
  337. package/dist/chunks/node-1.1.33-jm7rqpq8.mjs +1 -0
  338. package/dist/chunks/node-1.1.33-qg258pyx.mjs +15 -0
  339. package/dist/chunks/oauth-1.1.33-423q5vp6.mjs +1 -0
  340. package/dist/chunks/openaiShim-1.1.33-dsp1wwgs.mjs +14 -0
  341. package/dist/chunks/output-style-1.1.33-ayj4863v.mjs +1 -0
  342. package/dist/chunks/package-F6O7J2XI-1.1.33-cwk2kcw8.mjs +1 -0
  343. package/dist/chunks/permissions-1.1.33-mtca1vka.mjs +1 -0
  344. package/dist/chunks/permissions-1.1.33-qk86j364.mjs +3 -0
  345. package/dist/chunks/plan-1.1.33-brttkasm.mjs +1 -0
  346. package/dist/chunks/plist-1.1.33-j08fwnf5.mjs +1 -0
  347. package/dist/chunks/plugin-1.1.33-ed5352d9.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-1.1.33-w1dcdv7e.mjs +1 -0
  349. package/dist/chunks/plugins-1.1.33-dz0szv60.mjs +9 -0
  350. package/dist/chunks/preActionHook-1.1.33-cyss3q48.mjs +2 -0
  351. package/dist/chunks/print-1.1.33-0an9v6wm.mjs +57 -0
  352. package/dist/chunks/process-1.1.33-34nr1vvf.mjs +1 -0
  353. package/dist/chunks/processBashCommand-1.1.33-c3baefbs.mjs +1 -0
  354. package/dist/chunks/processSlashCommand-1.1.33-7z1q5tgw.mjs +9 -0
  355. package/dist/chunks/prompt-1.1.33-a9nfj0nx.mjs +1 -0
  356. package/dist/chunks/prompt-1.1.33-t1x27qfd.mjs +1 -0
  357. package/dist/chunks/prompts-1.1.33-n8cpfrn6.mjs +1 -0
  358. package/dist/chunks/provider-1.1.33-s17k8dew.mjs +2 -0
  359. package/dist/chunks/providerProfiles-1.1.33-nabanrxj.mjs +1 -0
  360. package/dist/chunks/providerValidation-1.1.33-45rfx8mk.mjs +6 -0
  361. package/dist/chunks/registerSubcommands-1.1.33-drbt7d0n.mjs +26 -0
  362. package/dist/chunks/registry-1.1.33-2rc0g3js.mjs +1 -0
  363. package/dist/chunks/release-notes-1.1.33-azfdj96s.mjs +5 -0
  364. package/dist/chunks/reload-plugins-1.1.33-22m52m4k.mjs +2 -0
  365. package/dist/chunks/remote-env-1.1.33-2zxh4gns.mjs +1 -0
  366. package/dist/chunks/remoteBridgeCore-1.1.33-tvhbeebf.mjs +1 -0
  367. package/dist/chunks/rename-1.1.33-hh0a7vzm.mjs +1 -0
  368. package/dist/chunks/replLauncher-1.1.33-17gj37pg.mjs +1 -0
  369. package/dist/chunks/resume-1.1.33-cxjpjtfg.mjs +2 -0
  370. package/dist/chunks/rewind-1.1.33-gwyc73ty.mjs +1 -0
  371. package/dist/chunks/rootOptions-1.1.33-t9mmhhea.mjs +1 -0
  372. package/dist/chunks/runWorkflowHeadless-1.1.33-9e4hd973.mjs +10 -0
  373. package/dist/chunks/sandbox-adapter-1.1.33-ydzap1ky.mjs +1 -0
  374. package/dist/chunks/sandbox-toggle-1.1.33-vch1t63t.mjs +1 -0
  375. package/dist/chunks/session-1.1.33-aepc1jdx.mjs +2 -0
  376. package/dist/chunks/sessionStorage-1.1.33-170gteyg.mjs +1 -0
  377. package/dist/chunks/settings-1.1.33-16470dd7.mjs +1 -0
  378. package/dist/chunks/setup-1.1.33-nbfqv6x2.mjs +12 -0
  379. package/dist/chunks/sinks-1.1.33-8qav4btz.mjs +1 -0
  380. package/dist/chunks/skills-1.1.33-srydghps.mjs +1 -0
  381. package/dist/chunks/startupProfiler-1.1.33-a97fyetk.mjs +1 -0
  382. package/dist/chunks/startupUpdateCheck-1.1.33-n5x93kr9.mjs +1 -0
  383. package/dist/chunks/state-1.1.33-yr57kw5b.mjs +1 -0
  384. package/dist/chunks/stats-1.1.33-py9web9f.mjs +1 -0
  385. package/dist/chunks/status-1.1.33-rstx4c0p.mjs +1 -0
  386. package/dist/chunks/stickers-1.1.33-bag4g2g6.mjs +1 -0
  387. package/dist/chunks/subprocessEnv-1.1.33-k219nhcm.mjs +1 -0
  388. package/dist/chunks/tasks-1.1.33-170ayzks.mjs +1 -0
  389. package/dist/chunks/teamHelpers-1.1.33-d0etezah.mjs +1 -0
  390. package/dist/chunks/teammateModeSnapshot-1.1.33-wwj36vt2.mjs +1 -0
  391. package/dist/chunks/teleport-1.1.33-zvzb36mc.mjs +1 -0
  392. package/dist/chunks/terminalSetup-1.1.33-6btb4bdr.mjs +1 -0
  393. package/dist/chunks/theme-1.1.33-ht9yrvwn.mjs +1 -0
  394. package/dist/chunks/thinkback-1.1.33-kvaqf5ep.mjs +1 -0
  395. package/dist/chunks/thinkback-play-1.1.33-dfqez4t9.mjs +1 -0
  396. package/dist/chunks/toolPool-1.1.33-fsqgv07g.mjs +1 -0
  397. package/dist/chunks/toolSearch-1.1.33-g3ha7h5f.mjs +1 -0
  398. package/dist/chunks/tools-1.1.33-6qn3rfzr.mjs +1 -0
  399. package/dist/chunks/trustedDevice-1.1.33-f5feh965.mjs +1 -0
  400. package/dist/chunks/turndown.cjs-1.1.33-km66apwr.mjs +69 -0
  401. package/dist/chunks/types-1.1.33-bc49bs3y.mjs +1 -0
  402. package/dist/chunks/ultrareviewCommand-1.1.33-byqccwrh.mjs +4 -0
  403. package/dist/chunks/update-1.1.33-hz986n0w.mjs +72 -0
  404. package/dist/chunks/upload-1.1.33-cc27f6xm.mjs +7 -0
  405. package/dist/chunks/upstreamproxy-1.1.33-k5haaaqa.mjs +14 -0
  406. package/dist/chunks/usage-1.1.33-jspq6593.mjs +1 -0
  407. package/dist/chunks/util-1.1.33-8w7wsk2x.mjs +1 -0
  408. package/dist/chunks/utils-1.1.33-613tmzqb.mjs +1 -0
  409. package/dist/chunks/vim-1.1.33-gamhf412.mjs +1 -0
  410. package/dist/chunks/watchLoop-1.1.33-w4q3ncxj.mjs +13 -0
  411. package/dist/chunks/wiki-1.1.33-qgzy0eh8.mjs +132 -0
  412. package/dist/chunks/workflows-1.1.33-82kzthpb.mjs +1 -0
  413. package/dist/chunks/worktree-1.1.33-7n8nkfht.mjs +1 -0
  414. package/dist/chunks/worktreeModeEnabled-1.1.33-qq22bj1e.mjs +1 -0
  415. package/dist/chunks/wrapper-1.1.33-qgpy796k.mjs +7 -0
  416. package/dist/cli.mjs +2 -2
  417. package/package.json +9 -9
  418. package/dist/chunks/App-1.1.32-x0g3m6v6.mjs +0 -1
  419. package/dist/chunks/ApproveApiKey-1.1.32-8x1yxm2f.mjs +0 -1
  420. package/dist/chunks/AutoModeOptInDialog-1.1.32-scm9btv0.mjs +0 -1
  421. package/dist/chunks/BypassPermissionsModeDialog-1.1.32-wtcy84rn.mjs +0 -1
  422. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.32-y88y88zt.mjs +0 -1
  423. package/dist/chunks/ConsoleOAuthFlow-1.1.32-kzv0tbna.mjs +0 -1
  424. package/dist/chunks/DiffDialog-1.1.32-4cm0cwer.mjs +0 -6
  425. package/dist/chunks/Doctor-1.1.32-289yb4jj.mjs +0 -1
  426. package/dist/chunks/ExplorerDialog-1.1.32-5gjqvpvs.mjs +0 -6
  427. package/dist/chunks/ITermBackend-1.1.32-a8pwddd1.mjs +0 -1
  428. package/dist/chunks/InvalidConfigDialog-1.1.32-6qdrtdpr.mjs +0 -1
  429. package/dist/chunks/InvalidSettingsDialog-1.1.32-hwzxtdsd.mjs +0 -1
  430. package/dist/chunks/MigrationDialog-1.1.32-yytrpays.mjs +0 -1
  431. package/dist/chunks/Onboarding-1.1.32-c5yyxz32.mjs +0 -1
  432. package/dist/chunks/ProviderManager-1.1.32-7q71086g.mjs +0 -1
  433. package/dist/chunks/REPL-1.1.32-yzppvfrk.mjs +0 -1
  434. package/dist/chunks/ResumeConversation-1.1.32-rv15raev.mjs +0 -1
  435. package/dist/chunks/TeleportProgress-1.1.32-n3bsegx5.mjs +0 -1
  436. package/dist/chunks/TeleportRepoMismatchDialog-1.1.32-68xgndte.mjs +0 -1
  437. package/dist/chunks/TeleportResumeWrapper-1.1.32-zb4vkx03.mjs +0 -1
  438. package/dist/chunks/TmuxBackend-1.1.32-q3c5nqks.mjs +0 -9
  439. package/dist/chunks/ToolSearchTool-1.1.32-3whrqawk.mjs +0 -1
  440. package/dist/chunks/TrustDialog-1.1.32-33mkg42t.mjs +0 -1
  441. package/dist/chunks/activeProvider-1.1.32-9brew90d.mjs +0 -1
  442. package/dist/chunks/add-dir-1.1.32-8hkh1hcx.mjs +0 -1
  443. package/dist/chunks/agentTypes-1.1.32-ph49ernt.mjs +0 -1
  444. package/dist/chunks/agents-1.1.32-6ajrxrdr.mjs +0 -110
  445. package/dist/chunks/agents-1.1.32-6gc09pk2.mjs +0 -3
  446. package/dist/chunks/api-1.1.32-8qx9q5eh.mjs +0 -1
  447. package/dist/chunks/asciicast-1.1.32-4knajfec.mjs +0 -1
  448. package/dist/chunks/auth-1.1.32-9xrd6x89.mjs +0 -1
  449. package/dist/chunks/auth-1.1.32-s83fshpf.mjs +0 -1
  450. package/dist/chunks/autoMode-1.1.32-e680w683.mjs +0 -52
  451. package/dist/chunks/autoModeSetup-1.1.32-7m1d4dy7.mjs +0 -44
  452. package/dist/chunks/autoUpdater-1.1.32-hhg3dezv.mjs +0 -1
  453. package/dist/chunks/backgroundHousekeeping-1.1.32-8ddhae4q.mjs +0 -1
  454. package/dist/chunks/branch-1.1.32-xaq3pb3p.mjs +0 -4
  455. package/dist/chunks/bridge-1.1.32-ec6fc8kh.mjs +0 -2
  456. package/dist/chunks/bridgeConfig-1.1.32-bse7ynz2.mjs +0 -1
  457. package/dist/chunks/bridgeEnabled-1.1.32-84ntyqxd.mjs +0 -1
  458. package/dist/chunks/bridgeMain-1.1.32-d20ebbde.mjs +0 -88
  459. package/dist/chunks/bridgePointer-1.1.32-40jwkts4.mjs +0 -1
  460. package/dist/chunks/btw-1.1.32-kg0w3tw2.mjs +0 -1
  461. package/dist/chunks/buddy-1.1.32-c53wp8x4.mjs +0 -3
  462. package/dist/chunks/cache-probe-1.1.32-a9jc0rn9.mjs +0 -21
  463. package/dist/chunks/cacheStats-1.1.32-bh9jpngp.mjs +0 -4
  464. package/dist/chunks/caches-1.1.32-va3h1efn.mjs +0 -1
  465. package/dist/chunks/cd-1.1.32-yar6t6sg.mjs +0 -3
  466. package/dist/chunks/claudeDesktop-1.1.32-xjcschxc.mjs +0 -1
  467. package/dist/chunks/claudemd-1.1.32-kb9tec8y.mjs +0 -1
  468. package/dist/chunks/clear-1.1.32-ywfd1kha.mjs +0 -1
  469. package/dist/chunks/clearTerminal-1.1.32-x7tbxm3w.mjs +0 -1
  470. package/dist/chunks/cli-1.1.32-06xv4rmw.mjs +0 -2
  471. package/dist/chunks/cli-1.1.32-0pmhmsew.mjs +0 -42
  472. package/dist/chunks/cli-1.1.32-1913x5jp.mjs +0 -15
  473. package/dist/chunks/cli-1.1.32-1c9z2mtv.mjs +0 -2
  474. package/dist/chunks/cli-1.1.32-1cp8vbtp.mjs +0 -9
  475. package/dist/chunks/cli-1.1.32-1rackf2c.mjs +0 -4
  476. package/dist/chunks/cli-1.1.32-1rprka6j.mjs +0 -2
  477. package/dist/chunks/cli-1.1.32-1t75hwdn.mjs +0 -2
  478. package/dist/chunks/cli-1.1.32-1yrmnphh.mjs +0 -2
  479. package/dist/chunks/cli-1.1.32-260jjrwt.mjs +0 -6
  480. package/dist/chunks/cli-1.1.32-26474ywa.mjs +0 -2
  481. package/dist/chunks/cli-1.1.32-28vx0a5m.mjs +0 -2
  482. package/dist/chunks/cli-1.1.32-28x0bz68.mjs +0 -2
  483. package/dist/chunks/cli-1.1.32-2k074m5f.mjs +0 -2
  484. package/dist/chunks/cli-1.1.32-2kd689v0.mjs +0 -2
  485. package/dist/chunks/cli-1.1.32-2m68a9w2.mjs +0 -2
  486. package/dist/chunks/cli-1.1.32-2tyhwqjh.mjs +0 -10
  487. package/dist/chunks/cli-1.1.32-2wcdy0zp.mjs +0 -17
  488. package/dist/chunks/cli-1.1.32-2x7x44mg.mjs +0 -2
  489. package/dist/chunks/cli-1.1.32-336t9pmv.mjs +0 -2
  490. package/dist/chunks/cli-1.1.32-33jnyekk.mjs +0 -2
  491. package/dist/chunks/cli-1.1.32-36t0985q.mjs +0 -21
  492. package/dist/chunks/cli-1.1.32-3gbh5q5w.mjs +0 -2
  493. package/dist/chunks/cli-1.1.32-3z4a0eqz.mjs +0 -3
  494. package/dist/chunks/cli-1.1.32-41xx49ta.mjs +0 -2
  495. package/dist/chunks/cli-1.1.32-46wadmxk.mjs +0 -2
  496. package/dist/chunks/cli-1.1.32-49sdmvtj.mjs +0 -25
  497. package/dist/chunks/cli-1.1.32-4ekmdczr.mjs +0 -25
  498. package/dist/chunks/cli-1.1.32-4ft4m446.mjs +0 -2
  499. package/dist/chunks/cli-1.1.32-4rsr6phf.mjs +0 -2
  500. package/dist/chunks/cli-1.1.32-4vdyqkkd.mjs +0 -2
  501. package/dist/chunks/cli-1.1.32-4yat84kg.mjs +0 -2
  502. package/dist/chunks/cli-1.1.32-5a158c45.mjs +0 -2
  503. package/dist/chunks/cli-1.1.32-5c5dcwk6.mjs +0 -2
  504. package/dist/chunks/cli-1.1.32-5cngr1kn.mjs +0 -2
  505. package/dist/chunks/cli-1.1.32-5dq711bj.mjs +0 -2
  506. package/dist/chunks/cli-1.1.32-5j5n166h.mjs +0 -2
  507. package/dist/chunks/cli-1.1.32-5qjjtpkh.mjs +0 -133
  508. package/dist/chunks/cli-1.1.32-5qwps3ts.mjs +0 -2
  509. package/dist/chunks/cli-1.1.32-5v0afeqw.mjs +0 -2
  510. package/dist/chunks/cli-1.1.32-5xmh2b7j.mjs +0 -2
  511. package/dist/chunks/cli-1.1.32-60pc6r2s.mjs +0 -2
  512. package/dist/chunks/cli-1.1.32-6317frxz.mjs +0 -2
  513. package/dist/chunks/cli-1.1.32-65c5zdmx.mjs +0 -2
  514. package/dist/chunks/cli-1.1.32-6f9r9qcb.mjs +0 -2
  515. package/dist/chunks/cli-1.1.32-6jbgafh2.mjs +0 -2
  516. package/dist/chunks/cli-1.1.32-6jhkp60n.mjs +0 -2
  517. package/dist/chunks/cli-1.1.32-6jxftegx.mjs +0 -6
  518. package/dist/chunks/cli-1.1.32-7566j53x.mjs +0 -2
  519. package/dist/chunks/cli-1.1.32-76wfpwbd.mjs +0 -2
  520. package/dist/chunks/cli-1.1.32-7zp3b6gq.mjs +0 -2
  521. package/dist/chunks/cli-1.1.32-8b5ej63w.mjs +0 -2
  522. package/dist/chunks/cli-1.1.32-8hsb6vgz.mjs +0 -2
  523. package/dist/chunks/cli-1.1.32-8jkgzjh4.mjs +0 -5
  524. package/dist/chunks/cli-1.1.32-8t8t42xx.mjs +0 -2
  525. package/dist/chunks/cli-1.1.32-8yc37yqa.mjs +0 -34
  526. package/dist/chunks/cli-1.1.32-97e0qadj.mjs +0 -2
  527. package/dist/chunks/cli-1.1.32-9c0an85r.mjs +0 -2
  528. package/dist/chunks/cli-1.1.32-9fe7efg9.mjs +0 -2
  529. package/dist/chunks/cli-1.1.32-9jxkev29.mjs +0 -2
  530. package/dist/chunks/cli-1.1.32-9wsnkggz.mjs +0 -11
  531. package/dist/chunks/cli-1.1.32-9yka8m9x.mjs +0 -5490
  532. package/dist/chunks/cli-1.1.32-a3dfp7ps.mjs +0 -12
  533. package/dist/chunks/cli-1.1.32-acgh1gj8.mjs +0 -2
  534. package/dist/chunks/cli-1.1.32-ajhvj43e.mjs +0 -2
  535. package/dist/chunks/cli-1.1.32-aqfcrtfz.mjs +0 -5
  536. package/dist/chunks/cli-1.1.32-aysp26sz.mjs +0 -45
  537. package/dist/chunks/cli-1.1.32-b1bbb8eb.mjs +0 -7
  538. package/dist/chunks/cli-1.1.32-b3hsysf6.mjs +0 -2
  539. package/dist/chunks/cli-1.1.32-b4dgaz0a.mjs +0 -2
  540. package/dist/chunks/cli-1.1.32-bce46tmm.mjs +0 -2
  541. package/dist/chunks/cli-1.1.32-bnam9df8.mjs +0 -2
  542. package/dist/chunks/cli-1.1.32-bt4yfsm7.mjs +0 -2
  543. package/dist/chunks/cli-1.1.32-c4v8081j.mjs +0 -2
  544. package/dist/chunks/cli-1.1.32-c6n1kre3.mjs +0 -2
  545. package/dist/chunks/cli-1.1.32-c7ypbb63.mjs +0 -2
  546. package/dist/chunks/cli-1.1.32-cpzgn83z.mjs +0 -2
  547. package/dist/chunks/cli-1.1.32-cx7ygksc.mjs +0 -2
  548. package/dist/chunks/cli-1.1.32-czrfbd3q.mjs +0 -2
  549. package/dist/chunks/cli-1.1.32-d47cvy98.mjs +0 -2
  550. package/dist/chunks/cli-1.1.32-dkyyv5mx.mjs +0 -2
  551. package/dist/chunks/cli-1.1.32-dp2kpscr.mjs +0 -2
  552. package/dist/chunks/cli-1.1.32-dtd3vpkv.mjs +0 -2
  553. package/dist/chunks/cli-1.1.32-e1btgk5y.mjs +0 -4
  554. package/dist/chunks/cli-1.1.32-e96q5k17.mjs +0 -2
  555. package/dist/chunks/cli-1.1.32-ebg7m8yz.mjs +0 -2
  556. package/dist/chunks/cli-1.1.32-ehg64cg0.mjs +0 -2
  557. package/dist/chunks/cli-1.1.32-erw03mnm.mjs +0 -2
  558. package/dist/chunks/cli-1.1.32-f3895pf8.mjs +0 -2
  559. package/dist/chunks/cli-1.1.32-fhzs65yw.mjs +0 -2
  560. package/dist/chunks/cli-1.1.32-fjz81t0j.mjs +0 -2
  561. package/dist/chunks/cli-1.1.32-fr30sgy9.mjs +0 -2
  562. package/dist/chunks/cli-1.1.32-fzepmkcj.mjs +0 -2
  563. package/dist/chunks/cli-1.1.32-g5dzf2w1.mjs +0 -24
  564. package/dist/chunks/cli-1.1.32-gg7yn5bt.mjs +0 -8
  565. package/dist/chunks/cli-1.1.32-gpq33yz0.mjs +0 -2
  566. package/dist/chunks/cli-1.1.32-gqbeasga.mjs +0 -2
  567. package/dist/chunks/cli-1.1.32-gvv8h6dg.mjs +0 -18
  568. package/dist/chunks/cli-1.1.32-gwf0a8ej.mjs +0 -2
  569. package/dist/chunks/cli-1.1.32-h23ch6fy.mjs +0 -2
  570. package/dist/chunks/cli-1.1.32-h4tpddgz.mjs +0 -4
  571. package/dist/chunks/cli-1.1.32-h7cb9f8y.mjs +0 -2
  572. package/dist/chunks/cli-1.1.32-hbwke9cs.mjs +0 -2
  573. package/dist/chunks/cli-1.1.32-hgjgfp8p.mjs +0 -60
  574. package/dist/chunks/cli-1.1.32-hhd65der.mjs +0 -2
  575. package/dist/chunks/cli-1.1.32-hzn2mba8.mjs +0 -3
  576. package/dist/chunks/cli-1.1.32-j31v1t7y.mjs +0 -15
  577. package/dist/chunks/cli-1.1.32-jatnsd1n.mjs +0 -2
  578. package/dist/chunks/cli-1.1.32-jjanec91.mjs +0 -2
  579. package/dist/chunks/cli-1.1.32-jnrsn4v0.mjs +0 -2
  580. package/dist/chunks/cli-1.1.32-jqhfcb0t.mjs +0 -2
  581. package/dist/chunks/cli-1.1.32-jt6w5mqv.mjs +0 -2
  582. package/dist/chunks/cli-1.1.32-k5d30qej.mjs +0 -3
  583. package/dist/chunks/cli-1.1.32-k9zkw4st.mjs +0 -2
  584. package/dist/chunks/cli-1.1.32-kn0zs89y.mjs +0 -63
  585. package/dist/chunks/cli-1.1.32-kqkbjp3x.mjs +0 -4
  586. package/dist/chunks/cli-1.1.32-m7dxkbpn.mjs +0 -2
  587. package/dist/chunks/cli-1.1.32-m9c0pceb.mjs +0 -3
  588. package/dist/chunks/cli-1.1.32-m9p4pd60.mjs +0 -2
  589. package/dist/chunks/cli-1.1.32-merqy9t2.mjs +0 -2
  590. package/dist/chunks/cli-1.1.32-mrftpsrs.mjs +0 -15
  591. package/dist/chunks/cli-1.1.32-n3smn7a4.mjs +0 -2
  592. package/dist/chunks/cli-1.1.32-n6rpvpf2.mjs +0 -2
  593. package/dist/chunks/cli-1.1.32-n7cyeje8.mjs +0 -2
  594. package/dist/chunks/cli-1.1.32-n9vdkdfk.mjs +0 -2
  595. package/dist/chunks/cli-1.1.32-nmcy47z7.mjs +0 -4
  596. package/dist/chunks/cli-1.1.32-nt9eqa35.mjs +0 -2
  597. package/dist/chunks/cli-1.1.32-p70gsyp3.mjs +0 -2
  598. package/dist/chunks/cli-1.1.32-pe6kmf9g.mjs +0 -3
  599. package/dist/chunks/cli-1.1.32-pfhbrjhs.mjs +0 -20
  600. package/dist/chunks/cli-1.1.32-pfwbgg79.mjs +0 -2
  601. package/dist/chunks/cli-1.1.32-pm7ctgdf.mjs +0 -7
  602. package/dist/chunks/cli-1.1.32-pve0ffcp.mjs +0 -203
  603. package/dist/chunks/cli-1.1.32-pwvfjtva.mjs +0 -2
  604. package/dist/chunks/cli-1.1.32-px6268dx.mjs +0 -2
  605. package/dist/chunks/cli-1.1.32-px93hhj4.mjs +0 -3
  606. package/dist/chunks/cli-1.1.32-qmgvm9rq.mjs +0 -2
  607. package/dist/chunks/cli-1.1.32-qvx7w9wm.mjs +0 -2
  608. package/dist/chunks/cli-1.1.32-qzjfn21e.mjs +0 -3
  609. package/dist/chunks/cli-1.1.32-r5ww85n4.mjs +0 -6
  610. package/dist/chunks/cli-1.1.32-r6g8b118.mjs +0 -5
  611. package/dist/chunks/cli-1.1.32-r7020tw8.mjs +0 -4
  612. package/dist/chunks/cli-1.1.32-rbvnjjkt.mjs +0 -2
  613. package/dist/chunks/cli-1.1.32-rmz4ezae.mjs +0 -3
  614. package/dist/chunks/cli-1.1.32-rswqkymv.mjs +0 -133
  615. package/dist/chunks/cli-1.1.32-s2kkv51h.mjs +0 -2
  616. package/dist/chunks/cli-1.1.32-s4betse1.mjs +0 -2
  617. package/dist/chunks/cli-1.1.32-sqsxnqqb.mjs +0 -2
  618. package/dist/chunks/cli-1.1.32-t1n0b84g.mjs +0 -2
  619. package/dist/chunks/cli-1.1.32-tgr1e1hd.mjs +0 -2
  620. package/dist/chunks/cli-1.1.32-th2r4378.mjs +0 -9
  621. package/dist/chunks/cli-1.1.32-thsw9p6n.mjs +0 -2
  622. package/dist/chunks/cli-1.1.32-tp4tyjy3.mjs +0 -2
  623. package/dist/chunks/cli-1.1.32-tq108hv4.mjs +0 -2
  624. package/dist/chunks/cli-1.1.32-tzn98f6r.mjs +0 -24
  625. package/dist/chunks/cli-1.1.32-v3cks7qj.mjs +0 -6
  626. package/dist/chunks/cli-1.1.32-v4chz2b0.mjs +0 -2
  627. package/dist/chunks/cli-1.1.32-vdezbpdh.mjs +0 -2
  628. package/dist/chunks/cli-1.1.32-vf3r8a91.mjs +0 -16
  629. package/dist/chunks/cli-1.1.32-vmr6f229.mjs +0 -2
  630. package/dist/chunks/cli-1.1.32-vnhzy4jx.mjs +0 -2
  631. package/dist/chunks/cli-1.1.32-vtzwmjs8.mjs +0 -3
  632. package/dist/chunks/cli-1.1.32-vy2ngm3p.mjs +0 -2
  633. package/dist/chunks/cli-1.1.32-w2b0neg3.mjs +0 -4
  634. package/dist/chunks/cli-1.1.32-wnhqapmf.mjs +0 -24
  635. package/dist/chunks/cli-1.1.32-wsqyehdw.mjs +0 -2
  636. package/dist/chunks/cli-1.1.32-wyv15h7a.mjs +0 -6
  637. package/dist/chunks/cli-1.1.32-x0crp5g9.mjs +0 -2
  638. package/dist/chunks/cli-1.1.32-x23z7923.mjs +0 -2
  639. package/dist/chunks/cli-1.1.32-x8j1spnv.mjs +0 -2
  640. package/dist/chunks/cli-1.1.32-xfhe1m2y.mjs +0 -2
  641. package/dist/chunks/cli-1.1.32-xj2e8mzf.mjs +0 -2
  642. package/dist/chunks/cli-1.1.32-xy1pvy12.mjs +0 -2
  643. package/dist/chunks/cli-1.1.32-y4agg2c2.mjs +0 -17
  644. package/dist/chunks/cli-1.1.32-ycyg88ky.mjs +0 -2
  645. package/dist/chunks/cli-1.1.32-ydbtpc9v.mjs +0 -12
  646. package/dist/chunks/cli-1.1.32-yfs9ppge.mjs +0 -2
  647. package/dist/chunks/cli-1.1.32-yhftam6y.mjs +0 -50
  648. package/dist/chunks/cli-1.1.32-yhzhm57s.mjs +0 -2
  649. package/dist/chunks/cli-1.1.32-yq68bsa5.mjs +0 -2
  650. package/dist/chunks/cli-1.1.32-yv0wyp2m.mjs +0 -2
  651. package/dist/chunks/cli-1.1.32-yv9hzzq7.mjs +0 -2
  652. package/dist/chunks/cli-1.1.32-yw64r19c.mjs +0 -2
  653. package/dist/chunks/cli-1.1.32-z7x4jfeb.mjs +0 -4
  654. package/dist/chunks/cli-1.1.32-zegecv6e.mjs +0 -2
  655. package/dist/chunks/cli-1.1.32-zeyasrw5.mjs +0 -2
  656. package/dist/chunks/cli-1.1.32-zfyd4kyq.mjs +0 -2
  657. package/dist/chunks/cli-1.1.32-zfzqc12y.mjs +0 -26
  658. package/dist/chunks/cli-1.1.32-zkq2v1fz.mjs +0 -2
  659. package/dist/chunks/cli-1.1.32-zqtqvc9y.mjs +0 -3
  660. package/dist/chunks/cli-1.1.32-zr4x17ne.mjs +0 -3
  661. package/dist/chunks/cli-1.1.32-zraeg1n2.mjs +0 -2
  662. package/dist/chunks/cli-1.1.32-zrxqe296.mjs +0 -7
  663. package/dist/chunks/cli-1.1.32-zv1p3q66.mjs +0 -2
  664. package/dist/chunks/cli-1.1.32-zwetcrr2.mjs +0 -39
  665. package/dist/chunks/client-1.1.32-y4ehgz03.mjs +0 -1
  666. package/dist/chunks/color-1.1.32-an3gq6pv.mjs +0 -1
  667. package/dist/chunks/compact-1.1.32-kp67c5pn.mjs +0 -2
  668. package/dist/chunks/config-1.1.32-9kqd30ca.mjs +0 -1
  669. package/dist/chunks/config-1.1.32-chryg3ab.mjs +0 -1
  670. package/dist/chunks/constants-1.1.32-azab2vra.mjs +0 -1
  671. package/dist/chunks/context-1.1.32-t6yf3tch.mjs +0 -1
  672. package/dist/chunks/context-noninteractive-1.1.32-tbes3yx4.mjs +0 -1
  673. package/dist/chunks/conversation-1.1.32-edtsb1fp.mjs +0 -1
  674. package/dist/chunks/copilotHeaders-1.1.32-cxjr3qqd.mjs +0 -1
  675. package/dist/chunks/copy-1.1.32-2yk1zben.mjs +0 -9
  676. package/dist/chunks/cost-1.1.32-ykkmca1s.mjs +0 -1
  677. package/dist/chunks/createSession-1.1.32-pky6wawr.mjs +0 -1
  678. package/dist/chunks/debug-1.1.32-f8fanjpw.mjs +0 -1
  679. package/dist/chunks/defaultActionDeps-1.1.32-nf0mf9nq.mjs +0 -1480
  680. package/dist/chunks/desktop-1.1.32-h4q834kk.mjs +0 -2
  681. package/dist/chunks/detectRepository-1.1.32-y3wjkn3b.mjs +0 -1
  682. package/dist/chunks/detection-1.1.32-13rzk2y0.mjs +0 -1
  683. package/dist/chunks/diff-1.1.32-tsgcxd5v.mjs +0 -1
  684. package/dist/chunks/doctor-1.1.32-dg4q70ty.mjs +0 -1
  685. package/dist/chunks/doctorDiagnostic-1.1.32-xpjhp8fe.mjs +0 -1
  686. package/dist/chunks/earlyInput-1.1.32-rzjwc8xb.mjs +0 -1
  687. package/dist/chunks/effort-1.1.32-76tc9ft4.mjs +0 -13
  688. package/dist/chunks/engine-1.1.32-qp8px0cr.mjs +0 -1
  689. package/dist/chunks/envLessBridgeConfig-1.1.32-mamfyksw.mjs +0 -1
  690. package/dist/chunks/envUtils-1.1.32-x5ddw5jb.mjs +0 -1
  691. package/dist/chunks/errors-1.1.32-pw0ngznd.mjs +0 -1
  692. package/dist/chunks/exampleCommands-1.1.32-j9bvstfq.mjs +0 -1
  693. package/dist/chunks/execFileNoThrow-1.1.32-ah9wga16.mjs +0 -1
  694. package/dist/chunks/exit-1.1.32-4j8q9ztw.mjs +0 -1
  695. package/dist/chunks/explorer-1.1.32-dabb8sse.mjs +0 -1
  696. package/dist/chunks/export-1.1.32-zt3yhqen.mjs +0 -2
  697. package/dist/chunks/fast-1.1.32-cms216af.mjs +0 -1
  698. package/dist/chunks/feedback-1.1.32-r94c0y57.mjs +0 -16
  699. package/dist/chunks/git-1.1.32-9xc0s3ry.mjs +0 -1
  700. package/dist/chunks/githubModelsCredentials-1.1.32-r5xq7s7y.mjs +0 -1
  701. package/dist/chunks/goal-1.1.32-bkjq4858.mjs +0 -4
  702. package/dist/chunks/headless-1.1.32-ae4d3qgy.mjs +0 -2
  703. package/dist/chunks/heapdump-1.1.32-jdrsrqfx.mjs +0 -6
  704. package/dist/chunks/help-1.1.32-5z54ce4t.mjs +0 -1
  705. package/dist/chunks/hooks-1.1.32-2mse496x.mjs +0 -1
  706. package/dist/chunks/hooks-1.1.32-jv66gnpt.mjs +0 -79
  707. package/dist/chunks/ide-1.1.32-tx45prsy.mjs +0 -3
  708. package/dist/chunks/image-processor-napi-1.1.32-bwdr4dza.mjs +0 -1
  709. package/dist/chunks/import-1.1.32-7w75n01b.mjs +0 -261
  710. package/dist/chunks/inboundAttachments-1.1.32-1vfz9rkn.mjs +0 -1
  711. package/dist/chunks/index-1.1.32-3wzxvtbf.mjs +0 -1
  712. package/dist/chunks/index-1.1.32-49p9ghn6.mjs +0 -1
  713. package/dist/chunks/index-1.1.32-7ttnyjb3.mjs +0 -2
  714. package/dist/chunks/index-1.1.32-aqkr7bx2.mjs +0 -9
  715. package/dist/chunks/index-1.1.32-az0sxjjn.mjs +0 -5
  716. package/dist/chunks/index-1.1.32-b4rwnxe8.mjs +0 -1
  717. package/dist/chunks/index-1.1.32-bpzdp87c.mjs +0 -23
  718. package/dist/chunks/index-1.1.32-c3gnrfg0.mjs +0 -1
  719. package/dist/chunks/index-1.1.32-cjq261cn.mjs +0 -9
  720. package/dist/chunks/index-1.1.32-crx2adff.mjs +0 -1
  721. package/dist/chunks/index-1.1.32-dn9thxs1.mjs +0 -30
  722. package/dist/chunks/index-1.1.32-fwm6yqt6.mjs +0 -1
  723. package/dist/chunks/index-1.1.32-g58gm84f.mjs +0 -1
  724. package/dist/chunks/index-1.1.32-g9e9ne9q.mjs +0 -1
  725. package/dist/chunks/index-1.1.32-m694vs1n.mjs +0 -1
  726. package/dist/chunks/index-1.1.32-rbv0wt7t.mjs +0 -1
  727. package/dist/chunks/index-1.1.32-revsqy4q.mjs +0 -1
  728. package/dist/chunks/index-1.1.32-t011v5cn.mjs +0 -1
  729. package/dist/chunks/index-1.1.32-tv85kbw0.mjs +0 -1
  730. package/dist/chunks/index-1.1.32-v09n34s4.mjs +0 -1
  731. package/dist/chunks/index-1.1.32-vaknvmtk.mjs +0 -2
  732. package/dist/chunks/index-1.1.32-vxn4pvkx.mjs +0 -1
  733. package/dist/chunks/index-1.1.32-zep1vry1.mjs +0 -1
  734. package/dist/chunks/init-1.1.32-xac664gq.mjs +0 -2
  735. package/dist/chunks/initReplBridge-1.1.32-d1g5bqts.mjs +0 -1
  736. package/dist/chunks/ink-1.1.32-brepbf1s.mjs +0 -1
  737. package/dist/chunks/insights-1.1.32-ccteb3zt.mjs +0 -870
  738. package/dist/chunks/install-1.1.32-xhcj1s97.mjs +0 -1
  739. package/dist/chunks/install-github-app-1.1.32-2rb2b8y2.mjs +0 -149
  740. package/dist/chunks/install-slack-app-1.1.32-7e22rmh8.mjs +0 -1
  741. package/dist/chunks/interactiveHelpers-1.1.32-tw81dggb.mjs +0 -1
  742. package/dist/chunks/keybindings-1.1.32-bsjftmx2.mjs +0 -2
  743. package/dist/chunks/latestVersionCache-1.1.32-ecgj54va.mjs +0 -1
  744. package/dist/chunks/loadAgentsDir-1.1.32-9c4e13wb.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-1.1.32-qb96n0p6.mjs +0 -1
  746. package/dist/chunks/log-1.1.32-0wdbtf8k.mjs +0 -1
  747. package/dist/chunks/main-1.1.32-9s7gbk2b.mjs +0 -1
  748. package/dist/chunks/managedEnv-1.1.32-8aapabn1.mjs +0 -1
  749. package/dist/chunks/mcp-1.1.32-2ct5ytwv.mjs +0 -1
  750. package/dist/chunks/mcp-1.1.32-42npdfwc.mjs +0 -17
  751. package/dist/chunks/mcp-1.1.32-8c3f7gfy.mjs +0 -4
  752. package/dist/chunks/mcpb-1.1.32-482tejv1.mjs +0 -1
  753. package/dist/chunks/memory-1.1.32-jrnzabfj.mjs +0 -77
  754. package/dist/chunks/model-1.1.32-wjtssjq7.mjs +0 -1
  755. package/dist/chunks/model-1.1.32-z7v5ah7s.mjs +0 -2
  756. package/dist/chunks/node-1.1.32-bgrnv9d0.mjs +0 -15
  757. package/dist/chunks/node-1.1.32-pek9xbcv.mjs +0 -1
  758. package/dist/chunks/oauth-1.1.32-b01rfrnw.mjs +0 -1
  759. package/dist/chunks/openaiShim-1.1.32-68nafznt.mjs +0 -14
  760. package/dist/chunks/output-style-1.1.32-se3pq9dn.mjs +0 -1
  761. package/dist/chunks/package-D2QZMRW7-1.1.32-jykb9rfa.mjs +0 -1
  762. package/dist/chunks/permissions-1.1.32-r62vjas0.mjs +0 -3
  763. package/dist/chunks/permissions-1.1.32-v83ds1fq.mjs +0 -1
  764. package/dist/chunks/plan-1.1.32-remxpgv3.mjs +0 -1
  765. package/dist/chunks/plist-1.1.32-y2bh274p.mjs +0 -1
  766. package/dist/chunks/plugin-1.1.32-h9pgs6zn.mjs +0 -29
  767. package/dist/chunks/pluginStartupCheck-1.1.32-vyn1sara.mjs +0 -1
  768. package/dist/chunks/plugins-1.1.32-wxz7p0xc.mjs +0 -9
  769. package/dist/chunks/preActionHook-1.1.32-259wvsmh.mjs +0 -2
  770. package/dist/chunks/print-1.1.32-k37wv4h9.mjs +0 -57
  771. package/dist/chunks/process-1.1.32-tya6ctch.mjs +0 -1
  772. package/dist/chunks/processBashCommand-1.1.32-hfk6nzmr.mjs +0 -1
  773. package/dist/chunks/processSlashCommand-1.1.32-ga3g4qev.mjs +0 -9
  774. package/dist/chunks/prompt-1.1.32-crsv325t.mjs +0 -1
  775. package/dist/chunks/prompt-1.1.32-jyfkevpw.mjs +0 -1
  776. package/dist/chunks/prompts-1.1.32-mythhsq2.mjs +0 -1
  777. package/dist/chunks/provider-1.1.32-c16c25q6.mjs +0 -2
  778. package/dist/chunks/providerProfiles-1.1.32-gv05d26p.mjs +0 -1
  779. package/dist/chunks/providerValidation-1.1.32-srfcyanm.mjs +0 -6
  780. package/dist/chunks/registerSubcommands-1.1.32-af1r42j6.mjs +0 -26
  781. package/dist/chunks/registry-1.1.32-nvr3xen5.mjs +0 -1
  782. package/dist/chunks/release-notes-1.1.32-gtntbc84.mjs +0 -5
  783. package/dist/chunks/reload-plugins-1.1.32-qmx4b0zf.mjs +0 -2
  784. package/dist/chunks/remote-env-1.1.32-srz0skx2.mjs +0 -1
  785. package/dist/chunks/remoteBridgeCore-1.1.32-17erfh69.mjs +0 -1
  786. package/dist/chunks/rename-1.1.32-yww8w15q.mjs +0 -1
  787. package/dist/chunks/replLauncher-1.1.32-carhn5x3.mjs +0 -1
  788. package/dist/chunks/resume-1.1.32-y7g779fj.mjs +0 -2
  789. package/dist/chunks/rewind-1.1.32-xktcmbbk.mjs +0 -1
  790. package/dist/chunks/rootOptions-1.1.32-q7914mqe.mjs +0 -1
  791. package/dist/chunks/runWorkflowHeadless-1.1.32-yr1peyj2.mjs +0 -10
  792. package/dist/chunks/sandbox-adapter-1.1.32-kct2shfd.mjs +0 -1
  793. package/dist/chunks/sandbox-toggle-1.1.32-wa7kgd6b.mjs +0 -1
  794. package/dist/chunks/session-1.1.32-07pqmcyz.mjs +0 -2
  795. package/dist/chunks/sessionFileAccessHooks-1.1.32-1ekf9af3.mjs +0 -1
  796. package/dist/chunks/sessionStorage-1.1.32-vcm53ywe.mjs +0 -1
  797. package/dist/chunks/settings-1.1.32-kwtz4r22.mjs +0 -1
  798. package/dist/chunks/setup-1.1.32-695k1eyn.mjs +0 -12
  799. package/dist/chunks/sinks-1.1.32-3eh8hb97.mjs +0 -1
  800. package/dist/chunks/skills-1.1.32-ymdek4dt.mjs +0 -1
  801. package/dist/chunks/startupProfiler-1.1.32-sxxmxavv.mjs +0 -1
  802. package/dist/chunks/startupUpdateCheck-1.1.32-25e14c0p.mjs +0 -1
  803. package/dist/chunks/state-1.1.32-q2y7dv84.mjs +0 -1
  804. package/dist/chunks/stats-1.1.32-p79st2jy.mjs +0 -1
  805. package/dist/chunks/status-1.1.32-wsaad3gy.mjs +0 -1
  806. package/dist/chunks/stickers-1.1.32-erbhpqdc.mjs +0 -1
  807. package/dist/chunks/subprocessEnv-1.1.32-29m5mf2s.mjs +0 -1
  808. package/dist/chunks/tasks-1.1.32-fv2ze8ev.mjs +0 -1
  809. package/dist/chunks/teamHelpers-1.1.32-b2x5nsht.mjs +0 -1
  810. package/dist/chunks/teammateModeSnapshot-1.1.32-w65af42z.mjs +0 -1
  811. package/dist/chunks/teleport-1.1.32-6d4336gw.mjs +0 -1
  812. package/dist/chunks/terminalSetup-1.1.32-t82mfgh5.mjs +0 -1
  813. package/dist/chunks/theme-1.1.32-7qn5nf2j.mjs +0 -1
  814. package/dist/chunks/thinkback-1.1.32-awsxj77a.mjs +0 -1
  815. package/dist/chunks/thinkback-play-1.1.32-jz9fjb47.mjs +0 -1
  816. package/dist/chunks/toolPool-1.1.32-fjydq0km.mjs +0 -1
  817. package/dist/chunks/toolSearch-1.1.32-y8vfsj9n.mjs +0 -1
  818. package/dist/chunks/tools-1.1.32-pd8bskwj.mjs +0 -1
  819. package/dist/chunks/trustedDevice-1.1.32-891wyppj.mjs +0 -1
  820. package/dist/chunks/turndown.cjs-1.1.32-nsrwegv6.mjs +0 -69
  821. package/dist/chunks/types-1.1.32-v6b8jgxx.mjs +0 -1
  822. package/dist/chunks/ultrareviewCommand-1.1.32-wkj4mpew.mjs +0 -4
  823. package/dist/chunks/update-1.1.32-zz1tgpba.mjs +0 -72
  824. package/dist/chunks/upload-1.1.32-43gcqyx2.mjs +0 -7
  825. package/dist/chunks/upstreamproxy-1.1.32-nqwkbma5.mjs +0 -14
  826. package/dist/chunks/usage-1.1.32-80bkg4qd.mjs +0 -1
  827. package/dist/chunks/util-1.1.32-c7zmr7sf.mjs +0 -1
  828. package/dist/chunks/utils-1.1.32-x2mf8n7e.mjs +0 -1
  829. package/dist/chunks/vim-1.1.32-mz41whem.mjs +0 -1
  830. package/dist/chunks/watchLoop-1.1.32-yftqp4h6.mjs +0 -13
  831. package/dist/chunks/watcher-1.1.32-jy13qnvt.mjs +0 -1
  832. package/dist/chunks/wiki-1.1.32-z6ngme51.mjs +0 -132
  833. package/dist/chunks/workflows-1.1.32-mpyvb578.mjs +0 -1
  834. package/dist/chunks/worktree-1.1.32-qxw9fxfk.mjs +0 -1
  835. package/dist/chunks/worktreeModeEnabled-1.1.32-w3d8pgmt.mjs +0 -1
  836. package/dist/chunks/wrapper-1.1.32-5xty3sv5.mjs +0 -7
@@ -0,0 +1,2 @@
1
+ import{UW as N,VW as U,WW as H,lX as I,mX as V,nX as p}from"./cli-1.1.33-9zba2a1d.mjs";import{Q1 as L,S1 as P}from"./cli-1.1.33-h27b2an0.mjs";import{T1 as F}from"./cli-1.1.33-czrp8ff2.mjs";import{_ma as T,fpa as A}from"./cli-1.1.33-87p06j57.mjs";import{pqa as _,tqa as $}from"./cli-1.1.33-cfj1bzen.mjs";function v({children:W,ref:X,stickyScroll:Y,...E}){let w=C.useRef(null),[,Z]=C.useState(0),G=C.useRef(new Set),J=C.useRef(!1),O=()=>{for(let g of G.current)g()};function K(g){if(T(),N(g),O(),J.current)return;J.current=!0,queueMicrotask(()=>{J.current=!1,U(g)})}return C.useImperativeHandle(X,()=>({scrollTo(g){let q=w.current;if(!q)return;q.stickyScroll=!1,q.pendingScrollDelta=void 0,q.scrollAnchor=void 0,q.scrollTop=Math.max(0,Math.floor(g)),K(q)},scrollToElement(g,q=0){let z=w.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor={el:g,offset:q},K(z)},scrollBy(g){let q=w.current;if(!q)return;q.stickyScroll=!1,q.scrollAnchor=void 0,q.pendingScrollDelta=(q.pendingScrollDelta??0)+Math.floor(g),K(q)},scrollToBottom(){let g=w.current;if(!g)return;g.pendingScrollDelta=void 0,g.stickyScroll=!0,N(g),O(),Z((q)=>q+1)},getScrollTop(){return w.current?.scrollTop??0},getPendingDelta(){return w.current?.pendingScrollDelta??0},getScrollHeight(){return w.current?.scrollHeight??0},getFreshScrollHeight(){return w.current?.childNodes[0]?.yogaNode?.getComputedHeight()??w.current?.scrollHeight??0},getViewportHeight(){return w.current?.scrollViewportHeight??0},getViewportTop(){return w.current?.scrollViewportTop??0},isSticky(){let g=w.current;if(!g)return!1;return g.stickyScroll??Boolean(g.attributes.stickyScroll)},subscribe(g){return G.current.add(g),()=>G.current.delete(g)},setClampBounds(g,q){let z=w.current;if(!z)return;z.scrollClampMin=g,z.scrollClampMax=q}}),[]),L("ink-box",{ref:(g)=>{if(w.current=g,g)g.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:E.flexDirection??"row",flexGrow:E.flexGrow??0,flexShrink:E.flexShrink??1,...E,overflowX:"scroll",overflowY:"scroll"},...Y?{stickyScroll:!0}:{},children:L(V,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:W})})}var C,S;var D=$(()=>{A();H();I();p();P();C=_(F(),1);S=v});
2
+ export{S as Si,D as Ti};
@@ -0,0 +1,2 @@
1
+ import{TG as U,UG as w}from"./cli-1.1.33-vgynvhys.mjs";import{FX as N,HX as O,mY as k,tW as f}from"./cli-1.1.33-9zba2a1d.mjs";import{Q1 as M,R1 as H,S1 as R}from"./cli-1.1.33-h27b2an0.mjs";import{pqa as Y,tqa as Z}from"./cli-1.1.33-cfj1bzen.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
2
+ export{_ as Lg,A as Mg};
@@ -0,0 +1,2 @@
1
+ import{Ika as z,Mka as F,fpa as I}from"./cli-1.1.33-87p06j57.mjs";import{tqa as E}from"./cli-1.1.33-cfj1bzen.mjs";import{AsyncLocalStorage as J}from"async_hooks";function U(G,H){return D.run(G,H)}function K(){return D.getStore()??F()}function V(){try{return K()}catch{return z()}}function W(){return D.getStore()??z()}var D;var M=E(()=>{I();D=new J});var Y="command-name",Z="command-message",$="command-args",j="bash-input",q="bash-stdout",B="bash-stderr",L="local-command-stdout",R="local-command-stderr",_="local-command-caveat",b="tick",x="task-notification",A="task-id",T="tool-use-id",k="task-type",p="output-file",u="status",v="summary",y="worktree",f="worktreePath",C="worktreeBranch",S="remote-review",O="remote-review-progress",m="teammate-message",g="fork-boilerplate",h="Your directive: ",l,w;var N=E(()=>{l=["help","-h","--help"],w=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
+ export{U as nha,K as oha,V as pha,W as qha,M as rha,Y as sha,Z as tha,$ as uha,j as vha,q as wha,B as xha,L as yha,R as zha,_ as Aha,b as Bha,x as Cha,A as Dha,T as Eha,k as Fha,p as Gha,u as Hha,v as Iha,y as Jha,f as Kha,C as Lha,S as Mha,O as Nha,m as Oha,g as Pha,h as Qha,l as Rha,w as Sha,N as Tha};
@@ -0,0 +1,2 @@
1
+ import{Af as VJ,wf as NG,xf as UG}from"./cli-1.1.33-2xqjkz7r.mjs";import{$z as CG,DO as qJ,Dz as PJ,EO as CJ,Kx as IG,Lx as KJ,Mz as pJ,TG as GG,Ty as AG,UG as YJ,Vy as QJ,Wy as XJ,Xy as TJ,ZE as JG,cO as LG,dA as dJ,dO as ZJ,fO as uG,gm as JJ,hm as gJ,hz as zJ,jF as cG,jz as MG,kx as FG,kz as hG,lz as TG,mx as hJ,mz as dG,px as wG,pz as fG,qx as LJ,tx as h,ux as $G,vx as m,wx as DG,wz as jG,xx as t,yx as PG}from"./cli-1.1.33-vgynvhys.mjs";import{DX as C,FX as Y,HX as Q,LX as EG,aY as GJ,mY as qG,tW as BG,xW as kG}from"./cli-1.1.33-9zba2a1d.mjs";import{GZ as gG,HZ as AJ}from"./cli-1.1.33-z5rv4tr3.mjs";import{E0 as _J,s0 as eG}from"./cli-1.1.33-8xyzgp13.mjs";import{P1 as a,Q1 as L,R1 as X,S1 as x}from"./cli-1.1.33-h27b2an0.mjs";import{T1 as pG}from"./cli-1.1.33-czrp8ff2.mjs";import{M5 as SJ,z5 as sG}from"./cli-1.1.33-525zf497.mjs";import{$ca as FJ,Ica as OG,Jca as yG,Kca as WJ,_ca as HG,bga as rG,dga as bJ,hda as mG,v9 as S,w9 as tG}from"./cli-1.1.33-20v60hvd.mjs";import{aia as _G,bia as BJ}from"./cli-1.1.33-283f43sy.mjs";import{Bja as zG,Ija as oG}from"./cli-1.1.33-90w26xxw.mjs";import{pqa as s,tqa as e}from"./cli-1.1.33-cfj1bzen.mjs";function WG(J){let G=lG.c(9),{serverToolsCount:Z,serverPromptsCount:F,serverResourcesCount:q}=J,z;if(G[0]!==F||G[1]!==q||G[2]!==Z){if(z=[],Z>0)z.push("tools");if(q>0)z.push("resources");if(F>0)z.push("prompts");G[0]=F,G[1]=q,G[2]=Z,G[3]=z}else z=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==z)W=z.length>0?L(t,{children:z}):"none",G[5]=z,G[6]=W;else W=G[6];let w;if(G[7]!==W)w=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=w;else w=G[8];return w}var lG;var bG=e(()=>{qG();PG();x();lG=s(BG(),1)});function KG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function VG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var SG=()=>{};function NL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=wG(),{columns:w}=JJ(),[I,U]=E.default.useState(!1),[p,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=ZJ(),[O,K]=E.default.useState(null),[P,D]=E.useState(!1),N=E.useRef(null),[g,$]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[c,u]=E.useState(null),[n,i]=E.useState(!1),[l,r]=E.useState(!1),v=E.useRef(void 0),B=E.useRef(!1),[vG,QG]=E.useState(""),[kJ,wJ]=E.useState(0),[xG,aG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),v.current!==void 0)clearTimeout(v.current)},[]);let XG=J.isAuthenticated||J.client.type==="connected"&&G>0,YG=NG(),DJ=E.default.useCallback(async()=>{$(!1),T(null),D(!0);try{let V=await YG(J.name);if(V.client.type==="connected")q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){q?.(VG(V,J.name))}finally{D(!1)}},[YG,J.name,q]),MJ=E.default.useCallback(async()=>{await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"needs-auth"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Disconnected from ${J.name}.`),y(!1),u(null),i(!1)},[J.name,J.config,J.scope,f,q]);FG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),FG("confirm:no",()=>{$(!1),T(null)},{context:"Confirmation",isActive:g}),FG("confirm:no",()=>{y(!1),u(null),i(!1)},{context:"Confirmation",isActive:A}),GJ((V,H)=>{if(H.return&&g)DJ();if(H.return&&A)if(n)MJ();else{let M=`${_G().CLAUDE_AI_ORIGIN}/settings/connectors`;u(M),i(!0),gG(M)}if(V==="c"&&!l){let M=O||j||c;if(M)eG(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(r(!0),v.current!==void 0)clearTimeout(v.current);v.current=setTimeout(r,2000,!1)})}});let fJ=HG(String(J.name)),NJ=MG(_.commands,J.name).length,nG=UG(),UJ=E.default.useCallback(async()=>{let V=_G().CLAUDE_AI_ORIGIN,M=sG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let ZG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,o=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${ZG}?product_surface=${o}`}else d=`${V}/settings/connectors`;T(d),$(!0),await gG(d)},[J.config]),RJ=E.default.useCallback(()=>{y(!0)},[]),OJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{await nG(J.name),F()}catch(H){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${zG(H)}`)}},[J.client.type,J.config.type,J.name,nG,F,q]),yJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await AG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await XJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{aG(()=>M)}});let H=await YG(J.name);if(H.client.type==="connected"){let M=XG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(H.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else rG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(H){if(H instanceof Error&&!(H instanceof QJ))R(H.message)}finally{U(!1),N.current=null,aG(null),QG("")}},[J.isAuthenticated,J.config,J.name,q,YG,XG]),IJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await AG(J.name,J.config),await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"failed"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:O})]}),I&&O&&xG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(qJ,{value:vG,onChange:QG,onSubmit:(H)=>{xG(H.trim()),QG("")},cursorOffset:kJ,onChangeCursorOffset:wJ,columns:w-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),j&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:j})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),n?X(a,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(a,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(XG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!XG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[fJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[C("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),XG?X(Q,{children:[C("success",k)(S.tick)," authenticated"]}):X(Q,{children:[C("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:fG(J.scope)})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:NJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),p&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",p]})}),b.length>0&&L(Y,{marginTop:1,children:L(JG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await yJ();break;case"clear-auth":await IJ();break;case"claudeai-auth":await UJ();break;case"claudeai-clear-auth":RJ();break;case"reconnectMcpServer":D(!0);try{let H=await YG(J.name),{message:M}=KG(H,J.name);q?.(M)}catch(H){q?.(VG(H,J.name))}finally{D(!1)}break;case"toggle-enabled":await OJ();break;case"back":F();break}},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var mJ=e(()=>{tG();BJ();LJ();gJ();_J();qG();hJ();TJ();dJ();VJ();jG();uG();SJ();AJ();oG();bJ();mG();DG();cG();PG();$G();YJ();CJ();bG();SG();x();E=s(pG(),1)});function jL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=wG(),w=LG((P)=>P.mcp),I=NG(),U=UG(),[p,R]=RG.useState(!1),_=RG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),F()}catch(D){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${zG(D)}`)}},[J.client.type,J.name,U,F,q]),f=HG(String(J.name)),O=MG(w.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if(p)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:fG(PJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:w.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(JG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let D=await I(J.name),{message:N}=KG(D,J.name);q?.(N)}catch(D){q?.(VG(D,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")F()},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var RG;var $J=e(()=>{tG();LJ();qG();pJ();VJ();jG();uG();oG();mG();DG();cG();PG();$G();YJ();bG();SG();x();RG=s(pG(),1)});function nL(J){let G=EJ.c(44),{tool:Z,server:F,onBack:q}=J,[z,k]=iG.default.useState(""),W,w;if(G[0]!==F.name||G[1]!==Z){w=OG(Z.name,F.name);let r=Z.userFacingName?Z.userFacingName({}):w;W=yG(r),G[0]=F.name,G[1]=Z,G[2]=W,G[3]=w}else W=G[2],w=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let p=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];iG.default.useEffect(K,P);let D;if(G[13]!==p)D=p&&L(Q,{color:"success",children:" [read-only]"}),G[13]=p,G[14]=D;else D=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let $;if(G[19]!==I||G[20]!==D||G[21]!==N||G[22]!==g)$=X(a,{children:[I,D,N,g]}),G[19]=I,G[20]=D,G[21]=N,G[22]=g,G[23]=$;else $=G[23];let j=$,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==w)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:w})]}),G[25]=w,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let c;if(G[28]!==Z.name)c=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=c;else c=G[29];let u;if(G[30]!==z)u=z&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:z})]}),G[30]=z,G[31]=u;else u=G[31];let n;if(G[32]!==Z.inputJSONSchema)n=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((r)=>{let[v,B]=r,QG=Z.inputJSONSchema?.required?.includes(v);return X(Q,{children:["• ",v,QG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},v)})})]}),G[32]=Z.inputJSONSchema,G[33]=n;else n=G[33];let i;if(G[34]!==A||G[35]!==c||G[36]!==u||G[37]!==n)i=X(Y,{flexDirection:"column",children:[A,c,u,n]}),G[34]=A,G[35]=c,G[36]=u,G[37]=n,G[38]=i;else i=G[38];let l;if(G[39]!==q||G[40]!==F.name||G[41]!==i||G[42]!==j)l=L(IG,{title:j,subtitle:F.name,onCancel:q,inputGuide:jJ,children:i}),G[39]=q,G[40]=F.name,G[41]=i,G[42]=j,G[43]=l;else l=G[43];return l}function jJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var EJ,iG;var cJ=e(()=>{qG();WJ();DG();KJ();x();EJ=s(BG(),1),iG=s(pG(),1)});function ZQ(J){let G=HJ.c(21),{server:Z,onSelectTool:F,onBack:q}=J,z=LG(iJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==z||G[2]!==Z.name)K=zJ(z,Z.name),G[1]=z,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,w;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,D)=>{let N=OG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,$=yG(g),j=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:$,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];w=W.map(K),G[4]=Z.name,G[5]=W,G[6]=w}else w=G[6];let I=w,U=`Tools for ${Z.name}`,p=W.length,R;if(G[9]!==W.length)R=FJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${p} ${R}`,f;if(G[11]!==q||G[12]!==F||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(JG,{options:I,onChange:(K)=>{let P=parseInt(K),D=W[P];if(D)F(D,P)},onCancel:q}),G[11]=q,G[12]=F,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(IG,{title:U,subtitle:_,onCancel:q,inputGuide:uJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function iJ(J){return J.mcp.tools}var HJ;var vJ=e(()=>{qG();WJ();jG();uG();mG();DG();cG();PG();KJ();$G();x();HJ=s(BG(),1)});
2
+ export{NL as of,mJ as pf,jL as qf,$J as rf,nL as sf,cJ as tf,ZQ as uf,vJ as vf};
@@ -0,0 +1,2 @@
1
+ import{rc as Q,sc as Y}from"./cli-1.1.33-k1vhqgx4.mjs";import{Al as B,El as U,Fl as V,oz as K,tt as J,ut as W,wz as X,zl as H}from"./cli-1.1.33-vgynvhys.mjs";import{qqa as q,tqa as v}from"./cli-1.1.33-cfj1bzen.mjs";function P(k){return x.some((h)=>k.endsWith(h))}function C(k){return k.filter((h)=>H.has(h.name)||P(h.name))}function A(k,h,E){let[Z,$]=Q(J([...k,...h],"name"),K),w=(g,j)=>g.name.localeCompare(j.name),z=[...$.sort(w),...Z.sort(w)];if(G){if(G.isCoordinatorMode())return C(z)}return z}var x,G;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];G=(V(),q(U))});
2
+ export{P as nc,C as oc,A as pc,D as qc};
@@ -0,0 +1,5 @@
1
+ import{ub as U}from"./cli-1.1.33-ggk9m978.mjs";import{ju as N,ku as v}from"./cli-1.1.33-vgynvhys.mjs";import{hV as y,kV as c,oV as H,pV as z,uV as T}from"./cli-1.1.33-n55k105y.mjs";import{$5 as x,Q5 as O,T5 as S,_5 as P,e6 as f}from"./cli-1.1.33-t8cxmf0c.mjs";import{E8 as R,W8 as m}from"./cli-1.1.33-0kvxjey5.mjs";import{x_ as Z,z_ as A}from"./cli-1.1.33-20v60hvd.mjs";import{Gia as B,Lia as D,bja as Y,eja as L}from"./cli-1.1.33-241y9eee.mjs";import{Oja as E,Wja as k}from"./cli-1.1.33-ad43mr1x.mjs";import{uqa as F}from"./cli-1.1.33-cfj1bzen.mjs";m();L();A();c();v();L();A();k();S();f();T();D();var b=`{"type":"keep_alive"}
2
+ `,C=1000,I=1000,_=30000,u=600000,h=1e4,w=300000,q=_*2,p=new Set([1002,4001,4003]);class M{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(C)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:x(this.url.href),tls:O()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-1.1.33-qgpy796k.mjs"),Q=new K(this.url.href,{headers:J,agent:P(this.url.href),...O()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),H(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&p.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>q)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<u){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let G=this.refreshHeaders();Object.assign(this.headers,G),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(I*Math.pow(2,this.reconnectAttempts-1),_),j=Math.max(0,$+$*0.25*(2*Math.random()-1));Y(`WebSocketTransport: Reconnecting in ${Math.round(j)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},j)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((j)=>("uuid"in j)&&j.uuid===J);if($>=0){Q=$+1;let j=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(j),j.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${j.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:j.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let j=B($)+`
3
+ `;if(!this.sendLine(j)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=B(J)+`
4
+ `;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>q){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},h)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),E(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(b),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},w)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var i=100,d=15000,g=3000;class t extends M{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:j,onBatchDropped:G}=$??{};this.postUrl=l(J),this.uploader=new U({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:j,onBatchDropped:(V,W)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:V,failures:W}),G?.(V,W)},send:(V)=>this.postOnce(V)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),i);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,g)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=y();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await R.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:d})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function l(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
5
+ export{M as R,t as S};
@@ -0,0 +1,24 @@
1
+ import{Lb as v0}from"./cli-1.1.33-1mfasbf1.mjs";import{Wd as H0,Zd as u9}from"./cli-1.1.33-ad75ezdj.mjs";import{ei as QZ,fi as b6}from"./cli-1.1.33-8esj8tkg.mjs";import{Yi as O0,Zi as o9}from"./cli-1.1.33-bczwyjaq.mjs";import{$w as O6,DM as P0,DS as N0,EM as e9,GS as B0,Gr as lQ,Gx as jZ,Hr as h0,Hx as kY,IQ as RQ,Ir as UQ,JJ as r,Jr as _0,MQ as CQ,PJ as E0,Pv as G0,Qv as k9,Rj as XQ,SM as DY,TD as A0,TG as FZ,UG as cY,UM as _Y,Uj as _Z,WD as i9,WJ as j0,Wt as IZ,Xt as sY,YM as AY,Yt as V0,ZE as $Z,Zj as w0,Zt as x9,_E as uY,_w as n0,cO as bZ,cR as _Q,dN as k6,el as WY,fD as CZ,fO as mY,fl as F6,fo as wY,gD as SZ,gl as XY,gm as AZ,go as x6,hD as xZ,hK as J0,hl as KY,hm as CY,iD as kZ,iK as p9,il as $Q,ir as D0,jD as pZ,jl as tQ,kA as UZ,kD as uZ,kP as $0,kl as VY,kx as yZ,lD as xQ,ll as ZQ,lx as OZ,mD as kQ,mE as y0,ml as sQ,mx as SY,nA as PZ,nD as cZ,nl as GY,oA as TQ,oD as mZ,oE as r9,ol as JY,pD as dZ,pl as m0,pt as K0,px as EZ,qD as gZ,qK as g,qS as f0,qt as S9,qx as xY,rD as lZ,rn as yQ,sA as pY,sD as aZ,sK as t9,sP as F0,tD as nZ,tM as U0,uD as iZ,uM as s9,uP as b0,un as OQ,vD as rZ,vn as hZ,vp as u0,wD as Z9,yP as Q6,yp as H6,zS as M0}from"./cli-1.1.33-vgynvhys.mjs";import{FX as k,HX as f,mY as RY,tW as IY}from"./cli-1.1.33-9zba2a1d.mjs";import{P1 as m,Q1 as y,R1 as M,S1 as XZ}from"./cli-1.1.33-h27b2an0.mjs";import{T1 as hY}from"./cli-1.1.33-czrp8ff2.mjs";import{M5 as J6,V4 as p0,u3 as k0,y3 as G6}from"./cli-1.1.33-525zf497.mjs";import{Aca as S6,B_ as c0,D$ as R6,Jda as x0,Lca as C0,M_ as v6,Mca as S0,Oca as K6,S9 as a0,Saa as fQ,Tfa as wZ,Uaa as fY,Wda as V6,Wfa as TY,X9 as y6,_$ as zY,_fa as o,dga as DZ,g$ as LY,tca as qY,v9 as wQ,vaa as C6,w9 as bY,x_ as X0,z_ as C9}from"./cli-1.1.33-20v60hvd.mjs";import{Aga as FY,mga as GZ,uga as JZ}from"./cli-1.1.33-n2d1txyn.mjs";import{jha as Q,kha as GQ,lha as L,mha as AQ}from"./cli-1.1.33-f83qf2zv.mjs";import{Bha as LZ,Cha as zZ,Oha as qZ,Tha as MY,pha as R0,rha as X6,tha as MQ,wha as HZ,xha as NZ,yha as BZ,zha as vZ}from"./cli-1.1.33-3de2dtv6.mjs";import{Gia as s,Hia as Y0,Lia as jQ,bja as T,eia as l0,eja as VQ,gia as A6}from"./cli-1.1.33-241y9eee.mjs";import{gja as W0,kja as R9}from"./cli-1.1.33-7qr8n3qn.mjs";import{Bja as vY,Cja as iQ,Ija as cQ,nja as Z0}from"./cli-1.1.33-90w26xxw.mjs";import{Aoa as QY,Cka as HQ,Coa as ZY,Doa as eQ,Foa as YY,Ika as ZZ,Jka as g0,fpa as JQ,hna as I0,ioa as e0,joa as LQ,xka as L0}from"./cli-1.1.33-87p06j57.mjs";import{pqa as VZ,sqa as IQ,tqa as DQ,uqa as gQ}from"./cli-1.1.33-cfj1bzen.mjs";var oY={};IQ(oY,{selectableUserMessagesFilter:()=>TZ,messagesAfterAreOnlySynthetic:()=>rY,MessageSelector:()=>gY});import{randomUUID as dY}from"crypto";import*as QQ from"path";function fZ(Y){return Y.type==="text"}function hQ(Y){return Y==="summarize"||Y==="summarize_up_to"}function gY({messages:Y,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:K,onClose:J,preselectedMessage:G}){let V=bZ((A)=>A.fileHistory),[B,v]=I.useState(void 0),N=UZ(),w=I.useMemo(dY,[]),O=I.useMemo(()=>[...Y.filter(TZ),{...r({content:""}),uuid:w}],[Y,w]),[$,z]=I.useState(O.length-1),h=Math.max(0,Math.min($-Math.floor(bQ/2),O.length-bQ)),E=O.length>1,[D,_]=I.useState(G),[R,F]=I.useState(void 0);I.useEffect(()=>{if(!G||!N)return;let A=!1;return TQ(V,G.uuid).then((S)=>{if(!A)F(S)}),()=>{A=!0}},[G,N,V]);let[j,U]=I.useState(!1),[c,d]=I.useState(null),[n,C]=I.useState("both"),[x,q]=I.useState(""),[b,P]=I.useState("");function H(A){let S=A?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],p={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return S.push({value:"summarize",label:"Summarize from here",...p,onChange:q}),S.push({value:"nevermind",label:"Never mind"}),S}async function l(A){Z(),U(!0);try{await W(A),U(!1),J()}catch(S){o(S),U(!1),v(`Failed to restore the conversation:
2
+ ${S}`)}}async function i(A){let S=Y.indexOf(A),p=Y.length-1-S;if(!Y.includes(A)){J();return}if(!N){await l(A);return}let u=await TQ(V,A.uuid);_(A),F(u)}async function YQ(A){if(!D){v("Message not found.");return}if(A==="nevermind"){if(G)J();else _(void 0);return}if(hQ(A)){Z(),U(!0),d(A),v(void 0);try{let u=A==="summarize_up_to"?"up_to":"from",e=(u==="up_to"?b:x).trim()||void 0;await K(D,e,u),U(!1),d(null),_(void 0),J()}catch(u){o(u),U(!1),d(null),_(void 0),v(`Failed to summarize:
3
+ ${u}`)}return}Z(),U(!0),v(void 0);let S=null,p=null;if(A==="code"||A==="both")try{await X(D)}catch(u){S=u,o(S)}if(A==="conversation"||A==="both")try{await W(D)}catch(u){p=u,o(p)}if(U(!1),_(void 0),p&&S)v(`Failed to restore the conversation and code:
4
+ ${p}
5
+ ${S}`);else if(p)v(`Failed to restore the conversation:
6
+ ${p}`);else if(S)v(`Failed to restore the code:
7
+ ${S}`);else J()}let WQ=EZ(),t=I.useCallback(()=>{if(D&&!G){_(void 0);return}J()},[J,D,G]),OY=I.useCallback(()=>z((A)=>Math.max(0,A-1)),[]),EY=I.useCallback(()=>z((A)=>Math.min(O.length-1,A+1)),[O.length]),jY=I.useCallback(()=>z(0),[]),UY=I.useCallback(()=>z(O.length-1),[O.length]),PY=I.useCallback(()=>{let A=O[$];if(A)i(A)},[O,$,i]);yZ("confirm:no",t,{context:"Confirmation",isActive:!D}),OZ({"messageSelector:up":OY,"messageSelector:down":EY,"messageSelector:top":jY,"messageSelector:bottom":UY,"messageSelector:select":PY},{context:"MessageSelector",isActive:!j&&!B&&!D&&E});let[YZ,WZ]=I.useState({});I.useEffect(()=>{async function A(){if(!N)return;Promise.all(O.map(async(S,p)=>{if(S.uuid!==w){let u=PZ(V,S.uuid),e=O.at(p+1),qQ=u?iY(Y,S.uuid,e?.uuid!==w?e?.uuid:void 0):void 0;if(qQ!==void 0)WZ((a)=>({...a,[p]:qQ}));else WZ((a)=>({...a,[p]:void 0}))}}))}A()},[O,Y,w,V,N]);let zQ=N&&R?.filesChanged&&R.filesChanged.length>0,$Y=!B&&!D&&!G&&E;return M(k,{flexDirection:"column",width:"100%",children:[y(jZ,{color:"suggestion"}),M(k,{flexDirection:"column",marginX:1,gap:1,children:[y(f,{bold:!0,color:"suggestion",children:"Rewind"}),B&&y(m,{children:M(f,{color:"error",children:["Error: ",B]})}),!E&&y(m,{children:y(f,{children:"Nothing to rewind to yet."})}),!B&&D&&E&&M(m,{children:[M(f,{children:["Confirm you want to restore"," ",!R&&"the conversation ","to the point before you sent this message:"]}),M(k,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[y(KZ,{userMessage:D,color:"text",isCurrent:!1}),M(f,{dimColor:!0,children:["(",JZ(new Date(D.timestamp)),")"]})]}),y(aY,{selectedRestoreOption:n,canRestoreCode:!!zQ,diffStatsForRestore:R}),j&&hQ(c)?M(k,{flexDirection:"row",gap:1,children:[y(FZ,{}),y(f,{children:"Summarizing…"})]}):y($Z,{isDisabled:j,options:H(!!zQ),defaultFocusValue:zQ?"both":"conversation",onFocus:(A)=>C(A),onChange:(A)=>YQ(A),onCancel:()=>G?J():_(void 0)}),zQ&&y(k,{marginBottom:1,children:M(f,{dimColor:!0,children:[wQ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),$Y&&M(m,{children:[N?y(f,{children:"Restore the code and/or conversation to the point before…"}):y(f,{children:"Restore and fork the conversation to the point before…"}),y(k,{width:"100%",flexDirection:"column",children:O.slice(h,h+bQ).map((A,S)=>{let p=h+S,u=p===$,e=A.uuid===w,qQ=p in YZ,a=YZ[p],FQ=a?.filesChanged&&a.filesChanged.length;return M(k,{height:N?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[y(k,{width:2,minWidth:2,children:u?M(f,{color:"permission",bold:!0,children:[wQ.pointer," "]}):y(f,{children:" "})}),M(k,{flexDirection:"column",children:[y(k,{flexShrink:1,height:1,overflow:"hidden",children:y(KZ,{userMessage:A,color:u?"suggestion":void 0,isCurrent:e,paddingRight:10})}),N&&qQ&&y(k,{height:1,flexDirection:"row",children:a?y(m,{children:y(f,{dimColor:!u,color:"inactive",children:FQ?M(m,{children:[FQ===1&&a.filesChanged[0]?`${QQ.basename(a.filesChanged[0])} `:`${FQ} files changed `,y(MZ,{diffStats:a})]}):y(m,{children:"No code changes"})})}):M(f,{dimColor:!0,color:"warning",children:[wQ.warning," No code restore"]})})]})]},A.uuid)})})]}),!D&&y(f,{dimColor:!0,italic:!0,children:WQ.pending?M(m,{children:["Press ",WQ.keyName," again to exit"]}):M(m,{children:[!B&&E&&"Enter to continue · ","Esc to exit"]})})]})]})}function lY(Y){switch(Y){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function aY(Y){let Z=KQ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:K}=Y,J=X&&(W==="both"||W==="code"),G;if(Z[0]!==W)G=lY(W),Z[0]=W,Z[1]=G;else G=Z[1];let V;if(Z[2]!==G)V=y(f,{dimColor:!0,children:G}),Z[2]=G,Z[3]=V;else V=Z[3];let B;if(Z[4]!==K||Z[5]!==W||Z[6]!==J)B=!hQ(W)&&(J?y(nY,{diffStatsForRestore:K}):y(f,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=K,Z[5]=W,Z[6]=J,Z[7]=B;else B=Z[7];let v;if(Z[8]!==V||Z[9]!==B)v=M(k,{flexDirection:"column",children:[V,B]}),Z[8]=V,Z[9]=B,Z[10]=v;else v=Z[10];return v}function nY(Y){let Z=KQ.c(14),{diffStatsForRestore:W}=Y;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=y(f,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=V;else V=Z[0];return V}let X=W.filesChanged.length,K;if(X===1){let V;if(Z[1]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=V;else V=Z[2];K=V}else if(X===2){let V;if(Z[3]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=V;else V=Z[4];let B=V,v;if(Z[5]!==W.filesChanged[1])v=QQ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=v;else v=Z[6];K=`${B} and ${v}`}else{let V;if(Z[7]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=V;else V=Z[8];K=`${V} and ${W.filesChanged.length-1} other files`}let J;if(Z[9]!==W)J=y(MZ,{diffStats:W}),Z[9]=W,Z[10]=J;else J=Z[10];let G;if(Z[11]!==K||Z[12]!==J)G=y(m,{children:M(f,{dimColor:!0,children:["The code will be restored"," ",J," in ",K,"."]})}),Z[11]=K,Z[12]=J,Z[13]=G;else G=Z[13];return G}function MZ(Y){let Z=KQ.c(7),{diffStats:W}=Y;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=M(f,{color:"diffAddedWord",children:["+",W.insertions," "]}),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let K;if(Z[2]!==W.deletions)K=M(f,{color:"diffRemovedWord",children:["-",W.deletions]}),Z[2]=W.deletions,Z[3]=K;else K=Z[3];let J;if(Z[4]!==X||Z[5]!==K)J=M(m,{children:[X,K]}),Z[4]=X,Z[5]=K,Z[6]=J;else J=Z[6];return J}function KZ(Y){let Z=KQ.c(31),{userMessage:W,color:X,dimColor:K,isCurrent:J,paddingRight:G}=Y,{columns:V}=AZ();if(J){let F;if(Z[0]!==X||Z[1]!==K)F=y(k,{width:"100%",children:y(f,{italic:!0,color:X,dimColor:K,children:"(current)"})}),Z[0]=X,Z[1]=K,Z[2]=F;else F=Z[2];return F}let B=W.message.content,v=typeof B==="string"?null:B[B.length-1],N,w,O,$,z,h,E,D;if(Z[3]!==X||Z[4]!==V||Z[5]!==B||Z[6]!==K||Z[7]!==v||Z[8]!==G){D=Symbol.for("react.early_return_sentinel");Q:{let F=typeof B==="string"?B.trim():v&&fZ(v)?v.text.trim():"(no prompt)",j=wZ(F);if(_Z(j)){let U;if(Z[17]!==X||Z[18]!==K)U=y(k,{flexDirection:"row",width:"100%",children:y(f,{italic:!0,color:X,dimColor:K,children:"((empty message))"})}),Z[17]=X,Z[18]=K,Z[19]=U;else U=Z[19];D=U;break Q}if(j.includes("<bash-input>")){let U=XQ(j,"bash-input");if(U){let c;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))c=y(f,{color:"bashBorder",children:"!"}),Z[20]=c;else c=Z[20];D=M(k,{flexDirection:"row",width:"100%",children:[c,M(f,{color:X,dimColor:K,children:[" ",U]})]});break Q}}if(j.includes(`<${MQ}>`)){let U=XQ(j,MQ),c=XQ(j,"command-args"),d=XQ(j,"skill-format")==="true";if(U)if(d){D=y(k,{flexDirection:"row",width:"100%",children:M(f,{color:X,dimColor:K,children:["Skill(",U,")"]})});break Q}else{D=y(k,{flexDirection:"row",width:"100%",children:M(f,{color:X,dimColor:K,children:["/",U," ",c]})});break Q}}w=k,h="row",E="100%",N=f,O=X,$=K,z=G?GZ(j,V-G,!0):j.slice(0,500).split(`
8
+ `).slice(0,4).join(`
9
+ `)}Z[3]=X,Z[4]=V,Z[5]=B,Z[6]=K,Z[7]=v,Z[8]=G,Z[9]=N,Z[10]=w,Z[11]=O,Z[12]=$,Z[13]=z,Z[14]=h,Z[15]=E,Z[16]=D}else N=Z[9],w=Z[10],O=Z[11],$=Z[12],z=Z[13],h=Z[14],E=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let _;if(Z[21]!==N||Z[22]!==O||Z[23]!==$||Z[24]!==z)_=y(N,{color:O,dimColor:$,children:z}),Z[21]=N,Z[22]=O,Z[23]=$,Z[24]=z,Z[25]=_;else _=Z[25];let R;if(Z[26]!==w||Z[27]!==h||Z[28]!==E||Z[29]!==_)R=y(w,{flexDirection:h,width:E,children:_}),Z[26]=w,Z[27]=h,Z[28]=E,Z[29]=_,Z[30]=R;else R=Z[30];return R}function iY(Y,Z,W){let X=Y.findIndex((B)=>B.uuid===Z);if(X===-1)return;let K=W?Y.findIndex((B)=>B.uuid===W):Y.length;if(K===-1)K=Y.length;let J=[],G=0,V=0;for(let B=X+1;B<K;B++){let v=Y[B];if(!v||!CQ(v))continue;let N=v.toolUseResult;if(!N||!N.filePath||!N.structuredPatch)continue;if(!J.includes(N.filePath))J.push(N.filePath);try{if("type"in N&&N.type==="create")G+=N.content.split(/\r?\n/).length;else for(let w of N.structuredPatch){let O=fQ(w.lines,(z)=>z.startsWith("+")),$=fQ(w.lines,(z)=>z.startsWith("-"));G+=O,V+=$}}catch{continue}}return{filesChanged:J,insertions:G,deletions:V}}function TZ(Y){if(Y.type!=="user")return!1;if(Array.isArray(Y.message.content)&&Y.message.content[0]?.type==="tool_result")return!1;if(RQ(Y))return!1;if(Y.isMeta)return!1;if(Y.isCompactSummary||Y.isVisibleInTranscriptOnly)return!1;let Z=Y.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&fZ(W)?W.text.trim():"";if(X.indexOf(`<${BZ}>`)!==-1||X.indexOf(`<${vZ}>`)!==-1||X.indexOf(`<${HZ}>`)!==-1||X.indexOf(`<${NZ}>`)!==-1||X.indexOf(`<${zZ}>`)!==-1||X.indexOf(`<${LZ}>`)!==-1||X.indexOf(`<${qZ}`)!==-1)return!1;return!0}function rY(Y,Z){for(let W=Z+1;W<Y.length;W++){let X=Y[W];if(!X)continue;if(RQ(X))continue;if(CQ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let K=X.message.content;if(Array.isArray(K)){if(K.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var KQ,I,bQ=7;var tY=DQ(()=>{bY();mY();pY();DZ();xY();RY();SY();TY();_Q();uY();cY();CY();MY();fY();FY();kY();XZ();KQ=VZ(IY(),1),I=VZ(hY(),1)});var D6={};IQ(D6,{getCronJitterConfig:()=>w6});function w6(){let Y=c0("tengu_kairos_cron_config",ZQ,L6),Z=q6().safeParse(Y);return Z.success?Z.data:ZQ}var L6=60000,aQ=1800000,z6=2592000000,q6;var _6=DQ(()=>{GQ();v6();m0();AQ();q6=L(()=>Q.object({recurringFrac:Q.number().min(0).max(1),recurringCapMs:Q.number().int().min(0).max(aQ),oneShotMaxMs:Q.number().int().min(0).max(aQ),oneShotFloorMs:Q.number().int().min(0).max(aQ),oneShotMinuteMod:Q.number().int().min(1).max(60),recurringMaxAgeMs:Q.number().int().min(0).max(z6).default(ZQ.recurringMaxAgeMs)}).refine((Y)=>Y.oneShotFloorMs<=Y.oneShotMaxMs))});import{mkdir as E6,readFile as j6,unlink as i0,writeFile as rQ}from"fs/promises";import{dirname as U6,join as r0}from"path";function BQ(Y){return r0(Y??g0(),P6)}async function o0(Y){let Z;try{Z=await j6(BQ(Y),"utf8")}catch{return}let W=$6().safeParse(a0(Z,!1));return W.success?W.data:void 0}async function d0(Y,Z){let W=BQ(Z),X=s(Y);try{return await rQ(W,X,{flag:"wx"}),!0}catch(K){let J=iQ(K);if(J==="EEXIST")return!1;if(J==="ENOENT"){await E6(U6(W),{recursive:!0});try{return await rQ(W,X,{flag:"wx"}),!0}catch(G){if(iQ(G)==="EEXIST")return!1;throw G}}throw K}}function nQ(Y){PQ?.(),PQ=l0(async()=>{await vQ(Y)})}async function oQ(Y){let Z=Y?.dir,W=Y?.lockIdentity??HQ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await d0(X,Z))return NQ=void 0,nQ(Y),T(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let K=await o0(Z);if(K?.sessionId===W){if(K.pid!==process.pid)await rQ(BQ(Z),s(X)),nQ(Y);return!0}if(K&&n0(K.pid)){if(NQ!==K.sessionId)NQ=K.sessionId,T(`[ScheduledTasks] scheduler lock held by session ${K.sessionId} (PID ${K.pid})`);return!1}if(K)T(`[ScheduledTasks] recovering stale scheduler lock from PID ${K.pid}`);if(await i0(BQ(Z)).catch(()=>{}),await d0(X,Z))return NQ=void 0,nQ(Y),!0;return!1}async function vQ(Y){PQ?.(),PQ=void 0,NQ=void 0;let Z=Y?.dir,W=Y?.lockIdentity??HQ(),X=await o0(Z);if(!X||X.sessionId!==W)return;try{await i0(BQ(Z)),T("[ScheduledTasks] released scheduler lock")}catch{}}var P6,$6,PQ,NQ;var t0=DQ(()=>{GQ();JQ();A6();VQ();cQ();O6();y6();AQ();jQ();P6=r0(".claudin","scheduled_tasks.lock"),$6=L(()=>Q.object({sessionId:Q.string(),pid:Q.number(),acquiredAt:Q.number()}))});var h6={};IQ(h6,{takeDueSessionWakeup:()=>NY,isRecurringTaskAged:()=>HY,createCronScheduler:()=>T6,buildMissedTaskNotification:()=>BY});function HY(Y,Z,W){if(W===0)return!1;return Boolean(Y.recurring&&!Y.permanent&&Z-Y.createdAt>=W)}function NY(Y){let Z=eQ();if(!Z||Y<Z.fireAtMs)return null;return YY(),{prompt:QZ(Z.prompt),reason:Z.reason}}function T6(Y){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:K,onMissed:J,onWakeupFire:G,dir:V,lockIdentity:B,getJitterConfig:v,isKilled:N,filter:w}=Y,O=V||B?{dir:V,lockIdentity:B}:void 0,$=[],z=new Map,h=new Set,E=new Set,D=null,_=null,R=null,F=null,j=!1,U=!1;async function c(C){let x=await KY(V);if(j)return;if($=x,!C)return;let q=Date.now(),b=JY(x,q).filter((P)=>!P.recurring&&!h.has(P.id)&&(!w||w(P)));if(b.length>0){for(let P of b)h.add(P.id),z.set(P.id,1/0);if(J)J(b);else Z(BY(b));tQ(b.map((P)=>P.id),V).catch((P)=>T(`[ScheduledTasks] failed to remove missed tasks: ${P}`)),T(`[ScheduledTasks] surfaced ${b.length} missed one-shot task(s)`)}}function d(){if(N?.())return;if(W()&&!X)return;let C=Date.now(),x=new Set,q=[],b=v?.()??ZQ;function P(H,l){if(w&&!w(H))return;if(x.add(H.id),E.has(H.id))return;let i=z.get(H.id);if(i===void 0)i=H.recurring?sQ(H.cron,H.lastFiredAt??H.createdAt,H.id,b)??1/0:GY(H.cron,H.createdAt,H.id,b)??1/0,z.set(H.id,i),T(`[ScheduledTasks] scheduled ${H.id} for ${i===1/0?"never":new Date(i).toISOString()}`);if(C<i)return;T(`[ScheduledTasks] firing ${H.id}${H.recurring?" (recurring)":""}`);let YQ=V===void 0?QZ(H.prompt,void 0,H.agentId):H.prompt;if(K)K(YQ===H.prompt?H:{...H,prompt:YQ});else Z(YQ);let WQ=HY(H,C,b.recurringMaxAgeMs);if(WQ){let t=Math.floor((C-H.createdAt)/1000/60/60);T(`[ScheduledTasks] recurring task ${H.id} aged out (${t}h since creation), deleting after final fire`)}if(H.recurring&&!WQ){let t=sQ(H.cron,C,H.id,b)??1/0;if(z.set(H.id,t),!l)q.push(H.id)}else if(l)ZY([H.id]),z.delete(H.id);else E.add(H.id),tQ([H.id],V).catch((t)=>T(`[ScheduledTasks] failed to remove task ${H.id}: ${t}`)).finally(()=>E.delete(H.id)),z.delete(H.id)}if(U){for(let H of $)P(H,!1);if(q.length>0){for(let H of q)E.add(H);VY(q,C,V).catch((H)=>T(`[ScheduledTasks] failed to persist lastFiredAt: ${H}`)).finally(()=>{for(let H of q)E.delete(H)})}}if(V===void 0){for(let l of QY())P(l,!0);let H=NY(C);if(H!==null)if(T("[ScheduledTasks] firing pending ScheduleWakeup"),G)G(H.prompt,H.reason);else Z(H.prompt)}if(x.size===0){z.clear();return}for(let H of z.keys())if(!x.has(H))z.delete(H)}async function n(){if(j)return;if(D)clearInterval(D),D=null;let{default:C}=await import("./index-1.1.33-j01a41jn.mjs");if(j)return;if(U=await oQ(O).catch(()=>!1),j){if(U)U=!1,vQ(O);return}if(!U)R=setInterval(()=>{oQ(O).then((q)=>{if(j){if(q)vQ(O);return}if(q){if(U=!0,R)clearInterval(R),R=null}}).catch((q)=>T(String(q),{level:"error"}))},M6),R.unref?.();c(!0);let x=XY(V);F=C.watch(x,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:f6},ignorePermissionErrors:!0}),F.on("add",()=>void c(!1)),F.on("change",()=>void c(!1)),F.on("unlink",()=>{if(!j)$=[],z.clear()}),_=setInterval(d,s0),_.unref?.()}return{start(){if(j=!1,V!==void 0){T(`[ScheduledTasks] scheduler start() — dir=${V}, hasTasks=${$Q(V)}`),n();return}if(T(`[ScheduledTasks] scheduler start() — enabled=${LQ()}, hasTasks=${$Q()}`),!LQ()&&(X||$Q()))e0(!0);if(LQ()){n();return}D=setInterval((C)=>{if(LQ())C()},s0,n),D.unref?.()},stop(){if(j=!0,D)clearInterval(D),D=null;if(_)clearInterval(_),_=null;if(R)clearInterval(R),R=null;if(F?.close(),F=null,U)U=!1,vQ(O)},getNextFireTime(){let C=1/0;for(let x of z.values())if(x<C)C=x;if(V===void 0){let x=eQ();if(x&&x.fireAtMs<C)C=x.fireAtMs}return C===1/0?null:C}}}function BY(Y){let Z=Y.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
10
+
11
+ Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Y.map((K)=>{let J=`[${WY(K.cron)}, created ${new Date(K.createdAt).toLocaleString()}]`,G=(K.prompt.match(/`+/g)??[]).reduce((B,v)=>Math.max(B,v.length),0),V="`".repeat(Math.max(3,G+1));return`${J}
12
+ ${V}
13
+ ${K.prompt}
14
+ ${V}`});return`${W}
15
+
16
+ ${X.join(`
17
+
18
+ `)}`}var s0=1000,f6=300,M6=5000;var I6=DQ(()=>{JQ();F6();m0();t0();VQ();b6()});GQ();VQ();AQ();hZ();sY();var BW=L(()=>Q.object({tool_name:Q.string().describe("The name of the tool requesting permission"),input:Q.record(Q.string(),Q.unknown()).describe("The input for the tool"),tool_use_id:Q.string().optional().describe("The unique tool use request ID")})),RZ=L(()=>Q.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),eY=L(()=>Q.object({behavior:Q.literal("allow"),updatedInput:Q.record(Q.string(),Q.unknown()),updatedPermissions:Q.array(IZ()).optional().catch((Y)=>{T(`Malformed updatedPermissions from SDK host ignored: ${Y.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:Q.string().optional(),decisionClassification:RZ()})),Q9=L(()=>Q.object({behavior:Q.literal("deny"),message:Q.string(),interrupt:Q.boolean().optional(),toolUseID:Q.string().optional(),decisionClassification:RZ()})),SQ=L(()=>Q.union([eY(),Q9()]));function EQ(Y,Z,W,X){let K={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Y};if(Y.behavior==="allow"){let J=Y.updatedPermissions;if(J)X.setAppState((V)=>({...V,toolPermissionContext:yQ(V.toolPermissionContext,J)})),OQ(J);let G=Object.keys(Y.updatedInput).length>0?Y.updatedInput:W;return{...Y,updatedInput:G,decisionReason:K}}else if(Y.behavior==="deny"&&Y.interrupt)T(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Y.message}`),X.abortController.abort();return{...Y,decisionReason:K}}import{randomUUID as uQ}from"crypto";GQ();AQ();Z9();var Y9=L(()=>Q.unknown()),W9=L(()=>Q.object({matcher:Q.string().optional(),hookCallbackIds:Q.array(Q.string()),timeout:Q.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),X9=L(()=>Q.object({subtype:Q.literal("initialize"),hooks:Q.record(pZ(),Q.array(W9())).optional(),sdkMcpServers:Q.array(Q.string()).optional(),jsonSchema:Q.record(Q.string(),Q.unknown()).optional(),systemPrompt:Q.string().optional(),appendSystemPrompt:Q.string().optional(),agents:Q.record(Q.string(),dZ()).optional(),promptSuggestions:Q.boolean().optional(),agentProgressSummaries:Q.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),wW=L(()=>Q.object({commands:Q.array(xQ()),agents:Q.array(kQ()),output_style:Q.string(),available_output_styles:Q.array(Q.string()),models:Q.array(cZ()),account:mZ(),pid:Q.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:rZ().optional()}).describe("Response from session initialization with available commands, models, and account info.")),K9=L(()=>Q.object({subtype:Q.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),V9=L(()=>Q.object({subtype:Q.literal("can_use_tool"),tool_name:Q.string(),input:Q.record(Q.string(),Q.unknown()),permission_suggestions:Q.array(xZ()).optional(),blocked_path:Q.string().optional(),decision_reason:Q.string().optional(),title:Q.string().optional(),display_name:Q.string().optional(),tool_use_id:Q.string(),agent_id:Q.string().optional(),description:Q.string().optional()}).describe("Requests permission to use a tool with the given input.")),G9=L(()=>Q.object({subtype:Q.literal("set_permission_mode"),mode:kZ()}).describe("Sets the permission mode for tool execution handling.")),J9=L(()=>Q.object({subtype:Q.literal("set_model"),model:Q.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),H9=L(()=>Q.object({subtype:Q.literal("set_max_thinking_tokens"),max_thinking_tokens:Q.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),N9=L(()=>Q.object({subtype:Q.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),B9=L(()=>Q.object({subtype:Q.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),v9=L(()=>Q.object({name:Q.string(),tokens:Q.number(),color:Q.string(),isDeferred:Q.boolean().optional()})),L9=L(()=>Q.object({color:Q.string(),isFilled:Q.boolean(),categoryName:Q.string(),tokens:Q.number(),percentage:Q.number(),squareFullness:Q.number()})),DW=L(()=>Q.object({categories:Q.array(v9()),totalTokens:Q.number(),maxTokens:Q.number(),rawMaxTokens:Q.number(),percentage:Q.number(),gridRows:Q.array(Q.array(L9())),model:Q.string(),memoryFiles:Q.array(Q.object({path:Q.string(),type:Q.string(),tokens:Q.number()})),mcpTools:Q.array(Q.object({name:Q.string(),serverName:Q.string(),tokens:Q.number(),isLoaded:Q.boolean().optional()})),deferredBuiltinTools:Q.array(Q.object({name:Q.string(),tokens:Q.number(),isLoaded:Q.boolean()})).optional(),systemTools:Q.array(Q.object({name:Q.string(),tokens:Q.number()})).optional(),systemPromptSections:Q.array(Q.object({name:Q.string(),tokens:Q.number()})).optional(),agents:Q.array(Q.object({agentType:Q.string(),source:Q.string(),tokens:Q.number()})),slashCommands:Q.object({totalCommands:Q.number(),includedCommands:Q.number(),tokens:Q.number()}).optional(),skills:Q.object({totalSkills:Q.number(),includedSkills:Q.number(),tokens:Q.number(),skillFrontmatter:Q.array(Q.object({name:Q.string(),source:Q.string(),tokens:Q.number()}))}).optional(),autoCompactThreshold:Q.number().optional(),isAutoCompactEnabled:Q.boolean(),messageBreakdown:Q.object({toolCallTokens:Q.number(),toolResultTokens:Q.number(),attachmentTokens:Q.number(),assistantMessageTokens:Q.number(),userMessageTokens:Q.number(),toolCallsByType:Q.array(Q.object({name:Q.string(),callTokens:Q.number(),resultTokens:Q.number()})),attachmentsByType:Q.array(Q.object({name:Q.string(),tokens:Q.number()}))}).optional(),apiUsage:Q.object({input_tokens:Q.number(),output_tokens:Q.number(),cache_creation_input_tokens:Q.number(),cache_read_input_tokens:Q.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),z9=L(()=>Q.object({subtype:Q.literal("rewind_files"),user_message_id:Q.string(),dry_run:Q.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),q9=L(()=>Q.object({subtype:Q.literal("cancel_async_message"),message_uuid:Q.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),w9=L(()=>Q.object({subtype:Q.literal("seed_read_state"),path:Q.string(),mtime:Q.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),D9=L(()=>Q.object({subtype:Q.literal("hook_callback"),callback_id:Q.string(),input:uZ(),tool_use_id:Q.string().optional()}).describe("Delivers a hook callback with its input data.")),_9=L(()=>Q.object({subtype:Q.literal("mcp_message"),server_name:Q.string(),message:Y9()}).describe("Sends a JSON-RPC message to a specific MCP server.")),A9=L(()=>Q.object({subtype:Q.literal("mcp_set_servers"),servers:Q.record(Q.string(),CZ())}).describe("Replaces the set of dynamically managed MCP servers.")),_W=L(()=>Q.object({added:Q.array(Q.string()),removed:Q.array(Q.string()),errors:Q.record(Q.string(),Q.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),y9=L(()=>Q.object({subtype:Q.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),AW=L(()=>Q.object({commands:Q.array(xQ()),agents:Q.array(kQ()),plugins:Q.array(Q.object({name:Q.string(),path:Q.string(),source:Q.string().optional()})),mcpServers:Q.array(SZ()),error_count:Q.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),O9=L(()=>Q.object({subtype:Q.literal("mcp_reconnect"),serverName:Q.string()}).describe("Reconnects a disconnected or failed MCP server.")),E9=L(()=>Q.object({subtype:Q.literal("mcp_toggle"),serverName:Q.string(),enabled:Q.boolean()}).describe("Enables or disables an MCP server.")),j9=L(()=>Q.object({subtype:Q.literal("stop_task"),task_id:Q.string()}).describe("Stops a running task.")),U9=L(()=>Q.object({subtype:Q.literal("apply_flag_settings"),settings:Q.record(Q.string(),Q.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),P9=L(()=>Q.object({subtype:Q.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),yW=L(()=>Q.object({effective:Q.record(Q.string(),Q.unknown()),sources:Q.array(Q.object({source:Q.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Q.record(Q.string(),Q.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Q.object({model:Q.string(),effort:Q.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),$9=L(()=>Q.object({subtype:Q.literal("elicitation"),mcp_server_name:Q.string(),message:Q.string(),mode:Q.enum(["form","url"]).optional(),url:Q.string().optional(),elicitation_id:Q.string().optional(),requested_schema:Q.record(Q.string(),Q.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),oZ=L(()=>Q.object({action:Q.enum(["accept","decline","cancel"]),content:Q.record(Q.string(),Q.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),F9=L(()=>Q.union([K9(),V9(),X9(),G9(),J9(),H9(),N9(),B9(),D9(),_9(),z9(),q9(),w9(),A9(),y9(),O9(),E9(),j9(),U9(),P9(),$9()])),pQ=L(()=>Q.object({type:Q.literal("control_request"),request_id:Q.string(),request:F9()})),b9=L(()=>Q.object({subtype:Q.literal("success"),request_id:Q.string(),response:Q.record(Q.string(),Q.unknown()).optional()})),f9=L(()=>Q.object({subtype:Q.literal("error"),request_id:Q.string(),error:Q.string(),pending_permission_requests:Q.array(Q.lazy(()=>pQ())).optional()})),tZ=L(()=>Q.object({type:Q.literal("control_response"),response:Q.union([b9(),f9()])})),M9=L(()=>Q.object({type:Q.literal("control_cancel_request"),request_id:Q.string()}).describe("Cancels a currently open control request.")),sZ=L(()=>Q.object({type:Q.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),T9=L(()=>Q.object({type:Q.literal("update_environment_variables"),variables:Q.record(Q.string(),Q.string())}).describe("Updates environment variables at runtime.")),OW=L(()=>Q.union([iZ(),lZ(),aZ(),nZ(),tZ(),pQ(),M9(),sZ()])),EW=L(()=>Q.union([gZ(),pQ(),tZ(),sZ(),T9()]));x9();VQ();C9();cQ();S9();R9();jQ();GQ();k9();B0();hZ();u9();jQ();p9();jQ();var h9=/\u2028|\u2029/g;function I9(Y){return Y.replace(h9,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function eZ(Y){return I9(s(Y))}var c9="SandboxNetworkAccess";function m9(Y){if(!Y)return;if(Y.type==="classifier")return Y.reason;switch(Y.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Y.reason}}function d9(Y,Z,W,X){let K;try{K=Y.getActivityDescription?.(Z)??Y.getToolUseSummary?.(Z)??Y.userFacingName(Z)}catch{K=Y.name}return{tool_name:Y.name,action_description:K,tool_use_id:W,request_id:X,input:Z}}var g9=1000;class l9{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new J0;constructor(Y,Z){this.input=Y;this.replayUserMessages=Z;this.input=Y,this.structuredInput=this.read()}trackResolvedToolUseId(Y){if(Y.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Y.request.tool_use_id),this.resolvedToolUseIds.size>g9){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Y){this.prependedLines.push(s({type:"user",session_id:"",message:{role:"user",content:Y},parent_tool_use_id:null})+`
19
+ `)}async*read(){let Y="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Y=this.prependedLines.join("")+Y,this.prependedLines=[];let W=Y.indexOf(`
20
+ `);if(W===-1)break;let X=Y.slice(0,W);Y=Y.slice(W+1);let K=await this.processLine(X);if(K)X0("info","cli_stdin_message_parsed",{type:K.type}),yield K}}.bind(this);yield*Z();for await(let W of this.input)Y+=W,yield*Z();if(Y){let W=await this.processLine(Y);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Y)=>Y.request).filter((Y)=>Y.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Y){this.unexpectedResponseCallback=Y}injectControlResponse(Y){let Z=Y.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Y.response.subtype==="error")W.reject(Error(Y.response.error));else{let X=Y.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(K){W.reject(K)}else W.resolve({})}}setOnControlRequestSent(Y){this.onControlRequestSent=Y}setOnControlRequestResolved(Y){this.onControlRequestResolved=Y}async processLine(Y){if(!Y)return;try{let Z=v0(Y0(Y));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let X=Object.keys(Z.variables);for(let[K,J]of Object.entries(Z.variables))process.env[K]=J;T(`[structuredIO] applied update_environment_variables: ${X.join(", ")}`);return}if(Z.type==="control_response"){let X="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(X)G0(X,"completed");let K=this.pendingRequests.get(Z.response.request_id);if(!K){let V=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof V==="string"&&this.resolvedToolUseIds.has(V)){T(`Ignoring duplicate control_response for already-resolved toolUseID=${V} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(K.request),this.pendingRequests.delete(Z.response.request_id),K.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){K.reject(Error(Z.response.error));return}let J=Z.response.response;if(K.schema)try{K.resolve(K.schema.parse(J))}catch(G){K.reject(G)}else K.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){T(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)Q0("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;let W=Z.message;if(W.role!=="user")Q0(`Error: Expected message role 'user', got '${String(W.role)}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Y}: ${Z}`),process.exit(1)}}async write(Y){W0(eZ(Y)+`
21
+ `)}async sendRequest(Y,Z,W,X=uQ()){let K={type:"control_request",request_id:X,request:Y};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(K),Y.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(K);let J=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let G=this.pendingRequests.get(X);if(G)this.trackResolvedToolUseId(G.request),G.reject(new Z0)};if(W)W.addEventListener("abort",J,{once:!0});try{return await new Promise((G,V)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Y},resolve:(B)=>{G(B)},reject:V,schema:Z})})}finally{if(W)W.removeEventListener("abort",J);this.pendingRequests.delete(X)}}createCanUseTool(Y){return async(Z,W,X,K,J,G)=>{let V=G??await K0(Z,W,X,K,J);if(V.behavior==="allow"||V.behavior==="deny")return V;let B=new AbortController,v=X.abortController.signal,N=()=>B.abort();v.addEventListener("abort",N,{once:!0});try{let w=a9(Z.name,J,W,X,V.suggestions).then((h)=>({source:"hook",decision:h})),O=uQ();Y?.(d9(Z,W,J,O));let $=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:V.suggestions,blocked_path:V.blockedPath,decision_reason:m9(V.decisionReason),tool_use_id:J,agent_id:X.agentId},SQ(),B.signal,O).then((h)=>({source:"sdk",result:h})),z=await Promise.race([w,$]);if(z.source==="hook"){if(z.decision)return $.catch(()=>{}),B.abort(),z.decision;let h=await $;return EQ(h.result,Z,W,X)}return EQ(z.result,Z,W,X)}catch(w){return EQ({behavior:"deny",message:`Tool permission request failed: ${w}`,toolUseID:J},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)H0("running");v.removeEventListener("abort",N)}}}createHookCallback(Y,Z){return{type:"callback",timeout:Z,callback:async(W,X,K)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Y,input:W,tool_use_id:X||void 0},V0(),K)}catch(J){return console.error(`Error in hook callback ${Y}:`,J),{}}}}}async handleElicitation(Y,Z,W,X,K,J,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Y,message:Z,mode:K,url:J,elicitation_id:G,requested_schema:W},oZ(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Y)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:c9,input:{host:Y.host},tool_use_id:uQ(),description:`Allow network connection to ${Y.host}?`},SQ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Y,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Y,message:Z},Q.object({mcp_response:Q.any()}))).mcp_response}}function Q0(Y){console.error(Y),process.exit(1)}async function a9(Y,Z,W,X,K){let G=X.getAppState().toolPermissionContext.mode,V=N0(Y,Z,W,X,G,K,X.abortController.signal);for await(let B of V)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let v=B.permissionRequestResult;if(v.behavior==="allow"){let N=v.updatedInput||W,w=v.updatedPermissions??[];if(w.length>0){OQ(w);let O=X.getAppState(),$=yQ(O.toolPermissionContext,w);X.setAppState((z)=>{if(z.toolPermissionContext===$)return z;return{...z,toolPermissionContext:$}})}return{behavior:"allow",updatedInput:N,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:v.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}_Q();Q6();s9();e9();r9();B0();_0();i9();_Q();t9();o9();import{randomUUID as Z6}from"crypto";JQ();_Q();import{randomUUID as n9}from"crypto";function z0(Y,Z,W,X,K,J,G){let V=n9();if(L0(V),Z.length>0){let v=typeof Y==="string"?Y.trim()?[{type:"text",text:Y}]:[]:Y;return{messages:[r({content:[...v,...Z],uuid:K,imagePasteIds:W.length>0?W:void 0,permissionMode:J,isMeta:G||void 0}),...X],shouldQuery:!0}}return{messages:[r({content:Y,uuid:K,permissionMode:J,isMeta:G||void 0}),...X],shouldQuery:!0}}async function HX({input:Y,mode:Z,setToolJSX:W,context:X,pastedContents:K,ideSelection:J,messages:G,setUserInputOnProcessing:V,uuid:B,isAlreadyProcessing:v,querySource:N,canUseTool:w,skipSlashCommands:O,bridgeOrigin:$,isMeta:z,skipAttachments:h}){let E=typeof Y==="string"?Y:null;if(Z==="prompt"&&E!==null&&!z)V?.(E);g("query_process_user_input_base_start");let D=X.getAppState(),_=await Y6(Y,Z,W,X,K,J,G,B,v,N,w,D.toolPermissionContext.mode,O,$,z,h);if(g("query_process_user_input_base_end"),!_.shouldQuery)return _;g("query_hooks_start");let R=w0(Y)||"";for await(let F of M0(R,D.toolPermissionContext.mode,X,X.requestPrompt)){if(F.message?.type==="progress")continue;if(F.blockingError){let U=f0(F.blockingError);return{messages:[E0(`${U}
22
+
23
+ Original prompt: ${Y}`,"warning")],shouldQuery:!1,allowedTools:_.allowedTools}}if(F.preventContinuation){let U=F.stopReason?`Operation stopped by hook: ${F.stopReason}`:"Operation stopped by hook";return _.messages.push(r({content:U})),_.shouldQuery=!1,_}if(F.additionalContexts&&F.additionalContexts.length>0)_.messages.push(D0({type:"hook_additional_context",content:F.additionalContexts.map(q0),hookName:"UserPromptSubmit",toolUseID:`hook-${Z6()}`,hookEvent:"UserPromptSubmit"}));let j=F.message;if(j&&j.type==="attachment")switch(j.attachment.type){case"hook_success":if(!j.attachment.content)break;_.messages.push({...j,attachment:{...j.attachment,content:q0(j.attachment.content)}});break;default:_.messages.push(j);break}else if(j)_.messages.push(j)}return g("query_hooks_end"),_}var mQ=1e4;function q0(Y){if(Y.length>mQ)return`${Y.substring(0,mQ)}… [output truncated - exceeded ${mQ} characters]`;return Y}async function Y6(Y,Z,W,X,K,J,G,V,B,v,N,w,O,$,z,h){let E=null,D=[],_=[],R=Y;if(typeof Y==="string")E=Y;else if(Y.length>0){g("query_image_processing_start");let q=[];for(let P of Y)if(P.type==="image"){let H=await lQ(P);if(H.dimensions){let l=UQ(H.dimensions);if(l)_.push(l)}q.push(H.block)}else q.push(P);R=q,g("query_image_processing_end");let b=q[q.length-1];if(b?.type==="text")E=b.text,D=q.slice(0,-1);else D=q}if(E===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let F=K?Object.values(K).filter(U0):[],j=F.map((q)=>q.id),U=K?await A0(K):new Map;g("query_pasted_image_processing_start");let c=await Promise.all(F.map(async(q)=>{let b={type:"image",source:{type:"base64",media_type:q.mediaType||"image/png",data:q.content}};return{resized:await lQ(b),originalDimensions:q.dimensions,sourcePath:q.sourcePath??U.get(q.id)}})),d=[];for(let{resized:q,originalDimensions:b,sourcePath:P}of c){if(q.dimensions){let H=UQ(q.dimensions,P);if(H)_.push(H)}else if(b){let H=UQ(b,P);if(H)_.push(H)}else if(P)_.push(`[Image source: ${P}]`);d.push(q.block)}g("query_pasted_image_processing_end");let n=O;if($&&E!==null&&E.startsWith("/")){let q=O0(E),b=q?b0(q.commandName,X.options.commands):void 0;if(b)if(F0(b))n=!1;else{let P=`/${$0(b)} isn't available over Remote Control.`;return{messages:[r({content:E,uuid:V}),j0(`<local-command-stdout>${P}</local-command-stdout>`)],shouldQuery:!1,resultText:P}}}let C=!h&&E!==null&&(Z!=="prompt"||n||!E.startsWith("/"));g("query_attachment_loading_start");let x=C?await y0(P0(E,X,J??null,[],G,v)):[];if(g("query_attachment_loading_end"),E!==null&&Z==="bash"){let{processBashCommand:q}=await import("./processBashCommand-1.1.33-c3baefbs.mjs");return dQ(await q(E,D,x,X,W),_)}if(E!==null&&!n&&E.startsWith("/")){let{processSlashCommand:q}=await import("./processSlashCommand-1.1.33-7z1q5tgw.mjs"),b=await q(E,D,d,x,X,W,V,B,N);return dQ(b,_)}if(E!==null&&Z==="prompt"){let q=E.trim(),b=x.find((P)=>P.attachment.type==="agent_mention");if(b){let P=`@agent-${b.attachment.agentType}`,H=q===P,l=q.startsWith(P)&&!H}}return dQ(z0(R,d,j,x,V,w,z),_)}function dQ(Y,Z){if(Z.length>0)Y.messages.push(r({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Y}_0();function vX(Y){if(Y.type!=="user")return;let Z=Y.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Y&&typeof Y.uuid==="string"?Y.uuid:void 0;return{content:Array.isArray(Z)?W6(Z):Z,uuid:W}}function W6(Y){if(!Y.some(T0))return Y;return Y.map((Z)=>{if(!T0(Z))return Z;let W=Z.source,X=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:h0(Z.source.data);return{...Z,source:{type:"base64",media_type:X,data:Z.source.data}}})}function T0(Y){if(Y.type!=="image"||Y.source?.type!=="base64")return!1;return!Y.source.media_type}JQ();H6();K6();J6();X6();G6();V6();import{randomUUID as N6}from"crypto";function B6(Y){return Y===C0?S0:Y}function EX(Y){let W=x0()?.outputStyle??u0,X={type:"system",subtype:"init",cwd:R0(),session_id:HQ(),tools:Y.tools.map((K)=>B6(K.name)),mcp_servers:Y.mcpClients.map((K)=>({name:K.name,status:K.type})),model:Y.model,permissionMode:Y.permissionMode,slash_commands:Y.commands.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),apiKeySource:p0().source,betas:I0(),claude_code_version:"99.0.0",output_style:W,agents:Y.agents.map((K)=>K.agentType),skills:Y.skills.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),plugins:Y.plugins.map((K)=>({name:K.name,path:K.path,source:K.source})),uuid:N6()};return X.fast_mode_state=k0(Y.model,Y.fastMode),X}x6();JQ();VQ();cQ();R6();C6();DZ();k6();S6();import{isAbsolute as p6,resolve as u6}from"path";function c6(Y,Z,W){let X=[],K=[],J=[];for(let[G,V]of Object.entries(Y)){let B=Z[G],v=yY(V.source,W?.projectRoot);if(!B)X.push(G);else if(V.sourceIsFallback)J.push(G);else if(!wY(v,B.source))K.push({name:G,declaredSource:v,materializedSource:B.source});else J.push(G)}return{missing:X,sourceChanged:K,upToDate:J}}async function YK(Y){let Z=DY();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await _Y()}catch(N){o(N),W={}}let X=c6(Z,W,{projectRoot:ZZ()}),K=[...X.missing.map((N)=>({name:N,source:yY(Z[N].source),action:"install"})),...X.sourceChanged.map(({name:N,declaredSource:w})=>({name:N,source:w,action:"update"}))],J=[],G=[];for(let N of K){if(Y?.skip?.(N.name,N.source)){J.push(N.name);continue}if(N.action==="update"&&qY(N.source)&&!await LY(N.source.path)){T(`[reconcile] '${N.name}' declared path does not exist; keeping materialized entry`),J.push(N.name);continue}G.push(N)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:J};T(`[reconcile] ${G.length} marketplace(s): ${G.map((N)=>`${N.name}(${N.action})`).join(", ")}`);let V=[],B=[],v=[];for(let N=0;N<G.length;N++){let{name:w,source:O,action:$}=G[N];Y?.onProgress?.({type:"installing",name:w,action:$,index:N+1,total:G.length});try{let z=await AY(O);if($==="install")V.push(w);else B.push(w);Y?.onProgress?.({type:"installed",name:w,alreadyMaterialized:z.alreadyMaterialized})}catch(z){let h=vY(z);v.push({name:w,error:h}),Y?.onProgress?.({type:"failed",name:w,error:h}),o(z)}}return{installed:V,updated:B,failed:v,upToDate:X.upToDate,skipped:J}}function yY(Y,Z){if((Y.source==="directory"||Y.source==="file")&&!p6(Y.path)){let W=Z??ZZ(),X=zY(W);return{...Y,path:u6(X??W,Y.path)}}return Y}
24
+ export{SQ as ha,EQ as ia,eZ as ja,c9 as ka,l9 as la,gY as ma,TZ as na,rY as oa,oY as pa,tY as qa,HX as ra,vX as sa,B6 as ta,EX as ua,c6 as va,YK as wa,w6 as xa,D6 as ya,_6 as za,T6 as Aa,h6 as Ba,I6 as Ca};
@@ -0,0 +1,2 @@
1
+ import{nQ as x,qQ as B}from"./cli-1.1.33-vgynvhys.mjs";import{tqa as z}from"./cli-1.1.33-cfj1bzen.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
2
+ export{G as ig,H as jg,A as kg};
@@ -0,0 +1,16 @@
1
+ import{c6 as D5,e6 as J8}from"./cli-1.1.33-t8cxmf0c.mjs";import{g6 as M,h6 as p$}from"./cli-1.1.33-v08vb0sv.mjs";import{j6 as b2,k6 as n$}from"./cli-1.1.33-q8hq263y.mjs";import{i7 as t2,k7 as q8}from"./cli-1.1.33-7b2yeb1x.mjs";import{E8 as U,W8 as e0}from"./cli-1.1.33-0kvxjey5.mjs";import{$9 as v8,A9 as X1,A_ as _0,Aba as q2,Baa as i,D_ as L4,Dfa as c2,E$ as A4,Eda as O,Eea as j0,G$ as c$,Gda as q5,Gea as d1,Gfa as J4,Hea as J$,Jda as D,L$ as C4,Lea as t1,M_ as P1,Mfa as d2,O$ as d$,P9 as D2,Pfa as F,R9 as m$,Rba as $$,Sfa as o,Wda as W0,_9 as U1,_ea as $4,_fa as b,afa as n1,dea as E1,dfa as w5,dga as m0,efa as t$,fea as y8,n_ as m2,o_ as S,p9 as P4,q9 as m,q_ as N,r9 as G5,s9 as w0,t9 as E4,u9 as c5,yaa as c1,z9 as B0}from"./cli-1.1.33-20v60hvd.mjs";import{Vha as I2,Wha as M4,Xha as X5,Zha as e4,_ha as $8,aia as k,bia as O0}from"./cli-1.1.33-283f43sy.mjs";import{Hia as h4,Lia as g$,Pia as p5,Tia as N8,bja as W,dja as f0,eja as r}from"./cli-1.1.33-241y9eee.mjs";import{Bja as $5,Dja as Z1,Ija as b8}from"./cli-1.1.33-90w26xxw.mjs";import{Lja as L2,Oja as K,Qja as C,Sja as L5,Wja as g}from"./cli-1.1.33-ad43mr1x.mjs";import{Aka as $0,Bka as B1,Gna as k1,Rma as M1,Xna as o2,Yna as e2,Zna as $1,_na as J1,boa as Y5,dna as m1,fpa as e,hna as F4,lna as E0,mna as s0,zna as A}from"./cli-1.1.33-87p06j57.mjs";import{Epa as y,Fpa as p0}from"./cli-1.1.33-5ehc9tkd.mjs";import{qqa as P0,sqa as C5,tqa as H,uqa as s}from"./cli-1.1.33-cfj1bzen.mjs";function S2($){let J=[],Z=!1;async function Q(){if(Z)return;if(J.length===0)return;Z=!0;while(J.length>0){let{args:Y,resolve:X,reject:q,context:V}=J.shift();try{let z=await $.apply(V,Y);X(z)}catch(z){q(z)}}if(Z=!1,J.length>0)Q()}return function(...Y){return new Promise((X,q)=>{J.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var h2=()=>{};function A2($,J){return $.find((Z)=>Z.includes(J))??null}async function C2(){let{BedrockClient:$}=await import("@aws-sdk/client-bedrock"),J=L5(),Z=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:J,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await D5(),...Z&&{requestHandler:new(await import("./index-1.1.33-qckmwfjb.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.33-809kmg0e.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}async function IJ(){let{BedrockRuntimeClient:$}=await import("@aws-sdk/client-bedrock-runtime"),J=L5(),Z=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:J,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await D5(),...Z&&{requestHandler:new(await import("./index-1.1.33-qckmwfjb.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.33-809kmg0e.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}function Z8($){return $.startsWith("anthropic.")}function Y8($){if(!$.startsWith("arn:"))return $;let J=$.lastIndexOf("/");if(J===-1)return $;return $.substring(J+1)}function X8($){let J=Y8($);for(let Z of Q8)if(J.startsWith(`${Z}.anthropic.`))return Z;return}function hJ($,J){let Z=X8($);if(Z)return $.replace(`${Z}.`,`${J}.`);if(Z8($))return`${J}.${$}`;return $}var M2,SJ,Q8;var f2=H(()=>{p0();q0();g();m0();J8();M2=y(async function(){let[$,{ListInferenceProfilesCommand:J}]=await Promise.all([C2(),import("@aws-sdk/client-bedrock")]),Z=[],Q;try{do{let Y=new J({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await $.send(Y);if(X.inferenceProfileSummaries)Z.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return Z.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw b(Y),Y}});SJ=y(async function($){try{let[J,{GetInferenceProfileCommand:Z}]=await Promise.all([C2(),import("@aws-sdk/client-bedrock")]),Q=new Z({inferenceProfileIdentifier:$}),Y=await J.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(J){return b(J),null}});Q8=["us","eu","apac","global"]});var b5,N5,k5,U5,P5,E5,O5,v5,y5,c0,d0,t0,D0,_5,T5,I5,b0,u2;var S5=H(()=>{b5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},N5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},k5={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},U5={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},P5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},E5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},O5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},v5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},y5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},c0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},d0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},t0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},D0={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"},_5={firstParty:"claude-fable-5-1",bedrock:"anthropic.claude-fable-5-1",vertex:"claude-fable-5-1",foundry:"claude-fable-5-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},T5={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},I5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},b0={haiku35:k5,haiku45:U5,sonnet35:N5,sonnet37:b5,sonnet40:P5,sonnet45:E5,sonnet46:T5,sonnet5:I5,opus40:O5,opus41:v5,opus45:y5,opus46:c0,opus47:d0,opus48:t0,opus5:D0,fable51:_5},u2=Object.fromEntries(Object.entries(b0).map(([$,J])=>[J.firstParty,$]))});function g2(){return Object.values(n0)}var n0,h5;var M5=H(()=>{n0={"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}}},h5=Object.fromEntries(Object.values(n0).map(($)=>[$.id,$.name]))});var k0={};C5(k0,{prefetchCopilotModelCatalog:()=>u5,normalizeBareCopilotModelId:()=>f5,getEffectiveCopilotModels:()=>B8,getCopilotDisplayName:()=>x8,getCatalogCopilotMaxOutputTokens:()=>R8,getCatalogCopilotContextWindow:()=>H8,fetchCopilotModelCatalog:()=>i2,copilotModelSupportsAnthropicMessages:()=>G8,_setCopilotCatalogForTesting:()=>w8});function N0(){let $=F();if($?.transport!=="github_copilot")return null;return($.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function n2(){if(!a)return!1;let $=N0();return $!==null&&V0===$}function j8(){if(p2)return;p2=!0,m2(()=>{let $=N0();if($&&V0!==$)u5()})}function f5($){let J=$.split("?",1)[0]??$,Z=J.lastIndexOf(":"),Q=(Z===-1?J:J.slice(Z+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function W8($){if(!Array.isArray($))return null;return $.filter((J)=>typeof J==="string")}function z8($){let J=$.id?.trim();if(!J)return null;let Z=$.capabilities?.type?.trim().toLowerCase();if(Z&&Z!=="chat")return null;if($.policy?.state==="disabled")return null;let Q=$.capabilities?.limits??{},Y=$.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:J,name:$.name?.trim()||J,family:$.capabilities?.family?.trim()||J,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:W8($.supported_endpoints),pickerEnabled:$.model_picker_enabled!==!1}}async function i2(){let $=F();if($?.transport!=="github_copilot")return null;if(c2($.baseUrl)!=="copilot")return null;let J=$.extras?.githubToken??$.apiKey;if(!J)return null;let Z=($.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),V8);try{let X=await fetch(`${Z}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...t2},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,z=[];for(let x of q.data){let G=z8(x);if(!G||V.has(G.model.id))continue;V.add(G.model.id),z.push(G)}return z.length>0?z:null}catch{return W("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function u5(){j8();let $=N0();if(!$)return;if(a&&V0!==$)a=null,V0=null;if(i0){if(A5===$)return;i0.finally(()=>u5());return}A5=$,i0=i2().then((J)=>{if(J&&N0()===$)a=J,V0=$}).finally(()=>{i0=null,A5=null})}function B8(){if(n2()){let $=a?.filter((J)=>J.pickerEnabled).map((J)=>J.model);if($&&$.length>0)return $}return g2()}function l0($){if(!n2())return;let J=f5($);return a.find((Z)=>Z.model.id===J)}function x8($){let J=f5($);return l0(J)?.model.name??n0[J]?.name}function G8($){let J=l0($);if(!J||J.supportedEndpoints===null)return null;return J.supportedEndpoints.some((Z)=>Z.includes("/v1/messages"))}function H8($){return l0($)?.model.limit.context}function R8($){return l0($)?.model.limit.output}function w8($){a=$,V0=$?N0():null}var V8=5000,a=null,V0=null,i0=null,A5=null,p2=!1;var U0=H(()=>{o();q8();d2();j0();r();M5()});function j(){let $=F();if(!$)return"firstParty";switch($.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 J=$.baseUrl?.toLowerCase()??"";if(J.includes("nvidia"))return"nvidia-nim";if(J.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function tJ(){return j()==="firstParty"}function K8($){let J=F();if(J?.transport!=="github_copilot")return!1;let Z=$?.trim()||J.model?.trim()||"";if(!Z.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(U0(),P0(k0)),Y=Q(Z);if(Y!==null)return Y}catch{}return!0}function nJ($){let J=F()?.transport??"anthropic";if(!F8.has(J))return!1;if(J==="github_copilot"&&K8($))return!1;return!0}function iJ(){let $=F();if(!$)return!0;if($.transport!=="anthropic")return!1;let J=$.baseUrl;if(!J)return!0;try{let Z=new URL(J).host;return["api.anthropic.com"].includes(Z)}catch{return!1}}var F8;var p=H(()=>{o();F8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function a0($){let J=$==="codex"||$==="github"?"openai":$,Z={};for(let Q of s2)Z[Q]=b0[Q][J];return Z}async function L8(){let $=a0("bedrock"),J;try{J=await M2()}catch(Q){return b(Q),$}if(!J?.length)return $;let Z={};for(let Q of s2){let Y=b0[Q].firstParty;Z[Q]=A2(J,Y)||$[Q]}return Z}function l2($){let J=D().modelOverrides;if(!J)return $;let Z={...$};for(let[Q,Y]of Object.entries(J)){let X=u2[Q];if(X&&Y)Z[X]=Y}return Z}function r0($){let J;try{J=D().modelOverrides}catch{return $}if(!J)return $;for(let[Z,Q]of Object.entries(J))if(Q===$)return Z;return $}function D8(){if(E0()!==null)return;if(j()!=="bedrock"){s0(a0(j()));return}a2()}function B(){let $=E0();if($===null)return D8(),l2(a0(j()));return l2($)}async function ZZ(){if(E0()!==null)return;if(j()!=="bedrock"){s0(a0(j()));return}await a2()}var s2,a2;var o0=H(()=>{e();m0();h2();W0();f2();S5();p();s2=Object.keys(b0);a2=S2(async()=>{if(E0()!==null)return;try{let $=await L8();s0($)}catch($){b($)}})});async function z0($){let J=`${k().BASE_API_URL}/api/oauth/profile`;try{return(await U.get(J,{headers:{Authorization:`Bearer ${$}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(Z){b(Z)}}var g5=H(()=>{e0();O0();m0()});import{mkdirSync as k8,writeFileSync as U8}from"fs";function O8($,J,Z){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{k8(J5,{recursive:!0,mode:448}),U8($,J,{encoding:"utf8",mode:384}),W(`Persisted ${Z} to ${$} for subprocess access`)}catch(Q){W(`Failed to persist ${Z} to disk (non-fatal): ${$5(Q)}`,{level:"error"})}}function r2($,J){try{let Q=p5().readFileSync($,{encoding:"utf8"}).trim();if(!Q)return null;return W(`Read ${J} from well-known file ${$}`),Q}catch(Z){if(!Z1(Z))W(`Failed to read ${J} from ${$}: ${$5(Z)}`,{level:"debug"});return null}}function Q1({envVar:$,wellKnownPath:J,label:Z,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[$];if(!q){let z=r2(J,Z);return Y(z),z}let V=parseInt(q,10);if(Number.isNaN(V))return W(`${$} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let z=p5(),x=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,G=z.readFileSync(x,{encoding:"utf8"}).trim();if(!G)return W(`File descriptor contained empty ${Z}`,{level:"error"}),Y(null),null;return W(`Successfully read ${Z} from file descriptor ${V}`),Y(G),O8(J,G,Z),G}catch(z){W(`Failed to read ${Z} from file descriptor ${V}: ${$5(z)}`,{level:"error"});let x=r2(J,Z);return Y(x),x}}function Z5(){return Q1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:P8,label:"OAuth token",getCached:o2,setCached:e2})}function m5(){return Q1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:E8,label:"API key",getCached:$1,setCached:J1})}var J5="/home/claude/.claude/remote",P8,E8,HZ;var Y1=H(()=>{e();r();g();b8();N8();P8=`${J5}/.oauth_token`,E8=`${J5}/.api_key`,HZ=`${J5}/.session_ingress_token`});async function q1(){if(process.platform==="darwin"){let $=m();if((await B0(`security delete-generic-password -a $USER -s "${$}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function d5($){return $.slice(-20)}var V1=H(()=>{X1();c5()});function DZ($){return $?.name==="CredentialsProviderError"}function j1($){if(!$||typeof $!=="object")return!1;let J=$;if(!J.Credentials||typeof J.Credentials!=="object")return!1;let Z=J.Credentials;return typeof Z.AccessKeyId==="string"&&typeof Z.SecretAccessKey==="string"&&typeof Z.SessionToken==="string"&&Z.AccessKeyId.length>0&&Z.SecretAccessKey.length>0&&Z.SessionToken.length>0}async function t5(){let{STSClient:$,GetCallerIdentityCommand:J}=await import("@aws-sdk/client-sts");await new $().send(new J({}))}async function W1(){try{W("Clearing AWS credential provider cache");let{fromIni:$}=await import("@aws-sdk/credential-providers");await $({ignoreCache:!0})(),W("AWS credential provider cache refreshed")}catch($){W("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var z1=H(()=>{r()});class I{static instance=null;status={isAuthenticating:!1,output:[]};changed=$0();static getInstance(){if(!I.instance)I.instance=new I;return I.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput($){this.status.output.push($),this.changed.emit(this.getStatus())}setError($){this.status.error=$,this.changed.emit(this.getStatus())}endAuthentication($){if($)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(I.instance)I.instance.changed.clear(),I.instance=null}}var x1=H(()=>{B1()});var Q5="claude-code-20250219",G1="interleaved-thinking-2025-05-14",v0="context-1m-2025-08-07",H1="context-management-2025-06-27",R1="structured-outputs-2025-12-15",n5="web-search-2025-03-05",w1="advanced-tool-use-2025-11-20",K1="tool-search-tool-2025-10-19",UZ="effort-2025-11-24",PZ="task-budgets-2026-03-13",F1="prompt-caching-scope-2026-01-05",EZ="extended-cache-ttl-2025-04-11",OZ="fast-mode-2026-02-01",L1="redact-thinking-2026-02-12",D1="thinking-token-count-2026-05-13",b1="token-efficient-tools-2026-03-28",vZ="afk-mode-2026-01-31",yZ="advisor-tool-2026-03-01",i5,_Z;var l5=H(()=>{i5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),_Z=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function _(){if(j()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function O1(){if(!_())return!1;return T8()===null}function _8($,J){switch($){case"free":return J==="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 · enable it at claude.ai/settings/usage";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function T8(){if(j()!=="firstParty")return"Fast mode is not available on third-party providers";if(!_())return"Fast mode is not available";let $=_0("tengu_penguins_off",null);if($!==null)return W(`Fast mode unavailable: ${$}`),$;if(!U1()&&_0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(A()&&Y5()&&!k1()){if(!O("flagSettings")?.fastMode)return W("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let J=R()!==null?"oauth":"api-key",Z=_8(E.reason,J);return W(`Fast mode unavailable: ${Z}`),Z}return null}function iZ(){let $=V5(Z0());return"opus"+(r5()&&!$?"[1m]":"")}function lZ($){if(!_())return!1;if(!O1())return!1;if(!v1($))return!1;let J=D();if(J.fastModePerSessionOptIn)return!1;return J.fastMode===!0}function v1($){if(!_())return!1;let J=$??T0(),Z=T(J).toLowerCase();return Z.includes("opus-5")||Z.includes("opus-4-7")||Z.includes("opus-4-6")}function I8(){if(x0.status==="cooldown"&&Date.now()>=x0.resetAt){if(_()&&!s5)W("Fast mode cooldown expired, re-enabling fast mode"),s5=!0,_1.emit();x0={status:"active"}}return x0}function rZ($,J){if(!_())return;x0={status:"cooldown",resetAt:$,reason:J},s5=!1;let Z=$-Date.now();W(`Fast mode cooldown triggered (${J}), duration ${Math.round(Z/1000)}s`),y1.emit($,J)}function oZ(){x0={status:"active"}}function eZ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},q5("userSettings",{fastMode:void 0}),S(($)=>({...$,penguinModeOrgEnabled:!1})),a5.emit(!1)}function S8($){switch($){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 · enable it at claude.ai/settings/usage";default:return"Fast mode disabled · extra usage not available"}}function h8($){return $==="org_level_disabled_until"||$==="out_of_credits"}function J3($){let J=S8($);if(W(`Fast mode overage rejection: ${$??"unknown"} — ${J}`),!h8($))q5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1}));T1.emit(J)}function M8(){return I8().status==="cooldown"}function Z3($,J){let Z=_()&&O1()&&!!J&&v1($);if(Z&&M8())return"cooldown";if(Z)return"on";return"off"}async function A8($){let J=`${k().BASE_API_URL}/api/claude_code_penguin_mode`,Z="accessToken"in $?{Authorization:`Bearer ${$.accessToken}`,"anthropic-beta":X5}:{"x-api-key":$.apiKey};return(await U.get(J,{headers:Z})).data}function Y3(){if(!_())return;if(E.status!=="pending")return;E=N().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function X3(){if(E1())return;if(!_())return;if(y0)return W("Fast mode prefetch in progress, returning in-flight promise"),y0;let $=o5();if(!(R()?.accessToken&&J0())&&!$){E=N().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let Z=Date.now();if(Z-N1<C8){W("Skipping fast mode prefetch, fetched recently");return}N1=Z;let Q=async()=>{let X=R(),q=X?.accessToken&&J0()?{accessToken:X.accessToken}:$?{apiKey:$}:null;if(!q)throw Error("No auth available");return A8(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(U.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 x=R()?.accessToken;if(x)await e5(x),X=await Q();else throw V}else throw V}let q=E.status!=="pending"?E.status==="enabled":N().penguinModeOrgEnabled;if(E=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)q5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:X.enabled})),a5.emit(X.enabled)}W(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){E=N().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},W(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"})}finally{y0=null}}return y0=Y(),y0}var nZ="Opus 5",x0,s5=!1,y1,_1,sZ,aZ,T1,$3,E,a5,Q3,C8=30000,N1=0,y0=null;var I1=H(()=>{e0();O0();P1();e();q0();v8();j0();r();g();G0();p();y8();W0();B1();x0={status:"active"},y1=$0(),_1=$0(),sZ=y1.subscribe,aZ=_1.subscribe;T1=$0(),$3=T1.subscribe;E={status:"pending"},a5=$0(),Q3=a5.subscribe});function t8($){for(let J of d8)if(J.pattern.test($))return J.cost;return}function J2($){if(_()&&$)return A1;return c}function Z2($){if(_()&&$)return A1;return $2[w(D0.firstParty)]??c}function n8($,J){let Z=$.promptCacheWrite1hTokens??$.promptCacheWriteTokens,Q=J.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*$.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*Z:(J.cache_creation_input_tokens??0)/1e6*$.promptCacheWriteTokens;return J.input_tokens/1e6*$.inputTokens+J.output_tokens/1e6*$.outputTokens+(J.cache_read_input_tokens??0)/1e6*$.promptCacheReadTokens+Y+(J.server_tool_use?.web_search_requests??0)*$.webSearchRequests}function i8($,J){let Z=L($);if(Z===w(c0.firstParty)||Z===w(d0.firstParty)||Z===w(t0.firstParty)){let Y=J.speed==="fast";return J2(Y)}if(Z===w(D0.firstParty))return Z2(J.speed==="fast");let Q=$2[Z];if(!Q){let Y=t8($);if(Y)return Y;return l8($,Z),$2[L(T0())]??c8}return Q}function l8($,J){M1()}function s8($,J){let Z=i8($,J);return n8(Z,J)}function B3($,J){let Z={input_tokens:J.inputTokens,output_tokens:J.outputTokens,cache_read_input_tokens:J.cacheReadInputTokens,cache_creation_input_tokens:J.cacheCreationInputTokens};return s8($,Z)}function h1($){if(Number.isInteger($))return`$${$}`;return`$${$.toFixed(2)}`}function Q2($){return`${h1($.inputTokens)}/${h1($.outputTokens)} per Mtok`}var f8,I0,S1,c,u8,g8,A1,p8,m8,c8,d8,$2;var C1=H(()=>{e();I1();S5();G0();f8={inputTokens:2,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheWrite1hTokens:4,promptCacheReadTokens:0.2,webSearchRequests:0.01},I0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},S1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},c={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},u8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:0.25,webSearchRequests:0.01},g8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},A1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},p8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},m8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},c8=c,d8=[{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}}];$2={[w(k5.firstParty)]:p8,[w(U5.firstParty)]:m8,[w(N5.firstParty)]:I0,[w(b5.firstParty)]:I0,[w(P5.firstParty)]:I0,[w(E5.firstParty)]:I0,[w(T5.firstParty)]:I0,[w(I5.firstParty)]:f8,[w(O5.firstParty)]:S1,[w(v5.firstParty)]:S1,[w(y5.firstParty)]:c,[w(c0.firstParty)]:c,[w(d0.firstParty)]:c,[w(t0.firstParty)]:c,[w(D0.firstParty)]:c,[w(_5.firstParty)]:u8,"claude-fable-5":g8}});function d($){return a8.includes($)}function H0($){return r8.includes($)}var a8,r8;var Y2=H(()=>{a8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];r8=["sonnet","opus","haiku"]});function o8($,J){if($.includes(J))return!0;if(d($))return T($).toLowerCase().includes(J);return!1}function f1($,J){if(!$.startsWith(J))return!1;return $.length===J.length||$[J.length]==="-"}function e8($,J){let Z=d($)?T($).toLowerCase():$;if(f1(Z,J))return!0;if(!J.startsWith("claude-")&&f1(Z,`claude-${J}`))return!0;return!1}function u1($,J){for(let Z of J){if(H0(Z))continue;let Q=Z.indexOf($);if(Q===-1)continue;let Y=Q+$.length;if(Y===Z.length||Z[Y]==="-")return!0}return!1}function g1($){let J=D()||{},{availableModels:Z}=J;if(!Z)return!0;if(Z.length===0)return!1;let Y=r0($).trim().toLowerCase(),X=Z.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!H0(Y)||!u1(Y,X))return!0}for(let q of X)if(H0(q)&&!u1(q,X)&&o8(Y,q))return!0;if(d(Y)){let q=T(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!H0(q)&&d(q)){if(T(q).toLowerCase()===Y)return!0}for(let q of X)if(!H0(q)&&!d(q)){if(e8(Y,q))return!0}return!1}var p1=H(()=>{W0();Y2();G0();o0()});function j5($){if(typeof $!=="string")return;let J=$.trim();return J.length>0?J:void 0}function R0(){let $=F();if(!$?.model)return;return d1($.model)}function M3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let $=R0();if(j()==="gemini")return $||"gemini-2.0-flash-lite";if(j()==="mistral")return $||"ministral-3b-latest";if(j()==="openai")return $||"gpt-4o-mini";if(j()==="codex")return $||"codexspark";if(j()==="github")return $||"github:copilot";if(j()==="nvidia-nim")return $||"meta/llama-3.1-8b-instruct";if(j()==="minimax")return $||"MiniMax-M2.5-highspeed";return i1()}function A3($){return $===B().opus40||$===B().opus41||$===B().opus45||$===B().opus46||$===B().opus47||$===B().opus48||$===B().opus5}function V5($){let J=L($);return J.includes("opus-5")||J.includes("sonnet-5")||J.includes("fable-5")}function X2(){let $,J=m1();if(J!==void 0)$=J;else{let Z=D()||{},Q=j5(Z.model),X=R0()||Q||void 0,q=c1(),V=j5(q.activeModelForProject);if(V){let z=t1()?.id,x=q.activeModelForProjectProfileId;$=x===void 0||x===z?V:X}else $=X}if($&&!g1($))return;return $}function C3(){let $=X2();if($!==void 0&&$!==null)return T($);return l1()}function Z$(){return Z0()}function Z0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let $=R0();if(j()==="gemini")return $||"gemini-2.5-pro";if(j()==="mistral")return $||"devstral-latest";if(j()==="openai")return $||"gpt-4o";if(j()==="codex")return $||"gpt-5.5";if(j()==="github")return $||"github:copilot";if(j()==="nvidia-nim")return $||"nvidia/llama-3.1-nemotron-70b-instruct";if(j()==="minimax")return $||"MiniMax-M2.7";if(j()!=="firstParty")return B().opus46;return B().opus5}function S0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let $=R0();if(j()==="gemini")return $||"gemini-2.0-flash";if(j()==="mistral")return $||"mistral-medium-latest";if(j()==="openai")return $||"gpt-4o";if(j()==="codex")return $||"gpt-5.5";if(j()==="github")return $||"github:copilot";if(j()==="nvidia-nim")return $||"nvidia/llama-3.1-nemotron-70b-instruct";if(j()==="minimax")return $||"MiniMax-M2.5";if(j()!=="firstParty")return B().sonnet45;return B().sonnet5}function i1(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let $=R0();if(j()==="mistral")return $||"ministral-3b-latest";if(j()==="openai")return $||"gpt-4o-mini";if(j()==="codex")return $||"gpt-5.5";if(j()==="github")return $||"github:copilot";if(j()==="gemini")return $||"gemini-2.0-flash-lite";if(j()==="nvidia-nim")return $||"meta/llama-3.1-8b-instruct";if(j()==="minimax")return $||"MiniMax-M2.5-highspeed";return B().haiku45}function f3($){let{permissionMode:J,mainLoopModel:Z,exceeds200kTokens:Q=!1}=$;if(X2()==="opusplan"&&J==="plan"&&!Q)return Z0();if(X2()==="haiku"&&J==="plan")return S0();return Z}function T0(){let $=R0();if(j()==="github"){let J=D()||{};return j5(J.model)||$||"github:copilot"}if(j()==="gemini")return $||"gemini-2.0-flash";if(j()==="mistral")return $||"devstral-latest";if(j()==="openai")return $||"gpt-4o";if(j()==="codex")return $||"gpt-5.5";if(W5()||z5()){let J=Z0();return J+(r5()&&!V5(J)?"[1m]":"")}return S0()}function l1(){return T(T0())}function w($){if($=$.toLowerCase(),$.includes("claude-fable-5-1"))return"claude-fable-5-1";if($.includes("claude-fable-5"))return"claude-fable-5";if($.includes("claude-opus-5"))return"claude-opus-5";if($.includes("claude-opus-4-8"))return"claude-opus-4-8";if($.includes("claude-opus-4-7"))return"claude-opus-4-7";if($.includes("claude-opus-4-6"))return"claude-opus-4-6";if($.includes("claude-opus-4-5"))return"claude-opus-4-5";if($.includes("claude-opus-4-1"))return"claude-opus-4-1";if($.includes("claude-opus-4"))return"claude-opus-4";if($.includes("claude-sonnet-5"))return"claude-sonnet-5";if($.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if($.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if($.includes("claude-sonnet-4"))return"claude-sonnet-4";if($.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if($.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if($.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if($.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if($.includes("claude-3-opus"))return"claude-3-opus";if($.includes("claude-3-sonnet"))return"claude-3-sonnet";if($.includes("claude-3-haiku"))return"claude-3-haiku";let J=$.match(/(claude-(\d+-\d+-)?\w+)/);if(J&&J[1])return J[1];return $}function L($){return w(r0($))}function Q$($=!1){if(W5()||z5())return`Opus 5 · Most capable for complex work${$?Y$(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function u3($){if($==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return q$(T($))}function g3($){if(j()!=="firstParty")return"";let J=Q2(J2($));return` ·${$?` (${q2})`:""} ${J}`}function Y$($){if(j()!=="firstParty")return"";let J=Q2(Z2($));return` ·${$?` (${q2})`:""} ${J}`}function r5(){if(Q0()||W2()||j()!=="firstParty")return!1;if(h()&&f()===null)return!1;return!0}function X$($){if(j()==="openai"||j()==="gemini"||j()==="codex"||j()==="github"){if(h5[$])return h5[$];if(j()==="github"){let{getCopilotDisplayName:J}=(U0(),P0(k0));return J($)??null}return null}switch($){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable51:return"Fable 5.1";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function q$($){let J=X$($);if(J)return J;if($==="github:copilot")return"GPT-4o";return $}function T($){let J=j5($);if(!J)return S0();let Z=J.toLowerCase(),Q=t(Z),Y=Q?Z.replace(/\[1m]$/i,"").trim():Z;if(d(Y)){let X=(q)=>Q&&!V5(q)?q+"[1m]":q;switch(Y){case"opusplan":return X(S0());case"sonnet":return X(S0());case"haiku":return X(i1());case"opus":return X(Z0());case"best":return Z$();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5"||Y==="fable51")return B().fable51;if(j()==="firstParty"&&j$(Y)&&W$())return Z0()+(Q?"[1m]":"");if(Q)return J.replace(/\[1m\]$/i,"").trim()+"[1m]";return J}function p3($,J){if(t($)||!t(J))return $;if(V2(T($)))return $+"[1m]";return $}function j$($){return V$.includes($)}function W$(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function m3($){if($===null){if(h())return`Default (${Q$()})`;return`Default (${l1()})`}let J=T($);return $===J?J:`${$} (${J})`}function c3($){if(j()==="foundry")return;let J=$.toLowerCase().includes("[1m]"),Z=L($);if(Z.includes("claude-fable-5-1"))return"Fable 5.1";if(Z.includes("claude-fable-5"))return"Fable 5";if(Z.includes("claude-opus-5"))return"Opus 5";if(Z.includes("claude-opus-4-8"))return J?"Opus 4.8 (with 1M context)":"Opus 4.8";if(Z.includes("claude-opus-4-7"))return J?"Opus 4.7 (with 1M context)":"Opus 4.7";if(Z.includes("claude-opus-4-6"))return J?"Opus 4.6 (with 1M context)":"Opus 4.6";if(Z.includes("claude-opus-4-5"))return"Opus 4.5";if(Z.includes("claude-opus-4-1"))return"Opus 4.1";if(Z.includes("claude-opus-4"))return"Opus 4";if(Z.includes("claude-sonnet-5"))return"Sonnet 5";if(Z.includes("claude-sonnet-4-6"))return J?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(Z.includes("claude-sonnet-4-5"))return J?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(Z.includes("claude-sonnet-4"))return J?"Sonnet 4 (with 1M context)":"Sonnet 4";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-haiku-4-5"))return"Haiku 4.5";if(Z.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function d3($){return $.replace(/\[(1|2)m\]/gi,"")}function t3($){let J=L($);return J.includes("opus-4-7")||J.includes("opus-4-8")||J.includes("opus-5")||J.includes("fable-5")||J.includes("sonnet-5")}var V$;var G0=H(()=>{e();o();j0();n1();q0();j2();g();J$();o0();C1();W0();p();$$();p1();Y2();M5();V$=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function z2($){return}var s1=()=>{};function G$($,J={}){if(J.isPro??(x$.test($)||a1.has($)))return!1;if(z$.has($))return!0;if(a1.has($))return!1;let Q=$.match(B$);return Q?Number.parseFloat(Q[1])>5.4:!1}function l3(){return B5.filter(($)=>G$($.id,{isPro:$.isPro}))}var B5,z$,a1,B$,x$,r1,o1;var e1=H(()=>{B5=[{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}],z$=new Set(B5.filter(($)=>!$.isPro).map(($)=>$.id)),a1=new Set(["gpt-5.5-pro"]),B$=/^gpt-(\d+\.\d+)/,x$=/-pro$/;r1=Object.fromEntries(B5.filter(($)=>$.contextInput!==void 0).map(($)=>[$.id,$.contextInput])),o1=Object.fromEntries(B5.filter(($)=>$.contextOutput!==void 0).map(($)=>[$.id,$.contextOutput]))});var q4={};C5(q4,{prefetchOpenAICompatibleModels:()=>k$,getDiscoveredContextWindow:()=>H$,discoverOpenAICompatibleModelOptions:()=>X4});function H$($){return Q4.get($)}function R$(){return(F()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function Y4($){try{let J=new URL($).hostname.toLowerCase();return J.endsWith(".openai.azure.com")||J.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function w$($){try{return new URL($).hostname.toLowerCase().includes("bankr")}catch{return!1}}function K$($){let J=F()?.apiKey?.trim();if(!J)return{};if(w$($))return{"X-API-Key":J};let Z={Authorization:`Bearer ${J}`};if(Y4($))Z["api-key"]=J;return Z}function F$($){let J=$.endsWith("/v1")?`${$}/models`:`${$}/v1/models`,Z=`${$}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&Y4($)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if(J===Z)return[Y(J)];return[Y(J),Y(Z)]}function L$($){try{let J=new URL($),Z=J.pathname.replace(/\/+$/,""),Y=`${Z.endsWith("/v1")?Z.slice(0,-3):Z}/api/tags`.replace(/\/{2,}/g,"/");return`${J.origin}${Y}`}catch{return null}}function D$($){if($>=1e6)return`${$/1e6}M ctx`;if($>=1000)return`${Math.round($/1000)}K ctx`;return`${$} ctx`}async function b$($,J){let Z=new Set;for(let Q of $)try{let Y=await U.get(Q,{headers:J,timeout:Z4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||Z.has(V))continue;Z.add(V);let z=q.name?.trim()||V,x=q.context_length??null;if(x&&x>0)Q4.set(V,x);let G=x?` · ${D$(x)}`:"";X.push({value:V,label:z,description:`${V}${G}`})}if(X.length>0)return X.sort((q,V)=>{let z=String(q.value).split("/")[0]??"",x=String(V.value).split("/")[0]??"",G=z.localeCompare(x);return G!==0?G:String(q.value).localeCompare(String(V.value))}),X}catch{W(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function N$($,J){try{let Z=await U.get($,{headers:J,timeout:Z4}),Q=new Set;return(Z.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 W(`[ModelDiscovery] Failed to fetch Ollama models from ${$}`),[]}}async function X4(){if(j()!=="openai")return[];let $=R$(),J=K$($),Z=await b$(F$($),J);if(Z.length>0)return Z;let Q=L$($);if(Q)return N$(Q,J);return[]}function k$(){if(h0)return h0;return h0=(async()=>{if(!J4()?.startsWith("openai:"))return;try{let J=await X4();if(J.length>0)$4(J)}catch{}finally{h0=null}})(),h0}var Z4=5000,Q4,h0=null;var V4=H(()=>{e0();o();d2();r();p();n1();Q4=new Map});function W4($,J,Z){let Q=F()?.model?.trim();if(Q&&Q!==Z){let X=`${Q}:${Z}`;if(J[X]!==void 0)return J[X];if($[X]!==void 0)return $[X]}let Y=j4(J,Z);if(Y!==void 0)return Y;return j4($,Z)}function j4($,J){if($[J]!==void 0)return $[J];let Z=Object.keys($).sort((Q,Y)=>Y.length-Q.length);for(let Q of Z)if(J.startsWith(Q))return $[Q];return}function z4($){try{let{getDiscoveredContextWindow:Z}=(V4(),P0(q4)),Q=Z($);if(Q!==void 0)return Q}catch{}let J=W4(U$,E$,$);if(J!==void 0)return J;try{let{getCatalogCopilotContextWindow:Z}=(U0(),P0(k0));return Z($)}catch{return}}function B4($){let J=W4(P$,O$,$);if(J!==void 0)return J;try{let{getCatalogCopilotMaxOutputTokens:Z}=(U0(),P0(k0));return Z($)}catch{return}}var U$,P$,E$,O$;var x4=H(()=>{o();e1();U$={"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,...r1,"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},P$={"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,...o1,"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},E$=(()=>{try{let $=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if($){let J=JSON.parse($);if(typeof J==="object"&&J!==null)return J}}catch{}return{}})(),O$=(()=>{try{let $=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if($){let J=JSON.parse($);if(typeof J==="object"&&J!==null)return J}}catch{}return{}})()});function G4(){let $=F()?.transport;return $==="openai_compat"||$==="gemini"||$==="mistral"||$==="github_copilot"||$==="codex_responses"}function Q0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function t($){if(Q0())return!1;return/\[1m\]/i.test($)}function V2($){if(Q0())return!1;let J=L($);return J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("opus-4-6")||J.includes("opus-4-7")||J.includes("opus-4-8")||J.includes("opus-5")||J.includes("fable-5")}function R7($,J){if(t($))return 1e6;if(G4()){let Q=z4($);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${$}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),v$}let Z=z2($);if(Z?.max_input_tokens&&Z.max_input_tokens>=1e5){if(Z.max_input_tokens>B2&&Q0())return B2;return Z.max_input_tokens}if(!Q0()&&(L($).includes("fable-5")||L($).includes("sonnet-5")||L($).includes("opus-5")))return 1e6;if(J?.includes(v0)&&V2($))return 1e6;if(T$($))return 1e6;return B2}function T$($){if(Q0())return!1;if(t($))return!1;if(!L($).includes("sonnet-4-6"))return!1;return N().clientDataCache?.coral_reef_sonnet==="true"}function w7($,J){if(!$)return{used:null,remaining:null};let Z=$.input_tokens+$.cache_creation_input_tokens+$.cache_read_input_tokens,Q=Math.round(Z/J*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function K7($){let J,Z;if(G4()){let X=B4($);if(X!==void 0)return{default:X,upperLimit:X}}let Q=L($);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))J=64000,Z=128000;else if(Q.includes("sonnet-4-6"))J=32000,Z=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))J=32000,Z=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))J=32000,Z=32000;else if(Q.includes("claude-3-opus"))J=4096,Z=4096;else if(Q.includes("claude-3-sonnet"))J=8192,Z=8192;else if(Q.includes("claude-3-haiku"))J=4096,Z=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))J=8192,Z=8192;else if(Q.includes("3-7-sonnet"))J=32000,Z=64000;else J=y$,Z=_$;let Y=z2($);if(Y?.max_tokens&&Y.max_tokens>=4096)Z=Y.max_tokens,J=Math.min(J,Z);return{default:J,upperLimit:Z}}var B2=200000,v$,x7=20000,y$=32000,_$=64000,G7=8000,H7=64000;var j2=H(()=>{l5();o();j0();g();G0();s1();x4();v$=(()=>{let $=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN($)&&$>0?$:128000})()});var I$,H4;var R4=H(()=>{p0();p();I$=[{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"}],H4=y(($,J)=>{if(j()==="firstParty")return;let Z=$.toLowerCase();for(let Q of I$){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(Z!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes(J)}return},($,J)=>`${$.toLowerCase()}:${J}`)});function S$($){let J=[],Z=[];for(let Q of $)if(D4.includes(Q))J.push(Q);else Z.push(Q);return{allowed:J,disallowed:Z}}function M7($){if(!$||$.length===0)return;if(h()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:J,disallowed:Z}=S$($);for(let Q of Z)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${D4.join(", ")}`);return J.length>0?J:void 0}function w4($){let J=H4($,"interleaved_thinking");if(J!==void 0)return J;let Z=L($),Q=j();if(Q==="foundry")return!0;if(Q==="firstParty")return!Z.includes("claude-3-");return Z.includes("claude-opus-4")||Z.includes("claude-opus-5")||Z.includes("claude-sonnet-5")||Z.includes("claude-sonnet-4")}function h$($){let J=L($);return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("claude-haiku-4")}function M$($){let J=L($),Z=j();if(Z==="foundry")return!0;if(Z==="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")||J.includes("claude-haiku-4")}function A$($){let J=L($),Z=j();if(Z!=="firstParty"&&Z!=="foundry")return!1;return J.includes("claude-fable-5")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4-6")||J.includes("claude-sonnet-4-5")||J.includes("claude-opus-4-1")||J.includes("claude-opus-4-5")||J.includes("claude-opus-4-6")||J.includes("claude-opus-4-7")||J.includes("claude-opus-4-8")||J.includes("claude-haiku-4-5")}function A7($){let J=L($);if(!J.startsWith("claude-"))return!1;if(J.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test(J))return!1;return!0}function C7(){let $=j();if($==="vertex"||$==="bedrock")return K1;return w1}function K4(){return(j()==="firstParty"||j()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function f7(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return j()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function u7($,J){let Z=[...b4($)];if(J?.isAgenticQuery){if(!Z.includes(Q5))Z.push(Q5)}let Q=F4();if(!Q||Q.length===0)return Z;return[...Z,...Q.filter((Y)=>!Z.includes(Y))]}function N4(){x2.cache?.clear?.(),b4.cache?.clear?.(),C$.cache?.clear?.()}var D4,x2,b4,C$;var k4=H(()=>{p0();P1();e();l5();O0();q0();j2();g();G0();R4();p();W0();D4=[v0];x2=y(($)=>{let J=[],Z=L($).includes("haiku"),Q=j(),Y=K4();if(!Z)J.push(Q5);if(h())J.push(X5);if(t($))J.push(v0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&w4($))J.push(G1);if(Y&&w4($)&&!A()&&D().showThinkingSummaries!==!0)J.push(L1),J.push(D1);let X=M$($);if(K4()&&X)J.push(H1);let q=L4("tengu_tool_pear"),V=!q&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||_0("tengu_amber_json_tools",!1));if(Y&&A$($)&&q)J.push(R1);if(Y&&V)J.push(b1);if(Q==="vertex"&&h$($))J.push(n5);if(Q==="foundry")J.push(n5);if(Y)J.push(F1);if(process.env.ANTHROPIC_BETAS)J.push(...process.env.ANTHROPIC_BETAS.split(",").map((z)=>z.trim()).filter(Boolean));return J}),b4=y(($)=>{let J=x2($);if(j()==="bedrock")return J.filter((Z)=>!i5.has(Z));return J}),C$=y(($)=>{return x2($).filter((Z)=>i5.has(Z))})});import{execFile as f$}from"child_process";function U4($){return new Promise((J)=>{f$("security",["find-generic-password","-a",G5(),"-w","-s",$],{encoding:"utf-8",timeout:u$},(Z,Q)=>{J({stdout:Z?null:Q?.trim()||null,timedOut:Boolean(Z&&"killed"in Z&&Z.killed)})})})}function d7(){if(process.platform!=="darwin"||x5||C())return;let $=U4(m(P4)),J=U4(m());x5=Promise.all([$,J]).then(([Z,Q])=>{if(!Z.timedOut)E4(Z.stdout);if(!Q.timedOut)G2={stdout:Q.stdout}})}async function t7(){if(x5)await x5}function O4(){return G2}function H2(){G2=null}var u$=1e4,G2=null,x5=null;var v4=H(()=>{g();c5()});function i7(){return y4}function _4(){y4.clear()}var y4;var T4=H(()=>{y4=new Map});var NJ={};C5(NJ,{validateForceLoginOrg:()=>bJ,saveOAuthTokensIfNeeded:()=>l4,saveApiKey:()=>_2,removeApiKey:()=>HJ,refreshGcpCredentialsIfNeeded:()=>y2,refreshGcpAuth:()=>n4,refreshAwsAuth:()=>d4,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>BJ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>xJ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>$J,isUsing3PServices:()=>R5,isTeamSubscriber:()=>FJ,isTeamPremiumSubscriber:()=>z5,isProSubscriber:()=>W2,isMaxSubscriber:()=>W5,isGcpAuthRefreshFromProjectSettings:()=>v2,isEnterpriseSubscriber:()=>LJ,isClaudeAISubscriber:()=>h,isAwsCredentialExportFromProjectSettings:()=>E2,isAwsAuthRefreshFromProjectSettings:()=>U2,isAnthropicAuthEnabled:()=>L0,is1PApiCustomer:()=>KJ,hasProfileScope:()=>J0,handleOAuth401Error:()=>e5,getSubscriptionType:()=>f,getSubscriptionName:()=>a4,getRateLimitTier:()=>s4,getOauthAccountInfo:()=>F2,getConfiguredApiKeyHelper:()=>n,getClaudeAIOAuthTokensAsync:()=>C0,getClaudeAIOAuthTokens:()=>R,getAuthTokenSource:()=>N2,getApiKeyHelperElapsedMs:()=>r$,getApiKeyFromConfigOrMacOSKeychain:()=>F5,getApiKeyFromApiKeyHelperCached:()=>w2,getApiKeyFromApiKeyHelper:()=>c4,getAnthropicApiKeyWithSource:()=>K5,getAnthropicApiKey:()=>o5,getAccountInformation:()=>DJ,clearOAuthTokenCache:()=>T2,clearGcpCredentialsCache:()=>zJ,clearAwsCredentialsCache:()=>XJ,clearApiKeyHelperCache:()=>e$,checkGcpCredentialsValid:()=>t4,checkAndRefreshOAuthTokenIfNeeded:()=>u0,calculateApiKeyHelperTTL:()=>m4});import{exec as g4}from"child_process";import{mkdir as i$,stat as l$}from"fs/promises";import{join as s$}from"path";function H5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function L0(){if(C())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let $=R5(),Z=(D()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||Z||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=K5({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!($||Q&&!H5()||X&&!H5())}function N2(){if(C()){if(n())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!H5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(Z5()){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(n()&&!H5())return{source:"apiKeyHelper",hasToken:!0};let Z=R();if(F0(Z?.scopes)&&Z?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function o5(){let{key:$}=K5();return $}function K5($={}){let J=(()=>{let q=F();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(C()){if(J)return{key:J,source:"ANTHROPIC_API_KEY"};if(n())return{key:$.skipRetrievingKeyFromApiKeyHelper?null:w2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let Z=J;if(Y5()&&Z)return{key:Z,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let q=m5();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!R5()&&!Z&&!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(Z&&!R5())return{key:Z,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(Z&&N().customApiKeyResponses?.approved?.includes(d5(Z)))return{key:Z,source:"ANTHROPIC_API_KEY"};let Q=m5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(n()){if($.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:w2(),source:"apiKeyHelper"}}let X=F5();if(X)return X;return{key:null,source:"none"}}function n(){if(C())return O("flagSettings")?.apiKeyHelper;return(D()||{}).apiKeyHelper}function p4(){let $=n();if(!$)return!1;let J=O("projectSettings"),Z=O("localSettings");return J?.apiKeyHelper===$||Z?.apiKeyHelper===$}function k2(){return(D()||{}).awsAuthRefresh}function U2(){let $=k2();if(!$)return!1;let J=O("projectSettings"),Z=O("localSettings");return J?.awsAuthRefresh===$||Z?.awsAuthRefresh===$}function P2(){return(D()||{}).awsCredentialExport}function E2(){let $=P2();if(!$)return!1;let J=O("projectSettings"),Z=O("localSettings");return J?.awsCredentialExport===$||Z?.awsCredentialExport===$}function m4(){let $=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if($){let J=parseInt($,10);if(!Number.isNaN(J)&&J>=0)return J;W(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${$}`,{level:"error"})}return a$}function r$(){let $=u?.startedAt;return $?Date.now()-$:0}async function c4($){if(!n())return null;let J=m4();if(v){if(Date.now()-v.timestamp<J)return v.value;if(!u)u={promise:I4($,!1,K0),startedAt:null};return v.value}if(u)return u.promise;return u={promise:I4($,!0,K0),startedAt:Date.now()},u.promise}async function I4($,J,Z){try{let Q=await o$($);if(Z!==K0)return Q;if(Q!==null)v={value:Q,timestamp:Date.now()};return Q}catch(Q){if(Z!==K0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(M.red(`apiKeyHelper failed: ${Y}`)),W(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!J&&v&&v.value!==" ")return v={...v,timestamp:Date.now()},v.value;return v={value:" ",timestamp:Date.now()}," "}finally{if(Z===K0)u=null}}async function o$($){let J=n();if(!J)return null;if(p4()){if(!i()&&!$){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 f0("apiKeyHelper invoked before trust check",X),null}}let Z=await B0(J,{shell:!0,timeout:600000,reject:!1});if(Z.failed){let Y=Z.timedOut?"timed out":`exited ${Z.exitCode}`,X=Z.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=Z.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function w2(){return v?.value??null}function e$(){K0++,v=null,u=null}function $J($){if(p4()&&!i())return;c4($)}async function ZJ(){let $=k2();if(!$)return!1;if(U2()){if(!i()&&!A()){let Z=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return f0("awsAuthRefresh invoked before trust check",Z),!1}}try{return W("Fetching AWS caller identity for AWS auth refresh command"),await t5(),W("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return d4($)}}function d4($){W("Running AWS auth refresh command");let J=I.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=g4($,{timeout:QJ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.addOutput(X),W(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.setError(X),W(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)W("AWS auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let V=X==="SIGTERM"?M.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):M.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),J.endAuthentication(!1),Z(!1)}})})}async function YJ(){let $=P2();if(!$)return null;if(E2()){if(!i()&&!A()){let Z=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return f0("awsCredentialExport invoked before trust check",Z),null}}try{return W("Fetching AWS caller identity for credential export command"),await t5(),W("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{W("Running AWS credential export command");let J=await B0($,{shell:!0,reject:!1});if(J.exitCode!==0||!J.stdout)throw Error("awsCredentialExport did not return a valid value");let Z=h4(J.stdout.trim());if(!j1(Z))throw Error("awsCredentialExport did not return valid AWS STS output structure");return W("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:Z.Credentials.AccessKeyId,secretAccessKey:Z.Credentials.SecretAccessKey,sessionToken:Z.Credentials.SessionToken}}catch(J){let Z=M.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if(J instanceof Error)console.error(Z,J.message);else console.error(Z,J);return null}}}function XJ(){X0.cache.clear()}function O2(){return(D()||{}).gcpAuthRefresh}function v2(){let $=O2();if(!$)return!1;let J=O("projectSettings"),Z=O("localSettings");return J?.gcpAuthRefresh===$||Z?.gcpAuthRefresh===$}async function t4(){try{let{GoogleAuth:$}=await import("google-auth-library"),J=new $({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),Z=(async()=>{await(await J.getClient()).getAccessToken()})(),Q=b2(qJ).then(()=>{throw new r4("GCP credentials check timed out")});return await Promise.race([Z,Q]),!0}catch{return!1}}async function jJ(){let $=O2();if(!$)return!1;if(v2()){if(!i()&&!A()){let Z=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return f0("gcpAuthRefresh invoked before trust check",Z),!1}}try{if(W("Checking GCP credentials validity for auth refresh"),await t4())return W("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return n4($)}function n4($){W("Running GCP auth refresh command");let J=I.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=g4($,{timeout:WJ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.addOutput(X),W(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.setError(X),W(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)W("GCP auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let V=X==="SIGTERM"?M.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):M.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),J.endAuthentication(!1),Z(!1)}})})}function zJ(){y2.cache.clear()}function BJ(){if(!O2())return;if(v2()){if(!i()&&!A())return}y2()}function xJ(){let $=k2(),J=P2();if(!$&&!J)return;if(U2()||E2()){if(!i()&&!A())return}X0(),B()}function GJ($){return/^[a-zA-Z0-9-_]+$/.test($)}async function _2($){if(!GJ($))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await i4();let J=!1;if(process.platform==="darwin")try{let Q=m(),Y=G5(),X=Buffer.from($,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
+ `;await B0("security",["-i"],{input:q,reject:!1}),J=!0}catch(Q){b(Q)}let Z=d5($);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:J?Q.primaryApiKey:$,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(Z)?Y:[...Y,Z],rejected:Q.customApiKeyResponses?.rejected??[]}}}),F5.cache.clear?.(),H2()}async function HJ(){await i4(),S(($)=>({...$,primaryApiKey:void 0})),F5.cache.clear?.(),H2()}async function i4(){try{await q1()}catch($){b($)}}function l4($){if(!F0($.scopes))return{success:!0};if(!$.refreshToken||!$.expiresAt)return{success:!0};let J=w5();try{let Z=J.read()||{},Q=Z.claudeAiOauth;Z.claudeAiOauth={accessToken:$.accessToken,refreshToken:$.refreshToken,expiresAt:$.expiresAt,scopes:$.scopes,subscriptionType:$.subscriptionType??Q?.subscriptionType??null,rateLimitTier:$.rateLimitTier??Q?.rateLimitTier??null};let Y=J.update(Z);return R.cache?.clear?.(),N4(),_4(),Y}catch(Z){return b(Z),{success:!1,warning:"Failed to save OAuth tokens"}}}function T2(){R.cache?.clear?.(),w0()}async function RJ(){try{let{mtimeMs:$}=await l$(s$(L2(),".credentials.json"));if($!==S4)S4=$,T2()}catch{R.cache?.clear?.()}}function e5($){let J=R2.get($);if(J)return J;let Z=wJ($).finally(()=>{R2.delete($)});return R2.set($,Z),Z}async function wJ($){T2();let J=await C0();if(!J?.refreshToken)return!1;if(J.accessToken!==$)return!0;return u0(0,!0)}async function C0(){if(C())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||Z5())return R();try{let Z=(await w5().readAsync())?.claudeAiOauth;if(!Z?.accessToken)return null;return Z}catch($){return b($),null}}function u0($=0,J=!1){if($===0&&!J){if(M0)return M0;return M0=K2($,J).finally(()=>{M0=null}),M0}return K2($,J)}async function K2($,J){await RJ();let Q=R();if(!J){if(!Q?.refreshToken||!A0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!F0(Q.scopes))return!1;R.cache?.clear?.(),w0();let Y=await C0();if(!Y?.refreshToken||!A0(Y.expiresAt))return!1;let X=L2();await i$(X,{recursive:!0});let q;try{q=await A4(X)}catch(V){if(V.code==="ELOCKED"){if($<5)return await b2(1000+Math.random()*1000),K2($+1,J);return!1}return b(V),!1}try{R.cache?.clear?.(),w0();let V=await C0();if(!V?.refreshToken||!A0(V.expiresAt))return!1;let z=await f4(V.refreshToken,{scopes:F0(V.scopes)?void 0:V.scopes});return l4(z),R.cache?.clear?.(),w0(),!0}catch(V){b(V),R.cache?.clear?.(),w0();let z=await C0();if(z&&!A0(z.expiresAt))return!0;return!1}finally{await q()}}function h(){if(!L0())return!1;return F0(R()?.scopes)}function J0(){return R()?.scopes?.includes(M4)??!1}function KJ(){{let $=F()?.transport;if($==="bedrock"||$==="vertex"||$==="foundry")return!1}if(h())return!1;return!0}function F2(){return L0()?N().oauthAccount:void 0}function f(){if(!L0())return null;let $=R();if(!$)return null;return $.subscriptionType??null}function W5(){return f()==="max"}function FJ(){return f()==="team"}function z5(){return f()==="team"&&s4()==="default_claude_max_5x"}function LJ(){return f()==="enterprise"}function W2(){return f()==="pro"}function s4(){if(!L0())return null;let $=R();if(!$)return null;return $.rateLimitTier??null}function a4(){switch(f()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function R5(){let $=F()?.transport;if(!$)return!1;return $!=="anthropic"}function DJ(){if(j()!=="firstParty")return;let{source:J}=N2(),Z={};if(J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")Z.tokenSource=J;else if(h())Z.subscription=a4();else Z.tokenSource=J;let{key:Q,source:Y}=K5();if(Q)Z.apiKeySource=Y;if(J==="claude.ai"||Y==="/login managed key"){let q=F2()?.organizationName;if(q)Z.organization=q}let X=F2()?.emailAddress;if((J==="claude.ai"||Y==="/login managed key")&&X)Z.email=X;return Z}async function bJ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!L0())return{valid:!0};let $=O("policySettings")?.forceLoginOrgUUID;if(!$)return{valid:!0};await u0();let J=R();if(!J)return{valid:!0};let{source:Z}=N2(),Q=Z==="CLAUDE_CODE_OAUTH_TOKEN"||Z==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await z0(J.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
+ This machine requires organization ${$} 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===$)return{valid:!0};if(Q)return{valid:!1,message:`The ${Z==="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: ${$}
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 ${$}.
14
+
15
+ Please log in with the correct organization: claude auth login`}}var a$=300000,v=null,u=null,K0=0,JJ=3600000,QJ=180000,X0,qJ=5000,VJ=3600000,WJ=180000,y2,F5,R,S4=0,R2,M0=null,r4;var q0=H(()=>{p$();X1();p0();O0();o0();p();e();o();u4();g5();Y1();V1();z1();x1();k4();j0();r();g();d$();c$();m0();m$();t$();v4();c5();W0();n$();g$();T4();X0=D2(async()=>{let $=await ZJ(),J=await YJ();if($||J)await W1();return J},JJ);y2=D2(async()=>{return await jJ()},VJ);F5=y(()=>{if(C())return null;if(process.platform==="darwin"){let J=O4();if(J){if(J.stdout)return{key:J.stdout,source:"/login managed key"}}else{let Z=m();try{let Q=C4(`security find-generic-password -a $USER -w -s "${Z}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){b(Q)}}}let $=N();if(!$.primaryApiKey)return null;return{key:$.primaryApiKey,source:"/login managed key"}});R=y(()=>{if(C())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 $=Z5();if($)return{accessToken:$,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=w5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch(J){return b(J),null}});R2=new Map;r4=class r4 extends Error{}});function F0($){return Boolean($?.includes(I2))}function kJ($){return $?.split(" ").filter(Boolean)??[]}function S9({codeChallenge:$,state:J,port:Z,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:z}){let x=Y?k().CLAUDE_AI_AUTHORIZE_URL:k().CONSOLE_AUTHORIZE_URL,G=new URL(x);G.searchParams.append("code","true"),G.searchParams.append("client_id",k().CLIENT_ID),G.searchParams.append("response_type","code"),G.searchParams.append("redirect_uri",Q?k().MANUAL_REDIRECT_URL:`http://localhost:${Z}/callback`);let Y0=X?[I2]:$8;if(G.searchParams.append("scope",Y0.join(" ")),G.searchParams.append("code_challenge",$),G.searchParams.append("code_challenge_method","S256"),G.searchParams.append("state",J),q)G.searchParams.append("orgUUID",q);if(V)G.searchParams.append("login_hint",V);if(z)G.searchParams.append("login_method",z);return G.toString()}async function h9($,J,Z,Q,Y=!1,X){let q={grant_type:"authorization_code",code:$,redirect_uri:Y?k().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:k().CLIENT_ID,code_verifier:Z,state:J};if(X!==void 0)q.expires_in=X;let V=await U.post(k().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 V.data}async function f4($,{scopes:J}={}){let Z={grant_type:"refresh_token",refresh_token:$,client_id:k().CLIENT_ID,scope:((J?.length)?J:e4).join(" ")};try{let Q=await U.post(k().TOKEN_URL,Z,{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=$,expires_in:V}=Y,z=Date.now()+V*1000,x=kJ(Y.scope),G=N(),Y0=R(),P=G.oauthAccount?.billingType!==void 0&&G.oauthAccount?.accountCreatedAt!==void 0&&G.oauthAccount?.subscriptionCreatedAt!==void 0&&Y0?.subscriptionType!=null&&Y0?.rateLimitTier!=null?null:await UJ(X);if(P&&G.oauthAccount){let l={};if(P.displayName!==void 0)l.displayName=P.displayName;if(typeof P.hasExtraUsageEnabled==="boolean")l.hasExtraUsageEnabled=P.hasExtraUsageEnabled;if(P.billingType!==null)l.billingType=P.billingType;if(P.accountCreatedAt!==void 0)l.accountCreatedAt=P.accountCreatedAt;if(P.subscriptionCreatedAt!==void 0)l.subscriptionCreatedAt=P.subscriptionCreatedAt;if(Object.keys(l).length>0)S((g0)=>({...g0,oauthAccount:g0.oauthAccount?{...g0.oauthAccount,...l}:g0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:z,scopes:x,subscriptionType:P?.subscriptionType??Y0?.subscriptionType??null,rateLimitTier:P?.rateLimitTier??Y0?.rateLimitTier??null,profile:P?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=U.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw Q}}async function M9($){let J=await U.get(k().ROLES_URL,{headers:{Authorization:`Bearer ${$}`}});if(J.status!==200)throw Error(`Failed to fetch user roles: ${J.statusText}`);let Z=J.data;if(!N().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:Z.organization_role,workspaceRole:Z.workspace_role,organizationName:Z.organization_name}:Y.oauthAccount}))}async function A9($){try{let Z=(await U.post(k().API_KEY_URL,null,{headers:{Authorization:`Bearer ${$}`}})).data?.raw_key;if(Z)return await _2(Z),Z;return null}catch(J){throw J}}function A0($){if($===null)return!1;let J=300000;return Date.now()+J>=$}async function UJ($){let J=await z0($),Z=J?.organization?.organization_type,Q=null;switch(Z){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:J?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:J?.organization?.has_extra_usage_enabled??null,billingType:J?.organization?.billing_type??null};if(J?.account?.display_name)Y.displayName=J.account.display_name;if(J?.account?.created_at)Y.accountCreatedAt=J.account.created_at;if(J?.organization?.subscription_created_at)Y.subscriptionCreatedAt=J.organization.subscription_created_at;return{...Y,rawProfile:J}}async function C9(){let J=N().oauthAccount?.organizationUuid;if(J)return J;let Z=R()?.accessToken;if(Z===void 0||!J0())return null;let Y=(await z0(Z))?.organization?.uuid;if(!Y)return null;return Y}async function f9(){let $=process.env.CLAUDE_CODE_ACCOUNT_UUID,J=process.env.CLAUDE_CODE_USER_EMAIL,Z=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean($&&J&&Z);if($&&J&&Z){if(!N().oauthAccount)o4({accountUuid:$,emailAddress:J,organizationUuid:Z})}await u0();let Y=N();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!h()||!J0())return!1;let X=R();if(X?.accessToken){let q=await z0(X.accessToken),V=q?.account,z=q?.organization;if(V){if(Q)W("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return o4({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:z?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:z?.has_extra_usage_enabled??!1,billingType:z?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:z?.subscription_created_at??void 0}),!0}}return!1}function o4({accountUuid:$,emailAddress:J,organizationUuid:Z,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let z={accountUuid:$,emailAddress:J,organizationUuid:Z,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)z.displayName=Q;S((x)=>{if(x.oauthAccount?.accountUuid===z.accountUuid&&x.oauthAccount?.emailAddress===z.emailAddress&&x.oauthAccount?.organizationUuid===z.organizationUuid&&x.oauthAccount?.displayName===z.displayName&&x.oauthAccount?.hasExtraUsageEnabled===z.hasExtraUsageEnabled&&x.oauthAccount?.billingType===z.billingType&&x.oauthAccount?.accountCreatedAt===z.accountCreatedAt&&x.oauthAccount?.subscriptionCreatedAt===z.subscriptionCreatedAt)return x;return{...x,oauthAccount:z}})}var u4=H(()=>{e0();O0();q0();j0();r();g5()});
16
+ export{d7 as W1,t7 as X1,v4 as Y1,S2 as Z1,h2 as _1,IJ as $1,SJ as a2,Z8 as b2,X8 as c2,hJ as d2,f2 as e2,c0 as f2,D0 as g2,S5 as h2,u5 as i2,B8 as j2,U0 as k2,j as l2,tJ as m2,K8 as n2,nJ as o2,iJ as p2,p as q2,B as r2,ZZ as s2,o0 as t2,z0 as u2,g5 as v2,F0 as w2,kJ as x2,S9 as y2,h9 as z2,f4 as A2,M9 as B2,A9 as C2,A0 as D2,UJ as E2,C9 as F2,f9 as G2,o4 as H2,u4 as I2,HZ as J2,O8 as K2,r2 as L2,Y1 as M2,d5 as N2,V1 as O2,DZ as P2,z1 as Q2,I as R2,x1 as S2,v0 as T2,H1 as U2,R1 as V2,UZ as W2,PZ as X2,F1 as Y2,EZ as Z2,OZ as _2,L1 as $2,vZ as a3,yZ as b3,_Z as c3,l5 as d3,_ as e3,O1 as f3,T8 as g3,nZ as h3,iZ as i3,lZ as j3,v1 as k3,sZ as l3,aZ as m3,I8 as n3,rZ as o3,oZ as p3,eZ as q3,$3 as r3,J3 as s3,M8 as t3,Z3 as u3,Q3 as v3,Y3 as w3,X3 as x3,I1 as y3,I0 as z3,u8 as A3,p8 as B3,m8 as C3,J2 as D3,s8 as E3,B3 as F3,Q2 as G3,C1 as H3,a8 as I3,Y2 as J3,g1 as K3,p1 as L3,M3,A3 as N3,V5 as O3,X2 as P3,C3 as Q3,Z$ as R3,Z0 as S3,S0 as T3,i1 as U3,f3 as V3,T0 as W3,l1 as X3,w as Y3,L as Z3,Q$ as _3,u3 as $3,g3 as a4,Y$ as b4,r5 as c4,X$ as d4,q$ as e4,T as f4,p3 as g4,W$ as h4,m3 as i4,c3 as j4,d3 as k4,t3 as l4,G0 as m4,l3 as n4,e1 as o4,X4 as p4,k$ as q4,V4 as r4,x7 as s4,G7 as t4,H7 as u4,Q0 as v4,t as w4,R7 as x4,T$ as y4,w7 as z4,K7 as A4,j2 as B4,H4 as C4,R4 as D4,M7 as E4,A$ as F4,A7 as G4,C7 as H4,K4 as I4,f7 as J4,b4 as K4,C$ as L4,u7 as M4,N4,k4 as O4,i7 as P4,_4 as Q4,T4 as R4,L0 as S4,N2 as T4,o5 as U4,K5 as V4,n as W4,U2 as X4,E2 as Y4,m4 as Z4,r$ as _4,c4 as $4,w2 as a5,e$ as b5,$J as c5,d4 as d5,X0 as e5,XJ as f5,v2 as g5,t4 as h5,n4 as i5,y2 as j5,zJ as k5,BJ as l5,xJ as m5,F5 as n5,_2 as o5,HJ as p5,l4 as q5,R as r5,T2 as s5,e5 as t5,C0 as u5,u0 as v5,h as w5,J0 as x5,KJ as y5,F2 as z5,f as A5,W5 as B5,FJ as C5,z5 as D5,LJ as E5,W2 as F5,s4 as G5,a4 as H5,R5 as I5,DJ as J5,bJ as K5,NJ as L5,q0 as M5};
@@ -0,0 +1,4 @@
1
+ import{cd as Q,dd as R,ed as W,fd as X,gd as Y,hd as Z,id as k}from"./cli-1.1.33-tp6bhara.mjs";import{Lj as K,Nj as U}from"./cli-1.1.33-vgynvhys.mjs";import{_fa as J,dga as N,v9 as y,w9 as M}from"./cli-1.1.33-20v60hvd.mjs";import{gja as G,kja as B}from"./cli-1.1.33-7qr8n3qn.mjs";import{Bja as H,Ija as $}from"./cli-1.1.33-90w26xxw.mjs";M();$();U();N();B();k();function F(v,x,q){J(v);let z=q?`${x} plugin "${q}"`:x==="disable-all"?"disable all plugins":`${x} plugins`;console.error(`${y.cross} Failed to ${z}: ${H(v)}`),process.exit(1)}async function L(v,x="user"){try{console.log(`Installing plugin "${v}"...`);let q=await Q(v,x);if(!q.success)throw Error(q.message);console.log(`${y.tick} ${q.message}`),process.exit(0)}catch(q){F(q,"install",v)}}async function A(v,x="user",q=!1){try{let z=await R(v,x,!q);if(!z.success)throw Error(z.message);console.log(`${y.tick} ${z.message}`),process.exit(0)}catch(z){F(z,"uninstall",v)}}async function C(v,x){try{let q=await W(v,x);if(!q.success)throw Error(q.message);console.log(`${y.tick} ${q.message}`),process.exit(0)}catch(q){F(q,"enable",v)}}async function f(v,x){try{let q=await X(v,x);if(!q.success)throw Error(q.message);console.log(`${y.tick} ${q.message}`),process.exit(0)}catch(q){F(q,"disable",v)}}async function O(){try{let v=await Y();if(!v.success)throw Error(v.message);console.log(`${y.tick} ${v.message}`),process.exit(0)}catch(v){F(v,"disable-all")}}async function S(v,x){try{G(`Checking for updates for plugin "${v}" at ${x} scope…
2
+ `);let q=await Z(v,x);if(!q.success)throw Error(q.message);G(`${y.tick} ${q.message}
3
+ `),await K(0)}catch(q){F(q,"update",v)}}
4
+ export{L as h,A as i,C as j,f as k,O as l,S as m};
@@ -0,0 +1,2 @@
1
+ import{tqa as M}from"./cli-1.1.33-cfj1bzen.mjs";function G(q){if(q===null||typeof q!=="object"||Array.isArray(q))return null;return q}function W(q){return typeof q==="string"&&q.length>0?q:null}function T(q){return typeof q==="boolean"?q:null}function g(q){if(!Array.isArray(q))return null;let z=[];for(let A of q){if(typeof A!=="string")return null;z.push(A)}return z}function F(q){let z=G(q);if(!z)return null;let A={};for(let[C,B]of Object.entries(z))if(typeof B==="string")A[C]=B;else if(typeof B==="number"||typeof B==="boolean")A[C]=String(B);return A}function k(q,...z){let A=q;for(let C of z){let B=G(A);if(!B)return;A=B[C]}return A}var O=()=>{};import{cpSync as X,existsSync as Q,mkdirSync as Y,readFileSync as Z,readdirSync as _,statSync as U,writeFileSync as $}from"fs";import{dirname as j}from"path";function b(q){try{return G(JSON.parse(Z(q,"utf8")))}catch{return null}}function x(q,z){$(q,JSON.stringify(z,null,2),{encoding:"utf8"})}function N(q){Y(q,{recursive:!0})}function D(q,z){if(!Q(q))return!1;if(!U(q).isDirectory())return!1;return N(j(z)),X(q,z,{recursive:!0,force:!1,errorOnExist:!1,dereference:!0}),!0}function p(q,z){let A=[],C=(B,H)=>{let I;try{I=_(B)}catch{return}for(let E of I.sort()){let J=`${B}/${E}`,K=H?`${H}/${E}`:E,L;try{L=U(J).isDirectory()}catch{continue}if(L)C(J,K);else if(z.some((V)=>E.endsWith(V)))A.push(K)}};if(!Q(q))return A;return C(q,""),A}var R=M(()=>{O()});
2
+ export{G as yg,W as zg,T as Ag,g as Bg,F as Cg,k as Dg,O as Eg,b as Fg,x as Gg,N as Hg,D as Ig,p as Jg,R as Kg};
@@ -0,0 +1,2 @@
1
+ import{tqa as V}from"./cli-1.1.33-cfj1bzen.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
2
+ export{U0 as gpa,E0 as hpa,I0 as ipa,D0 as jpa,b as kpa,T as lpa,K as mpa,z as npa,B as opa,x as ppa,k as qpa,m as rpa,G as spa,O as tpa,y as upa,l as vpa,o as wpa,i as xpa,D as ypa,R as zpa,x0 as Apa,O0 as Bpa,M as Cpa,p0 as Dpa,j6 as Epa,nq as Fpa};