@claudiolabs/claudin 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (911) hide show
  1. package/dist/chunks/AgentTool-1.0.13-6b06g673.mjs +1 -0
  2. package/dist/chunks/App-1.0.13-ka050dp3.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.13-f6p2r5kq.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.13-ghffkhts.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.13-5b244jsj.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.13-gwgar56n.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.13-2jaehz54.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.13-t887gwxz.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.13-85gxb6k8.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.13-hdw88war.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.13-m0d78jq0.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.13-4z7zd6n8.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.13-6xc5sc8a.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.13-hhrgw5xc.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.13-byv83gyv.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.13-gt6ntzcv.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.13-wjxj6xgk.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.13-tx1ek47f.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.13-4j2e4s72.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.13-1rpjcxph.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.13-5fgav722.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.13-gy4sr83e.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.13-t98nfbxk.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.13-n5wg1rcd.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.13-xdkp37x2.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.13-v0kphhga.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.13-7v5rg7km.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.13-k5wckd5y.mjs +1 -0
  31. package/dist/chunks/agents-1.0.13-ngbk16a3.mjs +3 -0
  32. package/dist/chunks/agents-1.0.13-tcqasxmv.mjs +110 -0
  33. package/dist/chunks/api-1.0.13-bvwz0wzt.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.13-j8ad859r.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.13-91499j0p.mjs +1 -0
  36. package/dist/chunks/auth-1.0.13-p0qrnz2b.mjs +1 -0
  37. package/dist/chunks/auth-1.0.13-s1vedchg.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.13-61pvskhh.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.13-fnpzj0bw.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.13-92x690ww.mjs +1 -0
  41. package/dist/chunks/branch-1.0.13-encr40nd.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.13-xfcd961b.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.13-m2jyf3zk.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.13-2chm7y0g.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.13-d64q1ebx.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.13-npck2cd4.mjs +1 -0
  47. package/dist/chunks/btw-1.0.13-55x872ns.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.13-9dmgywzm.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.13-3c5hrrs4.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.13-n8g8y16c.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.13-2kyncvct.mjs +4 -0
  52. package/dist/chunks/caches-1.0.13-md3zkabd.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.13-crk87hee.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.13-y42xe571.mjs +1 -0
  55. package/dist/chunks/clear-1.0.13-g8a3zjew.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.13-4k4snh0r.mjs +1 -0
  57. package/dist/chunks/cli-1.0.13-01n6gr4q.mjs +2 -0
  58. package/dist/chunks/cli-1.0.13-0357cnwe.mjs +2 -0
  59. package/dist/chunks/cli-1.0.13-14c24kge.mjs +2 -0
  60. package/dist/chunks/cli-1.0.13-19k4k5jx.mjs +2 -0
  61. package/dist/chunks/cli-1.0.13-1dk8e4ny.mjs +3 -0
  62. package/dist/chunks/cli-1.0.13-1hcywhe5.mjs +2 -0
  63. package/dist/chunks/cli-1.0.13-1hdbaf71.mjs +3 -0
  64. package/dist/chunks/cli-1.0.13-1qbvvc2e.mjs +4 -0
  65. package/dist/chunks/cli-1.0.13-23ev2ept.mjs +45 -0
  66. package/dist/chunks/cli-1.0.13-29x94tf7.mjs +2 -0
  67. package/dist/chunks/cli-1.0.13-2x789qav.mjs +2 -0
  68. package/dist/chunks/cli-1.0.13-2xpprn71.mjs +1 -0
  69. package/dist/chunks/cli-1.0.13-2z8q1mtz.mjs +3 -0
  70. package/dist/chunks/cli-1.0.13-36yeyd1r.mjs +18 -0
  71. package/dist/chunks/cli-1.0.13-3767t4yj.mjs +4 -0
  72. package/dist/chunks/cli-1.0.13-3c13b00m.mjs +2 -0
  73. package/dist/chunks/cli-1.0.13-3dmmr756.mjs +2 -0
  74. package/dist/chunks/cli-1.0.13-3essvqs1.mjs +2 -0
  75. package/dist/chunks/cli-1.0.13-3f0zqjp8.mjs +2 -0
  76. package/dist/chunks/cli-1.0.13-3fs84evm.mjs +2 -0
  77. package/dist/chunks/cli-1.0.13-3pspajgg.mjs +15 -0
  78. package/dist/chunks/cli-1.0.13-3rqmqts3.mjs +2 -0
  79. package/dist/chunks/cli-1.0.13-449f1p6g.mjs +2 -0
  80. package/dist/chunks/cli-1.0.13-466jbd1q.mjs +2 -0
  81. package/dist/chunks/cli-1.0.13-4dp5a597.mjs +6 -0
  82. package/dist/chunks/cli-1.0.13-4x3mr6wk.mjs +2 -0
  83. package/dist/chunks/cli-1.0.13-57993qn6.mjs +2 -0
  84. package/dist/chunks/cli-1.0.13-57ez593b.mjs +3 -0
  85. package/dist/chunks/cli-1.0.13-5g7rhqvq.mjs +4 -0
  86. package/dist/chunks/cli-1.0.13-5keyjg3e.mjs +58 -0
  87. package/dist/chunks/cli-1.0.13-5m2br5vf.mjs +2 -0
  88. package/dist/chunks/cli-1.0.13-5sc2h2hm.mjs +2 -0
  89. package/dist/chunks/cli-1.0.13-5sq4jbf1.mjs +2 -0
  90. package/dist/chunks/cli-1.0.13-696y87my.mjs +18 -0
  91. package/dist/chunks/cli-1.0.13-6b6kn6sd.mjs +2 -0
  92. package/dist/chunks/cli-1.0.13-6thbqr6g.mjs +2 -0
  93. package/dist/chunks/cli-1.0.13-6vb140br.mjs +25 -0
  94. package/dist/chunks/cli-1.0.13-6w1rqgrf.mjs +2 -0
  95. package/dist/chunks/cli-1.0.13-6xc8qzyr.mjs +2 -0
  96. package/dist/chunks/cli-1.0.13-6xkw8tq6.mjs +2 -0
  97. package/dist/chunks/cli-1.0.13-7kg0qv18.mjs +2 -0
  98. package/dist/chunks/cli-1.0.13-7nmrp6gh.mjs +2 -0
  99. package/dist/chunks/cli-1.0.13-7rg014zx.mjs +5 -0
  100. package/dist/chunks/cli-1.0.13-7xfra4by.mjs +2 -0
  101. package/dist/chunks/cli-1.0.13-80pk1w5c.mjs +2 -0
  102. package/dist/chunks/cli-1.0.13-81s2z4sy.mjs +2 -0
  103. package/dist/chunks/cli-1.0.13-83vckpyr.mjs +6 -0
  104. package/dist/chunks/cli-1.0.13-8s33s84f.mjs +2 -0
  105. package/dist/chunks/cli-1.0.13-93twxc7q.mjs +2 -0
  106. package/dist/chunks/cli-1.0.13-98a94f4b.mjs +2 -0
  107. package/dist/chunks/cli-1.0.13-9ax4vv5d.mjs +2 -0
  108. package/dist/chunks/cli-1.0.13-9bh8f53y.mjs +9 -0
  109. package/dist/chunks/cli-1.0.13-9t0q538w.mjs +25 -0
  110. package/dist/chunks/cli-1.0.13-a2j673qk.mjs +2 -0
  111. package/dist/chunks/cli-1.0.13-a5641ktm.mjs +2 -0
  112. package/dist/chunks/cli-1.0.13-a77ea1ga.mjs +2 -0
  113. package/dist/chunks/cli-1.0.13-a8t9066b.mjs +2 -0
  114. package/dist/chunks/cli-1.0.13-afdk25h0.mjs +2 -0
  115. package/dist/chunks/cli-1.0.13-avxss6zg.mjs +9 -0
  116. package/dist/chunks/cli-1.0.13-bj2neb84.mjs +2 -0
  117. package/dist/chunks/cli-1.0.13-bs0esgv1.mjs +2 -0
  118. package/dist/chunks/cli-1.0.13-byhjhrrg.mjs +15 -0
  119. package/dist/chunks/cli-1.0.13-cm3q208z.mjs +2 -0
  120. package/dist/chunks/cli-1.0.13-cwce8b7b.mjs +34 -0
  121. package/dist/chunks/cli-1.0.13-d016ffc7.mjs +3 -0
  122. package/dist/chunks/cli-1.0.13-d4zr1yqd.mjs +2 -0
  123. package/dist/chunks/cli-1.0.13-d7kr7nkk.mjs +2 -0
  124. package/dist/chunks/cli-1.0.13-d9nvpqpw.mjs +2 -0
  125. package/dist/chunks/cli-1.0.13-dg21ms7f.mjs +2 -0
  126. package/dist/chunks/cli-1.0.13-dwp60tja.mjs +2 -0
  127. package/dist/chunks/cli-1.0.13-e19bb64d.mjs +4 -0
  128. package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +2 -0
  129. package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +2 -0
  130. package/dist/chunks/cli-1.0.13-e464ab16.mjs +2 -0
  131. package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +2 -0
  132. package/dist/chunks/cli-1.0.13-e9q9245e.mjs +2 -0
  133. package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +2 -0
  134. package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +3 -0
  135. package/dist/chunks/cli-1.0.13-f38bh25k.mjs +12 -0
  136. package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +133 -0
  137. package/dist/chunks/cli-1.0.13-fb695nhr.mjs +67 -0
  138. package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +2 -0
  139. package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +2 -0
  140. package/dist/chunks/cli-1.0.13-frs40s6h.mjs +2 -0
  141. package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +2 -0
  142. package/dist/chunks/cli-1.0.13-fta82vnx.mjs +2 -0
  143. package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +8 -0
  144. package/dist/chunks/cli-1.0.13-g7daabde.mjs +3 -0
  145. package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +2 -0
  146. package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +2 -0
  147. package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +16 -0
  148. package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +2 -0
  149. package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +39 -0
  150. package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +2 -0
  151. package/dist/chunks/cli-1.0.13-jdxaky02.mjs +12 -0
  152. package/dist/chunks/cli-1.0.13-jkahzkac.mjs +12 -0
  153. package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +2 -0
  154. package/dist/chunks/cli-1.0.13-jsezewz5.mjs +2 -0
  155. package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +2 -0
  156. package/dist/chunks/cli-1.0.13-k4znag0a.mjs +2 -0
  157. package/dist/chunks/cli-1.0.13-k71bq854.mjs +2 -0
  158. package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +2 -0
  159. package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +2 -0
  160. package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +12 -0
  161. package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +2 -0
  162. package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +3 -0
  163. package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +7 -0
  164. package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +2 -0
  165. package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +5495 -0
  166. package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +2 -0
  167. package/dist/chunks/cli-1.0.13-mazxedqg.mjs +4 -0
  168. package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +2 -0
  169. package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +59 -0
  170. package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +2 -0
  171. package/dist/chunks/cli-1.0.13-ndthc14d.mjs +2 -0
  172. package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +2 -0
  173. package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +15 -0
  174. package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +202 -0
  175. package/dist/chunks/cli-1.0.13-p43t5py0.mjs +2 -0
  176. package/dist/chunks/cli-1.0.13-p7b51har.mjs +2 -0
  177. package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +2 -0
  178. package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +6 -0
  179. package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +2 -0
  180. package/dist/chunks/cli-1.0.13-pwfpt641.mjs +2 -0
  181. package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +17 -0
  182. package/dist/chunks/cli-1.0.13-q40za40w.mjs +50 -0
  183. package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +2 -0
  184. package/dist/chunks/cli-1.0.13-qx079tft.mjs +2 -0
  185. package/dist/chunks/cli-1.0.13-qxebhem2.mjs +2 -0
  186. package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +2 -0
  187. package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +2 -0
  188. package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +4 -0
  189. package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +2 -0
  190. package/dist/chunks/cli-1.0.13-rhptvh17.mjs +2 -0
  191. package/dist/chunks/cli-1.0.13-rxd329nn.mjs +24 -0
  192. package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +2 -0
  193. package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +2 -0
  194. package/dist/chunks/cli-1.0.13-s15merj9.mjs +2 -0
  195. package/dist/chunks/cli-1.0.13-s16wgevn.mjs +2 -0
  196. package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +2 -0
  197. package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +24 -0
  198. package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +2 -0
  199. package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +20 -0
  200. package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +2 -0
  201. package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +24 -0
  202. package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +2 -0
  203. package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +2 -0
  204. package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +2 -0
  205. package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +2 -0
  206. package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +2 -0
  207. package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +17 -0
  208. package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +2 -0
  209. package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +2 -0
  210. package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +3 -0
  211. package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +2 -0
  212. package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +2 -0
  213. package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +2 -0
  214. package/dist/chunks/cli-1.0.13-trkevtw9.mjs +2 -0
  215. package/dist/chunks/cli-1.0.13-tyhtztew.mjs +2 -0
  216. package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +21 -0
  217. package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +2 -0
  218. package/dist/chunks/cli-1.0.13-v4annnm3.mjs +2 -0
  219. package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +4 -0
  220. package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +133 -0
  221. package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +2 -0
  222. package/dist/chunks/cli-1.0.13-vb85p8we.mjs +2 -0
  223. package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +2 -0
  224. package/dist/chunks/cli-1.0.13-vd01re4x.mjs +2 -0
  225. package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +2 -0
  226. package/dist/chunks/cli-1.0.13-vs4d56js.mjs +2 -0
  227. package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +2 -0
  228. package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +5 -0
  229. package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +2 -0
  230. package/dist/chunks/cli-1.0.13-w5jash5n.mjs +2 -0
  231. package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +2 -0
  232. package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +2 -0
  233. package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +6 -0
  234. package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +2 -0
  235. package/dist/chunks/cli-1.0.13-wsk4823v.mjs +2 -0
  236. package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +4 -0
  237. package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +3 -0
  238. package/dist/chunks/cli-1.0.13-xajnmhak.mjs +2 -0
  239. package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +2 -0
  240. package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +2 -0
  241. package/dist/chunks/cli-1.0.13-xr55511t.mjs +2 -0
  242. package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +42 -0
  243. package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +18 -0
  244. package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +6 -0
  245. package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +2 -0
  246. package/dist/chunks/cli-1.0.13-y74xv34r.mjs +4 -0
  247. package/dist/chunks/cli-1.0.13-yb1smx77.mjs +2 -0
  248. package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +4 -0
  249. package/dist/chunks/cli-1.0.13-yq7961x3.mjs +4 -0
  250. package/dist/chunks/cli-1.0.13-yr590qbp.mjs +3 -0
  251. package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +2 -0
  252. package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +2 -0
  253. package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +3 -0
  254. package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +2 -0
  255. package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +2 -0
  256. package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +2 -0
  257. package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +2 -0
  258. package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +2 -0
  259. package/dist/chunks/client-1.0.13-jj0v4n27.mjs +1 -0
  260. package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +1 -0
  261. package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +3 -0
  262. package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +1 -0
  263. package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +1 -0
  264. package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +1 -0
  265. package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +1 -0
  266. package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +1 -0
  267. package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +1 -0
  268. package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +1 -0
  269. package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +9 -0
  270. package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +1 -0
  271. package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +1 -0
  272. package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +1 -0
  273. package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +1 -0
  274. package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +1446 -0
  275. package/dist/chunks/desktop-1.0.13-e005km58.mjs +1 -0
  276. package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +1 -0
  277. package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +1 -0
  278. package/dist/chunks/diff-1.0.13-9jypv082.mjs +1 -0
  279. package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +1 -0
  280. package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +1 -0
  281. package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +1 -0
  282. package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +10 -0
  283. package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +1 -0
  284. package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +1 -0
  285. package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +1 -0
  286. package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +1 -0
  287. package/dist/chunks/environments-1.0.13-w5a33d52.mjs +1 -0
  288. package/dist/chunks/errors-1.0.13-wrs4k863.mjs +1 -0
  289. package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +1 -0
  290. package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +1 -0
  291. package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +1 -0
  292. package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +1 -0
  293. package/dist/chunks/export-1.0.13-cbatvd1c.mjs +2 -0
  294. package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +1 -0
  295. package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +1 -0
  296. package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +1 -0
  297. package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +14 -0
  298. package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +1 -0
  299. package/dist/chunks/git-1.0.13-9196pgzv.mjs +1 -0
  300. package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +1 -0
  301. package/dist/chunks/goal-1.0.13-cty957vz.mjs +4 -0
  302. package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +1 -0
  303. package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +1 -0
  304. package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +2 -0
  305. package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +6 -0
  306. package/dist/chunks/help-1.0.13-em333cwb.mjs +1 -0
  307. package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +3 -0
  308. package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +79 -0
  309. package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +1 -0
  310. package/dist/chunks/ide-1.0.13-4z1afk08.mjs +3 -0
  311. package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +1 -0
  312. package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +1 -0
  313. package/dist/chunks/index-1.0.13-361h9v63.mjs +1 -0
  314. package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +1 -0
  315. package/dist/chunks/index-1.0.13-55th4hhq.mjs +1 -0
  316. package/dist/chunks/index-1.0.13-55vgc9cr.mjs +1 -0
  317. package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +1 -0
  318. package/dist/chunks/index-1.0.13-792fhv61.mjs +1 -0
  319. package/dist/chunks/index-1.0.13-8k0904bs.mjs +1 -0
  320. package/dist/chunks/index-1.0.13-ace8202d.mjs +2 -0
  321. package/dist/chunks/index-1.0.13-e20f9w6f.mjs +1 -0
  322. package/dist/chunks/index-1.0.13-efh2qbe0.mjs +1 -0
  323. package/dist/chunks/index-1.0.13-ej84k860.mjs +1 -0
  324. package/dist/chunks/index-1.0.13-fnd36467.mjs +2 -0
  325. package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +30 -0
  326. package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +1 -0
  327. package/dist/chunks/index-1.0.13-j0146ntq.mjs +1 -0
  328. package/dist/chunks/index-1.0.13-jackh0p4.mjs +17 -0
  329. package/dist/chunks/index-1.0.13-kfmh713v.mjs +9 -0
  330. package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +1 -0
  331. package/dist/chunks/index-1.0.13-rrm8s54m.mjs +1 -0
  332. package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +1 -0
  333. package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +5 -0
  334. package/dist/chunks/index-1.0.13-y5wahjbd.mjs +9 -0
  335. package/dist/chunks/index-1.0.13-ykat42gv.mjs +1 -0
  336. package/dist/chunks/init-1.0.13-pyw980be.mjs +1 -0
  337. package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +1 -0
  338. package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +1 -0
  339. package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +870 -0
  340. package/dist/chunks/install-1.0.13-afmkvg4q.mjs +1 -0
  341. package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +149 -0
  342. package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +1 -0
  343. package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +1 -0
  344. package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +1 -0
  345. package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +2 -0
  346. package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +2 -0
  347. package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +1 -0
  348. package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +1 -0
  351. package/dist/chunks/log-1.0.13-3sscdqcx.mjs +1 -0
  352. package/dist/chunks/main-1.0.13-h958ytkv.mjs +1 -0
  353. package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +4 -0
  355. package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +1 -0
  356. package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +17 -0
  357. package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +1 -0
  358. package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +72 -0
  359. package/dist/chunks/model-1.0.13-28wkmva5.mjs +2 -0
  360. package/dist/chunks/model-1.0.13-wbne69bf.mjs +1 -0
  361. package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +12 -0
  362. package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +1 -0
  363. package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +14 -0
  364. package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +1 -0
  365. package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +1 -0
  366. package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +1 -0
  367. package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +1 -0
  368. package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +1 -0
  369. package/dist/chunks/permissions-1.0.13-091a123r.mjs +1 -0
  370. package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +3 -0
  371. package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +1 -0
  372. package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +1 -0
  373. package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +29 -0
  374. package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +1 -0
  375. package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +9 -0
  376. package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +2 -0
  377. package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +57 -0
  378. package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +1 -0
  379. package/dist/chunks/process-1.0.13-yvqmferw.mjs +1 -0
  380. package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +1 -0
  381. package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +9 -0
  382. package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +1 -0
  383. package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +1 -0
  384. package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +1 -0
  385. package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +13 -0
  386. package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +2 -0
  387. package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +1 -0
  388. package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +6 -0
  389. package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +1 -0
  390. package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +34 -0
  391. package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +1 -0
  392. package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +5 -0
  393. package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +2 -0
  394. package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +1 -0
  395. package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +1 -0
  396. package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +1 -0
  397. package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +1 -0
  398. package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +1 -0
  399. package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +1 -0
  400. package/dist/chunks/resume-1.0.13-g7w8k889.mjs +2 -0
  401. package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +1 -0
  402. package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +1 -0
  403. package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +10 -0
  404. package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +1 -0
  405. package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +1 -0
  406. package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +2 -0
  407. package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +1 -0
  408. package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +1 -0
  409. package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +1 -0
  410. package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +1 -0
  411. package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +5 -0
  412. package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +1 -0
  413. package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +1 -0
  414. package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +1 -0
  415. package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +1 -0
  416. package/dist/chunks/state-1.0.13-zq29wtdm.mjs +1 -0
  417. package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +6 -0
  418. package/dist/chunks/status-1.0.13-t69r10gd.mjs +1 -0
  419. package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +1 -0
  420. package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +1 -0
  421. package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +1 -0
  422. package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +1 -0
  423. package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +1 -0
  424. package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +1 -0
  425. package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +1 -0
  426. package/dist/chunks/theme-1.0.13-qh1caywb.mjs +1 -0
  427. package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +1 -0
  428. package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +1 -0
  429. package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +1 -0
  430. package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +1 -0
  431. package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +1 -0
  432. package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +1 -0
  433. package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +69 -0
  434. package/dist/chunks/types-1.0.13-7xc46cqv.mjs +1 -0
  435. package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +4 -0
  436. package/dist/chunks/update-1.0.13-yevsj7ad.mjs +88 -0
  437. package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +1 -0
  438. package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +7 -0
  439. package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +14 -0
  440. package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +1 -0
  441. package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +1 -0
  442. package/dist/chunks/util-1.0.13-87gxb90q.mjs +1 -0
  443. package/dist/chunks/utils-1.0.13-c5pe460e.mjs +1 -0
  444. package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +1 -0
  445. package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +13 -0
  446. package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +1 -0
  447. package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +132 -0
  448. package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +1 -0
  449. package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +1 -0
  450. package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +1 -0
  451. package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +7 -0
  452. package/dist/cli.mjs +2 -2
  453. package/package.json +9 -9
  454. package/dist/chunks/AgentTool-1.0.11-51wwd7wk.mjs +0 -1
  455. package/dist/chunks/App-1.0.11-pm9011yz.mjs +0 -1
  456. package/dist/chunks/ApproveApiKey-1.0.11-brap6ck8.mjs +0 -1
  457. package/dist/chunks/AssistantSessionChooser-1.0.11-jnc5xewa.mjs +0 -1
  458. package/dist/chunks/AutoModeOptInDialog-1.0.11-xqtjcrwz.mjs +0 -1
  459. package/dist/chunks/BypassPermissionsModeDialog-1.0.11-bxa57c6k.mjs +0 -1
  460. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.11-mjk4k0cx.mjs +0 -1
  461. package/dist/chunks/ConsoleOAuthFlow-1.0.11-28pf6qdg.mjs +0 -1
  462. package/dist/chunks/DiffDialog-1.0.11-1t1esa8x.mjs +0 -7
  463. package/dist/chunks/Doctor-1.0.11-8ph3cvb4.mjs +0 -1
  464. package/dist/chunks/ExplorerDialog-1.0.11-vmj5g24t.mjs +0 -6
  465. package/dist/chunks/Grove-1.0.11-gqz1s2hw.mjs +0 -1
  466. package/dist/chunks/ITermBackend-1.0.11-sp997kvb.mjs +0 -1
  467. package/dist/chunks/InvalidConfigDialog-1.0.11-rsg2ab6t.mjs +0 -1
  468. package/dist/chunks/InvalidSettingsDialog-1.0.11-ryxhg4xz.mjs +0 -1
  469. package/dist/chunks/MigrationDialog-1.0.11-zz173d7f.mjs +0 -1
  470. package/dist/chunks/Onboarding-1.0.11-wpyzhmgg.mjs +0 -1
  471. package/dist/chunks/ProviderManager-1.0.11-snwn3vnq.mjs +0 -1
  472. package/dist/chunks/REPL-1.0.11-es569p75.mjs +0 -1
  473. package/dist/chunks/ResumeConversation-1.0.11-nzzsenn0.mjs +0 -1
  474. package/dist/chunks/SnapshotUpdateDialog-1.0.11-m4xce3w5.mjs +0 -1
  475. package/dist/chunks/TeleportProgress-1.0.11-9fvywbm0.mjs +0 -1
  476. package/dist/chunks/TeleportRepoMismatchDialog-1.0.11-771nz956.mjs +0 -1
  477. package/dist/chunks/TeleportResumeWrapper-1.0.11-rd3v56nj.mjs +0 -1
  478. package/dist/chunks/TmuxBackend-1.0.11-k9k5y3y4.mjs +0 -9
  479. package/dist/chunks/ToolSearchTool-1.0.11-0cdptpgv.mjs +0 -1
  480. package/dist/chunks/TrustDialog-1.0.11-hsv11vk4.mjs +0 -1
  481. package/dist/chunks/activeProvider-1.0.11-p0x6aawy.mjs +0 -1
  482. package/dist/chunks/add-dir-1.0.11-v1gcads2.mjs +0 -1
  483. package/dist/chunks/agentTypes-1.0.11-3gahzent.mjs +0 -1
  484. package/dist/chunks/agents-1.0.11-5cce4kg1.mjs +0 -3
  485. package/dist/chunks/agents-1.0.11-g1tyqxn4.mjs +0 -110
  486. package/dist/chunks/api-1.0.11-p56n9vgp.mjs +0 -1
  487. package/dist/chunks/asciicast-1.0.11-zxg6ccb8.mjs +0 -1
  488. package/dist/chunks/assistant-1.0.11-99e046z4.mjs +0 -1
  489. package/dist/chunks/auth-1.0.11-2f1jz2ja.mjs +0 -1
  490. package/dist/chunks/auth-1.0.11-c765544a.mjs +0 -1
  491. package/dist/chunks/autoMode-1.0.11-0azcy0cz.mjs +0 -48
  492. package/dist/chunks/autoUpdater-1.0.11-w9kx7xt1.mjs +0 -1
  493. package/dist/chunks/backgroundHousekeeping-1.0.11-2aqxrfna.mjs +0 -1
  494. package/dist/chunks/branch-1.0.11-fn3555x1.mjs +0 -4
  495. package/dist/chunks/bridge-1.0.11-vhgwj7ny.mjs +0 -2
  496. package/dist/chunks/bridgeConfig-1.0.11-1pk1ews4.mjs +0 -1
  497. package/dist/chunks/bridgeEnabled-1.0.11-9s33fn2r.mjs +0 -1
  498. package/dist/chunks/bridgeMain-1.0.11-r8f8gzeb.mjs +0 -88
  499. package/dist/chunks/bridgePointer-1.0.11-6gtx4d2f.mjs +0 -1
  500. package/dist/chunks/btw-1.0.11-njxjksj7.mjs +0 -1
  501. package/dist/chunks/buddy-1.0.11-691ezen5.mjs +0 -3
  502. package/dist/chunks/cacache-1.0.11-fzw2ra6s.mjs +0 -1
  503. package/dist/chunks/cache-probe-1.0.11-5m649n3w.mjs +0 -21
  504. package/dist/chunks/cacheStats-1.0.11-vk1bb0kj.mjs +0 -4
  505. package/dist/chunks/caches-1.0.11-vcprvzgt.mjs +0 -1
  506. package/dist/chunks/claudeDesktop-1.0.11-z6vfzw1r.mjs +0 -1
  507. package/dist/chunks/claudemd-1.0.11-nnrcfp85.mjs +0 -1
  508. package/dist/chunks/clear-1.0.11-c4v85tmh.mjs +0 -1
  509. package/dist/chunks/clearTerminal-1.0.11-kqsh7p0y.mjs +0 -1
  510. package/dist/chunks/cli-1.0.11-0080tds0.mjs +0 -2
  511. package/dist/chunks/cli-1.0.11-02c1mb73.mjs +0 -2
  512. package/dist/chunks/cli-1.0.11-04bmcgy4.mjs +0 -3
  513. package/dist/chunks/cli-1.0.11-0h29g56n.mjs +0 -12
  514. package/dist/chunks/cli-1.0.11-0hgxjye5.mjs +0 -2
  515. package/dist/chunks/cli-1.0.11-0k9vxqqs.mjs +0 -2
  516. package/dist/chunks/cli-1.0.11-0p1zjqp0.mjs +0 -3
  517. package/dist/chunks/cli-1.0.11-0ygk88t0.mjs +0 -2
  518. package/dist/chunks/cli-1.0.11-17xvt04z.mjs +0 -1
  519. package/dist/chunks/cli-1.0.11-1bd5qq69.mjs +0 -2
  520. package/dist/chunks/cli-1.0.11-1dfxqwgc.mjs +0 -2
  521. package/dist/chunks/cli-1.0.11-1egpf6qs.mjs +0 -3
  522. package/dist/chunks/cli-1.0.11-1h7wxdn7.mjs +0 -4
  523. package/dist/chunks/cli-1.0.11-1yxgtmp3.mjs +0 -2
  524. package/dist/chunks/cli-1.0.11-20fenyw9.mjs +0 -2
  525. package/dist/chunks/cli-1.0.11-20pm81fa.mjs +0 -2
  526. package/dist/chunks/cli-1.0.11-21pm4290.mjs +0 -2
  527. package/dist/chunks/cli-1.0.11-2f4t6spn.mjs +0 -2
  528. package/dist/chunks/cli-1.0.11-2ge7zan7.mjs +0 -6
  529. package/dist/chunks/cli-1.0.11-2mxpjt2m.mjs +0 -2
  530. package/dist/chunks/cli-1.0.11-2nbsr4t1.mjs +0 -24
  531. package/dist/chunks/cli-1.0.11-31z6bxf0.mjs +0 -2
  532. package/dist/chunks/cli-1.0.11-34p85p1q.mjs +0 -2
  533. package/dist/chunks/cli-1.0.11-3asbkm7z.mjs +0 -15
  534. package/dist/chunks/cli-1.0.11-3m3v9403.mjs +0 -2
  535. package/dist/chunks/cli-1.0.11-3r6e6fsh.mjs +0 -2
  536. package/dist/chunks/cli-1.0.11-3vhtf247.mjs +0 -2
  537. package/dist/chunks/cli-1.0.11-4ae83btb.mjs +0 -2
  538. package/dist/chunks/cli-1.0.11-4bzn0waz.mjs +0 -2
  539. package/dist/chunks/cli-1.0.11-4c594q99.mjs +0 -2
  540. package/dist/chunks/cli-1.0.11-4cr2bh6m.mjs +0 -18
  541. package/dist/chunks/cli-1.0.11-4e7jvdzx.mjs +0 -2
  542. package/dist/chunks/cli-1.0.11-4hjx21ar.mjs +0 -4
  543. package/dist/chunks/cli-1.0.11-4j1ph26v.mjs +0 -5
  544. package/dist/chunks/cli-1.0.11-4pgk7w6b.mjs +0 -2
  545. package/dist/chunks/cli-1.0.11-4qv7w4kd.mjs +0 -2
  546. package/dist/chunks/cli-1.0.11-4tk11fqk.mjs +0 -2
  547. package/dist/chunks/cli-1.0.11-52j8yhqv.mjs +0 -2
  548. package/dist/chunks/cli-1.0.11-570zfkf5.mjs +0 -2
  549. package/dist/chunks/cli-1.0.11-62faj8qv.mjs +0 -2
  550. package/dist/chunks/cli-1.0.11-632mfg4h.mjs +0 -4
  551. package/dist/chunks/cli-1.0.11-6j7kbwbk.mjs +0 -2
  552. package/dist/chunks/cli-1.0.11-6wkx2g7v.mjs +0 -2
  553. package/dist/chunks/cli-1.0.11-6x5rqzvq.mjs +0 -2
  554. package/dist/chunks/cli-1.0.11-6xv0bp4t.mjs +0 -2
  555. package/dist/chunks/cli-1.0.11-705n21zz.mjs +0 -2
  556. package/dist/chunks/cli-1.0.11-70hj75wn.mjs +0 -2
  557. package/dist/chunks/cli-1.0.11-70kbq4w3.mjs +0 -2
  558. package/dist/chunks/cli-1.0.11-738xq402.mjs +0 -2
  559. package/dist/chunks/cli-1.0.11-7a79h2zt.mjs +0 -2
  560. package/dist/chunks/cli-1.0.11-7b3wvn2z.mjs +0 -18
  561. package/dist/chunks/cli-1.0.11-7gjndyyt.mjs +0 -2
  562. package/dist/chunks/cli-1.0.11-7nazvd1q.mjs +0 -2
  563. package/dist/chunks/cli-1.0.11-7t17zc1z.mjs +0 -59
  564. package/dist/chunks/cli-1.0.11-7vb4qcgq.mjs +0 -9
  565. package/dist/chunks/cli-1.0.11-80ek75w2.mjs +0 -12
  566. package/dist/chunks/cli-1.0.11-81ck35ky.mjs +0 -2
  567. package/dist/chunks/cli-1.0.11-8864t240.mjs +0 -199
  568. package/dist/chunks/cli-1.0.11-8ez7ws7j.mjs +0 -2
  569. package/dist/chunks/cli-1.0.11-8h81b3r6.mjs +0 -2
  570. package/dist/chunks/cli-1.0.11-8tbkr5te.mjs +0 -2
  571. package/dist/chunks/cli-1.0.11-90brgsm0.mjs +0 -25
  572. package/dist/chunks/cli-1.0.11-94m7sqz0.mjs +0 -6
  573. package/dist/chunks/cli-1.0.11-94mhst9e.mjs +0 -2
  574. package/dist/chunks/cli-1.0.11-95zkxz27.mjs +0 -2
  575. package/dist/chunks/cli-1.0.11-9ewzkxjm.mjs +0 -2
  576. package/dist/chunks/cli-1.0.11-9gw1e2pa.mjs +0 -2
  577. package/dist/chunks/cli-1.0.11-9kcjny4c.mjs +0 -2
  578. package/dist/chunks/cli-1.0.11-9sz2xbqw.mjs +0 -20
  579. package/dist/chunks/cli-1.0.11-9x0cm4c2.mjs +0 -58
  580. package/dist/chunks/cli-1.0.11-ajtmhz2b.mjs +0 -4
  581. package/dist/chunks/cli-1.0.11-ak9ykkzx.mjs +0 -2
  582. package/dist/chunks/cli-1.0.11-akfr5v7n.mjs +0 -2
  583. package/dist/chunks/cli-1.0.11-akzn9130.mjs +0 -2
  584. package/dist/chunks/cli-1.0.11-aqdmvhz2.mjs +0 -2
  585. package/dist/chunks/cli-1.0.11-b0qj7met.mjs +0 -2
  586. package/dist/chunks/cli-1.0.11-b9fszk50.mjs +0 -3
  587. package/dist/chunks/cli-1.0.11-bemvf7h4.mjs +0 -2
  588. package/dist/chunks/cli-1.0.11-bfj4emzk.mjs +0 -2
  589. package/dist/chunks/cli-1.0.11-bgygdezr.mjs +0 -9
  590. package/dist/chunks/cli-1.0.11-bh58g0t0.mjs +0 -25
  591. package/dist/chunks/cli-1.0.11-bp5zjnce.mjs +0 -3
  592. package/dist/chunks/cli-1.0.11-bq3nkc2q.mjs +0 -3
  593. package/dist/chunks/cli-1.0.11-bv0chgkc.mjs +0 -2
  594. package/dist/chunks/cli-1.0.11-c856qv0y.mjs +0 -8
  595. package/dist/chunks/cli-1.0.11-c8drtmtf.mjs +0 -2
  596. package/dist/chunks/cli-1.0.11-c8xnk02a.mjs +0 -2
  597. package/dist/chunks/cli-1.0.11-c9xzrrj5.mjs +0 -67
  598. package/dist/chunks/cli-1.0.11-cd2qwe1h.mjs +0 -2
  599. package/dist/chunks/cli-1.0.11-cgt4nhqg.mjs +0 -2
  600. package/dist/chunks/cli-1.0.11-cngn2t9n.mjs +0 -24
  601. package/dist/chunks/cli-1.0.11-cppy8zkf.mjs +0 -4
  602. package/dist/chunks/cli-1.0.11-ct42xhge.mjs +0 -2
  603. package/dist/chunks/cli-1.0.11-cw7m4yzj.mjs +0 -2
  604. package/dist/chunks/cli-1.0.11-d4v6gsvj.mjs +0 -50
  605. package/dist/chunks/cli-1.0.11-de9w6fg6.mjs +0 -4
  606. package/dist/chunks/cli-1.0.11-djshp3ed.mjs +0 -5
  607. package/dist/chunks/cli-1.0.11-dm8dxp4h.mjs +0 -2
  608. package/dist/chunks/cli-1.0.11-dmn1n7wp.mjs +0 -2
  609. package/dist/chunks/cli-1.0.11-esgphm1d.mjs +0 -4
  610. package/dist/chunks/cli-1.0.11-et4kv86h.mjs +0 -17
  611. package/dist/chunks/cli-1.0.11-extzyw8w.mjs +0 -2
  612. package/dist/chunks/cli-1.0.11-f5r9n4eb.mjs +0 -2
  613. package/dist/chunks/cli-1.0.11-fwf1nf98.mjs +0 -2
  614. package/dist/chunks/cli-1.0.11-g0b3tp96.mjs +0 -2
  615. package/dist/chunks/cli-1.0.11-gasqmqy8.mjs +0 -2
  616. package/dist/chunks/cli-1.0.11-gb00rzej.mjs +0 -2
  617. package/dist/chunks/cli-1.0.11-gfzsazcc.mjs +0 -2
  618. package/dist/chunks/cli-1.0.11-ghrb1zty.mjs +0 -133
  619. package/dist/chunks/cli-1.0.11-gt57f2g4.mjs +0 -4
  620. package/dist/chunks/cli-1.0.11-gzhzsfkx.mjs +0 -2
  621. package/dist/chunks/cli-1.0.11-h73m5bnx.mjs +0 -2
  622. package/dist/chunks/cli-1.0.11-ha0ah5jk.mjs +0 -2
  623. package/dist/chunks/cli-1.0.11-j1hrkh1n.mjs +0 -42
  624. package/dist/chunks/cli-1.0.11-j1kqr7mn.mjs +0 -3
  625. package/dist/chunks/cli-1.0.11-j65xt6ja.mjs +0 -2
  626. package/dist/chunks/cli-1.0.11-ja63j933.mjs +0 -24
  627. package/dist/chunks/cli-1.0.11-jdchy6a2.mjs +0 -2
  628. package/dist/chunks/cli-1.0.11-jq7g10mp.mjs +0 -2
  629. package/dist/chunks/cli-1.0.11-jstx49pw.mjs +0 -15
  630. package/dist/chunks/cli-1.0.11-k05030ph.mjs +0 -2
  631. package/dist/chunks/cli-1.0.11-kgv9rg65.mjs +0 -45
  632. package/dist/chunks/cli-1.0.11-kknpw2ax.mjs +0 -6
  633. package/dist/chunks/cli-1.0.11-m2ch23x4.mjs +0 -2
  634. package/dist/chunks/cli-1.0.11-m46yk2mx.mjs +0 -4
  635. package/dist/chunks/cli-1.0.11-m5w4w38j.mjs +0 -2
  636. package/dist/chunks/cli-1.0.11-m697h6wz.mjs +0 -3
  637. package/dist/chunks/cli-1.0.11-mjfpmm2a.mjs +0 -2
  638. package/dist/chunks/cli-1.0.11-my4mtasz.mjs +0 -2
  639. package/dist/chunks/cli-1.0.11-myxwbejm.mjs +0 -2
  640. package/dist/chunks/cli-1.0.11-n16smrqc.mjs +0 -2
  641. package/dist/chunks/cli-1.0.11-n1p3f6p7.mjs +0 -3
  642. package/dist/chunks/cli-1.0.11-n530dz5v.mjs +0 -2
  643. package/dist/chunks/cli-1.0.11-n6nabvk7.mjs +0 -2
  644. package/dist/chunks/cli-1.0.11-nfs11yt4.mjs +0 -2
  645. package/dist/chunks/cli-1.0.11-nhebbwew.mjs +0 -15
  646. package/dist/chunks/cli-1.0.11-nmdqvy3x.mjs +0 -2
  647. package/dist/chunks/cli-1.0.11-nnb7707z.mjs +0 -2
  648. package/dist/chunks/cli-1.0.11-p00y0fsg.mjs +0 -2
  649. package/dist/chunks/cli-1.0.11-p3zd6rr3.mjs +0 -34
  650. package/dist/chunks/cli-1.0.11-p9dpg606.mjs +0 -2
  651. package/dist/chunks/cli-1.0.11-pc02gtn4.mjs +0 -2
  652. package/dist/chunks/cli-1.0.11-pfdfw3q0.mjs +0 -2
  653. package/dist/chunks/cli-1.0.11-pggbs1cj.mjs +0 -3
  654. package/dist/chunks/cli-1.0.11-pgv1kx0w.mjs +0 -7
  655. package/dist/chunks/cli-1.0.11-pkx58bcd.mjs +0 -2
  656. package/dist/chunks/cli-1.0.11-ptqnwbvy.mjs +0 -2
  657. package/dist/chunks/cli-1.0.11-pws7rx3y.mjs +0 -2
  658. package/dist/chunks/cli-1.0.11-pyzn99ct.mjs +0 -18
  659. package/dist/chunks/cli-1.0.11-q5ssc147.mjs +0 -2
  660. package/dist/chunks/cli-1.0.11-qe2vnh5s.mjs +0 -2
  661. package/dist/chunks/cli-1.0.11-qj58rk0t.mjs +0 -2
  662. package/dist/chunks/cli-1.0.11-qt9hfn47.mjs +0 -2
  663. package/dist/chunks/cli-1.0.11-qxncga3e.mjs +0 -2
  664. package/dist/chunks/cli-1.0.11-qxyeygmt.mjs +0 -2
  665. package/dist/chunks/cli-1.0.11-r2ms1cmp.mjs +0 -2
  666. package/dist/chunks/cli-1.0.11-r5z57f1e.mjs +0 -3
  667. package/dist/chunks/cli-1.0.11-razjnz1w.mjs +0 -2
  668. package/dist/chunks/cli-1.0.11-rpqx7925.mjs +0 -3
  669. package/dist/chunks/cli-1.0.11-rrzdp5bb.mjs +0 -2
  670. package/dist/chunks/cli-1.0.11-s1b9ek7n.mjs +0 -6
  671. package/dist/chunks/cli-1.0.11-see5c6wp.mjs +0 -2
  672. package/dist/chunks/cli-1.0.11-skmzzhzh.mjs +0 -39
  673. package/dist/chunks/cli-1.0.11-t2x1k63a.mjs +0 -2
  674. package/dist/chunks/cli-1.0.11-t3yw4wkf.mjs +0 -2
  675. package/dist/chunks/cli-1.0.11-t4tx0xwc.mjs +0 -2
  676. package/dist/chunks/cli-1.0.11-taat135t.mjs +0 -2
  677. package/dist/chunks/cli-1.0.11-tv2ja5hq.mjs +0 -2
  678. package/dist/chunks/cli-1.0.11-tyan62wc.mjs +0 -2
  679. package/dist/chunks/cli-1.0.11-v02e3hp0.mjs +0 -2
  680. package/dist/chunks/cli-1.0.11-v2ypvd2f.mjs +0 -17
  681. package/dist/chunks/cli-1.0.11-v5d8hdt5.mjs +0 -2
  682. package/dist/chunks/cli-1.0.11-vd74hjxg.mjs +0 -2
  683. package/dist/chunks/cli-1.0.11-vfcnt54q.mjs +0 -16
  684. package/dist/chunks/cli-1.0.11-vjjxby46.mjs +0 -5494
  685. package/dist/chunks/cli-1.0.11-vkdzrrzk.mjs +0 -2
  686. package/dist/chunks/cli-1.0.11-vmh7n18x.mjs +0 -2
  687. package/dist/chunks/cli-1.0.11-vngmjn6q.mjs +0 -6
  688. package/dist/chunks/cli-1.0.11-vq5ptcrv.mjs +0 -2
  689. package/dist/chunks/cli-1.0.11-vqw5vq1z.mjs +0 -2
  690. package/dist/chunks/cli-1.0.11-wdvw9bs9.mjs +0 -2
  691. package/dist/chunks/cli-1.0.11-wf6fynen.mjs +0 -133
  692. package/dist/chunks/cli-1.0.11-wjmpvhps.mjs +0 -2
  693. package/dist/chunks/cli-1.0.11-wxrv0919.mjs +0 -21
  694. package/dist/chunks/cli-1.0.11-x09790kn.mjs +0 -2
  695. package/dist/chunks/cli-1.0.11-x49bwc7n.mjs +0 -2
  696. package/dist/chunks/cli-1.0.11-x52cbhwa.mjs +0 -2
  697. package/dist/chunks/cli-1.0.11-x5tf1mr7.mjs +0 -2
  698. package/dist/chunks/cli-1.0.11-xac48dmb.mjs +0 -2
  699. package/dist/chunks/cli-1.0.11-xc1vh5jp.mjs +0 -2
  700. package/dist/chunks/cli-1.0.11-xge84nh3.mjs +0 -12
  701. package/dist/chunks/cli-1.0.11-xhtzats1.mjs +0 -2
  702. package/dist/chunks/cli-1.0.11-xq9e8vpr.mjs +0 -2
  703. package/dist/chunks/cli-1.0.11-y0eca1tp.mjs +0 -4
  704. package/dist/chunks/cli-1.0.11-yg666rff.mjs +0 -4
  705. package/dist/chunks/cli-1.0.11-yhfn95eh.mjs +0 -2
  706. package/dist/chunks/cli-1.0.11-yv042eqq.mjs +0 -2
  707. package/dist/chunks/cli-1.0.11-yvxh54fb.mjs +0 -12
  708. package/dist/chunks/cli-1.0.11-ywv4shrr.mjs +0 -2
  709. package/dist/chunks/cli-1.0.11-z0vt71px.mjs +0 -2
  710. package/dist/chunks/cli-1.0.11-z7b0t3bc.mjs +0 -2
  711. package/dist/chunks/cli-1.0.11-zmky8hva.mjs +0 -2
  712. package/dist/chunks/client-1.0.11-312zt2ah.mjs +0 -1
  713. package/dist/chunks/color-1.0.11-vjcywxsb.mjs +0 -1
  714. package/dist/chunks/compact-1.0.11-fz00vbeq.mjs +0 -3
  715. package/dist/chunks/config-1.0.11-69y6ev3m.mjs +0 -1
  716. package/dist/chunks/config-1.0.11-zv8cqcxf.mjs +0 -1
  717. package/dist/chunks/constants-1.0.11-qpv84h99.mjs +0 -1
  718. package/dist/chunks/context-1.0.11-hc8hcd6q.mjs +0 -1
  719. package/dist/chunks/context-noninteractive-1.0.11-z1zhm5t5.mjs +0 -1
  720. package/dist/chunks/conversation-1.0.11-k90tc32f.mjs +0 -1
  721. package/dist/chunks/copilotHeaders-1.0.11-jgc37m2e.mjs +0 -1
  722. package/dist/chunks/copy-1.0.11-6nssqasv.mjs +0 -9
  723. package/dist/chunks/cost-1.0.11-559mqgez.mjs +0 -1
  724. package/dist/chunks/createSSHSession-1.0.11-hg1padm7.mjs +0 -1
  725. package/dist/chunks/createSession-1.0.11-3642anzt.mjs +0 -1
  726. package/dist/chunks/debug-1.0.11-75374a1x.mjs +0 -1
  727. package/dist/chunks/defaultActionDeps-1.0.11-2m29yhnw.mjs +0 -1446
  728. package/dist/chunks/desktop-1.0.11-sppnn5qz.mjs +0 -1
  729. package/dist/chunks/detectRepository-1.0.11-6bgstybg.mjs +0 -1
  730. package/dist/chunks/detection-1.0.11-vdsv7f4b.mjs +0 -1
  731. package/dist/chunks/diff-1.0.11-abdxhwrj.mjs +0 -1
  732. package/dist/chunks/doctor-1.0.11-5z3ab9xa.mjs +0 -1
  733. package/dist/chunks/doctorDiagnostic-1.0.11-pysmhpbt.mjs +0 -1
  734. package/dist/chunks/earlyInput-1.0.11-vahmyps5.mjs +0 -1
  735. package/dist/chunks/effort-1.0.11-vzaz8r9h.mjs +0 -10
  736. package/dist/chunks/engine-1.0.11-e6emj6j2.mjs +0 -1
  737. package/dist/chunks/envLessBridgeConfig-1.0.11-vg4sjhxq.mjs +0 -1
  738. package/dist/chunks/envUtils-1.0.11-12w4key7.mjs +0 -1
  739. package/dist/chunks/environmentSelection-1.0.11-2wk1amzh.mjs +0 -1
  740. package/dist/chunks/environments-1.0.11-y0adm7td.mjs +0 -1
  741. package/dist/chunks/errors-1.0.11-96kg3stq.mjs +0 -1
  742. package/dist/chunks/exampleCommands-1.0.11-jf2hd4mh.mjs +0 -1
  743. package/dist/chunks/execFileNoThrow-1.0.11-7ynf3njs.mjs +0 -1
  744. package/dist/chunks/exit-1.0.11-h50839az.mjs +0 -1
  745. package/dist/chunks/explorer-1.0.11-7aj9bxyd.mjs +0 -1
  746. package/dist/chunks/export-1.0.11-e59deqn4.mjs +0 -2
  747. package/dist/chunks/extra-usage-1.0.11-q4ghsyjs.mjs +0 -1
  748. package/dist/chunks/extra-usage-noninteractive-1.0.11-xqh27mwy.mjs +0 -1
  749. package/dist/chunks/fast-1.0.11-35ftz51m.mjs +0 -1
  750. package/dist/chunks/feedback-1.0.11-cqft1yja.mjs +0 -14
  751. package/dist/chunks/firstPartyEventLogger-1.0.11-a8h2dgak.mjs +0 -1
  752. package/dist/chunks/git-1.0.11-te61wz3p.mjs +0 -1
  753. package/dist/chunks/githubModelsCredentials-1.0.11-drv71n3q.mjs +0 -1
  754. package/dist/chunks/goal-1.0.11-51c2g06j.mjs +0 -4
  755. package/dist/chunks/grove-1.0.11-3wh8z2tp.mjs +0 -1
  756. package/dist/chunks/growthbook-1.0.11-t3qqdanq.mjs +0 -1
  757. package/dist/chunks/headless-1.0.11-bxq9fmpp.mjs +0 -2
  758. package/dist/chunks/heapdump-1.0.11-ck2kcxvg.mjs +0 -6
  759. package/dist/chunks/help-1.0.11-pghsa110.mjs +0 -1
  760. package/dist/chunks/hookChains-1.0.11-20cnxgj2.mjs +0 -3
  761. package/dist/chunks/hooks-1.0.11-hmnqptaj.mjs +0 -79
  762. package/dist/chunks/hooks-1.0.11-hp66ffcw.mjs +0 -1
  763. package/dist/chunks/ide-1.0.11-cw4fsa7v.mjs +0 -3
  764. package/dist/chunks/image-processor-napi-1.0.11-nrs9g8xa.mjs +0 -1
  765. package/dist/chunks/inboundAttachments-1.0.11-72hf9v7f.mjs +0 -1
  766. package/dist/chunks/index-1.0.11-28ze0nsz.mjs +0 -2
  767. package/dist/chunks/index-1.0.11-2rftz5rp.mjs +0 -1
  768. package/dist/chunks/index-1.0.11-5tgfz6qd.mjs +0 -1
  769. package/dist/chunks/index-1.0.11-6bzt2k72.mjs +0 -1
  770. package/dist/chunks/index-1.0.11-6h7vy1ye.mjs +0 -2
  771. package/dist/chunks/index-1.0.11-8w86bp4p.mjs +0 -9
  772. package/dist/chunks/index-1.0.11-av9et6fw.mjs +0 -17
  773. package/dist/chunks/index-1.0.11-bq1vd37a.mjs +0 -1
  774. package/dist/chunks/index-1.0.11-detbxk87.mjs +0 -1
  775. package/dist/chunks/index-1.0.11-har6hagk.mjs +0 -1
  776. package/dist/chunks/index-1.0.11-j5nhmcd0.mjs +0 -1
  777. package/dist/chunks/index-1.0.11-ja482fzv.mjs +0 -1
  778. package/dist/chunks/index-1.0.11-k9vcyag1.mjs +0 -1
  779. package/dist/chunks/index-1.0.11-ktnv60hg.mjs +0 -1
  780. package/dist/chunks/index-1.0.11-m1x1jgbe.mjs +0 -1
  781. package/dist/chunks/index-1.0.11-n9xwyead.mjs +0 -5
  782. package/dist/chunks/index-1.0.11-njbht1ys.mjs +0 -1
  783. package/dist/chunks/index-1.0.11-nrqxgqbx.mjs +0 -9
  784. package/dist/chunks/index-1.0.11-pcp79m82.mjs +0 -1
  785. package/dist/chunks/index-1.0.11-radrr40a.mjs +0 -30
  786. package/dist/chunks/index-1.0.11-rk0pqamg.mjs +0 -1
  787. package/dist/chunks/index-1.0.11-t19ba6z9.mjs +0 -1
  788. package/dist/chunks/index-1.0.11-xxcdw8dk.mjs +0 -1
  789. package/dist/chunks/init-1.0.11-tfrwsdpp.mjs +0 -1
  790. package/dist/chunks/initReplBridge-1.0.11-zsedfvbr.mjs +0 -1
  791. package/dist/chunks/ink-1.0.11-ndrn3qkp.mjs +0 -1
  792. package/dist/chunks/insights-1.0.11-fvyzzx1m.mjs +0 -870
  793. package/dist/chunks/install-1.0.11-3x92gf6c.mjs +0 -1
  794. package/dist/chunks/install-github-app-1.0.11-4dak4den.mjs +0 -149
  795. package/dist/chunks/install-slack-app-1.0.11-mpg4apdn.mjs +0 -1
  796. package/dist/chunks/instrumentation-1.0.11-2bvtppdd.mjs +0 -1
  797. package/dist/chunks/interactiveHelpers-1.0.11-f0yk0vv7.mjs +0 -1
  798. package/dist/chunks/keybindings-1.0.11-xdb8g0wq.mjs +0 -2
  799. package/dist/chunks/knowledge-1.0.11-mp0sdnyp.mjs +0 -2
  800. package/dist/chunks/latestVersionCache-1.0.11-h0kqvb5e.mjs +0 -1
  801. package/dist/chunks/loadAgentsDir-1.0.11-21kfy7d1.mjs +0 -1
  802. package/dist/chunks/loadPluginHooks-1.0.11-62h1ng2x.mjs +0 -1
  803. package/dist/chunks/loadPluginHooks-1.0.11-b876eprh.mjs +0 -1
  804. package/dist/chunks/log-1.0.11-0926ezp3.mjs +0 -1
  805. package/dist/chunks/main-1.0.11-vyk2x3wz.mjs +0 -1
  806. package/dist/chunks/managedEnv-1.0.11-kv0d1mg2.mjs +0 -1
  807. package/dist/chunks/mcp-1.0.11-at6mf974.mjs +0 -4
  808. package/dist/chunks/mcp-1.0.11-daj0k21t.mjs +0 -1
  809. package/dist/chunks/mcp-1.0.11-wryppgt1.mjs +0 -17
  810. package/dist/chunks/mcpb-1.0.11-tbhva8cx.mjs +0 -1
  811. package/dist/chunks/memory-1.0.11-t83eybqk.mjs +0 -72
  812. package/dist/chunks/model-1.0.11-9f373g25.mjs +0 -2
  813. package/dist/chunks/model-1.0.11-x7cy07zz.mjs +0 -1
  814. package/dist/chunks/node-1.0.11-4c5e5x82.mjs +0 -12
  815. package/dist/chunks/oauth-1.0.11-th8148fn.mjs +0 -1
  816. package/dist/chunks/openaiShim-1.0.11-qtx9sy7n.mjs +0 -14
  817. package/dist/chunks/output-style-1.0.11-49xv9nyx.mjs +0 -1
  818. package/dist/chunks/package-ZZWOLTXM-1.0.11-btfehhjf.mjs +0 -1
  819. package/dist/chunks/parseConnectUrl-1.0.11-c54m34vf.mjs +0 -1
  820. package/dist/chunks/parser-1.0.11-k1edcc6s.mjs +0 -1
  821. package/dist/chunks/passes-1.0.11-5pgw1dpk.mjs +0 -1
  822. package/dist/chunks/permissions-1.0.11-985eg7tk.mjs +0 -1
  823. package/dist/chunks/permissions-1.0.11-vw3bb3rr.mjs +0 -3
  824. package/dist/chunks/plan-1.0.11-0p3h0zp0.mjs +0 -1
  825. package/dist/chunks/plist-1.0.11-zbes1djt.mjs +0 -1
  826. package/dist/chunks/plugin-1.0.11-svkt070k.mjs +0 -29
  827. package/dist/chunks/pluginStartupCheck-1.0.11-9x3yfk2j.mjs +0 -1
  828. package/dist/chunks/plugins-1.0.11-yq0rshqb.mjs +0 -9
  829. package/dist/chunks/preActionHook-1.0.11-qerha0cv.mjs +0 -2
  830. package/dist/chunks/print-1.0.11-74zcxacx.mjs +0 -57
  831. package/dist/chunks/privacy-settings-1.0.11-rrq80bc6.mjs +0 -1
  832. package/dist/chunks/process-1.0.11-bbehrbs8.mjs +0 -1
  833. package/dist/chunks/processBashCommand-1.0.11-a69zfnhj.mjs +0 -1
  834. package/dist/chunks/processSlashCommand-1.0.11-sr31ka3t.mjs +0 -9
  835. package/dist/chunks/prompt-1.0.11-d70q78at.mjs +0 -1
  836. package/dist/chunks/prompt-1.0.11-tz8t5d13.mjs +0 -1
  837. package/dist/chunks/prompts-1.0.11-m5saxeyv.mjs +0 -1
  838. package/dist/chunks/protocolHandler-1.0.11-068sth3c.mjs +0 -13
  839. package/dist/chunks/provider-1.0.11-8kxjeahg.mjs +0 -2
  840. package/dist/chunks/providerProfiles-1.0.11-40p5fmg3.mjs +0 -1
  841. package/dist/chunks/providerValidation-1.0.11-56q1by46.mjs +0 -6
  842. package/dist/chunks/rate-limit-options-1.0.11-cx527m21.mjs +0 -1
  843. package/dist/chunks/registerSubcommands-1.0.11-r7zg2d2h.mjs +0 -34
  844. package/dist/chunks/registry-1.0.11-g7ra2fxs.mjs +0 -1
  845. package/dist/chunks/release-notes-1.0.11-qba65ksd.mjs +0 -5
  846. package/dist/chunks/reload-plugins-1.0.11-xmtjje1f.mjs +0 -2
  847. package/dist/chunks/remote-env-1.0.11-sdn1xmkp.mjs +0 -1
  848. package/dist/chunks/remoteBridgeCore-1.0.11-h00qpdp7.mjs +0 -1
  849. package/dist/chunks/remoteSession-1.0.11-bw3qbhsc.mjs +0 -1
  850. package/dist/chunks/rename-1.0.11-x4a5ve41.mjs +0 -1
  851. package/dist/chunks/replBridgeHandle-1.0.11-v6tex0rs.mjs +0 -1
  852. package/dist/chunks/replLauncher-1.0.11-ghgbmprj.mjs +0 -1
  853. package/dist/chunks/resume-1.0.11-9m8zv4f4.mjs +0 -2
  854. package/dist/chunks/rewind-1.0.11-ybm8151x.mjs +0 -1
  855. package/dist/chunks/rootOptions-1.0.11-57s151ex.mjs +0 -1
  856. package/dist/chunks/runWorkflowHeadless-1.0.11-8tpdz498.mjs +0 -10
  857. package/dist/chunks/sandbox-adapter-1.0.11-f6df7e84.mjs +0 -1
  858. package/dist/chunks/sandbox-toggle-1.0.11-805v8r1x.mjs +0 -1
  859. package/dist/chunks/session-1.0.11-z5gxtqnf.mjs +0 -2
  860. package/dist/chunks/sessionDiscovery-1.0.11-6rcvkbfv.mjs +0 -1
  861. package/dist/chunks/sessionFileAccessHooks-1.0.11-gz9z4d2n.mjs +0 -1
  862. package/dist/chunks/sessionStorage-1.0.11-arv0h3mr.mjs +0 -1
  863. package/dist/chunks/settings-1.0.11-g9y3zkwx.mjs +0 -1
  864. package/dist/chunks/setup-1.0.11-2yc6htny.mjs +0 -5
  865. package/dist/chunks/sinks-1.0.11-9r7hfp1n.mjs +0 -1
  866. package/dist/chunks/skills-1.0.11-n37znzpa.mjs +0 -1
  867. package/dist/chunks/startupProfiler-1.0.11-2ydqcpch.mjs +0 -1
  868. package/dist/chunks/startupUpdateCheck-1.0.11-q8jwq4my.mjs +0 -1
  869. package/dist/chunks/state-1.0.11-6kjp26sz.mjs +0 -1
  870. package/dist/chunks/stats-1.0.11-nf5t6mvj.mjs +0 -6
  871. package/dist/chunks/status-1.0.11-qq9snahg.mjs +0 -1
  872. package/dist/chunks/stickers-1.0.11-fyh8mxj5.mjs +0 -1
  873. package/dist/chunks/subprocessEnv-1.0.11-3d9z54ze.mjs +0 -1
  874. package/dist/chunks/tasks-1.0.11-83e7bp46.mjs +0 -1
  875. package/dist/chunks/teamHelpers-1.0.11-k16bbfv8.mjs +0 -1
  876. package/dist/chunks/teammateModeSnapshot-1.0.11-mr9wgcy2.mjs +0 -1
  877. package/dist/chunks/teleport-1.0.11-b5cqkv40.mjs +0 -1
  878. package/dist/chunks/terminalSetup-1.0.11-20p1v1ey.mjs +0 -1
  879. package/dist/chunks/theme-1.0.11-6zqs0xe4.mjs +0 -1
  880. package/dist/chunks/thinkback-1.0.11-8av0ztc7.mjs +0 -1
  881. package/dist/chunks/thinkback-play-1.0.11-3dfrx0pw.mjs +0 -1
  882. package/dist/chunks/toolPool-1.0.11-2qt7n81g.mjs +0 -1
  883. package/dist/chunks/toolSearch-1.0.11-xvkpbypf.mjs +0 -1
  884. package/dist/chunks/tools-1.0.11-f42yjhwf.mjs +0 -1
  885. package/dist/chunks/trustedDevice-1.0.11-enkrexht.mjs +0 -1
  886. package/dist/chunks/turndown.cjs-1.0.11-t6gqtrte.mjs +0 -69
  887. package/dist/chunks/types-1.0.11-05ye0r9a.mjs +0 -1
  888. package/dist/chunks/ultrareviewCommand-1.0.11-qrzcx1s2.mjs +0 -4
  889. package/dist/chunks/update-1.0.11-nn0jnm0e.mjs +0 -88
  890. package/dist/chunks/upgrade-1.0.11-7vz3cph0.mjs +0 -1
  891. package/dist/chunks/upload-1.0.11-mgsj1mhp.mjs +0 -7
  892. package/dist/chunks/upstreamproxy-1.0.11-m96645aj.mjs +0 -14
  893. package/dist/chunks/url-handler-napi-1.0.11-1anw1ty0.mjs +0 -1
  894. package/dist/chunks/usage-1.0.11-7zvmy6j7.mjs +0 -1
  895. package/dist/chunks/util-1.0.11-1rajshq2.mjs +0 -1
  896. package/dist/chunks/utils-1.0.11-6n1vqzht.mjs +0 -1
  897. package/dist/chunks/vim-1.0.11-4773xhch.mjs +0 -1
  898. package/dist/chunks/watchLoop-1.0.11-51hjctnn.mjs +0 -13
  899. package/dist/chunks/watcher-1.0.11-qc4hggjm.mjs +0 -1
  900. package/dist/chunks/wiki-1.0.11-eb2msbxc.mjs +0 -132
  901. package/dist/chunks/workflows-1.0.11-07tdyg64.mjs +0 -1
  902. package/dist/chunks/worktree-1.0.11-gcraavtg.mjs +0 -1
  903. package/dist/chunks/worktreeModeEnabled-1.0.11-9cnkt438.mjs +0 -1
  904. package/dist/chunks/wrapper-1.0.11-r3ecyxab.mjs +0 -7
  905. /package/dist/chunks/{cli-1.0.11-rd2363he.mjs → cli-1.0.13-4z6c4gzk.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.0.11-bgegnqwm.mjs → cli-1.0.13-ap2xrh2s.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.0.11-r4b3hh63.mjs → cli-1.0.13-n6bzzv7p.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.0.11-madrygpa.mjs → cli-1.0.13-q9et56bj.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.0.11-q0n7n5ds.mjs → cli-1.0.13-tzenmc0b.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.0.11-ryt75zjd.mjs → cli-1.0.13-v34fp7gq.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.0.11-1had177w.mjs → cli-1.0.13-wv7skbb9.mjs} +0 -0
