@claudiolabs/claudin 1.1.16 → 1.1.18

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 (915) hide show
  1. package/dist/chunks/AgentTool-1.1.18-8r539yq1.mjs +1 -0
  2. package/dist/chunks/App-1.1.18-9qegazdp.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.18-75srd2ah.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.18-8s0prsvd.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.18-8908as3d.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.18-hzr5qznb.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.18-11b01q4g.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.18-gdmxhc4c.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.18-0ve87kmt.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.18-bm9y9hp0.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.18-s5gycf8y.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.18-ck22r980.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.18-k4rxj60y.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.18-7jtsdcvz.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.18-79c4xptb.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.18-at9smz0c.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.18-fmn6pds0.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.18-ethctbw9.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.18-7jny2tma.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.18-4tt9s4sx.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.18-9y6kadd2.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.18-0zp920qr.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.18-ywhxqdw4.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.18-cfmzwnnw.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.18-7czxxmxn.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.18-q46q6gnr.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.18-0s9sbdx0.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.18-2v7nqdda.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.18-5tbxn6cp.mjs +1 -0
  30. package/dist/chunks/agents-1.1.18-1zj1bttk.mjs +110 -0
  31. package/dist/chunks/agents-1.1.18-n28gzp6b.mjs +3 -0
  32. package/dist/chunks/api-1.1.18-kb26phxt.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.18-q0418p4r.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.18-ky0pcnme.mjs +1 -0
  35. package/dist/chunks/auth-1.1.18-4de9sj97.mjs +1 -0
  36. package/dist/chunks/auth-1.1.18-6yqhszf3.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.18-63jx6p2w.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.18-bk6w4529.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.18-bg5z208x.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.18-3m48d47f.mjs +1 -0
  41. package/dist/chunks/branch-1.1.18-sgfz4w61.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.18-ewtwajff.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.18-6aeg22kg.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.18-2ybc4ee8.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.18-pt5dztgy.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.18-w72zdv7w.mjs +1 -0
  47. package/dist/chunks/btw-1.1.18-w43t3mem.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.18-zfhza9df.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.18-ap6m4e42.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.18-gcvx2d6q.mjs +4 -0
  51. package/dist/chunks/caches-1.1.18-warrda1f.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.18-v3ghw0k9.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.18-b6tnjsjw.mjs +1 -0
  54. package/dist/chunks/clear-1.1.18-8abstaz1.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.18-wgv6q897.mjs +1 -0
  56. package/dist/chunks/cli-1.1.18-018bk764.mjs +2 -0
  57. package/dist/chunks/cli-1.1.18-049a81dd.mjs +25 -0
  58. package/dist/chunks/cli-1.1.18-0aakxjsk.mjs +2 -0
  59. package/dist/chunks/cli-1.1.18-0h118vrj.mjs +2 -0
  60. package/dist/chunks/cli-1.1.18-0tg14dph.mjs +2 -0
  61. package/dist/chunks/cli-1.1.18-0xknnw9q.mjs +2 -0
  62. package/dist/chunks/cli-1.1.18-0y6qt71a.mjs +2 -0
  63. package/dist/chunks/cli-1.1.18-0yhfm17h.mjs +2 -0
  64. package/dist/chunks/cli-1.1.18-0z5526z3.mjs +4 -0
  65. package/dist/chunks/cli-1.1.18-12tzkcxz.mjs +2 -0
  66. package/dist/chunks/cli-1.1.18-18rbpjbc.mjs +2 -0
  67. package/dist/chunks/cli-1.1.18-1c8pr80a.mjs +2 -0
  68. package/dist/chunks/cli-1.1.18-1spz0azv.mjs +3 -0
  69. package/dist/chunks/cli-1.1.18-1t3rb5a8.mjs +2 -0
  70. package/dist/chunks/cli-1.1.18-251zfmjp.mjs +5 -0
  71. package/dist/chunks/cli-1.1.18-27b82jjj.mjs +3 -0
  72. package/dist/chunks/cli-1.1.18-2ach0t0d.mjs +7 -0
  73. package/dist/chunks/cli-1.1.18-2gvrr93b.mjs +2 -0
  74. package/dist/chunks/cli-1.1.18-2k96kgmz.mjs +2 -0
  75. package/dist/chunks/cli-1.1.18-2qvvz2tv.mjs +2 -0
  76. package/dist/chunks/cli-1.1.18-2vdwwm5f.mjs +3 -0
  77. package/dist/chunks/cli-1.1.18-2w9274tq.mjs +59 -0
  78. package/dist/chunks/cli-1.1.18-2wsf8n3w.mjs +3 -0
  79. package/dist/chunks/cli-1.1.18-3b5j4jfq.mjs +2 -0
  80. package/dist/chunks/cli-1.1.18-3pn5knk8.mjs +2 -0
  81. package/dist/chunks/cli-1.1.18-3rm83ba2.mjs +2 -0
  82. package/dist/chunks/cli-1.1.18-3rxhxwbk.mjs +4 -0
  83. package/dist/chunks/cli-1.1.18-3s03nva1.mjs +2 -0
  84. package/dist/chunks/cli-1.1.18-3w57qes2.mjs +2 -0
  85. package/dist/chunks/cli-1.1.18-3y4pftxb.mjs +206 -0
  86. package/dist/chunks/cli-1.1.18-3z65nz4z.mjs +2 -0
  87. package/dist/chunks/cli-1.1.18-417wb57s.mjs +2 -0
  88. package/dist/chunks/cli-1.1.18-462kn9pt.mjs +2 -0
  89. package/dist/chunks/cli-1.1.18-4c3jqppx.mjs +2 -0
  90. package/dist/chunks/cli-1.1.18-4f2ncqzp.mjs +45 -0
  91. package/dist/chunks/cli-1.1.18-4h2r40da.mjs +2 -0
  92. package/dist/chunks/cli-1.1.18-4j0hy93x.mjs +3 -0
  93. package/dist/chunks/cli-1.1.18-4jy396p1.mjs +6 -0
  94. package/dist/chunks/cli-1.1.18-553zzrge.mjs +2 -0
  95. package/dist/chunks/cli-1.1.18-56vce0gb.mjs +2 -0
  96. package/dist/chunks/cli-1.1.18-5dw1bb8m.mjs +2 -0
  97. package/dist/chunks/cli-1.1.18-5fhws40c.mjs +2 -0
  98. package/dist/chunks/cli-1.1.18-5mr13yxz.mjs +2 -0
  99. package/dist/chunks/cli-1.1.18-5pa0bk59.mjs +2 -0
  100. package/dist/chunks/cli-1.1.18-5s8f8gd5.mjs +3 -0
  101. package/dist/chunks/cli-1.1.18-6hjdcw80.mjs +2 -0
  102. package/dist/chunks/cli-1.1.18-6nxyz9v3.mjs +2 -0
  103. package/dist/chunks/cli-1.1.18-6w9m5m4s.mjs +2 -0
  104. package/dist/chunks/cli-1.1.18-6wrbe4ft.mjs +4 -0
  105. package/dist/chunks/cli-1.1.18-703emt7y.mjs +16 -0
  106. package/dist/chunks/cli-1.1.18-70jytem3.mjs +2 -0
  107. package/dist/chunks/cli-1.1.18-70ktef72.mjs +2 -0
  108. package/dist/chunks/cli-1.1.18-71zz07m4.mjs +3 -0
  109. package/dist/chunks/cli-1.1.18-7g6xwfbz.mjs +2 -0
  110. package/dist/chunks/cli-1.1.18-7nsrr2k0.mjs +2 -0
  111. package/dist/chunks/cli-1.1.18-7pcfwrhj.mjs +2 -0
  112. package/dist/chunks/cli-1.1.18-7set7d4d.mjs +3 -0
  113. package/dist/chunks/cli-1.1.18-7wccrsx9.mjs +2 -0
  114. package/dist/chunks/cli-1.1.18-7xc4d1d9.mjs +2 -0
  115. package/dist/chunks/cli-1.1.18-86jznh5v.mjs +2 -0
  116. package/dist/chunks/cli-1.1.18-8fpwak2g.mjs +4 -0
  117. package/dist/chunks/cli-1.1.18-8thyc5yy.mjs +2 -0
  118. package/dist/chunks/cli-1.1.18-8vxrthte.mjs +4 -0
  119. package/dist/chunks/cli-1.1.18-8zrm4yfd.mjs +2 -0
  120. package/dist/chunks/cli-1.1.18-948h21gh.mjs +2 -0
  121. package/dist/chunks/cli-1.1.18-99wvb94x.mjs +2 -0
  122. package/dist/chunks/cli-1.1.18-9cpcw7fg.mjs +2 -0
  123. package/dist/chunks/cli-1.1.18-9jkqy8de.mjs +2 -0
  124. package/dist/chunks/cli-1.1.18-9zvacjd0.mjs +2 -0
  125. package/dist/chunks/cli-1.1.18-a888prq4.mjs +6 -0
  126. package/dist/chunks/cli-1.1.18-aek1gddg.mjs +2 -0
  127. package/dist/chunks/cli-1.1.18-af7txyky.mjs +133 -0
  128. package/dist/chunks/cli-1.1.18-aj93qvyc.mjs +3 -0
  129. package/dist/chunks/cli-1.1.18-avas0dtp.mjs +2 -0
  130. package/dist/chunks/cli-1.1.18-avhbxgh1.mjs +2 -0
  131. package/dist/chunks/cli-1.1.18-awvejq1d.mjs +2 -0
  132. package/dist/chunks/cli-1.1.18-b4azpwk0.mjs +18 -0
  133. package/dist/chunks/cli-1.1.18-b5h22srd.mjs +2 -0
  134. package/dist/chunks/cli-1.1.18-bfzft69m.mjs +2 -0
  135. package/dist/chunks/cli-1.1.18-c9h4ga5f.mjs +2 -0
  136. package/dist/chunks/cli-1.1.18-cahfd7zp.mjs +15 -0
  137. package/dist/chunks/cli-1.1.18-ccbh77pf.mjs +2 -0
  138. package/dist/chunks/cli-1.1.18-cd5r9mfb.mjs +2 -0
  139. package/dist/chunks/cli-1.1.18-cj8tr93q.mjs +2 -0
  140. package/dist/chunks/cli-1.1.18-cjkn7t4k.mjs +2 -0
  141. package/dist/chunks/cli-1.1.18-cphcr3xr.mjs +15 -0
  142. package/dist/chunks/cli-1.1.18-cqmjby3t.mjs +24 -0
  143. package/dist/chunks/cli-1.1.18-crpxak5f.mjs +2 -0
  144. package/dist/chunks/cli-1.1.18-cxg522yt.mjs +4 -0
  145. package/dist/chunks/cli-1.1.18-cy0ypdkd.mjs +2 -0
  146. package/dist/chunks/cli-1.1.18-dcrg5hwd.mjs +2 -0
  147. package/dist/chunks/cli-1.1.18-ddreb78e.mjs +2 -0
  148. package/dist/chunks/cli-1.1.18-dq2vate5.mjs +2 -0
  149. package/dist/chunks/cli-1.1.18-dvyh5qzn.mjs +2 -0
  150. package/dist/chunks/cli-1.1.18-dzbn08g2.mjs +2 -0
  151. package/dist/chunks/cli-1.1.18-e107yrwx.mjs +2 -0
  152. package/dist/chunks/cli-1.1.18-e8stczm5.mjs +2 -0
  153. package/dist/chunks/cli-1.1.18-ecds9fxm.mjs +2 -0
  154. package/dist/chunks/cli-1.1.18-ek85fj6n.mjs +2 -0
  155. package/dist/chunks/cli-1.1.18-erjpjwnr.mjs +4 -0
  156. package/dist/chunks/cli-1.1.18-esvp6n4e.mjs +66 -0
  157. package/dist/chunks/cli-1.1.18-ezpyhrzw.mjs +133 -0
  158. package/dist/chunks/cli-1.1.18-f2j32mha.mjs +2 -0
  159. package/dist/chunks/cli-1.1.18-f5ggv7be.mjs +2 -0
  160. package/dist/chunks/cli-1.1.18-f6m259he.mjs +2 -0
  161. package/dist/chunks/cli-1.1.18-f7jag2rr.mjs +2 -0
  162. package/dist/chunks/cli-1.1.18-f8sy5pe3.mjs +3 -0
  163. package/dist/chunks/cli-1.1.18-fh3h37zy.mjs +8 -0
  164. package/dist/chunks/cli-1.1.18-fr4nmsgv.mjs +3 -0
  165. package/dist/chunks/cli-1.1.18-fst0kx9m.mjs +24 -0
  166. package/dist/chunks/cli-1.1.18-gdvh8p4h.mjs +2 -0
  167. package/dist/chunks/cli-1.1.18-gnd39prj.mjs +18 -0
  168. package/dist/chunks/cli-1.1.18-gvzkraze.mjs +2 -0
  169. package/dist/chunks/cli-1.1.18-gz2c86d2.mjs +2 -0
  170. package/dist/chunks/cli-1.1.18-hbv881pn.mjs +2 -0
  171. package/dist/chunks/cli-1.1.18-heh8xz6x.mjs +2 -0
  172. package/dist/chunks/cli-1.1.18-hg5srcxb.mjs +7 -0
  173. package/dist/chunks/cli-1.1.18-hgn94jwm.mjs +2 -0
  174. package/dist/chunks/cli-1.1.18-hjp96a36.mjs +2 -0
  175. package/dist/chunks/cli-1.1.18-hphxdvpd.mjs +17 -0
  176. package/dist/chunks/cli-1.1.18-hsqq1hdd.mjs +9 -0
  177. package/dist/chunks/cli-1.1.18-hvd9yyb4.mjs +2 -0
  178. package/dist/chunks/cli-1.1.18-j1ryg6qv.mjs +2 -0
  179. package/dist/chunks/cli-1.1.18-j372h4fv.mjs +4 -0
  180. package/dist/chunks/cli-1.1.18-j461dthr.mjs +2 -0
  181. package/dist/chunks/cli-1.1.18-j5zh2pdx.mjs +17 -0
  182. package/dist/chunks/cli-1.1.18-jcqz5j7y.mjs +2 -0
  183. package/dist/chunks/cli-1.1.18-jgwwkx62.mjs +58 -0
  184. package/dist/chunks/cli-1.1.18-jjekxppq.mjs +25 -0
  185. package/dist/chunks/cli-1.1.18-jp0phw3q.mjs +2 -0
  186. package/dist/chunks/cli-1.1.18-k05shz35.mjs +2 -0
  187. package/dist/chunks/cli-1.1.18-k11n6026.mjs +3 -0
  188. package/dist/chunks/cli-1.1.18-k1pkc44n.mjs +2 -0
  189. package/dist/chunks/cli-1.1.18-kj7gj6vk.mjs +3 -0
  190. package/dist/chunks/cli-1.1.18-kkr6w2g7.mjs +2 -0
  191. package/dist/chunks/cli-1.1.18-m04wmdz7.mjs +9 -0
  192. package/dist/chunks/cli-1.1.18-mfjtdkn6.mjs +20 -0
  193. package/dist/chunks/cli-1.1.18-mg0s34rf.mjs +2 -0
  194. package/dist/chunks/cli-1.1.18-mg7jmbh9.mjs +2 -0
  195. package/dist/chunks/cli-1.1.18-mhy7qzsz.mjs +21 -0
  196. package/dist/chunks/cli-1.1.18-mm8bkmax.mjs +2 -0
  197. package/dist/chunks/cli-1.1.18-mqwcfz14.mjs +2 -0
  198. package/dist/chunks/cli-1.1.18-mrrbn0jj.mjs +6 -0
  199. package/dist/chunks/cli-1.1.18-mwevzyy2.mjs +2 -0
  200. package/dist/chunks/cli-1.1.18-mycrby1p.mjs +2 -0
  201. package/dist/chunks/cli-1.1.18-mz10pywc.mjs +2 -0
  202. package/dist/chunks/cli-1.1.18-n05vxdaj.mjs +2 -0
  203. package/dist/chunks/cli-1.1.18-n7dkmrv9.mjs +24 -0
  204. package/dist/chunks/cli-1.1.18-ndct9t5e.mjs +4 -0
  205. package/dist/chunks/cli-1.1.18-npdweafk.mjs +6 -0
  206. package/dist/chunks/cli-1.1.18-ns45fmht.mjs +2 -0
  207. package/dist/chunks/cli-1.1.18-p0ey1z9w.mjs +2 -0
  208. package/dist/chunks/cli-1.1.18-p28wy0mz.mjs +2 -0
  209. package/dist/chunks/cli-1.1.18-p3yf1aq6.mjs +42 -0
  210. package/dist/chunks/cli-1.1.18-p5rqk1qq.mjs +2 -0
  211. package/dist/chunks/cli-1.1.18-pbdm30bs.mjs +2 -0
  212. package/dist/chunks/cli-1.1.18-psb6qqc1.mjs +2 -0
  213. package/dist/chunks/cli-1.1.18-pt16bxrm.mjs +2 -0
  214. package/dist/chunks/cli-1.1.18-pzeg2p3k.mjs +2 -0
  215. package/dist/chunks/cli-1.1.18-q7qp6pv5.mjs +2 -0
  216. package/dist/chunks/cli-1.1.18-qfz5keqx.mjs +2 -0
  217. package/dist/chunks/cli-1.1.18-qrz1vgy2.mjs +2 -0
  218. package/dist/chunks/cli-1.1.18-qs28eyy1.mjs +2 -0
  219. package/dist/chunks/cli-1.1.18-qykcs1fr.mjs +4 -0
  220. package/dist/chunks/cli-1.1.18-r50x1ezt.mjs +2 -0
  221. package/dist/chunks/cli-1.1.18-ra67yknr.mjs +6 -0
  222. package/dist/chunks/cli-1.1.18-rbfhhwym.mjs +2 -0
  223. package/dist/chunks/cli-1.1.18-rbkz8pj4.mjs +2 -0
  224. package/dist/chunks/cli-1.1.18-rnqtkprk.mjs +2 -0
  225. package/dist/chunks/cli-1.1.18-rp84hvn4.mjs +2 -0
  226. package/dist/chunks/cli-1.1.18-rykfqnyd.mjs +2 -0
  227. package/dist/chunks/cli-1.1.18-s5nhwqft.mjs +2 -0
  228. package/dist/chunks/cli-1.1.18-sdsvkqmn.mjs +2 -0
  229. package/dist/chunks/cli-1.1.18-sq93n51h.mjs +2 -0
  230. package/dist/chunks/cli-1.1.18-t526ry94.mjs +34 -0
  231. package/dist/chunks/cli-1.1.18-ta6r8qry.mjs +2 -0
  232. package/dist/chunks/cli-1.1.18-tm7nmhz8.mjs +2 -0
  233. package/dist/chunks/cli-1.1.18-ts8ermsd.mjs +2 -0
  234. package/dist/chunks/cli-1.1.18-v42h6ekh.mjs +15 -0
  235. package/dist/chunks/cli-1.1.18-v4gc446r.mjs +2 -0
  236. package/dist/chunks/cli-1.1.18-v5btk93t.mjs +3 -0
  237. package/dist/chunks/cli-1.1.18-v75xqnbv.mjs +2 -0
  238. package/dist/chunks/cli-1.1.18-vgfpa3bs.mjs +5 -0
  239. package/dist/chunks/cli-1.1.18-vnsqk2vn.mjs +2 -0
  240. package/dist/chunks/cli-1.1.18-vx2rxj7b.mjs +2 -0
  241. package/dist/chunks/cli-1.1.18-vymgw42z.mjs +2 -0
  242. package/dist/chunks/cli-1.1.18-vzrv28w4.mjs +24 -0
  243. package/dist/chunks/cli-1.1.18-wp7r00wk.mjs +2 -0
  244. package/dist/chunks/cli-1.1.18-wzpxr762.mjs +50 -0
  245. package/dist/chunks/cli-1.1.18-x0bha3jf.mjs +2 -0
  246. package/dist/chunks/cli-1.1.18-x7jyxff1.mjs +3 -0
  247. package/dist/chunks/cli-1.1.18-x7k6y949.mjs +39 -0
  248. package/dist/chunks/cli-1.1.18-x9wfjwnm.mjs +2 -0
  249. package/dist/chunks/cli-1.1.18-xfb4pete.mjs +5410 -0
  250. package/dist/chunks/cli-1.1.18-xpxkw4js.mjs +2 -0
  251. package/dist/chunks/cli-1.1.18-y0eah2b9.mjs +2 -0
  252. package/dist/chunks/cli-1.1.18-y89tqne6.mjs +2 -0
  253. package/dist/chunks/cli-1.1.18-ybazgea3.mjs +1 -0
  254. package/dist/chunks/cli-1.1.18-ybfayy4j.mjs +2 -0
  255. package/dist/chunks/cli-1.1.18-yk1f4vsx.mjs +2 -0
  256. package/dist/chunks/cli-1.1.18-ypcye8ae.mjs +6 -0
  257. package/dist/chunks/cli-1.1.18-ythtynpe.mjs +12 -0
  258. package/dist/chunks/cli-1.1.18-yymp5d28.mjs +12 -0
  259. package/dist/chunks/cli-1.1.18-yysexesh.mjs +2 -0
  260. package/dist/chunks/cli-1.1.18-z2dx0w6b.mjs +2 -0
  261. package/dist/chunks/cli-1.1.18-zd969gzb.mjs +2 -0
  262. package/dist/chunks/cli-1.1.18-zdx4ywwf.mjs +2 -0
  263. package/dist/chunks/cli-1.1.18-zhq044yz.mjs +26 -0
  264. package/dist/chunks/cli-1.1.18-ztyf20j1.mjs +2 -0
  265. package/dist/chunks/client-1.1.18-zdqzxpen.mjs +1 -0
  266. package/dist/chunks/color-1.1.18-qt7znj00.mjs +1 -0
  267. package/dist/chunks/compact-1.1.18-qev191am.mjs +3 -0
  268. package/dist/chunks/config-1.1.18-9kjysdvn.mjs +1 -0
  269. package/dist/chunks/config-1.1.18-am3webex.mjs +1 -0
  270. package/dist/chunks/constants-1.1.18-hdfyvthe.mjs +1 -0
  271. package/dist/chunks/context-1.1.18-ywdzshyf.mjs +1 -0
  272. package/dist/chunks/context-noninteractive-1.1.18-ncf3febd.mjs +1 -0
  273. package/dist/chunks/conversation-1.1.18-h1q8gp2k.mjs +1 -0
  274. package/dist/chunks/copilotHeaders-1.1.18-t0s2718z.mjs +1 -0
  275. package/dist/chunks/copy-1.1.18-66cbtmsa.mjs +9 -0
  276. package/dist/chunks/cost-1.1.18-350gegdk.mjs +1 -0
  277. package/dist/chunks/createSSHSession-1.1.18-vgmc8evp.mjs +1 -0
  278. package/dist/chunks/createSession-1.1.18-0e04rk8g.mjs +1 -0
  279. package/dist/chunks/debug-1.1.18-c4v63z13.mjs +1 -0
  280. package/dist/chunks/defaultActionDeps-1.1.18-jg2xdcgn.mjs +1534 -0
  281. package/dist/chunks/desktop-1.1.18-sghgn08z.mjs +1 -0
  282. package/dist/chunks/detectRepository-1.1.18-m0xvtgqt.mjs +1 -0
  283. package/dist/chunks/detection-1.1.18-d7kpetjp.mjs +1 -0
  284. package/dist/chunks/diff-1.1.18-y9e1gbv0.mjs +1 -0
  285. package/dist/chunks/doctor-1.1.18-me0b6eyh.mjs +1 -0
  286. package/dist/chunks/doctorDiagnostic-1.1.18-d85k2x5j.mjs +1 -0
  287. package/dist/chunks/earlyInput-1.1.18-6jzg1a3e.mjs +1 -0
  288. package/dist/chunks/effort-1.1.18-kzqkmbjd.mjs +13 -0
  289. package/dist/chunks/engine-1.1.18-z5jbth81.mjs +1 -0
  290. package/dist/chunks/envLessBridgeConfig-1.1.18-1cqrnkp2.mjs +1 -0
  291. package/dist/chunks/envUtils-1.1.18-x298f5cb.mjs +1 -0
  292. package/dist/chunks/environmentSelection-1.1.18-6k9hzg6p.mjs +1 -0
  293. package/dist/chunks/environments-1.1.18-r0dv94mx.mjs +1 -0
  294. package/dist/chunks/errors-1.1.18-q6s6h2zs.mjs +1 -0
  295. package/dist/chunks/exampleCommands-1.1.18-0zc9623h.mjs +1 -0
  296. package/dist/chunks/execFileNoThrow-1.1.18-spcbfmbw.mjs +1 -0
  297. package/dist/chunks/exit-1.1.18-zvcsa8gc.mjs +1 -0
  298. package/dist/chunks/explorer-1.1.18-wf8yy5vj.mjs +1 -0
  299. package/dist/chunks/export-1.1.18-qeyf86rn.mjs +2 -0
  300. package/dist/chunks/extra-usage-1.1.18-t0cm4v50.mjs +1 -0
  301. package/dist/chunks/extra-usage-noninteractive-1.1.18-w6zswndv.mjs +1 -0
  302. package/dist/chunks/fast-1.1.18-c6bbr2sj.mjs +1 -0
  303. package/dist/chunks/feedback-1.1.18-8c9j05d9.mjs +14 -0
  304. package/dist/chunks/firstPartyEventLogger-1.1.18-mk3qv1p1.mjs +1 -0
  305. package/dist/chunks/git-1.1.18-716sc7rw.mjs +1 -0
  306. package/dist/chunks/githubModelsCredentials-1.1.18-60dnzg1p.mjs +1 -0
  307. package/dist/chunks/goal-1.1.18-8em4jke5.mjs +4 -0
  308. package/dist/chunks/growthbook-1.1.18-b3tgw6y3.mjs +1 -0
  309. package/dist/chunks/headless-1.1.18-b5szxwsw.mjs +2 -0
  310. package/dist/chunks/heapdump-1.1.18-vjq0hc7v.mjs +6 -0
  311. package/dist/chunks/help-1.1.18-21j0mh6r.mjs +1 -0
  312. package/dist/chunks/hookChains-1.1.18-hptz3v0e.mjs +3 -0
  313. package/dist/chunks/hooks-1.1.18-0zec4dds.mjs +1 -0
  314. package/dist/chunks/hooks-1.1.18-ha1g38hn.mjs +79 -0
  315. package/dist/chunks/ide-1.1.18-rkvs3qqd.mjs +3 -0
  316. package/dist/chunks/image-processor-napi-1.1.18-nakzgnn7.mjs +1 -0
  317. package/dist/chunks/inboundAttachments-1.1.18-qxn6m4rg.mjs +1 -0
  318. package/dist/chunks/index-1.1.18-0ha3tnh6.mjs +1 -0
  319. package/dist/chunks/index-1.1.18-18y0bk36.mjs +1 -0
  320. package/dist/chunks/index-1.1.18-1kzcw8rj.mjs +9 -0
  321. package/dist/chunks/index-1.1.18-3yaj9awp.mjs +1 -0
  322. package/dist/chunks/index-1.1.18-427vyn1s.mjs +1 -0
  323. package/dist/chunks/index-1.1.18-5aebjh6r.mjs +2 -0
  324. package/dist/chunks/index-1.1.18-7qw763sw.mjs +1 -0
  325. package/dist/chunks/index-1.1.18-9p90ysn2.mjs +23 -0
  326. package/dist/chunks/index-1.1.18-a31cga5m.mjs +1 -0
  327. package/dist/chunks/index-1.1.18-awg146jw.mjs +1 -0
  328. package/dist/chunks/index-1.1.18-bsk8rb63.mjs +1 -0
  329. package/dist/chunks/index-1.1.18-cvzxd0hz.mjs +1 -0
  330. package/dist/chunks/index-1.1.18-ejew46p1.mjs +1 -0
  331. package/dist/chunks/index-1.1.18-gdwz7smf.mjs +1 -0
  332. package/dist/chunks/index-1.1.18-hcwn8mp8.mjs +1 -0
  333. package/dist/chunks/index-1.1.18-j843bxtx.mjs +9 -0
  334. package/dist/chunks/index-1.1.18-jhj8ae5j.mjs +30 -0
  335. package/dist/chunks/index-1.1.18-k9471m74.mjs +1 -0
  336. package/dist/chunks/index-1.1.18-kvv48kwq.mjs +5 -0
  337. package/dist/chunks/index-1.1.18-n6ntpnas.mjs +1 -0
  338. package/dist/chunks/index-1.1.18-n8a9f3dp.mjs +2 -0
  339. package/dist/chunks/index-1.1.18-ppwdm9bc.mjs +1 -0
  340. package/dist/chunks/index-1.1.18-zaqj0a20.mjs +1 -0
  341. package/dist/chunks/init-1.1.18-kgjtv56b.mjs +1 -0
  342. package/dist/chunks/initReplBridge-1.1.18-we3h7znp.mjs +1 -0
  343. package/dist/chunks/ink-1.1.18-s45xz0d5.mjs +1 -0
  344. package/dist/chunks/insights-1.1.18-qxdn050x.mjs +870 -0
  345. package/dist/chunks/install-1.1.18-hrtjazqa.mjs +1 -0
  346. package/dist/chunks/install-github-app-1.1.18-9y1kn2dm.mjs +149 -0
  347. package/dist/chunks/install-slack-app-1.1.18-yfeb37pz.mjs +1 -0
  348. package/dist/chunks/instrumentation-1.1.18-0s0n0snp.mjs +1 -0
  349. package/dist/chunks/interactiveHelpers-1.1.18-vsnpskhb.mjs +1 -0
  350. package/dist/chunks/keybindings-1.1.18-6zbse835.mjs +2 -0
  351. package/dist/chunks/knowledge-1.1.18-6ex2a771.mjs +2 -0
  352. package/dist/chunks/latestVersionCache-1.1.18-8dq1wk9a.mjs +1 -0
  353. package/dist/chunks/loadAgentsDir-1.1.18-4vpps6mn.mjs +1 -0
  354. package/dist/chunks/loadPluginHooks-1.1.18-4j6dvx4m.mjs +1 -0
  355. package/dist/chunks/log-1.1.18-ft9dg3fj.mjs +1 -0
  356. package/dist/chunks/main-1.1.18-s1hnrh3q.mjs +1 -0
  357. package/dist/chunks/managedEnv-1.1.18-jqjx86ng.mjs +1 -0
  358. package/dist/chunks/mcp-1.1.18-24906cg4.mjs +1 -0
  359. package/dist/chunks/mcp-1.1.18-7t3h9h66.mjs +4 -0
  360. package/dist/chunks/mcp-1.1.18-ast61twg.mjs +17 -0
  361. package/dist/chunks/mcpb-1.1.18-snfk9dz9.mjs +1 -0
  362. package/dist/chunks/memory-1.1.18-7k51bcr6.mjs +72 -0
  363. package/dist/chunks/model-1.1.18-0njn3xdn.mjs +2 -0
  364. package/dist/chunks/model-1.1.18-ny459y9j.mjs +1 -0
  365. package/dist/chunks/node-1.1.18-gk5h7jp4.mjs +12 -0
  366. package/dist/chunks/oauth-1.1.18-w9bt5qvg.mjs +1 -0
  367. package/dist/chunks/openaiShim-1.1.18-xzt8j2wx.mjs +14 -0
  368. package/dist/chunks/output-style-1.1.18-q591t8v1.mjs +1 -0
  369. package/dist/chunks/package-KQCMZM5L-1.1.18-whakyscr.mjs +1 -0
  370. package/dist/chunks/parseConnectUrl-1.1.18-bwgbwc1r.mjs +1 -0
  371. package/dist/chunks/parser-1.1.18-qad863f5.mjs +1 -0
  372. package/dist/chunks/passes-1.1.18-t0hq8ewm.mjs +1 -0
  373. package/dist/chunks/permissions-1.1.18-5a7765tc.mjs +1 -0
  374. package/dist/chunks/permissions-1.1.18-ed8ysk2a.mjs +3 -0
  375. package/dist/chunks/plan-1.1.18-4hc85kck.mjs +1 -0
  376. package/dist/chunks/plist-1.1.18-7sdbzzm0.mjs +1 -0
  377. package/dist/chunks/plugin-1.1.18-9tkb7bap.mjs +29 -0
  378. package/dist/chunks/pluginStartupCheck-1.1.18-j31xzm3k.mjs +1 -0
  379. package/dist/chunks/plugins-1.1.18-ab7msm6m.mjs +9 -0
  380. package/dist/chunks/preActionHook-1.1.18-dkhj1e0v.mjs +2 -0
  381. package/dist/chunks/print-1.1.18-j2g7hv0n.mjs +57 -0
  382. package/dist/chunks/process-1.1.18-fvq9b7q3.mjs +1 -0
  383. package/dist/chunks/processBashCommand-1.1.18-vq69a3e4.mjs +1 -0
  384. package/dist/chunks/processSlashCommand-1.1.18-n1yqhpgg.mjs +9 -0
  385. package/dist/chunks/prompt-1.1.18-acbj3trk.mjs +1 -0
  386. package/dist/chunks/prompt-1.1.18-wh5jv6ay.mjs +1 -0
  387. package/dist/chunks/prompts-1.1.18-m0az7ynn.mjs +1 -0
  388. package/dist/chunks/protocolHandler-1.1.18-k2shdefe.mjs +13 -0
  389. package/dist/chunks/provider-1.1.18-g384d5y0.mjs +2 -0
  390. package/dist/chunks/providerProfiles-1.1.18-sehcrk96.mjs +1 -0
  391. package/dist/chunks/providerValidation-1.1.18-ge2ffym5.mjs +6 -0
  392. package/dist/chunks/rate-limit-options-1.1.18-9dst3c2h.mjs +1 -0
  393. package/dist/chunks/registerSubcommands-1.1.18-7t053hjx.mjs +26 -0
  394. package/dist/chunks/registry-1.1.18-xrd7m0b5.mjs +1 -0
  395. package/dist/chunks/release-notes-1.1.18-ayafp97j.mjs +5 -0
  396. package/dist/chunks/reload-plugins-1.1.18-hmvtf1f4.mjs +2 -0
  397. package/dist/chunks/remote-env-1.1.18-w9k53dqm.mjs +1 -0
  398. package/dist/chunks/remoteBridgeCore-1.1.18-ex403g4q.mjs +1 -0
  399. package/dist/chunks/remoteSession-1.1.18-4axy7j90.mjs +1 -0
  400. package/dist/chunks/rename-1.1.18-2v175525.mjs +1 -0
  401. package/dist/chunks/replBridgeHandle-1.1.18-z7ttbjsb.mjs +1 -0
  402. package/dist/chunks/replLauncher-1.1.18-4z8q3518.mjs +1 -0
  403. package/dist/chunks/resume-1.1.18-7s9nkn6h.mjs +2 -0
  404. package/dist/chunks/rewind-1.1.18-wwasabaf.mjs +1 -0
  405. package/dist/chunks/rootOptions-1.1.18-drrms6kn.mjs +1 -0
  406. package/dist/chunks/runWorkflowHeadless-1.1.18-grdmbjgn.mjs +10 -0
  407. package/dist/chunks/sandbox-adapter-1.1.18-4290hdqx.mjs +1 -0
  408. package/dist/chunks/sandbox-toggle-1.1.18-859vsbae.mjs +1 -0
  409. package/dist/chunks/session-1.1.18-ndwcefxm.mjs +2 -0
  410. package/dist/chunks/sessionDiscovery-1.1.18-mqhk62gm.mjs +1 -0
  411. package/dist/chunks/sessionFileAccessHooks-1.1.18-2ypck9c4.mjs +1 -0
  412. package/dist/chunks/sessionStorage-1.1.18-w8jyzxb1.mjs +1 -0
  413. package/dist/chunks/settings-1.1.18-8tv1qyh6.mjs +1 -0
  414. package/dist/chunks/setup-1.1.18-frcmhac0.mjs +12 -0
  415. package/dist/chunks/sinks-1.1.18-zxg6qwxv.mjs +1 -0
  416. package/dist/chunks/skills-1.1.18-zxh8yk9d.mjs +1 -0
  417. package/dist/chunks/startupProfiler-1.1.18-h7ey8bj0.mjs +1 -0
  418. package/dist/chunks/startupUpdateCheck-1.1.18-bws73cnz.mjs +1 -0
  419. package/dist/chunks/state-1.1.18-12hrspsf.mjs +1 -0
  420. package/dist/chunks/stats-1.1.18-kmhwdmq9.mjs +6 -0
  421. package/dist/chunks/status-1.1.18-4aep2t86.mjs +1 -0
  422. package/dist/chunks/stickers-1.1.18-20nhxd0w.mjs +1 -0
  423. package/dist/chunks/subprocessEnv-1.1.18-a6f6xtx7.mjs +1 -0
  424. package/dist/chunks/tasks-1.1.18-5brzcp4c.mjs +1 -0
  425. package/dist/chunks/teamHelpers-1.1.18-ewst0n42.mjs +1 -0
  426. package/dist/chunks/teammateModeSnapshot-1.1.18-n1rgqqyr.mjs +1 -0
  427. package/dist/chunks/teleport-1.1.18-e63krqkp.mjs +1 -0
  428. package/dist/chunks/terminalSetup-1.1.18-6nf0ex7b.mjs +1 -0
  429. package/dist/chunks/theme-1.1.18-egp4mwdb.mjs +1 -0
  430. package/dist/chunks/thinkback-1.1.18-wphxbpgs.mjs +1 -0
  431. package/dist/chunks/thinkback-play-1.1.18-rjmn2eej.mjs +1 -0
  432. package/dist/chunks/toolPool-1.1.18-s1ssr2ef.mjs +1 -0
  433. package/dist/chunks/toolSearch-1.1.18-c9cwkafr.mjs +1 -0
  434. package/dist/chunks/tools-1.1.18-1dqtpknx.mjs +1 -0
  435. package/dist/chunks/trustedDevice-1.1.18-3h8z5wdy.mjs +1 -0
  436. package/dist/chunks/turndown.cjs-1.1.18-e9b2pss1.mjs +69 -0
  437. package/dist/chunks/types-1.1.18-31emf7xp.mjs +1 -0
  438. package/dist/chunks/ultrareviewCommand-1.1.18-x96n2df3.mjs +4 -0
  439. package/dist/chunks/update-1.1.18-rfhbgb3x.mjs +72 -0
  440. package/dist/chunks/upgrade-1.1.18-5dd5b35g.mjs +1 -0
  441. package/dist/chunks/upload-1.1.18-6rcbt5xr.mjs +7 -0
  442. package/dist/chunks/upstreamproxy-1.1.18-xx3jrk14.mjs +14 -0
  443. package/dist/chunks/url-handler-napi-1.1.18-y4e042py.mjs +1 -0
  444. package/dist/chunks/usage-1.1.18-q3y9c6vk.mjs +1 -0
  445. package/dist/chunks/util-1.1.18-2vgfzdph.mjs +1 -0
  446. package/dist/chunks/utils-1.1.18-8tjbjr7v.mjs +1 -0
  447. package/dist/chunks/vim-1.1.18-44eqnfwb.mjs +1 -0
  448. package/dist/chunks/watchLoop-1.1.18-c2shb8qc.mjs +13 -0
  449. package/dist/chunks/watcher-1.1.18-cb1x3sr6.mjs +1 -0
  450. package/dist/chunks/wiki-1.1.18-r1abckjp.mjs +132 -0
  451. package/dist/chunks/workflows-1.1.18-jtx40wvq.mjs +1 -0
  452. package/dist/chunks/worktree-1.1.18-ds3kez7h.mjs +1 -0
  453. package/dist/chunks/worktreeModeEnabled-1.1.18-2wj8e6bc.mjs +1 -0
  454. package/dist/chunks/wrapper-1.1.18-shbmq2kg.mjs +7 -0
  455. package/dist/cli.mjs +2 -2
  456. package/dist/help-doctor.txt +3 -3
  457. package/dist/help-install.txt +2 -2
  458. package/dist/help-mcp.txt +2 -2
  459. package/dist/help-plugin.txt +2 -2
  460. package/dist/help-plugins.txt +2 -2
  461. package/dist/help.txt +3 -3
  462. package/package.json +9 -9
  463. package/dist/chunks/AgentTool-1.1.16-d8xg1846.mjs +0 -1
  464. package/dist/chunks/App-1.1.16-1qyat349.mjs +0 -1
  465. package/dist/chunks/ApproveApiKey-1.1.16-gphm4kr9.mjs +0 -1
  466. package/dist/chunks/AssistantSessionChooser-1.1.16-ae0771hz.mjs +0 -1
  467. package/dist/chunks/AutoModeOptInDialog-1.1.16-ntf57kwj.mjs +0 -1
  468. package/dist/chunks/BypassPermissionsModeDialog-1.1.16-z8km64vb.mjs +0 -1
  469. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.16-9c1nen0b.mjs +0 -1
  470. package/dist/chunks/ConsoleOAuthFlow-1.1.16-e52dm35b.mjs +0 -1
  471. package/dist/chunks/DiffDialog-1.1.16-frav7jtc.mjs +0 -6
  472. package/dist/chunks/Doctor-1.1.16-rnr2zeqm.mjs +0 -1
  473. package/dist/chunks/ExplorerDialog-1.1.16-32sa07f8.mjs +0 -6
  474. package/dist/chunks/ITermBackend-1.1.16-wcn0wvqj.mjs +0 -1
  475. package/dist/chunks/InvalidConfigDialog-1.1.16-ptpv0yby.mjs +0 -1
  476. package/dist/chunks/InvalidSettingsDialog-1.1.16-2c80150t.mjs +0 -1
  477. package/dist/chunks/MigrationDialog-1.1.16-xf5ytnvw.mjs +0 -1
  478. package/dist/chunks/Onboarding-1.1.16-mq6axxmv.mjs +0 -1
  479. package/dist/chunks/ProviderManager-1.1.16-df81g99v.mjs +0 -1
  480. package/dist/chunks/REPL-1.1.16-67e78vej.mjs +0 -1
  481. package/dist/chunks/ResumeConversation-1.1.16-nfz9vfxh.mjs +0 -1
  482. package/dist/chunks/SnapshotUpdateDialog-1.1.16-nmypjs9s.mjs +0 -1
  483. package/dist/chunks/TeleportProgress-1.1.16-8xp4cat6.mjs +0 -1
  484. package/dist/chunks/TeleportRepoMismatchDialog-1.1.16-b873egjf.mjs +0 -1
  485. package/dist/chunks/TeleportResumeWrapper-1.1.16-p12j7gbz.mjs +0 -1
  486. package/dist/chunks/TmuxBackend-1.1.16-wfj4hbxa.mjs +0 -9
  487. package/dist/chunks/ToolSearchTool-1.1.16-t59p4sqb.mjs +0 -1
  488. package/dist/chunks/TrustDialog-1.1.16-6gnr1pgn.mjs +0 -1
  489. package/dist/chunks/activeProvider-1.1.16-pz7hzyed.mjs +0 -1
  490. package/dist/chunks/add-dir-1.1.16-whsjbedt.mjs +0 -1
  491. package/dist/chunks/agentTypes-1.1.16-7fxyjypa.mjs +0 -1
  492. package/dist/chunks/agents-1.1.16-1d6y0xda.mjs +0 -3
  493. package/dist/chunks/agents-1.1.16-s5e41ewr.mjs +0 -110
  494. package/dist/chunks/api-1.1.16-k1mytgsx.mjs +0 -1
  495. package/dist/chunks/asciicast-1.1.16-bxvyntn8.mjs +0 -1
  496. package/dist/chunks/assistant-1.1.16-acqmddet.mjs +0 -1
  497. package/dist/chunks/auth-1.1.16-7nwthv6n.mjs +0 -1
  498. package/dist/chunks/auth-1.1.16-c46k0chb.mjs +0 -1
  499. package/dist/chunks/autoMode-1.1.16-t7thnrw0.mjs +0 -48
  500. package/dist/chunks/autoUpdater-1.1.16-5k3bxrjz.mjs +0 -1
  501. package/dist/chunks/backgroundHousekeeping-1.1.16-nhb6p8p3.mjs +0 -1
  502. package/dist/chunks/branch-1.1.16-72eesr6a.mjs +0 -4
  503. package/dist/chunks/bridge-1.1.16-8n6h1b8c.mjs +0 -2
  504. package/dist/chunks/bridgeConfig-1.1.16-jmz78ab3.mjs +0 -1
  505. package/dist/chunks/bridgeEnabled-1.1.16-nwrn0y9j.mjs +0 -1
  506. package/dist/chunks/bridgeMain-1.1.16-04vqwa21.mjs +0 -88
  507. package/dist/chunks/bridgePointer-1.1.16-krkxjxkj.mjs +0 -1
  508. package/dist/chunks/btw-1.1.16-h0jqrzph.mjs +0 -1
  509. package/dist/chunks/buddy-1.1.16-k6dwkrbz.mjs +0 -3
  510. package/dist/chunks/cache-probe-1.1.16-rk6d7v9j.mjs +0 -21
  511. package/dist/chunks/cacheStats-1.1.16-f3tggvs4.mjs +0 -4
  512. package/dist/chunks/caches-1.1.16-kxkg6hxt.mjs +0 -1
  513. package/dist/chunks/claudeDesktop-1.1.16-jggzvahb.mjs +0 -1
  514. package/dist/chunks/claudemd-1.1.16-7dtnkedr.mjs +0 -1
  515. package/dist/chunks/clear-1.1.16-qrpawrqq.mjs +0 -1
  516. package/dist/chunks/clearTerminal-1.1.16-hcv9w964.mjs +0 -1
  517. package/dist/chunks/cli-1.1.16-00hws7wd.mjs +0 -15
  518. package/dist/chunks/cli-1.1.16-02ynr76s.mjs +0 -2
  519. package/dist/chunks/cli-1.1.16-06f5zq2n.mjs +0 -3
  520. package/dist/chunks/cli-1.1.16-07smcaht.mjs +0 -2
  521. package/dist/chunks/cli-1.1.16-08mt7pd3.mjs +0 -26
  522. package/dist/chunks/cli-1.1.16-0chc168e.mjs +0 -2
  523. package/dist/chunks/cli-1.1.16-0w56n0k6.mjs +0 -2
  524. package/dist/chunks/cli-1.1.16-11vm4ckb.mjs +0 -3
  525. package/dist/chunks/cli-1.1.16-14fn34eq.mjs +0 -2
  526. package/dist/chunks/cli-1.1.16-14qj3fgz.mjs +0 -2
  527. package/dist/chunks/cli-1.1.16-16cpmrsq.mjs +0 -2
  528. package/dist/chunks/cli-1.1.16-1p0006m7.mjs +0 -2
  529. package/dist/chunks/cli-1.1.16-1rw7f88z.mjs +0 -2
  530. package/dist/chunks/cli-1.1.16-21rqtmb8.mjs +0 -2
  531. package/dist/chunks/cli-1.1.16-2c672gb7.mjs +0 -12
  532. package/dist/chunks/cli-1.1.16-2mzk1cmm.mjs +0 -2
  533. package/dist/chunks/cli-1.1.16-2ssqta47.mjs +0 -2
  534. package/dist/chunks/cli-1.1.16-2v8aceee.mjs +0 -2
  535. package/dist/chunks/cli-1.1.16-2xgcx2pv.mjs +0 -2
  536. package/dist/chunks/cli-1.1.16-3ha615b6.mjs +0 -2
  537. package/dist/chunks/cli-1.1.16-3k3hzdbv.mjs +0 -9
  538. package/dist/chunks/cli-1.1.16-3wey4s8m.mjs +0 -2
  539. package/dist/chunks/cli-1.1.16-48pfhgz1.mjs +0 -2
  540. package/dist/chunks/cli-1.1.16-49bqpfq6.mjs +0 -16
  541. package/dist/chunks/cli-1.1.16-4azerbgs.mjs +0 -2
  542. package/dist/chunks/cli-1.1.16-4eszpnge.mjs +0 -2
  543. package/dist/chunks/cli-1.1.16-4kbzs997.mjs +0 -2
  544. package/dist/chunks/cli-1.1.16-4pr1991p.mjs +0 -8
  545. package/dist/chunks/cli-1.1.16-4qysqchs.mjs +0 -24
  546. package/dist/chunks/cli-1.1.16-4v9hjjtt.mjs +0 -3
  547. package/dist/chunks/cli-1.1.16-50vqanyq.mjs +0 -4
  548. package/dist/chunks/cli-1.1.16-54087k9r.mjs +0 -2
  549. package/dist/chunks/cli-1.1.16-5a4a2nqs.mjs +0 -2
  550. package/dist/chunks/cli-1.1.16-5bx6tpmw.mjs +0 -2
  551. package/dist/chunks/cli-1.1.16-5dtt0nsq.mjs +0 -15
  552. package/dist/chunks/cli-1.1.16-5hfex73v.mjs +0 -2
  553. package/dist/chunks/cli-1.1.16-5vc6gf8n.mjs +0 -2
  554. package/dist/chunks/cli-1.1.16-5wsywzcq.mjs +0 -2
  555. package/dist/chunks/cli-1.1.16-65skb0g1.mjs +0 -2
  556. package/dist/chunks/cli-1.1.16-67hp7vy9.mjs +0 -2
  557. package/dist/chunks/cli-1.1.16-67yh08z2.mjs +0 -2
  558. package/dist/chunks/cli-1.1.16-69ma6qdv.mjs +0 -2
  559. package/dist/chunks/cli-1.1.16-6fekr49f.mjs +0 -2
  560. package/dist/chunks/cli-1.1.16-6ptafg83.mjs +0 -59
  561. package/dist/chunks/cli-1.1.16-72wxrwg0.mjs +0 -2
  562. package/dist/chunks/cli-1.1.16-7aatqp3z.mjs +0 -2
  563. package/dist/chunks/cli-1.1.16-7c9cj19v.mjs +0 -2
  564. package/dist/chunks/cli-1.1.16-7j9fntrz.mjs +0 -2
  565. package/dist/chunks/cli-1.1.16-7k62y2m1.mjs +0 -45
  566. package/dist/chunks/cli-1.1.16-7k7w1py7.mjs +0 -39
  567. package/dist/chunks/cli-1.1.16-7xaxs3ra.mjs +0 -18
  568. package/dist/chunks/cli-1.1.16-7z989ymx.mjs +0 -24
  569. package/dist/chunks/cli-1.1.16-892pqd2m.mjs +0 -3
  570. package/dist/chunks/cli-1.1.16-8azzqa5w.mjs +0 -2
  571. package/dist/chunks/cli-1.1.16-8brzp1nw.mjs +0 -6
  572. package/dist/chunks/cli-1.1.16-8efk3qjx.mjs +0 -2
  573. package/dist/chunks/cli-1.1.16-8pms22dq.mjs +0 -2
  574. package/dist/chunks/cli-1.1.16-90p1j6wj.mjs +0 -3
  575. package/dist/chunks/cli-1.1.16-9bvj95e0.mjs +0 -2
  576. package/dist/chunks/cli-1.1.16-9gc3v32k.mjs +0 -2
  577. package/dist/chunks/cli-1.1.16-9mjvq93j.mjs +0 -2
  578. package/dist/chunks/cli-1.1.16-9vaffwrt.mjs +0 -2
  579. package/dist/chunks/cli-1.1.16-9wfv4nx7.mjs +0 -2
  580. package/dist/chunks/cli-1.1.16-9zybbj79.mjs +0 -2
  581. package/dist/chunks/cli-1.1.16-a09ca16c.mjs +0 -2
  582. package/dist/chunks/cli-1.1.16-a2heems6.mjs +0 -2
  583. package/dist/chunks/cli-1.1.16-a6z5s072.mjs +0 -58
  584. package/dist/chunks/cli-1.1.16-aae4w645.mjs +0 -42
  585. package/dist/chunks/cli-1.1.16-acbajet0.mjs +0 -2
  586. package/dist/chunks/cli-1.1.16-amvj9fsw.mjs +0 -3
  587. package/dist/chunks/cli-1.1.16-b06spwrg.mjs +0 -21
  588. package/dist/chunks/cli-1.1.16-b7t8n05k.mjs +0 -2
  589. package/dist/chunks/cli-1.1.16-b80x5mp6.mjs +0 -2
  590. package/dist/chunks/cli-1.1.16-c6ydw1c8.mjs +0 -2
  591. package/dist/chunks/cli-1.1.16-c839tmen.mjs +0 -2
  592. package/dist/chunks/cli-1.1.16-c9b05x0s.mjs +0 -2
  593. package/dist/chunks/cli-1.1.16-cc5chgna.mjs +0 -2
  594. package/dist/chunks/cli-1.1.16-cddsh2r4.mjs +0 -25
  595. package/dist/chunks/cli-1.1.16-cmfztzmq.mjs +0 -2
  596. package/dist/chunks/cli-1.1.16-cmw3ar20.mjs +0 -2
  597. package/dist/chunks/cli-1.1.16-cnwnk7gb.mjs +0 -2
  598. package/dist/chunks/cli-1.1.16-cs3aeka5.mjs +0 -12
  599. package/dist/chunks/cli-1.1.16-d6tf8dzn.mjs +0 -20
  600. package/dist/chunks/cli-1.1.16-df44y8yq.mjs +0 -3
  601. package/dist/chunks/cli-1.1.16-dfr9axye.mjs +0 -2
  602. package/dist/chunks/cli-1.1.16-dh0eqfrb.mjs +0 -25
  603. package/dist/chunks/cli-1.1.16-dn98cknd.mjs +0 -6
  604. package/dist/chunks/cli-1.1.16-dqwre8s7.mjs +0 -2
  605. package/dist/chunks/cli-1.1.16-dqxwanh1.mjs +0 -2
  606. package/dist/chunks/cli-1.1.16-dtwt84pe.mjs +0 -6
  607. package/dist/chunks/cli-1.1.16-dtyn1qwz.mjs +0 -2
  608. package/dist/chunks/cli-1.1.16-dxyq8q3t.mjs +0 -18
  609. package/dist/chunks/cli-1.1.16-e0fmjnmt.mjs +0 -2
  610. package/dist/chunks/cli-1.1.16-e15bgq0q.mjs +0 -2
  611. package/dist/chunks/cli-1.1.16-eabt3s19.mjs +0 -2
  612. package/dist/chunks/cli-1.1.16-eatavqvn.mjs +0 -2
  613. package/dist/chunks/cli-1.1.16-eg2wh4gb.mjs +0 -2
  614. package/dist/chunks/cli-1.1.16-egxjzfe2.mjs +0 -34
  615. package/dist/chunks/cli-1.1.16-ejy0gvv1.mjs +0 -2
  616. package/dist/chunks/cli-1.1.16-f3tex0kv.mjs +0 -24
  617. package/dist/chunks/cli-1.1.16-f6arq2qw.mjs +0 -3
  618. package/dist/chunks/cli-1.1.16-f9d79a6c.mjs +0 -2
  619. package/dist/chunks/cli-1.1.16-fd7yx131.mjs +0 -2
  620. package/dist/chunks/cli-1.1.16-g0z56bnb.mjs +0 -2
  621. package/dist/chunks/cli-1.1.16-g2m8cf2k.mjs +0 -2
  622. package/dist/chunks/cli-1.1.16-gqgat9ps.mjs +0 -2
  623. package/dist/chunks/cli-1.1.16-gtw5ckd8.mjs +0 -2
  624. package/dist/chunks/cli-1.1.16-gyw71nnw.mjs +0 -2
  625. package/dist/chunks/cli-1.1.16-gze584gt.mjs +0 -2
  626. package/dist/chunks/cli-1.1.16-h1rfrt5t.mjs +0 -1
  627. package/dist/chunks/cli-1.1.16-haqxs2zy.mjs +0 -2
  628. package/dist/chunks/cli-1.1.16-hbzd5k64.mjs +0 -2
  629. package/dist/chunks/cli-1.1.16-hd541yqt.mjs +0 -5
  630. package/dist/chunks/cli-1.1.16-hf9kpgyk.mjs +0 -2
  631. package/dist/chunks/cli-1.1.16-hq7j37g9.mjs +0 -2
  632. package/dist/chunks/cli-1.1.16-htk59n0r.mjs +0 -2
  633. package/dist/chunks/cli-1.1.16-hwr77b8n.mjs +0 -5469
  634. package/dist/chunks/cli-1.1.16-hyxvna5x.mjs +0 -2
  635. package/dist/chunks/cli-1.1.16-j1hg5tkr.mjs +0 -3
  636. package/dist/chunks/cli-1.1.16-jcye29qq.mjs +0 -202
  637. package/dist/chunks/cli-1.1.16-k7hg3739.mjs +0 -2
  638. package/dist/chunks/cli-1.1.16-kf5fv5t0.mjs +0 -2
  639. package/dist/chunks/cli-1.1.16-kndxajhc.mjs +0 -2
  640. package/dist/chunks/cli-1.1.16-kpxhnxpz.mjs +0 -2
  641. package/dist/chunks/cli-1.1.16-kxckvss5.mjs +0 -4
  642. package/dist/chunks/cli-1.1.16-kz0jkcdc.mjs +0 -2
  643. package/dist/chunks/cli-1.1.16-m0b6tw88.mjs +0 -3
  644. package/dist/chunks/cli-1.1.16-m68wgnx0.mjs +0 -50
  645. package/dist/chunks/cli-1.1.16-manqzza5.mjs +0 -2
  646. package/dist/chunks/cli-1.1.16-mbr5p7h4.mjs +0 -2
  647. package/dist/chunks/cli-1.1.16-n37yee4e.mjs +0 -5
  648. package/dist/chunks/cli-1.1.16-n9r7jwvf.mjs +0 -4
  649. package/dist/chunks/cli-1.1.16-nbxzev2y.mjs +0 -3
  650. package/dist/chunks/cli-1.1.16-nh0pt7e0.mjs +0 -2
  651. package/dist/chunks/cli-1.1.16-njacmwr1.mjs +0 -4
  652. package/dist/chunks/cli-1.1.16-p0fj6fyd.mjs +0 -2
  653. package/dist/chunks/cli-1.1.16-pdga6t1k.mjs +0 -133
  654. package/dist/chunks/cli-1.1.16-pj3sbyjh.mjs +0 -2
  655. package/dist/chunks/cli-1.1.16-pzq1a8yw.mjs +0 -2
  656. package/dist/chunks/cli-1.1.16-q827fp1q.mjs +0 -2
  657. package/dist/chunks/cli-1.1.16-qh481y6y.mjs +0 -2
  658. package/dist/chunks/cli-1.1.16-qwgc24yv.mjs +0 -2
  659. package/dist/chunks/cli-1.1.16-qy3897dn.mjs +0 -2
  660. package/dist/chunks/cli-1.1.16-qyhfqd1t.mjs +0 -4
  661. package/dist/chunks/cli-1.1.16-r0tgqw2k.mjs +0 -4
  662. package/dist/chunks/cli-1.1.16-r102pkgg.mjs +0 -3
  663. package/dist/chunks/cli-1.1.16-r2q5qzd6.mjs +0 -2
  664. package/dist/chunks/cli-1.1.16-r3n44d17.mjs +0 -2
  665. package/dist/chunks/cli-1.1.16-r41v96xz.mjs +0 -6
  666. package/dist/chunks/cli-1.1.16-rb7paxmn.mjs +0 -2
  667. package/dist/chunks/cli-1.1.16-rmn7pfkz.mjs +0 -2
  668. package/dist/chunks/cli-1.1.16-rvyqa9q1.mjs +0 -2
  669. package/dist/chunks/cli-1.1.16-s404wy1x.mjs +0 -6
  670. package/dist/chunks/cli-1.1.16-s73aeg9m.mjs +0 -3
  671. package/dist/chunks/cli-1.1.16-sbck6gp1.mjs +0 -2
  672. package/dist/chunks/cli-1.1.16-sk0nvcb8.mjs +0 -2
  673. package/dist/chunks/cli-1.1.16-sk5cfvaa.mjs +0 -2
  674. package/dist/chunks/cli-1.1.16-t0vza3m9.mjs +0 -2
  675. package/dist/chunks/cli-1.1.16-t3hq60ht.mjs +0 -2
  676. package/dist/chunks/cli-1.1.16-t52j6pb6.mjs +0 -6
  677. package/dist/chunks/cli-1.1.16-t7jxtkz8.mjs +0 -2
  678. package/dist/chunks/cli-1.1.16-the4daty.mjs +0 -17
  679. package/dist/chunks/cli-1.1.16-tjqwb7e1.mjs +0 -2
  680. package/dist/chunks/cli-1.1.16-tjzxdkkt.mjs +0 -17
  681. package/dist/chunks/cli-1.1.16-tpxwx276.mjs +0 -2
  682. package/dist/chunks/cli-1.1.16-tv4kjnwq.mjs +0 -24
  683. package/dist/chunks/cli-1.1.16-tv97myza.mjs +0 -7
  684. package/dist/chunks/cli-1.1.16-v2e4pd3g.mjs +0 -2
  685. package/dist/chunks/cli-1.1.16-vchwnr3f.mjs +0 -2
  686. package/dist/chunks/cli-1.1.16-vf5x3nc4.mjs +0 -2
  687. package/dist/chunks/cli-1.1.16-vhwypfn6.mjs +0 -2
  688. package/dist/chunks/cli-1.1.16-vkc2wbwd.mjs +0 -2
  689. package/dist/chunks/cli-1.1.16-vngrsrs8.mjs +0 -3
  690. package/dist/chunks/cli-1.1.16-vq6g4ncg.mjs +0 -2
  691. package/dist/chunks/cli-1.1.16-vra6hr5d.mjs +0 -2
  692. package/dist/chunks/cli-1.1.16-vzv60xz8.mjs +0 -4
  693. package/dist/chunks/cli-1.1.16-w4zy236d.mjs +0 -2
  694. package/dist/chunks/cli-1.1.16-w5ns6t4b.mjs +0 -2
  695. package/dist/chunks/cli-1.1.16-way1d0g7.mjs +0 -2
  696. package/dist/chunks/cli-1.1.16-wbzh2wm5.mjs +0 -2
  697. package/dist/chunks/cli-1.1.16-wpgdph2x.mjs +0 -7
  698. package/dist/chunks/cli-1.1.16-wv6e57r1.mjs +0 -2
  699. package/dist/chunks/cli-1.1.16-wxyxm2zp.mjs +0 -2
  700. package/dist/chunks/cli-1.1.16-wysnfmek.mjs +0 -4
  701. package/dist/chunks/cli-1.1.16-wzzrc1xq.mjs +0 -2
  702. package/dist/chunks/cli-1.1.16-x0gywt7y.mjs +0 -2
  703. package/dist/chunks/cli-1.1.16-x1r7521q.mjs +0 -133
  704. package/dist/chunks/cli-1.1.16-x4k8bzvc.mjs +0 -2
  705. package/dist/chunks/cli-1.1.16-x9m0y8t1.mjs +0 -2
  706. package/dist/chunks/cli-1.1.16-xaye0g9z.mjs +0 -2
  707. package/dist/chunks/cli-1.1.16-xe8wmqtk.mjs +0 -15
  708. package/dist/chunks/cli-1.1.16-xfke0ngj.mjs +0 -2
  709. package/dist/chunks/cli-1.1.16-xqk1znpb.mjs +0 -2
  710. package/dist/chunks/cli-1.1.16-y11gejtr.mjs +0 -9
  711. package/dist/chunks/cli-1.1.16-y1vrwcq4.mjs +0 -2
  712. package/dist/chunks/cli-1.1.16-y4qp7bb2.mjs +0 -2
  713. package/dist/chunks/cli-1.1.16-ynvgphfk.mjs +0 -2
  714. package/dist/chunks/cli-1.1.16-yqaq6eek.mjs +0 -2
  715. package/dist/chunks/cli-1.1.16-yv8wazsp.mjs +0 -2
  716. package/dist/chunks/cli-1.1.16-yymrc4dd.mjs +0 -2
  717. package/dist/chunks/cli-1.1.16-yzrxqdz1.mjs +0 -4
  718. package/dist/chunks/cli-1.1.16-z56ew2eh.mjs +0 -66
  719. package/dist/chunks/cli-1.1.16-z93174n6.mjs +0 -2
  720. package/dist/chunks/cli-1.1.16-zedxs5mz.mjs +0 -2
  721. package/dist/chunks/cli-1.1.16-zgwt3v22.mjs +0 -2
  722. package/dist/chunks/cli-1.1.16-ztv6fvbq.mjs +0 -4
  723. package/dist/chunks/cli-1.1.16-zx2pqyak.mjs +0 -2
  724. package/dist/chunks/cli-1.1.16-zy1hy3m7.mjs +0 -3
  725. package/dist/chunks/cli-1.1.16-zzc307e7.mjs +0 -2
  726. package/dist/chunks/client-1.1.16-mxfnn25v.mjs +0 -1
  727. package/dist/chunks/color-1.1.16-kxb5k02m.mjs +0 -1
  728. package/dist/chunks/compact-1.1.16-zn3r524w.mjs +0 -3
  729. package/dist/chunks/config-1.1.16-866900pg.mjs +0 -1
  730. package/dist/chunks/config-1.1.16-pnqk3e4x.mjs +0 -1
  731. package/dist/chunks/constants-1.1.16-y8q2q4nx.mjs +0 -1
  732. package/dist/chunks/context-1.1.16-g23rxjdc.mjs +0 -1
  733. package/dist/chunks/context-noninteractive-1.1.16-cccdk7gt.mjs +0 -1
  734. package/dist/chunks/conversation-1.1.16-b3c8ysvx.mjs +0 -1
  735. package/dist/chunks/copilotHeaders-1.1.16-n2gqvrz3.mjs +0 -1
  736. package/dist/chunks/copy-1.1.16-evtbz4pr.mjs +0 -9
  737. package/dist/chunks/cost-1.1.16-je2dhky8.mjs +0 -1
  738. package/dist/chunks/createSSHSession-1.1.16-7bjctayt.mjs +0 -1
  739. package/dist/chunks/createSession-1.1.16-q7ezgde2.mjs +0 -1
  740. package/dist/chunks/debug-1.1.16-rwekwqaz.mjs +0 -1
  741. package/dist/chunks/defaultActionDeps-1.1.16-drefjcq7.mjs +0 -1534
  742. package/dist/chunks/desktop-1.1.16-s5p2s8z1.mjs +0 -1
  743. package/dist/chunks/detectRepository-1.1.16-0mj2v70d.mjs +0 -1
  744. package/dist/chunks/detection-1.1.16-a6g1ea8w.mjs +0 -1
  745. package/dist/chunks/diff-1.1.16-5c3cx6ex.mjs +0 -1
  746. package/dist/chunks/doctor-1.1.16-41p56y0f.mjs +0 -1
  747. package/dist/chunks/doctorDiagnostic-1.1.16-w0td1z7t.mjs +0 -1
  748. package/dist/chunks/earlyInput-1.1.16-fb3qxbjk.mjs +0 -1
  749. package/dist/chunks/effort-1.1.16-9gw3x1mz.mjs +0 -13
  750. package/dist/chunks/engine-1.1.16-35cg9rmx.mjs +0 -1
  751. package/dist/chunks/envLessBridgeConfig-1.1.16-1d34y7k2.mjs +0 -1
  752. package/dist/chunks/envUtils-1.1.16-4t6p0jjh.mjs +0 -1
  753. package/dist/chunks/environmentSelection-1.1.16-63yqca4b.mjs +0 -1
  754. package/dist/chunks/environments-1.1.16-zg1cebes.mjs +0 -1
  755. package/dist/chunks/errors-1.1.16-5ry90xtn.mjs +0 -1
  756. package/dist/chunks/exampleCommands-1.1.16-gctdwyey.mjs +0 -1
  757. package/dist/chunks/execFileNoThrow-1.1.16-ja5wfnqk.mjs +0 -1
  758. package/dist/chunks/exit-1.1.16-gp3attw5.mjs +0 -1
  759. package/dist/chunks/explorer-1.1.16-ksz2kh3r.mjs +0 -1
  760. package/dist/chunks/export-1.1.16-4q6eppsd.mjs +0 -2
  761. package/dist/chunks/extra-usage-1.1.16-gtvkswnt.mjs +0 -1
  762. package/dist/chunks/extra-usage-noninteractive-1.1.16-y936p9yp.mjs +0 -1
  763. package/dist/chunks/fast-1.1.16-9d3xqrpf.mjs +0 -1
  764. package/dist/chunks/feedback-1.1.16-3va6ar52.mjs +0 -14
  765. package/dist/chunks/firstPartyEventLogger-1.1.16-rzm5ms2c.mjs +0 -1
  766. package/dist/chunks/git-1.1.16-wxjpazsv.mjs +0 -1
  767. package/dist/chunks/githubModelsCredentials-1.1.16-8db65cwz.mjs +0 -1
  768. package/dist/chunks/goal-1.1.16-n6zn5hv0.mjs +0 -4
  769. package/dist/chunks/growthbook-1.1.16-595crq4b.mjs +0 -1
  770. package/dist/chunks/headless-1.1.16-ngrfttd2.mjs +0 -2
  771. package/dist/chunks/heapdump-1.1.16-xeq6wdmt.mjs +0 -6
  772. package/dist/chunks/help-1.1.16-cr6p1e9d.mjs +0 -1
  773. package/dist/chunks/hookChains-1.1.16-9h14zpb6.mjs +0 -3
  774. package/dist/chunks/hooks-1.1.16-1g8bmj2c.mjs +0 -79
  775. package/dist/chunks/hooks-1.1.16-n1gmh33c.mjs +0 -1
  776. package/dist/chunks/ide-1.1.16-9vtwyzje.mjs +0 -3
  777. package/dist/chunks/image-processor-napi-1.1.16-xs3s51me.mjs +0 -1
  778. package/dist/chunks/inboundAttachments-1.1.16-c6drgpf3.mjs +0 -1
  779. package/dist/chunks/index-1.1.16-18yhpv52.mjs +0 -23
  780. package/dist/chunks/index-1.1.16-2rsmxhr2.mjs +0 -30
  781. package/dist/chunks/index-1.1.16-2xc5zjwe.mjs +0 -5
  782. package/dist/chunks/index-1.1.16-3cscsx0v.mjs +0 -1
  783. package/dist/chunks/index-1.1.16-3vpat7c1.mjs +0 -9
  784. package/dist/chunks/index-1.1.16-3zhbr1qd.mjs +0 -1
  785. package/dist/chunks/index-1.1.16-54nbfa3c.mjs +0 -1
  786. package/dist/chunks/index-1.1.16-6f495kq6.mjs +0 -1
  787. package/dist/chunks/index-1.1.16-82gx3ah5.mjs +0 -1
  788. package/dist/chunks/index-1.1.16-ap17zed0.mjs +0 -1
  789. package/dist/chunks/index-1.1.16-b07w4tdb.mjs +0 -1
  790. package/dist/chunks/index-1.1.16-cca87zba.mjs +0 -9
  791. package/dist/chunks/index-1.1.16-dxjx9gq8.mjs +0 -1
  792. package/dist/chunks/index-1.1.16-ehk0dpk3.mjs +0 -1
  793. package/dist/chunks/index-1.1.16-g6p5h9x8.mjs +0 -1
  794. package/dist/chunks/index-1.1.16-hsmqsx4f.mjs +0 -2
  795. package/dist/chunks/index-1.1.16-n1gyvm02.mjs +0 -1
  796. package/dist/chunks/index-1.1.16-ppkq03k8.mjs +0 -1
  797. package/dist/chunks/index-1.1.16-qpdm2q81.mjs +0 -1
  798. package/dist/chunks/index-1.1.16-qww85f6n.mjs +0 -1
  799. package/dist/chunks/index-1.1.16-s5e31nps.mjs +0 -1
  800. package/dist/chunks/index-1.1.16-v1zrqah7.mjs +0 -2
  801. package/dist/chunks/index-1.1.16-vbj2a5jp.mjs +0 -1
  802. package/dist/chunks/init-1.1.16-6wdrdz2r.mjs +0 -1
  803. package/dist/chunks/initReplBridge-1.1.16-6bhkywe8.mjs +0 -1
  804. package/dist/chunks/ink-1.1.16-e7whmjxf.mjs +0 -1
  805. package/dist/chunks/insights-1.1.16-s2czmsxt.mjs +0 -870
  806. package/dist/chunks/install-1.1.16-hm3j0jqe.mjs +0 -1
  807. package/dist/chunks/install-github-app-1.1.16-xmkdh35y.mjs +0 -149
  808. package/dist/chunks/install-slack-app-1.1.16-1a8z176x.mjs +0 -1
  809. package/dist/chunks/instrumentation-1.1.16-5tqqjvsb.mjs +0 -1
  810. package/dist/chunks/interactiveHelpers-1.1.16-49sn5m39.mjs +0 -1
  811. package/dist/chunks/keybindings-1.1.16-c6n8k84r.mjs +0 -2
  812. package/dist/chunks/knowledge-1.1.16-08yzaswd.mjs +0 -2
  813. package/dist/chunks/latestVersionCache-1.1.16-a0dks1p1.mjs +0 -1
  814. package/dist/chunks/loadAgentsDir-1.1.16-jbfc3ync.mjs +0 -1
  815. package/dist/chunks/loadPluginHooks-1.1.16-0pym4ad2.mjs +0 -1
  816. package/dist/chunks/log-1.1.16-yahqz556.mjs +0 -1
  817. package/dist/chunks/main-1.1.16-2egj6bns.mjs +0 -1
  818. package/dist/chunks/managedEnv-1.1.16-tgd635vq.mjs +0 -1
  819. package/dist/chunks/mcp-1.1.16-fkx2awnj.mjs +0 -17
  820. package/dist/chunks/mcp-1.1.16-n7sgsh7q.mjs +0 -1
  821. package/dist/chunks/mcp-1.1.16-ry6g2t33.mjs +0 -4
  822. package/dist/chunks/mcpb-1.1.16-74c05aj3.mjs +0 -1
  823. package/dist/chunks/memory-1.1.16-6jbqggnn.mjs +0 -72
  824. package/dist/chunks/model-1.1.16-3bvzfbem.mjs +0 -2
  825. package/dist/chunks/model-1.1.16-sjpwhja7.mjs +0 -1
  826. package/dist/chunks/node-1.1.16-gsj0fpm7.mjs +0 -12
  827. package/dist/chunks/oauth-1.1.16-bt9x98w7.mjs +0 -1
  828. package/dist/chunks/openaiShim-1.1.16-8gems3mz.mjs +0 -14
  829. package/dist/chunks/output-style-1.1.16-embrry9v.mjs +0 -1
  830. package/dist/chunks/package-KQCMZM5L-1.1.16-d3m1d21p.mjs +0 -1
  831. package/dist/chunks/parseConnectUrl-1.1.16-zffe39j3.mjs +0 -1
  832. package/dist/chunks/parser-1.1.16-3ps9dtdr.mjs +0 -1
  833. package/dist/chunks/passes-1.1.16-n0a3pvdf.mjs +0 -1
  834. package/dist/chunks/permissions-1.1.16-jk4pmrmf.mjs +0 -3
  835. package/dist/chunks/permissions-1.1.16-wnz2vr3h.mjs +0 -1
  836. package/dist/chunks/plan-1.1.16-rtkh7eh3.mjs +0 -1
  837. package/dist/chunks/plist-1.1.16-t71wt7sc.mjs +0 -1
  838. package/dist/chunks/plugin-1.1.16-t9jaj1gv.mjs +0 -29
  839. package/dist/chunks/pluginStartupCheck-1.1.16-c6cf7tmk.mjs +0 -1
  840. package/dist/chunks/plugins-1.1.16-73hwgvfk.mjs +0 -9
  841. package/dist/chunks/preActionHook-1.1.16-nthzxbp9.mjs +0 -2
  842. package/dist/chunks/print-1.1.16-armgf1aq.mjs +0 -57
  843. package/dist/chunks/process-1.1.16-3ct2vh70.mjs +0 -1
  844. package/dist/chunks/processBashCommand-1.1.16-89y7gsbx.mjs +0 -1
  845. package/dist/chunks/processSlashCommand-1.1.16-1kjtbhx2.mjs +0 -9
  846. package/dist/chunks/prompt-1.1.16-0386v4at.mjs +0 -1
  847. package/dist/chunks/prompt-1.1.16-k5y0dpf7.mjs +0 -1
  848. package/dist/chunks/prompts-1.1.16-xsnbw92m.mjs +0 -1
  849. package/dist/chunks/protocolHandler-1.1.16-yx039y6v.mjs +0 -13
  850. package/dist/chunks/provider-1.1.16-m0kk3yhs.mjs +0 -2
  851. package/dist/chunks/providerProfiles-1.1.16-2v2pwv6d.mjs +0 -1
  852. package/dist/chunks/providerValidation-1.1.16-282tqjjx.mjs +0 -6
  853. package/dist/chunks/rate-limit-options-1.1.16-avgds6pk.mjs +0 -1
  854. package/dist/chunks/registerSubcommands-1.1.16-mzwjj9v6.mjs +0 -26
  855. package/dist/chunks/registry-1.1.16-n34j5qfk.mjs +0 -1
  856. package/dist/chunks/release-notes-1.1.16-8q4sx928.mjs +0 -5
  857. package/dist/chunks/reload-plugins-1.1.16-7znfn6r1.mjs +0 -2
  858. package/dist/chunks/remote-env-1.1.16-pv7edzf2.mjs +0 -1
  859. package/dist/chunks/remoteBridgeCore-1.1.16-jv7q72cp.mjs +0 -1
  860. package/dist/chunks/remoteSession-1.1.16-mmf3btpt.mjs +0 -1
  861. package/dist/chunks/rename-1.1.16-m3xv2hvc.mjs +0 -1
  862. package/dist/chunks/replBridgeHandle-1.1.16-0vph2kjs.mjs +0 -1
  863. package/dist/chunks/replLauncher-1.1.16-g5z9jade.mjs +0 -1
  864. package/dist/chunks/resume-1.1.16-40c9ahqr.mjs +0 -2
  865. package/dist/chunks/rewind-1.1.16-tpy93a43.mjs +0 -1
  866. package/dist/chunks/rootOptions-1.1.16-3apcbhbp.mjs +0 -1
  867. package/dist/chunks/runWorkflowHeadless-1.1.16-ejyeyghc.mjs +0 -10
  868. package/dist/chunks/sandbox-adapter-1.1.16-xb7gb62s.mjs +0 -1
  869. package/dist/chunks/sandbox-toggle-1.1.16-pm4wkyc5.mjs +0 -1
  870. package/dist/chunks/session-1.1.16-vrf7bvfv.mjs +0 -2
  871. package/dist/chunks/sessionDiscovery-1.1.16-e919fb36.mjs +0 -1
  872. package/dist/chunks/sessionFileAccessHooks-1.1.16-6sbxmck5.mjs +0 -1
  873. package/dist/chunks/sessionStorage-1.1.16-1pd52qxc.mjs +0 -1
  874. package/dist/chunks/settings-1.1.16-0twvg2yc.mjs +0 -1
  875. package/dist/chunks/setup-1.1.16-mhj053ej.mjs +0 -12
  876. package/dist/chunks/sinks-1.1.16-10wxx1a3.mjs +0 -1
  877. package/dist/chunks/skills-1.1.16-r7v633j2.mjs +0 -1
  878. package/dist/chunks/startupProfiler-1.1.16-mmrhkw7p.mjs +0 -1
  879. package/dist/chunks/startupUpdateCheck-1.1.16-8tj1n7gt.mjs +0 -1
  880. package/dist/chunks/state-1.1.16-8zy52d2r.mjs +0 -1
  881. package/dist/chunks/stats-1.1.16-mrmhzc8j.mjs +0 -6
  882. package/dist/chunks/status-1.1.16-qpanvb67.mjs +0 -1
  883. package/dist/chunks/stickers-1.1.16-0d4zm7x4.mjs +0 -1
  884. package/dist/chunks/subprocessEnv-1.1.16-3pz224am.mjs +0 -1
  885. package/dist/chunks/tasks-1.1.16-cv8bsqt6.mjs +0 -1
  886. package/dist/chunks/teamHelpers-1.1.16-yrkqrc58.mjs +0 -1
  887. package/dist/chunks/teammateModeSnapshot-1.1.16-xgaxxh5q.mjs +0 -1
  888. package/dist/chunks/teleport-1.1.16-rhtckzvp.mjs +0 -1
  889. package/dist/chunks/terminalSetup-1.1.16-fptwmgph.mjs +0 -1
  890. package/dist/chunks/theme-1.1.16-4tskjw6p.mjs +0 -1
  891. package/dist/chunks/thinkback-1.1.16-d1x5jsx0.mjs +0 -1
  892. package/dist/chunks/thinkback-play-1.1.16-54xyd092.mjs +0 -1
  893. package/dist/chunks/toolPool-1.1.16-ga5s9f1k.mjs +0 -1
  894. package/dist/chunks/toolSearch-1.1.16-xw1xa379.mjs +0 -1
  895. package/dist/chunks/tools-1.1.16-h2yhp23r.mjs +0 -1
  896. package/dist/chunks/trustedDevice-1.1.16-nrdjhk2z.mjs +0 -1
  897. package/dist/chunks/turndown.cjs-1.1.16-4yvp9q16.mjs +0 -69
  898. package/dist/chunks/types-1.1.16-47y90s0f.mjs +0 -1
  899. package/dist/chunks/ultrareviewCommand-1.1.16-ej1e8hkt.mjs +0 -4
  900. package/dist/chunks/update-1.1.16-rtkcq95j.mjs +0 -72
  901. package/dist/chunks/upgrade-1.1.16-52bm5sf9.mjs +0 -1
  902. package/dist/chunks/upload-1.1.16-m2wyhzek.mjs +0 -7
  903. package/dist/chunks/upstreamproxy-1.1.16-vwczyqak.mjs +0 -14
  904. package/dist/chunks/url-handler-napi-1.1.16-qa109pxx.mjs +0 -1
  905. package/dist/chunks/usage-1.1.16-yqk04de2.mjs +0 -1
  906. package/dist/chunks/util-1.1.16-5f2kcd2a.mjs +0 -1
  907. package/dist/chunks/utils-1.1.16-pgvxvt37.mjs +0 -1
  908. package/dist/chunks/vim-1.1.16-9pd3j7qj.mjs +0 -1
  909. package/dist/chunks/watchLoop-1.1.16-wdxk66eb.mjs +0 -13
  910. package/dist/chunks/watcher-1.1.16-cd9fad12.mjs +0 -1
  911. package/dist/chunks/wiki-1.1.16-8290ftnh.mjs +0 -132
  912. package/dist/chunks/workflows-1.1.16-f4k926bs.mjs +0 -1
  913. package/dist/chunks/worktree-1.1.16-4s4hp83q.mjs +0 -1
  914. package/dist/chunks/worktreeModeEnabled-1.1.16-je59whhd.mjs +0 -1
  915. package/dist/chunks/wrapper-1.1.16-dfsehczs.mjs +0 -7
@@ -0,0 +1,16 @@
1
+ import{g9 as P5,i9 as R7}from"./cli-1.1.18-ythtynpe.mjs";import{k9 as A,l9 as r8}from"./cli-1.1.18-mrrbn0jj.mjs";import{C9 as a2,E9 as D7}from"./cli-1.1.18-avas0dtp.mjs";import{B_ as H0,C_ as H1,Cba as M1,Dba as p7,Dfa as $4,Ega as s2,Hga as L,Kga as J0,N_ as v2,Q_ as o8,Qba as z2,Sfa as B4,Uda as P,Uea as c,Ufa as J4,Wda as x5,Wga as k,Xfa as N5,Yfa as $Z,Zda as N,Zea as n2,_ea as S,b$ as P2,bfa as D,cha as n0,d$ as e8,fca as x8,hfa as e1,kea as x0,oda as o1,r_ as A4,s_ as t,t_ as K5,tea as s4,u_ as D0,v_ as C4,vea as ZZ,vga as l2,w_ as s5,wea as S1,wfa as $0,xda as B8,xea as m7,yfa as Z4,yga as G4,zfa as G8}from"./cli-1.1.18-3y4pftxb.mjs";import{aia as S0,cia as h4,mia as T1}from"./cli-1.1.18-7pcfwrhj.mjs";import{Qja as A2,Rja as l4,Sja as B0,Uja as G7,Vja as H7,Xja as U,Yja as h0}from"./cli-1.1.18-k05shz35.mjs";import{Zja as x,aka as z5}from"./cli-1.1.18-hbv881pn.mjs";import{Gka as U2,Kka as a8,Oka as n5,Ska as S7,ala as z,cla as m0,dla as Z0}from"./cli-1.1.18-ypcye8ae.mjs";import{Ala as g,Cla as z1,Hla as x1}from"./cli-1.1.18-cxg522yt.mjs";import{Kla as N2,Nla as K,Pla as u,Rla as v5,Vla as d}from"./cli-1.1.18-3s03nva1.mjs";import{$pa as j5,Moa as r1,Mpa as X1,Npa as V1,Opa as W1,Ppa as j1,Qoa as y4,Voa as y0,Woa as Z5,opa as C,vna as Y0,vpa as I1,wna as D1,yoa as d1,yra as Q0}from"./cli-1.1.18-4c3jqppx.mjs";import{Xra as h,Yra as t0}from"./cli-1.1.18-417wb57s.mjs";import{Ksa as Y5,ssa as v}from"./cli-1.1.18-vzrv28w4.mjs";import{hta as _0,jta as c5,kta as R,lta as r}from"./cli-1.1.18-hvd9yyb4.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:q,reject:X,context:V}=$.shift();try{let j=await Z.apply(V,Y);q(j)}catch(j){X(j)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((q,X)=>{$.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.18-3yaj9awp.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.18-427vyn1s.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function sZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.18-3yaj9awp.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.18-427vyn1s.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function w7(Z){return Z.startsWith("anthropic.")}function K7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function L7(Z){let $=K7(Z);for(let J of F7)if($.startsWith(`${J}.anthropic.`))return J;return}function rZ(Z,$){let J=L7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(w7(Z))return`${$}.${Z}`;return Z}var g2,aZ,F7;var c2=R(()=>{t0();o();d();n0();R7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await Z.send(Y);if(q.inferenceProfileSummaries)J.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});aZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch($){return k($),null}});F7=["us","eu","apac","global"]});var O5,E5,_5,y5,h5,I5,T5,M5,S5,l0,s0,a0,U0,f5,A5,C5,v0,d2;var u5=R(()=>{O5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},E5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},_5={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},y5={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},h5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},I5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},T5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},M5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},S5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},l0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},s0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},a0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},U0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f5={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},A5={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"},C5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},v0={haiku35:_5,haiku45:y5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:A5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:U0,fable5:f5},d2=Object.fromEntries(Object.entries(v0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var O0={};c5(O0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>v7,getCopilotDisplayName:()=>P7,getCatalogCopilotMaxOutputTokens:()=>_7,getCatalogCopilotContextWindow:()=>E7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>O7,_setCopilotCatalogForTesting:()=>y7});function P0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=P0();return Z!==null&&z0===Z}function k7(){if(t2)return;t2=!0,n2(()=>{let Z=P0();if(Z&&z0!==Z)i5()})}function d5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function N7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function U7(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["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:N7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),b7);try{let q=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let V=new Set,j=[];for(let G of X.data){let H=U7(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),j.push(H)}return j.length>0?j:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i5(){k7();let Z=P0();if(!Z)return;if(e&&z0!==Z)e=null,z0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&P0()===Z)e=$,z0=Z}).finally(()=>{o0=null,m5=null})}function v7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function P7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function O7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function E7(Z){return e0(Z)?.model.limit.context}function _7(Z){return e0(Z)?.model.limit.output}function y7(Z){e=Z,z0=Z?P0():null}var b7=5000,e=null,z0=null,o0=null,m5=null,t2=!1;var E0=R(()=>{J0();D7();s2();$0();Z0();p5()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function W$(){return W()==="firstParty"}function h7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(E0(),_0(O0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function j$(Z){let $=L()?.transport??"anthropic";if(!I7.has($))return!1;if($==="github_copilot"&&h7(Z))return!1;return!0}function z$(){return W()}function x$(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var I7;var i=R(()=>{J0();I7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=v0[Q][$];return J}async function T7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=v0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let q=d2[Q];if(q&&Y)J[q]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return M7(),e2($5(W()));return e2(Z)}async function D$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();n0();u2();x0();c2();u5();i();Z1=Object.keys(v0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await T7();Z5(Z)}catch(Z){k(Z)}})});function k$(Z){return Z}function N$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function y$(){let $=D().oauthAccount?.accountUuid,J=I0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var t5=R(()=>{Y5();h0();o();$0();n0()});import{mkdirSync as f7,writeFileSync as A7}from"fs";function g7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(q5,{recursive:!0,mode:448}),A7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function q1(Z,$){try{let Q=n5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!z1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[Z];if(!X){let j=q1($,J);return Y(j),j}let V=parseInt(X,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let j=n5(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=j.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),g7($,H,J),H}catch(j){z(`Failed to read ${J} from file descriptor ${V}: ${g(j)}`,{level:"error"});let G=q1($,J);return Y(G),G}}function X5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C7,label:"OAuth token",getCached:X1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:u7,label:"API key",getCached:W1,setCached:j1})}var q5="/home/claude/.claude/remote",C7,u7,C$;var G1=R(()=>{Q0();Z0();d();x1();S7();C7=`${q5}/.oauth_token`,u7=`${q5}/.api_key`,C$=`${q5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=t();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function d$(Z){return Z?.name==="CredentialsProviderError"}function F1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",l$="effort-2025-11-24",s$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",a$="extended-cache-ttl-2025-04-11",r$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",_1="thinking-token-count-2026-05-13",y1="token-efficient-tools-2026-03-28",o$="afk-mode-2026-01-31",e$="advisor-tool-2026-03-01",o5,ZJ;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),ZJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function f1(){if(!I())return!1;return d7()===null}function c7(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function d7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&j5()&&!I1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=c7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function KJ(){let Z=B5(X0());return"opus"+(J2()&&!Z?"[1m]":"")}function LJ(Z){if(!I())return!1;if(!f1())return!1;if(!A1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function A1(Z){if(!I())return!1;let $=Z??f0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function i7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function kJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function NJ(){R0={status:"active"}}function UJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},x5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function n7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function PJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("",{overage_disabled_reason:Z??"unknown"}),!n7(Z))x5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function l7(){return i7().status==="cooldown"}function OJ(Z,$){let J=I()&&f1()&&!!$&&A1(Z);if(J&&l7())return"cooldown";if(J)return"on";return"off"}async function s7(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await v.get($,{headers:J})).data}function _J(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function yJ(){if(S1())return;if(!I())return;if(M0)return z("Fast mode prefetch in progress, returning in-flight promise"),M0;let Z=I0();if(!(w()?.accessToken&&q0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<a7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let q=w(),X=q?.accessToken&&q0()?{accessToken:q.accessToken}:Z?{apiKey:Z}:null;if(!X)throw Error("No auth available");return s7(X)};async function Y(){try{let q;try{q=await Q()}catch(V){if(v.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await Q2(G),q=await Q();else throw V}else throw V}let X=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)x5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:q.enabled})),$2.emit(q.enabled)}z(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"}),x("",{})}finally{M0=null}}return M0=Y(),M0}var FJ="Opus 5",R0,Z2=!1,C1,u1,DJ,bJ,g1,vJ,E,$2,EJ,a7=30000,h1=0,M0=null;var p1=R(()=>{Y5();h0();T1();Q0();z5();o();p7();$0();Z0();d();w0();i();m7();x0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),DJ=C1.subscribe,bJ=u1.subscribe;g1=Y0(),vJ=g1.subscribe;E={status:"pending"},$2=Y0(),EJ=$2.subscribe});function J8(Z){for(let $ of $8)if($.pattern.test(Z))return $.cost;return}function q2(Z){if(I()&&Z)return i1;return n}function X2(Z){if(I()&&Z)return i1;return Y2[F(U0.firstParty)]??n}function Q8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function Y8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return q2(Y)}if(J===F(U0.firstParty))return X2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=J8(Z);if(Y)return Y;return q8(Z,J),Y2[b(f0())]??Z8}return Q}function q8(Z,$){x("",{model:Z,shortName:$}),d1()}function X8(Z,$){let J=Y8(Z,$);return Q8(J,$)}function AJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return X8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var F0,m1,n,r7,i1,o7,e7,Z8,$8,Y2;var t1=R(()=>{z5();Q0();p1();u5();w0();F0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},n={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},r7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},o7={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},e7={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},Z8=n,$8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];Y2={[F(_5.firstParty)]:o7,[F(y5.firstParty)]:e7,[F(E5.firstParty)]:F0,[F(O5.firstParty)]:F0,[F(h5.firstParty)]:F0,[F(I5.firstParty)]:F0,[F(A5.firstParty)]:F0,[F(C5.firstParty)]:F0,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:n,[F(l0.firstParty)]:n,[F(s0.firstParty)]:n,[F(a0.firstParty)]:n,[F(U0.firstParty)]:n,[F(f5.firstParty)]:r7}});function p(Z){return V8.includes(Z)}function K0(Z){return W8.includes(Z)}var V8,W8;var W2=R(()=>{V8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];W8=["sonnet","opus","haiku"]});function j8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function z8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(K0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),q=J.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!K0(Y)||!l1(Y,q))return!0}for(let X of q)if(K0(X)&&!l1(X,q)&&j8(Y,X))return!0;if(p(Y)){let X=T(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!K0(X)&&p(X)){if(T(X).toLowerCase()===Y)return!0}for(let X of q)if(!K0(X)&&!p(X)){if(z8(Y,X))return!0}return!1}var a1=R(()=>{x0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function W3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function j3(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),q=L0()||Q||void 0,X=e1(),V=G5(X.activeModelForProject);if(V){let j=$4()?.id,G=X.activeModelForProjectProfileId;Z=G===void 0||G===j?V:q}else Z=q}if(Z&&!s1(Z))return;return Z}function z3(){let Z=j2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function H8(){return X0()}function X0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function A0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function x3(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j2()==="opusplan"&&$==="plan"&&!Q)return X0();if(j2()==="haiku"&&$==="plan")return A0();return J}function f0(){let Z=L0();if(W()==="github"){let $=N()||{};return G5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(H5()||R5()){let $=X0();return $+(J2()&&!B5($)?"[1m]":"")}return A0()}function Y4(){return T(f0())}function F(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return F(J5(Z))}function R8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?w8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function B3(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return X4(T(Z))}function G3(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function w8(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(_()&&f()===null)return!1;return!0}function H3(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(p(Z))return o1(Z);return X4(Z)}function q4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(E0(),_0(O0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable5:return"Fable 5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function X4(Z){let $=q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function R3(Z){let $=q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return A0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let q=(X)=>Q&&!B5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(A0());case"sonnet":return q(A0());case"haiku":return q(Q4());case"opus":return q(X0());case"best":return H8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return B().fable5;if(W()==="firstParty"&&K8(Y)&&L8())return X0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function w3(Z,$){if(l(Z)||!l($))return Z;if(x2(T(Z)))return Z+"[1m]";return Z}function K8(Z){return F8.includes(Z)}function L8(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function F3(Z){if(Z===null){if(_())return`Default (${R8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function K3(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function L3(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function D3(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var F8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();G8();Q5();t1();x0();i();x8();a1();W2();B8();p5();F8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function k3(){}var V4=()=>{};function N8(Z,$={}){if($.isPro??(k8.test(Z)||W4.has(Z)))return!1;if(D8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(b8);return Q?Number.parseFloat(Q[1])>5.4:!1}function U3(){return w5.filter((Z)=>N8(Z.id,{isPro:Z.isPro}))}var w5,D8,W4,b8,k8,j4,z4;var x4=R(()=>{w5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],D8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),b8=/^gpt-(\d+\.\d+)/,k8=/-pro$/;j4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),z4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>T8,getDiscoveredContextWindow:()=>U8,discoverOpenAICompatibleModelOptions:()=>F4});function U8(Z){return R4.get(Z)}function v8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function P8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function O8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(P8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function E8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if($===J)return[Y($)];return[Y($),Y(J)]}function _8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function y8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function h8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),q=[];for(let X of Y.data?.data??[]){let V=X.id?.trim();if(!V||J.has(V))continue;J.add(V);let j=X.name?.trim()||V,G=X.context_length??null;if(G&&G>0)R4.set(V,G);let H=G?` · ${y8(G)}`:"";q.push({value:V,label:j,description:`${V}${H}`})}if(q.length>0)return q.sort((X,V)=>{let j=String(X.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=j.localeCompare(G);return H!==0?H:String(X.value).localeCompare(String(V.value))}),q}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function I8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=v8(),$=O8(Z),J=await h8(E8(Z),$);if(J.length>0)return J;let Q=_8(Z);if(Q)return I8(Q,$);return[]}function T8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let q=`${Q}:${J}`;if($[q]!==void 0)return $[q];if(Z[q]!==void 0)return Z[q]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),_0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(M8,f8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(E0(),_0(O0));return J(Z)}catch{return}}function N4(Z){let $=b4(S8,A8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(E0(),_0(O0));return J(Z)}catch{return}}var M8,S8,f8,A8;var U4=R(()=>{J0();x4();M8={"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,...j4,"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},S8={"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,...z4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},f8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),A8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function x2(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function i3(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),C8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(T0)&&x2(Z))return 1e6;if(p8(Z))return 1e6;return R2}function p8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function t3(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function n3(Z){let $,J;if(v4()){let q=N4(Z);if(q!==void 0)return{default:q,upperLimit:q}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=u8,J=g8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,C8,m3=20000,u8=32000,g8=64000,c3=8000,d3=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();C8=(()=>{let Z=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var m8,P4;var O4=R(()=>{t0();i();m8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of m8){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(J!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function c8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function x9(Z){if(!Z||Z.length===0)return;if(_()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=c8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function d8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function i8(Z){let $=b(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function t8(Z){let $=b(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function B9(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function G9(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function H9(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function R9(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),n8.cache?.clear?.()}var I4,w2,T4,n8;var S4=R(()=>{t0();T1();Q0();e5();h0();o();B2();d();w0();O4();i();x0();I4=[T0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(W5);if(_())$.push(B0);if(l(Z))$.push(T0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(_1);let q=i8(Z);if(_4()&&q)$.push(N1);let X=h4("tengu_tool_pear"),V=!X&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&t8(Z)&&X)$.push(U1);if(Y&&V)$.push(y1);if(Q==="vertex"&&d8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((j)=>j.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),n8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as l8}from"child_process";function f4(Z){return new Promise(($)=>{l8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:s8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function D9(){if(process.platform!=="darwin"||F5||u())return;let Z=f4(t(A4)),$=f4(t());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function b9(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var s8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let q=setTimeout((V,j,G)=>{V?.removeEventListener("abort",j),G()},Z,$,X,Q);function X(){if(clearTimeout(q),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",X,{once:!0}),J?.unref)q.unref()})}var p4=()=>{};function U9(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var uZ={};c5(uZ,{validateForceLoginOrg:()=>CZ,saveOAuthTokensIfNeeded:()=>X7,saveApiKey:()=>S2,removeApiKey:()=>vZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>Y7,refreshAwsAuth:()=>J7,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>bZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>kZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>zZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>hZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>_Z,isOtelHeadersHelperFromProjectOrLocalSettings:()=>z7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>IZ,isCustomApiKeyApproved:()=>UZ,isConsumerSubscriber:()=>fZ,isClaudeAISubscriber:()=>_,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>_2,isAnthropicAuthEnabled:()=>N0,is1PApiCustomer:()=>EZ,hasProfileScope:()=>q0,hasOpusAccess:()=>yZ,hasAnthropicApiKeyAuth:()=>XZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>f,getSubscriptionName:()=>W7,getRateLimitTier:()=>V7,getOtelHeadersFromHelper:()=>MZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>VZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>$7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>I0,getAccountInformation:()=>AZ,clearOAuthTokenCache:()=>f2,clearGcpCredentialsCache:()=>DZ,clearAwsCredentialsCache:()=>RZ,clearApiKeyHelperCache:()=>jZ,checkGcpCredentialsValid:()=>Q7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>Z7});import{exec as o4}from"child_process";import{mkdir as JZ,stat as QZ}from"fs/promises";import{join as YZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function N0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||q&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function I0(){let{key:Z}=c0();return Z}function XZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let X=L();if(X?.transport!=="anthropic")return;let V=X.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=$;if(j5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let X=l5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!k5()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let q=U5();if(q)return q;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function e4(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function _2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y2(){return(N()||{}).awsCredentialExport}function h2(){let Z=y2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Z7(){let Z=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return qZ}function VZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function $7(Z){if(!s())return null;let $=Z7();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!m)m={promise:i4(Z,!1,b0),startedAt:null};return y.value}if(m)return m.promise;return m={promise:i4(Z,!0,b0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await WZ(Z);if(J!==b0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==b0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(A.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===b0)m=null}}async function WZ(Z){let $=s();if(!$)return null;if(e4()){if(!c()&&!Z){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",q),x("",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,q=J.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function b2(){return y?.value??null}function jZ(){b0++,y=null,m=null}function zZ(Z){if(e4()&&!c())return;$7(Z)}async function BZ(){let Z=E2();if(!Z)return!1;if(_2()){if(!c()&&!C()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsAuthRefresh invoked before trust check",J),x("",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return J7(Z)}}function J7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:GZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function HZ(){let Z=y2();if(!Z)return null;if(h2()){if(!c()&&!C()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsCredentialExport invoked before trust check",J),x("",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=U2($.stdout.trim());if(!F1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=A.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function RZ(){j0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Q7(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=L2(wZ).then(()=>{throw new x7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function KZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("gcpAuthRefresh invoked before trust check",J),x("",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Q7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y7(Z)}function Y7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:LZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function DZ(){M2.cache.clear()}function bZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function kZ(){let Z=E2(),$=y2();if(!Z&&!$)return;if(_2()||h2()){if(!c()&&!C())return}j0(),B()}function NZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!NZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q7();let $=!1;if(process.platform==="darwin")try{let Q=t(),Y=K5(),q=Buffer.from(Z,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
2
+ `;await H0("security",["-i"],{input:X,reject:!1}),x("",{}),$=!0}catch(Q){k(Q),x("",{error:g(Q)}),x("",{})}else x("",{});let J=V5(Z);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U5.cache.clear?.(),K2()}function UZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function vZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function X7(Z){if(!k0(Z.scopes))return x("",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("",{}),{success:!0};let $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let q=$.update(Q);if(q.success)x("",{storageBackend:J});else x("",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),q}catch(Q){return k(Q),x("",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function f2(){w.cache?.clear?.(),D0()}async function PZ(){try{let{mtimeMs:Z}=await QZ(YZ(N2(),".credentials.json"));if(Z!==t4)t4=Z,f2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=OZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function OZ(Z){f2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await PZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),D0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let q=N2();await JZ(q,{recursive:!0});let X;try{x("",{}),X=await s4(q),x("",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("",{retryCount:Z+1}),await L2(1000+Math.random()*1000),k2(Z+1,$);return x("",{maxRetries:5}),!1}return k(V),x("",{error:g(V)}),!1}try{w.cache?.clear?.(),D0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return x("",{}),!1;x("",{});let j=await a4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return X7(j),w.cache?.clear?.(),D0(),!0}catch(V){k(V),w.cache?.clear?.(),D0();let j=await p0();if(j&&!g0(j.expiresAt))return x("",{}),!0;return!1}finally{x("",{}),await X(),x("",{})}}function _(){if(!N0())return!1;return k0(w()?.scopes)}function q0(){return w()?.scopes?.includes(l4)??!1}function EZ(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(_())return!1;return!0}function b5(){return N0()?D().oauthAccount:void 0}function _Z(){let $=b5()?.billingType;if(!_()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function yZ(){let Z=f();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function f(){if(Q1())return J1();if(!N0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return f()==="max"}function hZ(){return f()==="team"}function R5(){return f()==="team"&&V7()==="default_claude_max_5x"}function IZ(){return f()==="enterprise"}function G2(){return f()==="pro"}function V7(){if(!N0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function W7(){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 k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function j7(){return(N()||{}).otelHeadersHelper}function z7(){let Z=j7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function MZ(){let Z=j7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||TZ.toString());if(L5&&Date.now()-n4<$)return L5;if(z7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,q]of Object.entries(Q))if(typeof q!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof q}`);return L5=Q,n4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function SZ(Z){return Z==="max"||Z==="pro"}function fZ(){let Z=f();return _()&&Z!==null&&SZ(Z)}function AZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(_())J.subscription=W7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let X=b5()?.organizationName;if(X)J.organization=X}let q=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&q)J.email=q;return J}async function CZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!N0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
+ This machine requires organization ${Z} but the profile could not be fetched.
4
+ This may be a network error, or the token may lack the user:profile scope required for
5
+ verification (tokens from 'claude setup-token' do not include this scope).
6
+ Try again, or obtain a full-scope token via 'claude auth login'.`};let q=Y.organization.uuid;if(q===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
+ different organization than required by this machine's managed settings.
8
+
9
+ Required organization: ${Z}
10
+ Token organization: ${q}
11
+
12
+ Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
13
+ but this machine requires organization ${Z}.
14
+
15
+ Please log in with the correct organization: claude auth login`}}var qZ=300000,y=null,m=null,b0=0,xZ=3600000,GZ=180000,j0,wZ=5000,FZ=3600000,LZ=180000,M2,U5,w,t4=0,D2,u0=null,L5=null,n4=0,TZ=1740000,x7;var o=R(()=>{r8();H1();t0();h0();z5();Q5();i();Q0();J0();Y1();r4();t5();G1();w1();L1();b1();S4();$0();Z0();d();x1();o8();ZZ();n0();e8();$Z();g4();s5();x0();p4();a8();d4();j0=P2(async()=>{let Z=await BZ(),$=await HZ();if(Z||$)await K1();return $},xZ);M2=P2(async()=>{return await KZ()},FZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=t();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=X5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;x7=class x7 extends Error{}});function k0(Z){return Boolean(Z?.includes(A2))}function gZ(Z){return Z?.split(" ").filter(Boolean)??[]}function HQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:V,loginMethod:j}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=q?[A2]:H7;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),X)H.searchParams.append("orgUUID",X);if(V)H.searchParams.append("login_hint",V);if(j)H.searchParams.append("login_method",j);return H.toString()}async function RQ(Z,$,J,Q,Y=!1,q){let X={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(q!==void 0)X.expires_in=q;let V=await v.post(U().TOKEN_URL,X,{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 x("",{}),V.data}async function a4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:G7).join(" ")};try{let Q=await v.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=Z,expires_in:V}=Y,j=Date.now()+V*1000,G=gZ(Y.scope);x("",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await pZ(q);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:j,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function wQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("",{org_role:J.organization_role})}async function FQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),x("",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function pZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("",{}),{...Y,rawProfile:$}}async function KQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function LQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!D().oauthAccount)B7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!_()||!q0())return!1;let q=w();if(q?.accessToken){let X=await G0(q.accessToken),V=X?.account,j=X?.organization;if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return B7({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:j?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:j?.has_extra_usage_enabled??!1,billingType:j?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:j?.subscription_created_at??void 0}),!0}}return!1}function B7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V}){let j={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V};if(Q)j.displayName=Q;S((G)=>{if(G.oauthAccount?.accountUuid===j.accountUuid&&G.oauthAccount?.emailAddress===j.emailAddress&&G.oauthAccount?.organizationUuid===j.organizationUuid&&G.oauthAccount?.displayName===j.displayName&&G.oauthAccount?.hasExtraUsageEnabled===j.hasExtraUsageEnabled&&G.oauthAccount?.billingType===j.billingType&&G.oauthAccount?.accountCreatedAt===j.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===j.subscriptionCreatedAt)return G;return{...G,oauthAccount:j}})}var r4=R(()=>{Y5();z5();h0();o();$0();Z0();t5()});
16
+ export{D9 as H4,b9 as I4,g4 as J4,C2 as K4,u2 as L4,sZ as M4,aZ as N4,w7 as O4,L7 as P4,rZ as Q4,c2 as R4,l0 as S4,U0 as T4,v0 as U4,u5 as V4,i5 as W4,v7 as X4,E0 as Y4,W as Z4,W$ as _4,h7 as $4,j$ as a5,z$ as b5,x$ as c5,i as d5,B as e5,D$ as f5,Q5 as g5,k$ as h5,N$ as i5,Y1 as j5,y$ as k5,G0 as l5,t5 as m5,k0 as n5,gZ as o5,HQ as p5,RQ as q5,a4 as r5,wQ as s5,FQ as t5,g0 as u5,pZ as v5,KQ as w5,LQ as x5,B7 as y5,r4 as z5,C$ as A5,g7 as B5,q1 as C5,G1 as D5,V5 as E5,w1 as F5,d$ as G5,L1 as H5,M as I5,b1 as J5,T0 as K5,N1 as L5,U1 as M5,l$ as N5,s$ as O5,O1 as P5,a$ as Q5,r$ as R5,E1 as S5,o$ as T5,e$ as U5,ZJ as V5,e5 as W5,I as X5,f1 as Y5,d7 as Z5,FJ as _5,KJ as $5,LJ as a6,A1 as b6,DJ as c6,bJ as d6,i7 as e6,kJ as f6,NJ as g6,UJ as h6,vJ as i6,PJ as j6,l7 as k6,OJ as l6,EJ as m6,_J as n6,yJ as o6,p1 as p6,F0 as q6,r7 as r6,o7 as s6,e7 as t6,q2 as u6,X8 as v6,AJ as w6,V2 as x6,t1 as y6,V8 as z6,W2 as A6,s1 as B6,a1 as C6,W3 as D6,j3 as E6,B5 as F6,j2 as G6,z3 as H6,H8 as I6,X0 as J6,A0 as K6,Q4 as L6,x3 as M6,f0 as N6,Y4 as O6,F as P6,b as Q6,R8 as R6,B3 as S6,G3 as T6,w8 as U6,J2 as V6,H3 as W6,q4 as X6,X4 as Y6,R3 as Z6,T as _6,w3 as $6,L8 as a7,F3 as b7,K3 as c7,L3 as d7,D3 as e7,w0 as f7,k3 as g7,V4 as h7,U3 as i7,x4 as j7,F4 as k7,T8 as l7,L4 as m7,m3 as n7,c3 as o7,d3 as p7,V0 as q7,l as r7,i3 as s7,p8 as t7,t3 as u7,n3 as v7,B2 as w7,P4 as x7,O4 as y7,x9 as z7,t8 as A7,B9 as B7,G9 as C7,_4 as D7,H9 as E7,T4 as F7,n8 as G7,R9 as H7,M4 as I7,S4 as J7,L2 as K7,p4 as L7,U9 as M7,c4 as N7,d4 as O7,N0 as P7,O2 as Q7,I0 as R7,XZ as S7,c0 as T7,s as U7,_2 as V7,h2 as W7,Z7 as X7,VZ as Y7,$7 as Z7,b2 as _7,jZ as $7,zZ as a8,J7 as b8,j0 as c8,RZ as d8,T2 as e8,Q7 as f8,Y7 as g8,M2 as h8,DZ as i8,bZ as j8,kZ as k8,U5 as l8,S2 as m8,UZ as n8,vZ as o8,X7 as p8,w as q8,f2 as r8,Q2 as s8,p0 as t8,d0 as u8,_ as v8,q0 as w8,EZ as x8,b5 as y8,_Z as z8,yZ as A8,f as B8,H5 as C8,hZ as D8,R5 as E8,IZ as F8,G2 as G8,V7 as H8,W7 as I8,k5 as J8,z7 as K8,MZ as L8,fZ as M8,AZ as N8,CZ as O8,uZ as P8,o as Q8};
@@ -0,0 +1,2 @@
1
+ import{Zh as Vq,_h as fq}from"./cli-1.1.18-0xknnw9q.mjs";import{CY as o,DY as pq,JY as Qq,LY as Uq,MY as Hq,nY as Pq,oY as mq}from"./cli-1.1.18-0h118vrj.mjs";import{DZ as Sq,H1 as Wq,a1 as M,c1 as g}from"./cli-1.1.18-2w9274tq.mjs";import{d4 as Z,e4 as F,f4 as Jq}from"./cli-1.1.18-f2j32mha.mjs";import{g4 as _q}from"./cli-1.1.18-cjkn7t4k.mjs";import{hha as s,iha as jq}from"./cli-1.1.18-ndct9t5e.mjs";import{gta as Lq,kta as wq}from"./cli-1.1.18-hvd9yyb4.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
2
+ export{lq as xh,oq as yh,sq as zh,aq as Ah,Tq as Bh};
@@ -0,0 +1,2 @@
1
+ import{_i as J,aj as K,bj as M}from"./cli-1.1.18-yysexesh.mjs";import{DZ as P,H1 as X}from"./cli-1.1.18-2w9274tq.mjs";import{f4 as q}from"./cli-1.1.18-f2j32mha.mjs";import{g4 as N}from"./cli-1.1.18-cjkn7t4k.mjs";import{bfa as H,wfa as Z}from"./cli-1.1.18-3y4pftxb.mjs";import{zha as Y}from"./cli-1.1.18-ndct9t5e.mjs";import{aka as V}from"./cli-1.1.18-hbv881pn.mjs";import{gta as z,kta as Q}from"./cli-1.1.18-hvd9yyb4.mjs";function B(){let k=J();if(!k||!k.available||k.granted)return!1;return K(k)!==null}function E(){if(!B())return!1;let k=H();if(k.hasVisitedExtraUsage)return!1;if((k.overageCreditUpsellSeenCount??0)>=A)return!1;return!0}var R,y,A=3;var D=Q(()=>{X();V();M();Z();Y();q();R=z(P(),1),y=z(N(),1)});
2
+ export{E as _g,D as $g};
@@ -0,0 +1,3 @@
1
+ import{I as x0}from"./cli-1.1.18-wp7r00wk.mjs";import{$ as d0}from"./cli-1.1.18-f8sy5pe3.mjs";import{fb as u0}from"./cli-1.1.18-mqwcfz14.mjs";import{kb as c0}from"./cli-1.1.18-7xc4d1d9.mjs";import{Bc as Vf,zc as y0}from"./cli-1.1.18-bfzft69m.mjs";import{Ec as $,Fc as Uf}from"./cli-1.1.18-f5ggv7be.mjs";import{Hc as O0,Ic as Lf}from"./cli-1.1.18-vymgw42z.mjs";import{bd as q0,cd as o0}from"./cli-1.1.18-ek85fj6n.mjs";import{Yg as m0,Zg as Rf}from"./cli-1.1.18-sdsvkqmn.mjs";import{AG as l0,BG as n,DG as i0,IG as m,JG as Q0,JS as A0,KG as P0,LG as Jf,LS as D0,NS as Xf,TT as _0,ZM as R0,_x as E,bU as C0,co as p,cy as J0,dU as b0,do as g0,eo as f0,fU as Yf,fo as S0,go as F0,hN as a0,ho as $0,iU as N0,kU as Zf,ko as _,lo as a,rH as E0,sH as Qf,vN as U0,xN as n0,zG as T0}from"./cli-1.1.18-xfb4pete.mjs";import{DZ as u,H1 as o,VZ as K0,_Z as zf,a1 as e,c1 as A,g1 as l}from"./cli-1.1.18-2w9274tq.mjs";import{c4 as t,d4 as q,e4 as G,f4 as w}from"./cli-1.1.18-f2j32mha.mjs";import{E5 as k0,F5 as qf,_4 as I0,d5 as Tf}from"./cli-1.1.18-703emt7y.mjs";import{Hga as M0,Kga as Ff,Uea as H0,Wda as H,Zda as K,_ea as j,aea as w0,bfa as i,cea as G0,dfa as B0,kea as d,wfa as X0}from"./cli-1.1.18-3y4pftxb.mjs";import{Eha as W,Iha as e0}from"./cli-1.1.18-ndct9t5e.mjs";import{_ha as W0,gia as h0,mia as ff}from"./cli-1.1.18-7pcfwrhj.mjs";import{Zja as I,aka as c}from"./cli-1.1.18-hbv881pn.mjs";import{dla as s0}from"./cli-1.1.18-ypcye8ae.mjs";import{Nla as S,Vla as t0}from"./cli-1.1.18-3s03nva1.mjs";import{ioa as Y0,oqa as Z0,yra as r0}from"./cli-1.1.18-4c3jqppx.mjs";import{gta as x,lta as B}from"./cli-1.1.18-hvd9yyb4.mjs";c();Xf();r0();import{appendFileSync as Wf}from"fs";Zf();zf();Q0();ff();Ff();c();d();i0();a();var s=x(u(),1);o();w();var v=x(u(),1);function D(){let T=v.c(1),f;if(T[0]===Symbol.for("react.memo_cache_sentinel"))f=G(A,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",q(l,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),T[0]=f;else f=T[0];return f}w();function r(T){let f=s.c(13),{serverName:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(h){I("",{choice:h});f:switch(h){case"yes":case"yes_all":{let M=(K()||{}).enabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{enabledMcpjsonServers:[...M,F]});if(h==="yes_all")H("localSettings",{enableAllProjectMcpServers:!0});L();break f}case"no":{let M=(K()||{}).disabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{disabledMcpjsonServers:[...M,F]});L()}}},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V=`New MCP server found in .mcp.json: ${F}`,Q;if(f[3]!==J)Q=()=>J("no"),f[3]=J,f[4]=Q;else Q=f[4];let z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))z=q(D,{}),f[5]=z;else z=f[5];let R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],f[6]=R;else R=f[6];let X;if(f[7]!==J)X=q(n,{options:R,onChange:(Z)=>J(Z),onCancel:()=>J("no")}),f[7]=J,f[8]=X;else X=f[8];let Y;if(f[9]!==V||f[10]!==Q||f[11]!==X)Y=G(_,{title:V,color:"warning",onCancel:Q,children:[z,X]}),f[9]=V,f[10]=Q,f[11]=X,f[12]=Y;else Y=f[12];return Y}o0();c();o();d();S0();l0();$0();a();g0();var L0=x(u(),1);w();function z0(T){let f=L0.c(21),{serverNames:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(C){let y=K()||{},p0=y.enabledMcpjsonServers||[],j0=y.disabledMcpjsonServers||[],[b,N]=q0(F,(P)=>C.includes(P));if(I("",{approved:b.length,rejected:N.length}),b.length>0){let P=[...new Set([...p0,...b])];H("localSettings",{enabledMcpjsonServers:P})}if(N.length>0){let P=[...new Set([...j0,...N])];H("localSettings",{disabledMcpjsonServers:P})}L()},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V;if(f[3]!==L||f[4]!==F)V=()=>{let C=(K()||{}).disabledMcpjsonServers||[],y=[...new Set([...C,...F])];H("localSettings",{disabledMcpjsonServers:y}),L()},f[3]=L,f[4]=F,f[5]=V;else V=f[5];let Q=V,z=`${F.length} new MCP servers found in .mcp.json`,R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=q(D,{}),f[6]=R;else R=f[6];let X;if(f[7]!==F)X=F.map(v0),f[7]=F,f[8]=X;else X=f[8];let Y;if(f[9]!==Q||f[10]!==J||f[11]!==F||f[12]!==X)Y=q(T0,{options:X,defaultValue:F,onSubmit:J,onCancel:Q,hideIndexes:!0}),f[9]=Q,f[10]=J,f[11]=F,f[12]=X,f[13]=Y;else Y=f[13];let Z;if(f[14]!==Q||f[15]!==z||f[16]!==Y)Z=G(_,{title:z,subtitle:"Select any you wish to enable.",color:"warning",onCancel:Q,hideInputGuide:!0,children:[R,Y]}),f[14]=Q,f[15]=z,f[16]=Y,f[17]=Z;else Z=f[17];let h;if(f[18]===Symbol.for("react.memo_cache_sentinel"))h=q(e,{paddingX:1,children:q(A,{dimColor:!0,italic:!0,children:G(F0,{children:[q(p,{shortcut:"Space",action:"select"}),q(p,{shortcut:"Enter",action:"confirm"}),q(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),f[18]=h;else h=f[18];let O;if(f[19]!==Z)O=G(t,{children:[Z,h]}),f[19]=Z,f[20]=O;else O=f[20];return O}function v0(T){return{label:T,value:T}}Q0();J0();a0();n0();w();async function V0(T){let{servers:f}=R0("project"),F=Object.keys(f).filter((L)=>U0(L)==="pending");if(F.length===0)return;await new Promise((L)=>{let U=()=>void L();if(F.length===1&&F[0]!==void 0){let J=F[0];T.render(q(E,{children:q(m,{children:q(r,{serverName:J,onDone:U})})}))}else T.render(q(E,{children:q(m,{children:q(z0,{serverNames:F,onDone:U})})}))})}J0();Uf();qf();Yf();X0();Vf();X0();s0();t0();class g{frameDurations=[];firstRenderTime;lastRenderTime;record(T){let f=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=f;this.lastRenderTime=f,this.frameDurations.push(T)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let T=this.lastRenderTime-this.firstRenderTime;if(T<=0)return;let F=this.frameDurations.length/(T/1000),L=this.frameDurations.slice().sort((Q,z)=>z-Q),U=Math.max(0,Math.ceil(L.length*0.01)-1),J=L[U],V=J>0?1000/J:0;return{averageFps:Math.round(F*100)/100,low1PctFps:Math.round(V*100)/100}}}Lf();Tf();Jf();Rf();Qf();d();e0();w();function hf(){j((T)=>({...T,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function wf(T,f){return new Promise((F)=>{let L=(U)=>void F(U);T.render(f(L))})}async function x9(T,f,F){return Gf(T,f,{color:"error",beforeExit:F})}async function Gf(T,f,F){let{Text:L}=await import("./ink-1.1.18-s45xz0d5.mjs"),U=F?.color,J=F?.exitCode??1;T.render(U?q(L,{color:U,children:f}):q(L,{children:f})),T.unmount(),await F?.beforeExit?.(),process.exit(J)}function k(T,f,F){return wf(T,(L)=>q(E,{onChangeAppState:F?.onChangeAppState,children:q(m,{children:f(L)})}))}async function u9(T,f){T.render(f),x0(),await T.waitUntilExit(),await D0(0)}async function c9(T,f,F,L,U){if(S(!1)||process.env.IS_DEMO)return!1;W("setupScreens_start");let J=I0(),V=!1;if(y0()){let{MigrationDialog:z}=await import("./MigrationDialog-1.1.18-79c4xptb.mjs");await k(T,(R)=>q(z,{onDone:()=>void R()}))}let Q=i();if(J&&(!Q.theme||!Q.hasCompletedOnboarding)){V=!0;let{Onboarding:z}=await import("./Onboarding-1.1.18-at9smz0c.mjs");await k(T,(R)=>q(z,{onDone:()=>{hf(),R()}}),{onChangeAppState:$})}if(!S(process.env.CLAUBBIT)){if(J&&!H0()){let{TrustDialog:z}=await import("./TrustDialog-1.1.18-q46q6gnr.mjs");await k(T,(R)=>q(z,{commands:L,onDone:R}))}if(Z0(!0),W("setupScreens_after_trust_accepted"),h0(),W0(),N0(),W("setupScreens_after_growthbook_kick"),J){let{errors:z}=E0();if(z.length===0)await V0(T);W("setupScreens_after_mcp_approvals");let R=await b0();if(W("setupScreens_after_claudemd_check"),R){let X=C0(await _0(!0)),{ClaudeMdExternalIncludesDialog:Y}=await import("./ClaudeMdExternalIncludesDialog-1.1.18-11b01q4g.mjs");await k(T,(Z)=>q(Y,{onDone:Z,isStandaloneDialog:!0,externalIncludes:X}))}}}u0(),O0(),W("setupScreens_after_env_applied"),setImmediate(()=>d0());{let z=M0();W("setupScreens_after_tryGetActiveProvider");let R=z?.transport==="anthropic"?z.apiKey?.trim():void 0;if(R){let X=k0(R),Y=B0(X);if(W("setupScreens_after_keyStatus"),Y==="new"){let{ApproveApiKey:Z}=await import("./ApproveApiKey-1.1.18-75srd2ah.mjs");await k(T,(h)=>q(Z,{customApiKeyTruncated:X,onDone:h}),{onChangeAppState:$})}}}if(W("setupScreens_after_custom_api_key"),(f==="bypassPermissions"||F)&&!w0()){let{BypassPermissionsModeDialog:z}=await import("./BypassPermissionsModeDialog-1.1.18-hzr5qznb.mjs");await k(T,(R)=>q(z,{onAccept:R}))}if(f==="auto"&&!G0()){let{AutoModeOptInDialog:z}=await import("./AutoModeOptInDialog-1.1.18-8908as3d.mjs");await k(T,(R)=>q(z,{onAccept:R,onDecline:()=>A0(1),declineExits:!0}))}return W("setupScreens_end"),V}function d9(T){m0();let f=0,F=P0(T);if(F.stdin)I("",{});let L=new g,U=c0();Y0(U);let J=process.env.CLAUDIN_FRAME_TIMING_LOG;return{getFpsMetrics:()=>L.getMetrics(),stats:U,renderOptions:{...F,onFrame:(V)=>{if(L.record(V.durationMs),U.observe("frame_duration_ms",V.durationMs),J&&V.phases){let Q=JSON.stringify({total:V.durationMs,...V.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
2
+ `;Wf(J,Q)}if(K0())return;for(let Q of V.flickers){if(Q.reason==="resize")continue;let z=Date.now();if(z-f<1000)I("",{desiredHeight:Q.desiredHeight,actualHeight:Q.availableHeight,reason:Q.reason});f=z}}}}}
3
+ export{hf as A,wf as B,x9 as C,Gf as D,k as E,u9 as F,c9 as G,d9 as H};
@@ -0,0 +1,2 @@
1
+ import{BM as h,CM as f,Cp as A,Dp as b,GM as c,hM as C,lM as S,oM as O,uM as _,wM as P,xp as N,yp as D,zp as x}from"./cli-1.1.18-xfb4pete.mjs";import{Ica as L,Qca as v,Uda as G,Wda as M,Wga as H,Zda as R,cha as T,kea as E}from"./cli-1.1.18-3y4pftxb.mjs";import{jja as U,lja as F}from"./cli-1.1.18-cj8tr93q.mjs";import{ala as w,dla as y}from"./cli-1.1.18-ypcye8ae.mjs";import{kta as m}from"./cli-1.1.18-hvd9yyb4.mjs";import{join as I}from"path";async function e(){let q=R(),J=[],Q=N();for(let[z,K]of Object.entries(Q))if(z.includes("@")&&K)J.push(z);if(q.enabledPlugins)for(let[z,K]of Object.entries(q.enabledPlugins)){if(!z.includes("@"))continue;let W=J.indexOf(z);if(K){if(W===-1)J.push(z)}else if(W!==-1)J.splice(W,1)}return J}function qq(){let q=new Map,J=N();for(let[z,K]of Object.entries(J)){if(!z.includes("@"))continue;if(K===!0)q.set(z,"flag");else if(K===!1)q.delete(z)}let Q=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:z,source:K}of Q){let W=G(K);if(!W?.enabledPlugins)continue;for(let[V,Y]of Object.entries(W.enabledPlugins)){if(!V.includes("@"))continue;if(V in J&&J[V]!==Y)w(`Plugin ${V} from --add-dir (${J[V]}) overridden by ${K} (${Y})`);if(Y===!0)q.set(V,z);else if(Y===!1)q.delete(V)}}return w(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([z,K])=>`${z}(${K})`).join(", ")}`),q}function zq(q){return x[q]}async function Jq(){_().catch((Q)=>{H(Q)});let q=O(),J=Object.keys(q.plugins);return w(`Found ${J.length} installed plugins`),J}async function Kq(q,J,Q="user"){let z=Q!=="user"?U():void 0,K=A(Q),W=G(K),V={...W?.enabledPlugins},Y=[],B=[];for(let k=0;k<q.length;k++){let X=q[k];if(!X)continue;if(J)J(X,k+1,q.length);try{let Z=await C(X);if(!Z){B.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:j}=Z;if(!L($.source))await h(X,$,Q,z);else f({pluginId:X,installPath:I(j,$.source),version:$.version},Q,z);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);B.push({name:X,error:$}),H(Z)}}return M(K,{...W,enabledPlugins:V}),{installed:Y,failed:B}}var p=m(()=>{F();y();T();E();D();P();S();b();c();v()});
2
+ export{e as Vd,qq as Wd,zq as Xd,Jq as Yd,Kq as Zd,p as _d};
@@ -0,0 +1,2 @@
1
+ import{aka as f}from"./cli-1.1.18-hbv881pn.mjs";import{dla as h}from"./cli-1.1.18-ypcye8ae.mjs";import{kta as Z}from"./cli-1.1.18-hvd9yyb4.mjs";var $=()=>{};var F=Z(()=>{$()});var K;var G=Z(()=>{K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});var M=Z(()=>{G();$();F();_();O()});var _=Z(()=>{G();$();F();M()});var O=Z(()=>{G();$();F();_();M()});var Sz;var I=Z(()=>{$();F();O();G();Sz=Promise.resolve()});async function kz(z){if(!z||z.length>D)return null;return null}async function pz(z){if(!z||z.length>D)return null;return null}function dz(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&x.has(J.text)?[J.text]:[]}let X=[],V=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!V&&J.type==="word"){V=!0,X.push(J.text);continue}if(v.has(J.type))X.push(m(J.text));else if(l.has(J.type))break}return X}function m(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var D=1e4,x,v,l,oz;var L=Z(()=>{f();h();I();x=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),v=new Set(["word","string","raw_string","number"]),l=new Set(["command_substitution","process_substitution"]);oz=Symbol("parse-aborted")});
2
+ export{K as n9,I as o9,kz as p9,oz as q9,pz as r9,dz as s9,L as t9};
@@ -0,0 +1,2 @@
1
+ import{kta as C}from"./cli-1.1.18-hvd9yyb4.mjs";import E from"node:fs";import G from"node:path";import H from"node:os";function A(){if(q!==void 0)return;try{let b=process.env.CLAUDE_FEATURE_FLAGS_FILE||G.join(H.homedir(),".claudin","feature-flags.json"),j=JSON.parse(E.readFileSync(b,"utf-8"));q=j&&typeof j==="object"&&!Array.isArray(j)?j:null}catch{q=null}}function x(b,j){if(A(),q!=null&&Object.hasOwn(q,b))return q[b];if(Object.hasOwn(z,b))return z[b];return j}function O(){return I}function Q(){return!1}function R(){return A(),q||{}}function S(){return{}}function T(){}function U(){}function W(){return}async function Y(b,j){return x(b,j)}function Z(b,j){return x(b,j)}function $(b,j){return x(b,j)}function v(b){return Boolean(x(b,!1))}async function w(b){return!1}async function P(b){return Boolean(x(b,!1))}function B(){}function D(){q=void 0}async function h(){q=void 0}function N(){}function m(){}async function c(b,j){return x(b,j)}function F(b,j){return x(b,j)}var q=void 0,z,I=()=>{},X=async()=>null;var J=C(()=>{z={tengu_sedge_lantern:!0,tengu_passport_quail:!0,tengu_coral_fern:!0,tengu_bramble_lintel:15,tengu_glacier_2xr:!0}});
2
+ export{O as Tha,Q as Uha,R as Vha,S as Wha,T as Xha,U as Yha,W as Zha,X as _ha,Y as $ha,Z as aia,$ as bia,v as cia,w as dia,P as eia,B as fia,D as gia,h as hia,N as iia,m as jia,c as kia,F as lia,J as mia};
@@ -0,0 +1,3 @@
1
+ import{bX as Q,gX as w}from"./cli-1.1.18-27b82jjj.mjs";import{A2 as x,C2 as j}from"./cli-1.1.18-ztyf20j1.mjs";import{$ha as K,mia as Y}from"./cli-1.1.18-7pcfwrhj.mjs";import{cja as k,eja as Z,fja as M,gja as $}from"./cli-1.1.18-esvp6n4e.mjs";import{kta as X}from"./cli-1.1.18-hvd9yyb4.mjs";async function W(){let q=await K("tengu_bridge_repl_v2_config",J),H=y().safeParse(q);return H.success?H.data:J}async function p(){let q=await W();if(q.min_version&&x("99.0.0",q.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
+ Version ${q.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function A(){if(!Q())return!1;return(await W()).should_show_app_upgrade_message}var J,y;var P=X(()=>{Z();Y();$();j();w();J={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},y=M(()=>k.object({init_retry_max_attempts:k.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:k.number().int().min(100).default(500),init_retry_jitter_fraction:k.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:k.number().int().min(500).default(4000),http_timeout_ms:k.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:k.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:k.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:k.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:k.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:k.number().int().min(500).max(2000).default(1500),connect_timeout_ms:k.number().int().min(5000).max(60000).default(15000),min_version:k.string().refine((q)=>{try{return x(q,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:k.boolean().default(!1)}))});
3
+ export{J as ec,W as fc,p as gc,A as hc,P as ic};
@@ -0,0 +1,2 @@
1
+ import{kta as b}from"./cli-1.1.18-hvd9yyb4.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
2
+ export{j as Ze,k as _e,q as $e,w as af,g as bf};
@@ -0,0 +1,2 @@
1
+ import{DZ as O}from"./cli-1.1.18-2w9274tq.mjs";import{d4 as X,f4 as Q}from"./cli-1.1.18-f2j32mha.mjs";import{g4 as b}from"./cli-1.1.18-cjkn7t4k.mjs";import{ifa as W,wfa as P}from"./cli-1.1.18-3y4pftxb.mjs";import{gta as U}from"./cli-1.1.18-hvd9yyb4.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
+ export{V as kb,C as lb};
@@ -0,0 +1,2 @@
1
+ import{kta as M}from"./cli-1.1.18-hvd9yyb4.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
2
+ export{V as Oi,W as Pi,X as Qi,Z as Ri,Y as Si};
@@ -0,0 +1,4 @@
1
+ import{$E as k,Ap as G,Dp as a,Qn as R,Rn as BJ,aF as HJ,nt as D,ot as hJ}from"./cli-1.1.18-xfb4pete.mjs";import{B8 as $J,Q8 as bJ,q8 as ZJ}from"./cli-1.1.18-703emt7y.mjs";import{Uda as WJ,aaa as C,baa as GJ,caa as h,daa as FJ,eaa as u,faa as kJ,kea as jJ}from"./cli-1.1.18-3y4pftxb.mjs";import{aia as x,mia as gJ}from"./cli-1.1.18-7pcfwrhj.mjs";import{cja as q,eja as s,fja as Y,gja as r}from"./cli-1.1.18-esvp6n4e.mjs";import{Jja as M,Oja as yJ}from"./cli-1.1.18-cj8tr93q.mjs";import{Cka as l,Dka as TJ,mka as o,nka as CJ,wka as n,xka as EJ}from"./cli-1.1.18-ypcye8ae.mjs";import{Yma as c,Zma as OJ,ana as H,bna as F,cna as I,cra as QJ,dna as YJ,ema as g,ena as P,fma as zJ,fna as XJ,gma as A,hma as wJ,sma as f,tma as PJ,yra as mJ}from"./cli-1.1.18-4c3jqppx.mjs";import{Hra as K,Ira as DJ}from"./cli-1.1.18-417wb57s.mjs";import{kta as B}from"./cli-1.1.18-hvd9yyb4.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
2
+ ${Q}
3
+ </${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
+ export{NQ as Of,_J as Pf,JJ as Qf,bQ as Rf,uQ as Sf,cJ as Tf,iQ as Uf,oJ as Vf};
@@ -0,0 +1,2 @@
1
+ import{kta as j}from"./cli-1.1.18-hvd9yyb4.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
+ export{q as s3,A as t3,B as u3,D as v3,F as w3,G as x3,H as y3,k as z3};
@@ -0,0 +1,4 @@
1
+ import{fta as Z}from"./cli-1.1.18-j5zh2pdx.mjs";import{ita as Y,lta as O}from"./cli-1.1.18-hvd9yyb4.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
2
+ See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
4
+ export{ye as _sa};
@@ -0,0 +1,2 @@
1
+ import{Az as Uq,Bz as mq,vs as Hq,ws as pq}from"./cli-1.1.18-xfb4pete.mjs";import{q4 as Bq,s4 as dq}from"./cli-1.1.18-948h21gh.mjs";import{K7 as Nq,L7 as yq,Q8 as gq,Z4 as Lq,c5 as jq,d5 as Sq,q8 as i,u8 as S}from"./cli-1.1.18-703emt7y.mjs";import{Gea as Yq,Hea as Dq,I$ as b,Iea as k,Kea as Wq,M$ as $q,Nea as Xq,raa as Gq,taa as Pq}from"./cli-1.1.18-3y4pftxb.mjs";import{cja as N,eja as Mq,fja as E,gja as Cq}from"./cli-1.1.18-esvp6n4e.mjs";import{Qja as Kq,Rja as Qq,Sja as Vq,Xja as Zq,Yja as Rq}from"./cli-1.1.18-k05shz35.mjs";import{Zja as _,aka as e}from"./cli-1.1.18-hbv881pn.mjs";import{Fka as m,Kka as Eq,ala as Y,dka as Fq,dla as Jq,fka as $J}from"./cli-1.1.18-ypcye8ae.mjs";import{Ala as C,Gla as P,Hla as qq}from"./cli-1.1.18-cxg522yt.mjs";import{Ksa as kq,ssa as z}from"./cli-1.1.18-vzrv28w4.mjs";import{jta as ZJ,kta as d,lta as Tq}from"./cli-1.1.18-hvd9yyb4.mjs";var fq,r,s;var t=d(()=>{Mq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as iq,readdir as cq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Lq()!=="firstParty"||!jq())return!1;let q=i();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=i();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:c,validateStatus:(X)=>X===200||X===304||X===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let W=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: fetched successfully (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:W}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:c,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,W)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(W),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let W=V(Z,q[Z]);if(J+W>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=W}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:c,validateStatus:(X)=>X===200||X===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let W=Z.data?.checksum;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,checksum:W,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:W}=P(Q),X=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:W,errorType:X,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await cq(J,{withFileTypes:!0});await Promise.all(Z.map(async(W)=>{let X=uq(J,W.name);if(W.isDirectory())await Q(X);else if(W.isFile())try{let j=await nq(X);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${W.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(X,"utf8"),B=oq(K,X).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let L=H[0];V.push({path:B,ruleId:L.ruleId,label:L.label}),Y(`team-memory-sync: skipping "${B}" — detected ${L.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let W of G.slice(0,q))Z[W]=$[W];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Wq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await iq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return A(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await b();if(!Q)return A(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return A(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return A(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),A(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,W=J.data.content.entryChecksums;if(q.serverChecksums.clear(),W)for(let[j,O]of Object.entries(W))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let X=await VJ(Z);if(X>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.1.18-b6tnjsjw.mjs");j()}return Y(`team-memory-sync: pulled ${X} files`,{level:"info"}),A(V,{success:!0,filesWritten:X}),{success:!0,filesWritten:X,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await b();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let X=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${X}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[X,j]of Object.entries(G))Z.set(X,sq(j));let W=!1;for(let X=0;X<=R;X++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:W,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,L;for(let w of B){if(L=await KJ(q,V,w,q.lastKnownChecksum),!L.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(L=L,L.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:W,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:L.checksum,...J.length>0&&{skippedSecrets:J}};if(!L.conflict){if(L.serverMaxEntries!==void 0)q.serverMaxEntries=L.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${L.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:L.errorType,status:L.httpStatus,errorCode:L.serverErrorCode,serverMaxEntries:L.serverMaxEntries,serverReceivedEntries:L.serverReceivedEntries}),{success:!1,filesUploaded:H,error:L.error,errorType:L.errorType,httpStatus:L.httpStatus}}if(W=!0,X>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${X+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function A(q,K){_("",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var c=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Xq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>bq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>Aq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as WJ}from"fs/promises";import{join as XJ}from"path";function Aq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),Aq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function M(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){M();return}f=jJ()},LJ)}async function vq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),v=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){M();return}if(U!==null){WJ(XJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;M()});return}M()}),v.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>bq())}async function NJ(){if(!Dq()||!_q())return;if(!await b()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await vq(k()),_("",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;M()}async function bq(){if(F)clearTimeout(F),F=null;if(v)v.close(),v=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){v=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return vq(q)}var LJ=2000,v=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Xq();$J();Jq();qq();$q();e();zq()});
2
+ export{Aq as p,NJ as q,BJ as r,bq as s,HJ as t,UJ as u,OJ as v,wJ as w};
@@ -0,0 +1,2 @@
1
+ import{kta as s}from"./cli-1.1.18-hvd9yyb4.mjs";function c(){return"claude-code/99.0.0"}function i(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudin/1.1.18 (${e}${n}${t})`}var r=()=>{};
2
+ export{c as q4,i as r4,r as s4};
@@ -0,0 +1,2 @@
1
+ import{qR as x,tR as B}from"./cli-1.1.18-xfb4pete.mjs";import{kta as z}from"./cli-1.1.18-hvd9yyb4.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 Cg,H as Dg,A as Eg};
@@ -0,0 +1,2 @@
1
+ import{Ww as m,Xw as e}from"./cli-1.1.18-xfb4pete.mjs";import{kta as n}from"./cli-1.1.18-hvd9yyb4.mjs";function c(o){t.setState(()=>[...o])}var t,r=()=>t.getState(),d;var s=n(()=>{e();t=m([]),d=t.subscribe});
2
+ export{r as Cd,d as Dd,c as Ed,s as Fd};
@@ -0,0 +1,2 @@
1
+ import{cta as n}from"./cli-1.1.18-j5zh2pdx.mjs";import{ita as r}from"./cli-1.1.18-hvd9yyb4.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
2
+ export{i as h_};
@@ -0,0 +1,2 @@
1
+ import{Xa as c}from"./cli-1.1.18-s5nhwqft.mjs";import{vd as v,zd as Wq}from"./cli-1.1.18-avhbxgh1.mjs";import{Cd as I,Dd as S,Ed as $,Fd as Xq}from"./cli-1.1.18-9cpcw7fg.mjs";import{$x as L,JF as E,KF as Qq,MD as M,MM as P,Mu as N,Nu as e,PM as Vq,SD as Jq,ay as h,cy as qq,rp as C,sz as A,tp as r,tz as Bq,uL as f,vL as Tq,xz as _,zz as Gq}from"./cli-1.1.18-xfb4pete.mjs";import{g4 as s}from"./cli-1.1.18-cjkn7t4k.mjs";import{J_ as D,L_ as n,Wga as F,cha as a,raa as w,taa as t}from"./cli-1.1.18-3y4pftxb.mjs";import{Zja as x,aka as d}from"./cli-1.1.18-hbv881pn.mjs";import{ala as j,dla as o}from"./cli-1.1.18-ypcye8ae.mjs";import{Hla as l,zla as y}from"./cli-1.1.18-cxg522yt.mjs";import{gta as p}from"./cli-1.1.18-hvd9yyb4.mjs";Qq();d();Gq();qq();Xq();t();o();n();l();a();e();Tq();Jq();Bq();r();var V=p(s(),1);Wq();Vq();function hq({enabled:W=!0}={}){let b=V.useSyncExternalStore(S,I,I),H=h(),O=L((J)=>J.plugins.needsRefresh),{addNotification:z}=E(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await P();await c();let X=v();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await f(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await M()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await A(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);_(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDIN_PLUGIN_CACHE_DIR};x("",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
+ export{hq as Wa};