@@ -1,16 +0,0 @@
1
- import{U8 as P2,W8 as x8}from"./cli-1.0.11-80ek75w2.mjs";import{Y8 as h,Z8 as dZ}from"./cli-1.0.11-kknpw2ax.mjs";import{i9 as d5,k9 as w8}from"./cli-1.0.11-my4mtasz.mjs";import{$9 as K2,$aa as f8,$fa as L,Cea as r1,Dba as zZ,Fda as B0,J_ as N5,L_ as tZ,Mca as o1,Oda as n4,Qda as iZ,Qfa as m5,Rda as I1,Rea as i,Sda as u8,Sfa as W4,Tea as e1,Uea as xZ,Vca as GZ,Yea as Z4,Yfa as c5,Z9 as T4,_9 as a,_aa as y1,a_ as b0,b_ as M4,c_ as a2,cga as $0,i_ as R0,j_ as G1,lfa as V4,mba as s1,nea as d,nfa as $4,oga as N,qda as P,qfa as b2,rfa as lZ,sda as j2,sea as p5,t_ as D5,tea as C,vda as Q0,w_ as nZ,wda as M,wea as K,wga as a0}from"./cli-1.0.11-8864t240.mjs";import{Iha as v1,wha as A0,yha as P4}from"./cli-1.0.11-2mxpjt2m.mjs";import{Mia as I5,Nia as d4,Oia as j0,Qia as z8,Ria as G8,Tia as b,Uia as M0}from"./cli-1.0.11-g0b3tp96.mjs";import{Via as x,Yia as B2}from"./cli-1.0.11-qe2vnh5s.mjs";import{$ja as Z0,Cja as L5,Gja as cZ,Kja as i2,Oja as T8,Yja as z,_ja as d0}from"./cli-1.0.11-94m7sqz0.mjs";import{Dka as V1,wka as p,yka as q1}from"./cli-1.0.11-632mfg4h.mjs";import{Gka as K5,Jka as F,Lka as u,Nka as k2,Qka as c4,Tka as g}from"./cli-1.0.11-wjmpvhps.mjs";import{Kna as a1,Koa as J1,Loa as Q1,Moa as X1,Noa as Y1,Ona as k4,Tna as I0,Una as J2,Zoa as x2,moa as f,tma as Y0,toa as _1,uma as w1,wna as p1,wqa as J0}from"./cli-1.0.11-qt9hfn47.mjs";import{Vqa as I,Wqa as l0}from"./cli-1.0.11-bemvf7h4.mjs";import{Ira as q2,qra as k}from"./cli-1.0.11-4cr2bh6m.mjs";import{csa as y0,esa as c2,fsa as R,gsa as e}from"./cli-1.0.11-see5c6wp.mjs";function T5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:q,context:V}=$.shift();try{let G=await Z.apply(V,X);Y(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,q)=>{$.push({args:X,resolve:Y,reject:q,context:this}),Q()})}}var M5=()=>{};function C5(Z,$){return Z.find((J)=>J.includes($))??null}async function A5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=k2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P2(),...J&&{requestHandler:new(await import("./index-1.0.11-5tgfz6qd.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.11-bq1vd37a.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function m$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=k2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P2(),...J&&{requestHandler:new(await import("./index-1.0.11-5tgfz6qd.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.11-bq1vd37a.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function B8(Z){return Z.startsWith("anthropic.")}function H8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function R8(Z){let $=H8(Z);for(let J of j8)if($.startsWith(`${J}.anthropic.`))return J;return}function d$(Z,$){let J=R8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(B8(Z))return`${$}.${Z}`;return Z}var S5,c$,j8;var h5=R(()=>{l0();n();g();a0();x8();S5=I(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw N(X),X}});c$=I(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let q=Y.modelArn.lastIndexOf("/");return q>=0?Y.modelArn.substring(q+1):Y.modelArn}catch($){return N($),null}});j8=["us","eu","apac","global"]});var E2,_2,v2,y2,I2,T2,M2,S2,C2,s0,o0,r0,A2,h2,f2,G0,t$,f5;var u2=R(()=>{E2={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"},_2={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"},v2={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"},y2={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"},I2={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"},T2={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"},M2={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"},S2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},C2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},s0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},o0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},r0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},A2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},h2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},f2={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"},G0={haiku35:v2,haiku45:y2,sonnet35:_2,sonnet37:E2,sonnet40:I2,sonnet45:T2,sonnet46:h2,sonnet5:f2,opus40:M2,opus41:S2,opus45:C2,opus46:s0,opus47:o0,opus48:r0,fable5:A2},t$=Object.values(G0).map((Z)=>Z.firstParty),f5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function u5(){return Object.values(e0)}var e0,g2;var p2=R(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};c2(_0,{prefetchCopilotModelCatalog:()=>n2,normalizeBareCopilotModelId:()=>d2,getEffectiveCopilotModels:()=>U8,getCopilotDisplayName:()=>b8,getCatalogCopilotMaxOutputTokens:()=>P8,getCatalogCopilotContextWindow:()=>k8,getCachedCopilotCatalog:()=>N8,fetchCopilotModelCatalog:()=>t5,copilotModelSupportsAnthropicMessages:()=>O8,_setCopilotCatalogForTesting:()=>E8});function E0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function n5(){if(!t)return!1;let Z=E0();return Z!==null&&x0===Z}function K8(){if(g5)return;g5=!0,p5(()=>{let Z=E0();if(Z&&x0!==Z)n2()})}function d2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),X=Q.indexOf("/");return X===-1?Q:Q.slice(X+1)}function L8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function D8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},X=Z.capabilities?.supports??{},Y=X.vision===!0||Boolean(Q.vision),q=X.adaptive_thinking===!0||Array.isArray(X.reasoning_effort)||typeof X.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:Y,reasoning:q,tool_call:X.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:Y?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:L8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function t5(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(m5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,X=setTimeout(()=>Q.abort(),F8);try{let Y=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...d5},signal:Q.signal});if(!Y.ok)return null;let q=await Y.json();if(!Array.isArray(q?.data))return null;let V=new Set,G=[];for(let B of q.data){let H=D8(B);if(!H||V.has(H.model.id))continue;V.add(H.model.id),G.push(H)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(X)}}function n2(){K8();let Z=E0();if(!Z)return;if(t&&x0!==Z)t=null,x0=null;if(Z2){if(m2===Z)return;Z2.finally(()=>n2());return}m2=Z,Z2=t5().then(($)=>{if($&&E0()===Z)t=$,x0=Z}).finally(()=>{Z2=null,m2=null})}function N8(){return t}function U8(){if(n5()){let Z=t?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return u5()}function $2(Z){if(!n5())return;let $=d2(Z);return t.find((J)=>J.model.id===$)}function b8(Z){let $=d2(Z);return $2($)?.model.name??e0[$]?.name}function O8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function k8(Z){return $2(Z)?.model.limit.context}function P8(Z){return $2(Z)?.model.limit.output}function E8(Z){t=Z,x0=Z?E0():null}var F8=5000,t=null,x0=null,Z2=null,m2=null,g5=!1;var v0=R(()=>{$0();w8();c5();i();Z0();p2()});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 JJ(){return W()==="firstParty"}function _8(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}=(v0(),y0(_0)),X=Q(J);if(X!==null)return X}catch{}return!0}function QJ(Z){let $=L()?.transport??"anthropic";if(!v8.has($))return!1;if($==="github_copilot"&&_8(Z))return!1;return!0}function XJ(){return W()}function YJ(){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 v8;var l=R(()=>{$0();v8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of l5)J[Q]=G0[Q][$];return J}async function y8(){let Z=Q2("bedrock"),$;try{$=await S5()}catch(Q){return N(Q),Z}if(!$?.length)return Z;let J={};for(let Q of l5){let X=G0[Q].firstParty;J[Q]=C5($,X)||Z[Q]}return J}function i5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=f5[Q];if(Y&&X)J[Y]=X}return J}function X2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function I8(){if(I0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}a5()}function j(){let Z=I0();if(Z===null)return I8(),i5(Q2(W()));return i5(Z)}async function HJ(){if(I0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}await a5()}var l5,a5;var Y2=R(()=>{J0();a0();M5();B0();h5();u2();l();l5=Object.keys(G0);a5=T5(async()=>{if(I0()!==null)return;try{let Z=await y8();J2(Z)}catch(Z){N(Z)}})});function LJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(O())return!1;let $=T0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=K(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function DJ(){if(s5!==null)return s5;if(!O())return!1;let Z=v();if(Z==="max"||Z==="pro")return!0;let J=K().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var s5=null;var o5=R(()=>{n();i();g()});function OJ(Z){return Z}function kJ(){return!1}function r5(){return null}function e5(){return!1}var Z1=R(()=>{o5()});async function TJ(){let $=K().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${b().BASE_API_URL}/api/claude_cli_profile`;try{return(await k.get(Q,{headers:{"x-api-key":J,"anthropic-beta":j0},params:{account_uuid:$},timeout:1e4})).data}catch(X){N(X)}}async function H0(Z){let $=`${b().BASE_API_URL}/api/oauth/profile`;try{return(await k.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){N(J)}}var t2=R(()=>{q2();M0();n();i();a0()});import{mkdirSync as M8,writeFileSync as S8}from"fs";function h8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{M8(V2,{recursive:!0,mode:448}),S8(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function $1(Z,$){try{let Q=i2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!q1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function W1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let q=process.env[Z];if(!q){let G=$1($,J);return X(G),G}let V=parseInt(q,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),X(null),null;try{let G=i2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=G.readFileSync(B,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),X(H),h8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${V}: ${p(G)}`,{level:"error"});let B=$1($,J);return X(B),B}}function W2(){return W1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C8,label:"OAuth token",getCached:J1,setCached:Q1})}function l2(){return W1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:A8,label:"API key",getCached:X1,setCached:Y1})}var V2="/home/claude/.claude/remote",C8,A8,gJ;var z1=R(()=>{J0();Z0();g();V1();T8();C8=`${V2}/.oauth_token`,A8=`${V2}/.api_key`,gJ=`${V2}/.session_ingress_token`});async function x1(){if(process.platform==="darwin"){let Z=a();if((await R0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function z2(Z){return Z.slice(-20)}var B1=R(()=>{G1();a2()});function tJ(Z){return Z?.name==="CredentialsProviderError"}function j1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function s2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function H1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var R1=R(()=>{Z0()});class S{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!S.instance)S.instance=new S;return S.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(S.instance)S.instance.changed.clear(),S.instance=null}}var F1=R(()=>{w1()});var G2="claude-code-20250219",K1="interleaved-thinking-2025-05-14",S0="context-1m-2025-08-07",L1="context-management-2025-06-27",D1="structured-outputs-2025-12-15",o2="web-search-2025-03-05",N1="advanced-tool-use-2025-11-20",U1="tool-search-tool-2025-10-19",sJ="effort-2025-11-24",oJ="task-budgets-2026-03-13",b1="prompt-caching-scope-2026-01-05",rJ="extended-cache-ttl-2025-04-11",eJ="fast-mode-2026-02-01",O1="redact-thinking-2026-02-12",k1="thinking-token-count-2026-05-13",P1="token-efficient-tools-2026-03-28",Z3="afk-mode-2026-01-31",$3="advisor-tool-2026-03-01",r2,J3;var e2=R(()=>{r2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),J3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(W()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function T1(){if(!A())return!1;return p8()===null}function g8(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 p8(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=A0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!y1()&&A0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&x2()&&!_1()){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(_.status==="disabled"){if(_.reason==="network_error"||_.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=g8(_.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function D3(){return"opus"+(f0()?"[1m]":"")}function N3(Z){if(!A())return!1;if(!T1())return!1;if(!M1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function M1(Z){if(!A())return!1;let $=Z??h0(),J=T($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function m8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!Z5)z("Fast mode cooldown expired, re-enabling fast mode"),Z5=!0,C1.emit();w0={status:"active"}}return w0}function O3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},Z5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),S1.emit(Z,$)}function k3(){w0={status:"active"}}function P3(){if(_.status==="disabled")return;_={status:"disabled",reason:"preference"},j2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),$5.emit(!1)}function c8(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 d8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function _3(Z){let $=c8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!d8(Z))j2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));A1.emit($)}function n8(){return m8().status==="cooldown"}function v3(Z,$){let J=A()&&T1()&&!!$&&M1(Z);if(J&&n8())return"cooldown";if(J)return"on";return"off"}async function t8(Z){let $=`${b().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":j0}:{"x-api-key":Z.apiKey};return(await k.get($,{headers:J})).data}function I3(){if(!A())return;if(_.status!=="pending")return;_=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function T3(){if(I1())return;if(!A())return;if(C0)return z("Fast mode prefetch in progress, returning in-flight promise"),C0;let Z=X0();if(!(w()?.accessToken&&q0())&&!Z){_=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-E1<i8){z("Skipping fast mode prefetch, fetched recently");return}E1=J;let Q=async()=>{let Y=w(),q=Y?.accessToken&&q0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return t8(q)};async function X(){try{let Y;try{Y=await Q()}catch(V){if(k.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 B=w()?.accessToken;if(B)await J5(B),Y=await Q();else throw V}else throw V}let q=_.status!=="pending"?_.status==="enabled":K().penguinModeOrgEnabled;if(_=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},q!==Y.enabled){if(!Y.enabled)j2("userSettings",{fastMode:void 0});C((V)=>({...V,penguinModeOrgEnabled:Y.enabled})),$5.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){_=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${_.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{C0=null}}return C0=X(),C0}var L3="Opus 4.7",w0,Z5=!1,S1,C1,U3,b3,A1,E3,_,$5,y3,i8=30000,E1=0,C0=null;var h1=R(()=>{q2();M0();v1();J0();B2();n();f8();i();Z0();g();F0();l();u8();B0();w1();w0={status:"active"},S1=Y0(),C1=Y0(),U3=S1.subscribe,b3=C1.subscribe;A1=Y0(),E3=A1.subscribe;_={status:"pending"},$5=Y0(),y3=$5.subscribe});function ZZ(Z){for(let $ of e8)if($.pattern.test(Z))return $.cost;return}function Q5(Z){if(A()&&Z)return a8;return L0}function $Z(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,X=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+X+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function JZ(Z,$){let J=U(Z);if(J===D(s0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let X=$.speed==="fast";return Q5(X)}let Q=u1[J];if(!Q){let X=ZZ(Z);if(X)return X;return QZ(Z,J),u1[U(h0())]??r8}return Q}function QZ(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),p1()}function XZ(Z,$){let J=JZ(Z,$);return $Z(J,$)}function u3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return XZ(Z,J)}function g1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function m1(Z){return`${g1(Z.inputTokens)}/${g1(Z.outputTokens)} per Mtok`}var K0,f1,L0,l8,a8,s8,o8,r8,e8,u1;var c1=R(()=>{B2();J0();h1();u2();F0();K0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},f1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},L0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},l8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},a8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},s8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},o8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},r8=L0,e8=[{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}}];u1={[D(v2.firstParty)]:s8,[D(y2.firstParty)]:o8,[D(_2.firstParty)]:K0,[D(E2.firstParty)]:K0,[D(I2.firstParty)]:K0,[D(T2.firstParty)]:K0,[D(h2.firstParty)]:K0,[D(f2.firstParty)]:K0,[D(M2.firstParty)]:f1,[D(S2.firstParty)]:f1,[D(C2.firstParty)]:L0,[D(s0.firstParty)]:L0,[D(o0.firstParty)]:L0,[D(r0.firstParty)]:L0,[D(A2.firstParty)]:l8}});function m(Z){return YZ.includes(Z)}function D0(Z){return qZ.includes(Z)}var YZ,qZ;var X5=R(()=>{YZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];qZ=["sonnet","opus","haiku"]});function VZ(Z,$){if(Z.includes($))return!0;if(m(Z))return T(Z).toLowerCase().includes($);return!1}function d1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function WZ(Z,$){let J=m(Z)?T(Z).toLowerCase():Z;if(d1(J,$))return!0;if(!$.startsWith("claude-")&&d1(J,`claude-${$}`))return!0;return!1}function n1(Z,$){for(let J of $){if(D0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function t1(Z){let $=M()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=X2(Z).trim().toLowerCase(),Y=J.map((q)=>q.trim().toLowerCase());if(Y.includes(X)){if(!D0(X)||!n1(X,Y))return!0}for(let q of Y)if(D0(q)&&!n1(q,Y)&&VZ(X,q))return!0;if(m(X)){let q=T(X).toLowerCase();if(Y.includes(q))return!0}for(let q of Y)if(!D0(q)&&m(q)){if(T(q).toLowerCase()===X)return!0}for(let q of Y)if(!D0(q)&&!m(q)){if(WZ(X,q))return!0}return!1}var i1=R(()=>{B0();X5();F0();Y2()});function H2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function U0(){let Z=L();if(!Z?.model)return;return e1(Z.model)}function G9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=U0();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 J4()}function x9(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function Y5(){let Z,$=a1();if($!==void 0)Z=$;else{let J=M()||{},Q=H2(J.model),Y=U0()||Q||void 0,q=r1(),V=H2(q.activeModelForProject);if(V){let G=Z4()?.id,B=q.activeModelForProjectProfileId;Z=B===void 0||B===G?V:Y}else Z=Y}if(Z&&!t1(Z))return;return Z}function B9(){let Z=Y5();if(Z!==void 0&&Z!==null)return T(Z);return Q4()}function BZ(){return N0()}function N0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=U0();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 j().opus46;return j().opus48}function u0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=U0();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 j().sonnet45;return j().sonnet5}function J4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=U0();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 j().haiku45}function j9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(Y5()==="opusplan"&&$==="plan"&&!Q)return N0();if(Y5()==="haiku"&&$==="plan")return u0();return J}function h0(){let Z=U0();if(W()==="github"){let $=M()||{};return H2($.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(R2())return N0()+(f0()?"[1m]":"");if(w2())return N0()+(f0()?"[1m]":"");return u0()}function Q4(){return T(h0())}function D(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-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 U(Z){return D(X2(Z))}function jZ(Z=!1){if(R2()||w2()){if(f0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?l1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?l1(!0):""}`}return"Sonnet 5 · Best for everyday tasks"}function H9(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return Y4(T(Z))}function l1(Z){if(W()!=="firstParty")return"";let $=m1(Q5(Z));return` ·${Z?` (${s1})`:""} ${$}`}function f0(){if(V0()||W5()||W()!=="firstParty")return!1;if(O()&&v()===null)return!1;return!0}function R9(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return o1(Z);return Y4(Z)}function X4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g2[Z])return g2[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(v0(),y0(_0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet5:return"Sonnet 5";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function Y4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function w9(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=H2(Z);if(!$)return u0();let J=$.toLowerCase(),Q=s(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return u0()+(Q?"[1m]":"");case"sonnet":return u0()+(Q?"[1m]":"");case"haiku":return J4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return BZ();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(X==="fable"||X==="fable5")return j().fable5;if(W()==="firstParty"&&RZ(X)&&wZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function F9(Z,$){if(s(Z)||!s($))return Z;if(q5(T(Z)))return Z+"[1m]";return Z}function RZ(Z){return HZ.includes(Z)}function wZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function K9(Z){if(Z===null){if(O())return`Default (${jZ()})`;return`Default (${Q4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function L9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=U(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function D9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function N9(Z){let $=U(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var HZ;var F0=R(()=>{J0();$0();i();$4();n();V5();g();xZ();Y2();c1();B0();l();zZ();i1();X5();GZ();p2();HZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function z5(Z){return}async function b9(){}var q4=()=>{};var j4={};c2(j4,{prefetchOpenAICompatibleModels:()=>PZ,getDiscoveredContextWindow:()=>FZ,discoverOpenAICompatibleModelOptions:()=>B4});function FZ(Z){return G4.get(Z)}function KZ(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function x4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function LZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function DZ(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(LZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(x4(Z))J["api-key"]=$;return J}function NZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&x4(Z)?(Y)=>{try{let q=new URL(Y);return q.searchParams.set("api-version",Q),q.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function UZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function bZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function OZ(Z,$){let J=new Set;for(let Q of Z)try{let X=await k.get(Q,{headers:$,timeout:z4}),Y=[];for(let q of X.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let G=q.name?.trim()||V,B=q.context_length??null;if(B&&B>0)G4.set(V,B);let H=B?` · ${bZ(B)}`:"";Y.push({value:V,label:G,description:`${V}${H}`})}if(Y.length>0)return Y.sort((q,V)=>{let G=String(q.value).split("/")[0]??"",B=String(V.value).split("/")[0]??"",H=G.localeCompare(B);return H!==0?H:String(q.value).localeCompare(String(V.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function kZ(Z,$){try{let J=await k.get(Z,{headers:$,timeout:z4}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function B4(){if(W()!=="openai")return[];let Z=KZ(),$=DZ(Z),J=await OZ(NZ(Z),$);if(J.length>0)return J;let Q=UZ(Z);if(Q)return kZ(Q,$);return[]}function PZ(){if(g0)return g0;return g0=(async()=>{if(!W4()?.startsWith("openai:"))return;try{let $=await B4();if($.length>0)V4($)}catch{}finally{g0=null}})(),g0}var z4=5000,G4,g0=null;var H4=R(()=>{q2();$0();c5();Z0();l();$4();G4=new Map});function w4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=R4($,J);if(X!==void 0)return X;return R4(Z,J)}function R4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function F4(Z){try{let{getDiscoveredContextWindow:J}=(H4(),y0(j4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=w4(EZ,vZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(v0(),y0(_0));return J(Z)}catch{return}}function K4(Z){let $=w4(_Z,yZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(v0(),y0(_0));return J(Z)}catch{return}}var EZ,_Z,vZ,yZ;var L4=R(()=>{$0();EZ={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,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},_Z={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,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},vZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),yZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function D4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function s(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function q5(Z){if(V0())return!1;let $=U(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function c9(Z,$){if(s(Z))return 1e6;if(D4()){let Q=F4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),IZ}let J=z5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>G5&&V0())return G5;return J.max_input_tokens}if(!V0()&&(U(Z).includes("fable-5")||U(Z).includes("sonnet-5")))return 1e6;if($?.includes(S0)&&q5(Z))return 1e6;if(SZ(Z))return 1e6;return G5}function SZ(Z){if(V0())return!1;if(s(Z))return!1;if(!U(Z).includes("sonnet-4-6"))return!1;return K().clientDataCache?.coral_reef_sonnet==="true"}function d9(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function n9(Z){let $,J;if(D4()){let Y=K4(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=U(Z);if(Q.includes("fable-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=TZ,J=MZ;let X=z5(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var G5=200000,IZ,g9=20000,TZ=32000,MZ=64000,p9=8000,m9=64000;var V5=R(()=>{e2();$0();i();g();F0();q4();L4();IZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var CZ,N4;var U4=R(()=>{l0();l();CZ=[{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"}],N4=I((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of CZ){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function AZ(Z){let $=[],J=[];for(let Q of Z)if(E4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function zQ(Z){if(!Z||Z.length===0)return;if(O()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=AZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${E4.join(", ")}`);return $.length>0?$:void 0}function b4(Z){let $=N4(Z,"interleaved_thinking");if($!==void 0)return $;let J=U(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-sonnet-5")||J.includes("claude-sonnet-4")}function hZ(Z){let $=U(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function fZ(Z){let $=U(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function uZ(Z){let $=U(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-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 GQ(Z){let $=U(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 xQ(){let Z=W();if(Z==="vertex"||Z==="bedrock")return U1;return N1}function O4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function BQ(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function jQ(Z,$){let J=[..._4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=k4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function v4(){x5.cache?.clear?.(),_4.cache?.clear?.(),gZ.cache?.clear?.()}var E4,x5,_4,gZ;var y4=R(()=>{l0();v1();J0();e2();M0();n();V5();g();F0();U4();l();B0();E4=[S0];x5=I((Z)=>{let $=[],J=U(Z).includes("haiku"),Q=W(),X=O4();if(!J)$.push(G2);if(O())$.push(j0);if(s(Z))$.push(S0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&b4(Z))$.push(K1);if(X&&b4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(O1),$.push(k1);let Y=fZ(Z);if(O4()&&Y)$.push(L1);let q=P4("tengu_tool_pear"),V=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(X&&uZ(Z)&&q)$.push(D1);if(X&&V)$.push(P1);if(Q==="vertex"&&hZ(Z))$.push(o2);if(Q==="foundry")$.push(o2);if(X)$.push(b1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),_4=I((Z)=>{let $=x5(Z);if(W()==="bedrock")return $.filter((J)=>!r2.has(J));return $}),gZ=I((Z)=>{return x5(Z).filter((J)=>r2.has(J))})});import{execFile as pZ}from"child_process";function I4(Z){return new Promise(($)=>{pZ("security",["find-generic-password","-a",K2(),"-w","-s",Z],{encoding:"utf-8",timeout:mZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function KQ(){if(process.platform!=="darwin"||F2||u())return;let Z=I4(a(T4)),$=I4(a());F2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)M4(J.stdout);if(!Q.timedOut)B5={stdout:Q.stdout}})}async function LQ(){if(F2)await F2}function S4(){return B5}function j5(){B5=null}var mZ=1e4,B5=null,F2=null;var C4=R(()=>{g();a2()});function H5(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((V,G,B)=>{V?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)Y.unref()})}var A4=()=>{};function UQ(){return h4}function f4(){h4.clear()}var h4;var u4=R(()=>{h4=new Map});var T$={};c2(T$,{validateForceLoginOrg:()=>I$,saveOAuthTokensIfNeeded:()=>J8,saveApiKey:()=>v5,removeApiKey:()=>K$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>Z8,refreshAwsAuth:()=>r4,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>H$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>R$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>Q$,isUsing3PServices:()=>U2,isTeamSubscriber:()=>O$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>W5,isOverageProvisioningAllowed:()=>U$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>q8,isMaxSubscriber:()=>R2,isGcpAuthRefreshFromProjectSettings:()=>E5,isEnterpriseSubscriber:()=>k$,isCustomApiKeyApproved:()=>F$,isConsumerSubscriber:()=>v$,isClaudeAISubscriber:()=>O,isAwsCredentialExportFromProjectSettings:()=>k5,isAwsAuthRefreshFromProjectSettings:()=>b5,isAnthropicAuthEnabled:()=>P0,is1PApiCustomer:()=>N$,hasProfileScope:()=>q0,hasOpusAccess:()=>b$,hasAnthropicApiKeyAuth:()=>eZ,handleOAuth401Error:()=>J5,getSubscriptionType:()=>v,getSubscriptionName:()=>X8,getRateLimitTier:()=>Q8,getOtelHeadersFromHelper:()=>E$,getOauthAccountInfo:()=>N2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>T0,getApiKeyHelperElapsedMs:()=>Z$,getApiKeyFromConfigOrMacOSKeychain:()=>O2,getApiKeyFromApiKeyHelperCached:()=>w5,getApiKeyFromApiKeyHelper:()=>o4,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>y$,clearOAuthTokenCache:()=>y5,clearGcpCredentialsCache:()=>j$,clearAwsCredentialsCache:()=>W$,clearApiKeyHelperCache:()=>J$,checkGcpCredentialsValid:()=>e4,checkAndRefreshOAuthTokenIfNeeded:()=>t0,calculateApiKeyHelperTTL:()=>s4});import{exec as l4}from"child_process";import{mkdir as aZ,stat as sZ}from"fs/promises";import{join as oZ}from"path";function D2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function P0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=U2(),J=(M()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!D2()||Y&&!D2())}function T0(){if(u()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(o()&&!D2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function eZ(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=L();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:w5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=c4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=l2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!U2()&&!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&&!U2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&K().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:w5(),source:"apiKeyHelper"}}let Y=O2();if(Y)return Y;return{key:null,source:"none"}}function o(){if(u())return P("flagSettings")?.apiKeyHelper;return(M()||{}).apiKeyHelper}function a4(){let Z=o();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function U5(){return(M()||{}).awsAuthRefresh}function b5(){let Z=U5();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function O5(){return(M()||{}).awsCredentialExport}function k5(){let Z=O5();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function s4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return rZ}function Z$(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function o4(Z){if(!o())return null;let $=s4();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!c)c={promise:g4(Z,!1,O0),startedAt:null};return y.value}if(c)return c.promise;return c={promise:g4(Z,!0,O0),startedAt:Date.now()},c.promise}async function g4(Z,$,J){try{let Q=await $$(Z);if(J!==O0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==O0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===O0)c=null}}async function $$(Z){let $=o();if(!$)return null;if(a4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",Y),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await R0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function w5(){return y?.value??null}function J$(){O0++,y=null,c=null}function Q$(Z){if(a4()&&!d())return;o4(Z)}async function Y$(){let Z=U5();if(!Z)return!1;if(b5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await s2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return r4(Z)}}function r4(Z){z("Running AWS auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:q$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function V$(){let Z=O5();if(!Z)return null;if(k5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await s2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await R0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=L5($.stdout.trim());if(!j1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function W$(){z0.cache.clear()}function P5(){return(M()||{}).gcpAuthRefresh}function E5(){let Z=P5();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function e4(){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=H5(z$).then(()=>{throw new V8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function x$(){let Z=P5();if(!Z)return!1;if(E5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await e4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Z8(Z)}function Z8(Z){z("Running GCP auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:B$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function j$(){_5.cache.clear()}function H$(){if(!P5())return;if(E5()){if(!d()&&!f())return}_5()}function R$(){let Z=U5(),$=O5();if(!Z&&!$)return;if(b5()||k5()){if(!d()&&!f())return}z0(),j()}function w$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function v5(Z){if(!w$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await $8();let $=!1;if(process.platform==="darwin")try{let Q=a(),X=K2(),Y=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
2
- `;await R0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){N(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=z2(Z);C((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),O2.cache.clear?.(),j5()}function F$(Z){let $=K(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function K$(){await $8(),C((Z)=>({...Z,primaryApiKey:void 0})),O2.cache.clear?.(),j5()}async function $8(){try{await x1()}catch(Z){N(Z)}}function J8(Z){if(!k0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=b2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),v4(),f4(),Y}catch(Q){return N(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function y5(){w.cache?.clear?.(),b0()}async function L$(){try{let{mtimeMs:Z}=await sZ(oZ(K5(),".credentials.json"));if(Z!==p4)p4=Z,y5()}catch{w.cache?.clear?.()}}function J5(Z){let $=R5.get(Z);if($)return $;let J=D$(Z).finally(()=>{R5.delete(Z)});return R5.set(Z,J),J}async function D$(Z){y5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return t0(0,!0)}async function c0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await b2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return N(Z),null}}function t0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=F5(Z,$).finally(()=>{p0=null}),p0}return F5(Z,$)}async function F5(Z,$){await L$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),b0();let X=await c0();if(!X?.refreshToken||!m0(X.expiresAt))return!1;let Y=K5();await aZ(Y,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await n4(Y),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await H5(1000+Math.random()*1000),F5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return N(V),x("tengu_oauth_token_refresh_lock_error",{error:p(V)}),!1}try{w.cache?.clear?.(),b0();let V=await c0();if(!V?.refreshToken||!m0(V.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await t4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return J8(G),w.cache?.clear?.(),b0(),!0}catch(V){N(V),w.cache?.clear?.(),b0();let G=await c0();if(G&&!m0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await q(),x("tengu_oauth_token_refresh_lock_released",{})}}function O(){if(!P0())return!1;return k0(w()?.scopes)}function q0(){return w()?.scopes?.includes(d4)??!1}function N$(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(O())return!1;return!0}function N2(){return P0()?K().oauthAccount:void 0}function U$(){let $=N2()?.billingType;if(!O()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function b$(){let Z=v();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function v(){if(e5())return r5();if(!P0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function R2(){return v()==="max"}function O$(){return v()==="team"}function w2(){return v()==="team"&&Q8()==="default_claude_max_5x"}function k$(){return v()==="enterprise"}function W5(){return v()==="pro"}function Q8(){if(!P0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function X8(){switch(v()){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 U2(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function Y8(){return(M()||{}).otelHeadersHelper}function q8(){let Z=Y8();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function E$(){let Z=Y8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||P$.toString());if(L2&&Date.now()-m4<$)return L2;if(q8()){if(!d())return{}}try{let J=D5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=L5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return L2=Q,m4=Date.now(),L2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function _$(Z){return Z==="max"||Z==="pro"}function v$(){let Z=v();return O()&&Z!==null&&_$(Z)}function y$(){if(W()!=="firstParty")return;let{source:$}=T0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(O())J.subscription=X8();else J.tokenSource=$;let{key:Q,source:X}=n0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let q=N2()?.organizationName;if(q)J.organization=q}let Y=N2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function I$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!P0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await t0();let $=w();if(!$)return{valid:!0};let{source:J}=T0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await H0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
- This machine requires organization ${Z} but the profile could not be fetched.
4
- This may be a network error, or the token may lack the user:profile scope required for
5
- verification (tokens from 'claude setup-token' do not include this scope).
6
- Try again, or obtain a full-scope token via 'claude auth login'.`};let Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
- different organization than required by this machine's managed settings.
8
-
9
- Required organization: ${Z}
10
- Token organization: ${Y}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var rZ=300000,y=null,c=null,O0=0,X$=3600000,q$=180000,z0,z$=5000,G$=3600000,B$=180000,_5,O2,w,p4=0,R5,p0=null,L2=null,m4=0,P$=1740000,V8;var n=R(()=>{dZ();G1();l0();M0();B2();Y2();l();J0();$0();Z1();i4();t2();z1();B1();R1();F1();y4();i();Z0();g();V1();nZ();iZ();a0();tZ();lZ();C4();a2();B0();A4();cZ();u4();z0=N5(async()=>{let Z=await Y$(),$=await V$();if(Z||$)await H1();return $},X$);_5=N5(async()=>{return await x$()},G$);O2=I(()=>{if(u())return null;if(process.platform==="darwin"){let $=S4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=a();try{let Q=D5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){N(Q)}}}let Z=K();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=I(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=b2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});R5=new Map;V8=class V8 extends Error{}});function k0(Z){return Boolean(Z?.includes(I5))}function M$(Z){return Z?.split(" ").filter(Boolean)??[]}function B7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:q,loginHint:V,loginMethod:G}){let B=X?b().CLAUDE_AI_AUTHORIZE_URL:b().CONSOLE_AUTHORIZE_URL,H=new URL(B);H.searchParams.append("code","true"),H.searchParams.append("client_id",b().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?b().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=Y?[I5]:G8;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),q)H.searchParams.append("orgUUID",q);if(V)H.searchParams.append("login_hint",V);if(G)H.searchParams.append("login_method",G);return H.toString()}async function j7(Z,$,J,Q,X=!1,Y){let q={grant_type:"authorization_code",code:Z,redirect_uri:X?b().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:b().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)q.expires_in=Y;let V=await k.post(b().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("tengu_oauth_token_exchange_success",{}),V.data}async function t4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:b().CLIENT_ID,scope:(($?.length)?$:z8).join(" ")};try{let Q=await k.post(b().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:q=Z,expires_in:V}=X,G=Date.now()+V*1000,B=M$(X.scope);x("tengu_oauth_token_refresh_success",{});let H=K(),W0=w(),E=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await S$(Y);if(E&&H.oauthAccount){let r={};if(E.displayName!==void 0)r.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)r.billingType=E.billingType;if(E.accountCreatedAt!==void 0)r.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(r).length>0)C((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...r}:i0.oauthAccount}))}return{accessToken:Y,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??W0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=k.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function H7(Z){let $=await k.get(b().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!K().oauthAccount)throw Error("OAuth account information not found in config");C((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function R7(Z){try{let $=await k.post(b().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await v5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function S$(Z){let $=await H0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function w7(){let $=K().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let X=(await H0(J))?.organization?.uuid;if(!X)return null;return X}async function F7(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!K().oauthAccount)W8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await t0();let X=K();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!O()||!q0())return!1;let Y=w();if(Y?.accessToken){let q=await H0(Y.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return W8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function W8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:V}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var i4=R(()=>{q2();B2();M0();n();i();Z0();t2()});
16
- export{KQ as u4,LQ as v4,C4 as w4,T5 as x4,M5 as y4,m$ as z4,c$ as A4,B8 as B4,R8 as C4,d$ as D4,h5 as E4,s0 as F4,o0 as G4,G0 as H4,u2 as I4,n2 as J4,U8 as K4,v0 as L4,W as M4,JJ as N4,_8 as O4,QJ as P4,XJ as Q4,YJ as R4,l as S4,j as T4,HJ as U4,Y2 as V4,LJ as W4,DJ as X4,o5 as Y4,OJ as Z4,kJ as _4,Z1 as $4,TJ as a5,H0 as b5,t2 as c5,k0 as d5,M$ as e5,B7 as f5,j7 as g5,t4 as h5,H7 as i5,R7 as j5,m0 as k5,S$ as l5,w7 as m5,F7 as n5,W8 as o5,i4 as p5,gJ as q5,h8 as r5,$1 as s5,z1 as t5,z2 as u5,B1 as v5,tJ as w5,R1 as x5,S as y5,F1 as z5,S0 as A5,L1 as B5,D1 as C5,sJ as D5,oJ as E5,b1 as F5,rJ as G5,eJ as H5,O1 as I5,Z3 as J5,$3 as K5,J3 as L5,e2 as M5,A as N5,T1 as O5,p8 as P5,L3 as Q5,D3 as R5,N3 as S5,M1 as T5,U3 as U5,b3 as V5,m8 as W5,O3 as X5,k3 as Y5,P3 as Z5,E3 as _5,_3 as $5,n8 as a6,v3 as b6,y3 as c6,I3 as d6,T3 as e6,h1 as f6,K0 as g6,l8 as h6,s8 as i6,o8 as j6,Q5 as k6,XZ as l6,u3 as m6,m1 as n6,c1 as o6,YZ as p6,X5 as q6,t1 as r6,i1 as s6,G9 as t6,x9 as u6,Y5 as v6,B9 as w6,BZ as x6,N0 as y6,u0 as z6,J4 as A6,j9 as B6,h0 as C6,Q4 as D6,D as E6,U as F6,jZ as G6,H9 as H6,l1 as I6,f0 as J6,R9 as K6,X4 as L6,Y4 as M6,w9 as N6,T as O6,F9 as P6,wZ as Q6,K9 as R6,L9 as S6,D9 as T6,N9 as U6,F0 as V6,b9 as W6,q4 as X6,B4 as Y6,PZ as Z6,H4 as _6,g9 as $6,p9 as a7,m9 as b7,V0 as c7,s as d7,c9 as e7,SZ as f7,d9 as g7,n9 as h7,V5 as i7,N4 as j7,U4 as k7,zQ as l7,uZ as m7,GQ as n7,xQ as o7,O4 as p7,BQ as q7,_4 as r7,gZ as s7,jQ as t7,v4 as u7,y4 as v7,H5 as w7,A4 as x7,UQ as y7,f4 as z7,u4 as A7,P0 as B7,T0 as C7,X0 as D7,eZ as E7,n0 as F7,o as G7,b5 as H7,k5 as I7,s4 as J7,Z$ as K7,o4 as L7,w5 as M7,J$ as N7,Q$ as O7,r4 as P7,z0 as Q7,W$ as R7,E5 as S7,e4 as T7,Z8 as U7,_5 as V7,j$ as W7,H$ as X7,R$ as Y7,O2 as Z7,v5 as _7,F$ as $7,K$ as a8,J8 as b8,w as c8,y5 as d8,J5 as e8,c0 as f8,t0 as g8,O as h8,q0 as i8,N$ as j8,N2 as k8,U$ as l8,b$ as m8,v as n8,R2 as o8,O$ as p8,w2 as q8,k$ as r8,W5 as s8,Q8 as t8,X8 as u8,U2 as v8,q8 as w8,E$ as x8,v$ as y8,y$ as z8,I$ as A8,T$ as B8,n as C8};