@claudiolabs/claudin 1.0.12 → 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 (910) 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-dg21ms7f.mjs +2 -0
  125. package/dist/chunks/cli-1.0.13-dwp60tja.mjs +2 -0
  126. package/dist/chunks/cli-1.0.13-e19bb64d.mjs +4 -0
  127. package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +2 -0
  128. package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +2 -0
  129. package/dist/chunks/cli-1.0.13-e464ab16.mjs +2 -0
  130. package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +2 -0
  131. package/dist/chunks/cli-1.0.13-e9q9245e.mjs +2 -0
  132. package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +2 -0
  133. package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +3 -0
  134. package/dist/chunks/cli-1.0.13-f38bh25k.mjs +12 -0
  135. package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +133 -0
  136. package/dist/chunks/cli-1.0.13-fb695nhr.mjs +67 -0
  137. package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +2 -0
  138. package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +2 -0
  139. package/dist/chunks/cli-1.0.13-frs40s6h.mjs +2 -0
  140. package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +2 -0
  141. package/dist/chunks/cli-1.0.13-fta82vnx.mjs +2 -0
  142. package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +8 -0
  143. package/dist/chunks/cli-1.0.13-g7daabde.mjs +3 -0
  144. package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +2 -0
  145. package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +2 -0
  146. package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +16 -0
  147. package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +2 -0
  148. package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +39 -0
  149. package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +2 -0
  150. package/dist/chunks/cli-1.0.13-jdxaky02.mjs +12 -0
  151. package/dist/chunks/cli-1.0.13-jkahzkac.mjs +12 -0
  152. package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +2 -0
  153. package/dist/chunks/cli-1.0.13-jsezewz5.mjs +2 -0
  154. package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +2 -0
  155. package/dist/chunks/cli-1.0.13-k4znag0a.mjs +2 -0
  156. package/dist/chunks/cli-1.0.13-k71bq854.mjs +2 -0
  157. package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +2 -0
  158. package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +2 -0
  159. package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +12 -0
  160. package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +2 -0
  161. package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +3 -0
  162. package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +7 -0
  163. package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +2 -0
  164. package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +5495 -0
  165. package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +2 -0
  166. package/dist/chunks/cli-1.0.13-mazxedqg.mjs +4 -0
  167. package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +2 -0
  168. package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +59 -0
  169. package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +2 -0
  170. package/dist/chunks/cli-1.0.13-ndthc14d.mjs +2 -0
  171. package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +2 -0
  172. package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +15 -0
  173. package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +202 -0
  174. package/dist/chunks/cli-1.0.13-p43t5py0.mjs +2 -0
  175. package/dist/chunks/cli-1.0.13-p7b51har.mjs +2 -0
  176. package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +2 -0
  177. package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +6 -0
  178. package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +2 -0
  179. package/dist/chunks/cli-1.0.13-pwfpt641.mjs +2 -0
  180. package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +17 -0
  181. package/dist/chunks/cli-1.0.13-q40za40w.mjs +50 -0
  182. package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +2 -0
  183. package/dist/chunks/cli-1.0.13-qx079tft.mjs +2 -0
  184. package/dist/chunks/cli-1.0.13-qxebhem2.mjs +2 -0
  185. package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +2 -0
  186. package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +2 -0
  187. package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +4 -0
  188. package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +2 -0
  189. package/dist/chunks/cli-1.0.13-rhptvh17.mjs +2 -0
  190. package/dist/chunks/cli-1.0.13-rxd329nn.mjs +24 -0
  191. package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +2 -0
  192. package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +2 -0
  193. package/dist/chunks/cli-1.0.13-s15merj9.mjs +2 -0
  194. package/dist/chunks/cli-1.0.13-s16wgevn.mjs +2 -0
  195. package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +2 -0
  196. package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +24 -0
  197. package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +2 -0
  198. package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +20 -0
  199. package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +2 -0
  200. package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +24 -0
  201. package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +2 -0
  202. package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +2 -0
  203. package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +2 -0
  204. package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +2 -0
  205. package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +2 -0
  206. package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +17 -0
  207. package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +2 -0
  208. package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +2 -0
  209. package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +3 -0
  210. package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +2 -0
  211. package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +2 -0
  212. package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +2 -0
  213. package/dist/chunks/cli-1.0.13-trkevtw9.mjs +2 -0
  214. package/dist/chunks/cli-1.0.13-tyhtztew.mjs +2 -0
  215. package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +21 -0
  216. package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +2 -0
  217. package/dist/chunks/cli-1.0.13-v4annnm3.mjs +2 -0
  218. package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +4 -0
  219. package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +133 -0
  220. package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +2 -0
  221. package/dist/chunks/cli-1.0.13-vb85p8we.mjs +2 -0
  222. package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +2 -0
  223. package/dist/chunks/cli-1.0.13-vd01re4x.mjs +2 -0
  224. package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +2 -0
  225. package/dist/chunks/cli-1.0.13-vs4d56js.mjs +2 -0
  226. package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +2 -0
  227. package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +5 -0
  228. package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +2 -0
  229. package/dist/chunks/cli-1.0.13-w5jash5n.mjs +2 -0
  230. package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +2 -0
  231. package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +2 -0
  232. package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +6 -0
  233. package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +2 -0
  234. package/dist/chunks/cli-1.0.13-wsk4823v.mjs +2 -0
  235. package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +4 -0
  236. package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +3 -0
  237. package/dist/chunks/cli-1.0.13-xajnmhak.mjs +2 -0
  238. package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +2 -0
  239. package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +2 -0
  240. package/dist/chunks/cli-1.0.13-xr55511t.mjs +2 -0
  241. package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +42 -0
  242. package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +18 -0
  243. package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +6 -0
  244. package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +2 -0
  245. package/dist/chunks/cli-1.0.13-y74xv34r.mjs +4 -0
  246. package/dist/chunks/cli-1.0.13-yb1smx77.mjs +2 -0
  247. package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +4 -0
  248. package/dist/chunks/cli-1.0.13-yq7961x3.mjs +4 -0
  249. package/dist/chunks/cli-1.0.13-yr590qbp.mjs +3 -0
  250. package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +2 -0
  251. package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +2 -0
  252. package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +3 -0
  253. package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +2 -0
  254. package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +2 -0
  255. package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +2 -0
  256. package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +2 -0
  257. package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +2 -0
  258. package/dist/chunks/client-1.0.13-jj0v4n27.mjs +1 -0
  259. package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +1 -0
  260. package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +3 -0
  261. package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +1 -0
  262. package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +1 -0
  263. package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +1 -0
  264. package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +1 -0
  266. package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +1 -0
  268. package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +9 -0
  269. package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +1 -0
  271. package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +1 -0
  272. package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +1446 -0
  274. package/dist/chunks/desktop-1.0.13-e005km58.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +1 -0
  276. package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +1 -0
  277. package/dist/chunks/diff-1.0.13-9jypv082.mjs +1 -0
  278. package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +1 -0
  281. package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +10 -0
  282. package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +1 -0
  284. package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +1 -0
  286. package/dist/chunks/environments-1.0.13-w5a33d52.mjs +1 -0
  287. package/dist/chunks/errors-1.0.13-wrs4k863.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +1 -0
  290. package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +1 -0
  291. package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +1 -0
  292. package/dist/chunks/export-1.0.13-cbatvd1c.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +1 -0
  295. package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +1 -0
  296. package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +1 -0
  298. package/dist/chunks/git-1.0.13-9196pgzv.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +1 -0
  300. package/dist/chunks/goal-1.0.13-cty957vz.mjs +4 -0
  301. package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +1 -0
  302. package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +1 -0
  303. package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +2 -0
  304. package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +6 -0
  305. package/dist/chunks/help-1.0.13-em333cwb.mjs +1 -0
  306. package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +3 -0
  307. package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +79 -0
  308. package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +1 -0
  309. package/dist/chunks/ide-1.0.13-4z1afk08.mjs +3 -0
  310. package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +1 -0
  311. package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +1 -0
  312. package/dist/chunks/index-1.0.13-361h9v63.mjs +1 -0
  313. package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +1 -0
  314. package/dist/chunks/index-1.0.13-55th4hhq.mjs +1 -0
  315. package/dist/chunks/index-1.0.13-55vgc9cr.mjs +1 -0
  316. package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +1 -0
  317. package/dist/chunks/index-1.0.13-792fhv61.mjs +1 -0
  318. package/dist/chunks/index-1.0.13-8k0904bs.mjs +1 -0
  319. package/dist/chunks/index-1.0.13-ace8202d.mjs +2 -0
  320. package/dist/chunks/index-1.0.13-e20f9w6f.mjs +1 -0
  321. package/dist/chunks/index-1.0.13-efh2qbe0.mjs +1 -0
  322. package/dist/chunks/index-1.0.13-ej84k860.mjs +1 -0
  323. package/dist/chunks/index-1.0.13-fnd36467.mjs +2 -0
  324. package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +30 -0
  325. package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +1 -0
  326. package/dist/chunks/index-1.0.13-j0146ntq.mjs +1 -0
  327. package/dist/chunks/index-1.0.13-jackh0p4.mjs +17 -0
  328. package/dist/chunks/index-1.0.13-kfmh713v.mjs +9 -0
  329. package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +1 -0
  330. package/dist/chunks/index-1.0.13-rrm8s54m.mjs +1 -0
  331. package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +1 -0
  332. package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +5 -0
  333. package/dist/chunks/index-1.0.13-y5wahjbd.mjs +9 -0
  334. package/dist/chunks/index-1.0.13-ykat42gv.mjs +1 -0
  335. package/dist/chunks/init-1.0.13-pyw980be.mjs +1 -0
  336. package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +1 -0
  337. package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +1 -0
  338. package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +870 -0
  339. package/dist/chunks/install-1.0.13-afmkvg4q.mjs +1 -0
  340. package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +149 -0
  341. package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +1 -0
  342. package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +1 -0
  343. package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +1 -0
  344. package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +2 -0
  345. package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +2 -0
  346. package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +1 -0
  347. package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +1 -0
  350. package/dist/chunks/log-1.0.13-3sscdqcx.mjs +1 -0
  351. package/dist/chunks/main-1.0.13-h958ytkv.mjs +1 -0
  352. package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +1 -0
  353. package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +4 -0
  354. package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +1 -0
  355. package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +17 -0
  356. package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +1 -0
  357. package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +72 -0
  358. package/dist/chunks/model-1.0.13-28wkmva5.mjs +2 -0
  359. package/dist/chunks/model-1.0.13-wbne69bf.mjs +1 -0
  360. package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +12 -0
  361. package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +1 -0
  362. package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +14 -0
  363. package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +1 -0
  364. package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +1 -0
  365. package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +1 -0
  366. package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +1 -0
  367. package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +1 -0
  368. package/dist/chunks/permissions-1.0.13-091a123r.mjs +1 -0
  369. package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +3 -0
  370. package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +1 -0
  371. package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +1 -0
  372. package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +29 -0
  373. package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +1 -0
  374. package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +9 -0
  375. package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +2 -0
  376. package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +57 -0
  377. package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +1 -0
  378. package/dist/chunks/process-1.0.13-yvqmferw.mjs +1 -0
  379. package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +1 -0
  380. package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +9 -0
  381. package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +1 -0
  382. package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +1 -0
  383. package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +1 -0
  384. package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +13 -0
  385. package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +2 -0
  386. package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +1 -0
  387. package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +6 -0
  388. package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +1 -0
  389. package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +34 -0
  390. package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +1 -0
  391. package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +5 -0
  392. package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +2 -0
  393. package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +1 -0
  394. package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +1 -0
  395. package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +1 -0
  396. package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +1 -0
  397. package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +1 -0
  398. package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +1 -0
  399. package/dist/chunks/resume-1.0.13-g7w8k889.mjs +2 -0
  400. package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +1 -0
  401. package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +1 -0
  402. package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +10 -0
  403. package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +1 -0
  404. package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +1 -0
  405. package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +2 -0
  406. package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +1 -0
  407. package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +1 -0
  408. package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +1 -0
  409. package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +1 -0
  410. package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +5 -0
  411. package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +1 -0
  412. package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +1 -0
  413. package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +1 -0
  414. package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +1 -0
  415. package/dist/chunks/state-1.0.13-zq29wtdm.mjs +1 -0
  416. package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +6 -0
  417. package/dist/chunks/status-1.0.13-t69r10gd.mjs +1 -0
  418. package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +1 -0
  419. package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +1 -0
  420. package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +1 -0
  421. package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +1 -0
  422. package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +1 -0
  423. package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +1 -0
  424. package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +1 -0
  425. package/dist/chunks/theme-1.0.13-qh1caywb.mjs +1 -0
  426. package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +1 -0
  427. package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +1 -0
  428. package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +1 -0
  429. package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +1 -0
  430. package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +1 -0
  431. package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +1 -0
  432. package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +69 -0
  433. package/dist/chunks/types-1.0.13-7xc46cqv.mjs +1 -0
  434. package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +4 -0
  435. package/dist/chunks/update-1.0.13-yevsj7ad.mjs +88 -0
  436. package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +1 -0
  437. package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +7 -0
  438. package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +14 -0
  439. package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +1 -0
  440. package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +1 -0
  441. package/dist/chunks/util-1.0.13-87gxb90q.mjs +1 -0
  442. package/dist/chunks/utils-1.0.13-c5pe460e.mjs +1 -0
  443. package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +1 -0
  444. package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +13 -0
  445. package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +1 -0
  446. package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +132 -0
  447. package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +1 -0
  448. package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +1 -0
  449. package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +1 -0
  450. package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +7 -0
  451. package/dist/cli.mjs +2 -2
  452. package/package.json +9 -9
  453. package/dist/chunks/AgentTool-1.0.12-abyv62fr.mjs +0 -1
  454. package/dist/chunks/App-1.0.12-dn7sszp8.mjs +0 -1
  455. package/dist/chunks/ApproveApiKey-1.0.12-vx8944sv.mjs +0 -1
  456. package/dist/chunks/AssistantSessionChooser-1.0.12-ke187zyp.mjs +0 -1
  457. package/dist/chunks/AutoModeOptInDialog-1.0.12-4evyjnv0.mjs +0 -1
  458. package/dist/chunks/BypassPermissionsModeDialog-1.0.12-d9mwxc90.mjs +0 -1
  459. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.12-3jmx6cgy.mjs +0 -1
  460. package/dist/chunks/ConsoleOAuthFlow-1.0.12-3kmzdqzg.mjs +0 -1
  461. package/dist/chunks/DiffDialog-1.0.12-qj1xvjhw.mjs +0 -7
  462. package/dist/chunks/Doctor-1.0.12-51vy6wdx.mjs +0 -1
  463. package/dist/chunks/ExplorerDialog-1.0.12-96frvk0f.mjs +0 -6
  464. package/dist/chunks/Grove-1.0.12-56863ex7.mjs +0 -1
  465. package/dist/chunks/ITermBackend-1.0.12-r6mxvzaa.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.0.12-79dad11d.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.0.12-stz0gsem.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.0.12-zyd4mdh4.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.0.12-zbfxpy94.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.0.12-p8zk25w6.mjs +0 -1
  471. package/dist/chunks/REPL-1.0.12-fqnth064.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.0.12-0qfj43z7.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.0.12-bnjcb979.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.0.12-c6fa4qje.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.0.12-ycm47j1m.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.0.12-9rp6hs4x.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.0.12-41jckn7c.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.0.12-c9n0hbpv.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.0.12-7fnas2qv.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.0.12-gv2mp6kz.mjs +0 -1
  481. package/dist/chunks/add-dir-1.0.12-fpqr5x3k.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.0.12-vrw22nhr.mjs +0 -1
  483. package/dist/chunks/agents-1.0.12-b7qmsh41.mjs +0 -3
  484. package/dist/chunks/agents-1.0.12-swx0yj99.mjs +0 -110
  485. package/dist/chunks/api-1.0.12-7ekn0cc8.mjs +0 -1
  486. package/dist/chunks/asciicast-1.0.12-bwarrcwq.mjs +0 -1
  487. package/dist/chunks/assistant-1.0.12-85mxf1m6.mjs +0 -1
  488. package/dist/chunks/auth-1.0.12-cefhne6z.mjs +0 -1
  489. package/dist/chunks/auth-1.0.12-snebfssk.mjs +0 -1
  490. package/dist/chunks/autoMode-1.0.12-9n08nqfk.mjs +0 -48
  491. package/dist/chunks/autoUpdater-1.0.12-h50vcbqf.mjs +0 -1
  492. package/dist/chunks/backgroundHousekeeping-1.0.12-tdh1q45w.mjs +0 -1
  493. package/dist/chunks/branch-1.0.12-863hng5d.mjs +0 -4
  494. package/dist/chunks/bridge-1.0.12-a5nw09de.mjs +0 -2
  495. package/dist/chunks/bridgeConfig-1.0.12-x66p8c5q.mjs +0 -1
  496. package/dist/chunks/bridgeEnabled-1.0.12-0wztb1hd.mjs +0 -1
  497. package/dist/chunks/bridgeMain-1.0.12-038n798h.mjs +0 -88
  498. package/dist/chunks/bridgePointer-1.0.12-9sjcxc3h.mjs +0 -1
  499. package/dist/chunks/btw-1.0.12-k26an2yc.mjs +0 -1
  500. package/dist/chunks/buddy-1.0.12-fpfpe288.mjs +0 -3
  501. package/dist/chunks/cacache-1.0.12-tee370hf.mjs +0 -1
  502. package/dist/chunks/cache-probe-1.0.12-ch8554yv.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.0.12-9e5dx6pf.mjs +0 -4
  504. package/dist/chunks/caches-1.0.12-40h57pd6.mjs +0 -1
  505. package/dist/chunks/claudeDesktop-1.0.12-9cxdymhn.mjs +0 -1
  506. package/dist/chunks/claudemd-1.0.12-9dezcbgf.mjs +0 -1
  507. package/dist/chunks/clear-1.0.12-rhwxvjx8.mjs +0 -1
  508. package/dist/chunks/clearTerminal-1.0.12-33ecg1d7.mjs +0 -1
  509. package/dist/chunks/cli-1.0.12-05z376bz.mjs +0 -2
  510. package/dist/chunks/cli-1.0.12-0hs0n73e.mjs +0 -2
  511. package/dist/chunks/cli-1.0.12-0smh9wwk.mjs +0 -2
  512. package/dist/chunks/cli-1.0.12-0ttcqcck.mjs +0 -133
  513. package/dist/chunks/cli-1.0.12-18q23t16.mjs +0 -2
  514. package/dist/chunks/cli-1.0.12-1bcrzsgk.mjs +0 -45
  515. package/dist/chunks/cli-1.0.12-1cr9ram8.mjs +0 -21
  516. package/dist/chunks/cli-1.0.12-1dt50yfn.mjs +0 -4
  517. package/dist/chunks/cli-1.0.12-1n68xsye.mjs +0 -2
  518. package/dist/chunks/cli-1.0.12-1qc9gpzw.mjs +0 -12
  519. package/dist/chunks/cli-1.0.12-21c23686.mjs +0 -9
  520. package/dist/chunks/cli-1.0.12-22gbc57h.mjs +0 -2
  521. package/dist/chunks/cli-1.0.12-27qnbw76.mjs +0 -2
  522. package/dist/chunks/cli-1.0.12-2kt5mqgg.mjs +0 -2
  523. package/dist/chunks/cli-1.0.12-2nmjd3nj.mjs +0 -2
  524. package/dist/chunks/cli-1.0.12-2yt4jp97.mjs +0 -2
  525. package/dist/chunks/cli-1.0.12-321h968k.mjs +0 -2
  526. package/dist/chunks/cli-1.0.12-352e65vc.mjs +0 -2
  527. package/dist/chunks/cli-1.0.12-37c8ygq5.mjs +0 -6
  528. package/dist/chunks/cli-1.0.12-3fnggb5b.mjs +0 -133
  529. package/dist/chunks/cli-1.0.12-3n5xx9qt.mjs +0 -18
  530. package/dist/chunks/cli-1.0.12-3ncccq9x.mjs +0 -2
  531. package/dist/chunks/cli-1.0.12-3pn1zvqm.mjs +0 -2
  532. package/dist/chunks/cli-1.0.12-3r1201w4.mjs +0 -2
  533. package/dist/chunks/cli-1.0.12-3ya2dc5e.mjs +0 -2
  534. package/dist/chunks/cli-1.0.12-4hwr3sdf.mjs +0 -2
  535. package/dist/chunks/cli-1.0.12-4p7v89wr.mjs +0 -2
  536. package/dist/chunks/cli-1.0.12-57gs15yp.mjs +0 -18
  537. package/dist/chunks/cli-1.0.12-5efdpv3j.mjs +0 -2
  538. package/dist/chunks/cli-1.0.12-5sztdycm.mjs +0 -2
  539. package/dist/chunks/cli-1.0.12-65451rqd.mjs +0 -6
  540. package/dist/chunks/cli-1.0.12-67258wf2.mjs +0 -2
  541. package/dist/chunks/cli-1.0.12-6a3h6ptq.mjs +0 -2
  542. package/dist/chunks/cli-1.0.12-6p5xq1zz.mjs +0 -2
  543. package/dist/chunks/cli-1.0.12-6r2ap1g8.mjs +0 -4
  544. package/dist/chunks/cli-1.0.12-6rebetxb.mjs +0 -2
  545. package/dist/chunks/cli-1.0.12-6s4gq7fa.mjs +0 -2
  546. package/dist/chunks/cli-1.0.12-6tg9g6jd.mjs +0 -18
  547. package/dist/chunks/cli-1.0.12-76954fs2.mjs +0 -2
  548. package/dist/chunks/cli-1.0.12-769ev05r.mjs +0 -2
  549. package/dist/chunks/cli-1.0.12-7gt5bvcm.mjs +0 -16
  550. package/dist/chunks/cli-1.0.12-7ptw0hek.mjs +0 -3
  551. package/dist/chunks/cli-1.0.12-7tv5r0ph.mjs +0 -2
  552. package/dist/chunks/cli-1.0.12-7yabvp9r.mjs +0 -2
  553. package/dist/chunks/cli-1.0.12-7ynhsc1z.mjs +0 -4
  554. package/dist/chunks/cli-1.0.12-824tangf.mjs +0 -2
  555. package/dist/chunks/cli-1.0.12-86r9ty21.mjs +0 -5
  556. package/dist/chunks/cli-1.0.12-8751mzfs.mjs +0 -2
  557. package/dist/chunks/cli-1.0.12-87hs2fpz.mjs +0 -2
  558. package/dist/chunks/cli-1.0.12-88jecwwk.mjs +0 -2
  559. package/dist/chunks/cli-1.0.12-8neq4sr4.mjs +0 -2
  560. package/dist/chunks/cli-1.0.12-8ntn3ny6.mjs +0 -3
  561. package/dist/chunks/cli-1.0.12-8vjn5tt5.mjs +0 -2
  562. package/dist/chunks/cli-1.0.12-939eqyt0.mjs +0 -2
  563. package/dist/chunks/cli-1.0.12-93c97gc0.mjs +0 -7
  564. package/dist/chunks/cli-1.0.12-9xrez673.mjs +0 -6
  565. package/dist/chunks/cli-1.0.12-a3wknc82.mjs +0 -3
  566. package/dist/chunks/cli-1.0.12-a761j1gv.mjs +0 -2
  567. package/dist/chunks/cli-1.0.12-afqp6ccg.mjs +0 -5
  568. package/dist/chunks/cli-1.0.12-anfbb1k6.mjs +0 -199
  569. package/dist/chunks/cli-1.0.12-aqhk0pnq.mjs +0 -2
  570. package/dist/chunks/cli-1.0.12-aqvexw12.mjs +0 -4
  571. package/dist/chunks/cli-1.0.12-ar5q5p8k.mjs +0 -3
  572. package/dist/chunks/cli-1.0.12-arptj6sc.mjs +0 -2
  573. package/dist/chunks/cli-1.0.12-asf0zhhk.mjs +0 -2
  574. package/dist/chunks/cli-1.0.12-aswy8n6q.mjs +0 -2
  575. package/dist/chunks/cli-1.0.12-b0xdgvm3.mjs +0 -2
  576. package/dist/chunks/cli-1.0.12-b2kkbfqv.mjs +0 -2
  577. package/dist/chunks/cli-1.0.12-b54efth7.mjs +0 -3
  578. package/dist/chunks/cli-1.0.12-b55xwv7c.mjs +0 -12
  579. package/dist/chunks/cli-1.0.12-bavasn2m.mjs +0 -2
  580. package/dist/chunks/cli-1.0.12-bhvkmj7j.mjs +0 -2
  581. package/dist/chunks/cli-1.0.12-bphdbsee.mjs +0 -20
  582. package/dist/chunks/cli-1.0.12-bwhry5d9.mjs +0 -2
  583. package/dist/chunks/cli-1.0.12-bxrzeqxy.mjs +0 -2
  584. package/dist/chunks/cli-1.0.12-c3r1a6g5.mjs +0 -24
  585. package/dist/chunks/cli-1.0.12-c8eswgza.mjs +0 -2
  586. package/dist/chunks/cli-1.0.12-cdv6sj7q.mjs +0 -2
  587. package/dist/chunks/cli-1.0.12-ce2kb4jz.mjs +0 -2
  588. package/dist/chunks/cli-1.0.12-ce5a5631.mjs +0 -4
  589. package/dist/chunks/cli-1.0.12-cg6zadcf.mjs +0 -2
  590. package/dist/chunks/cli-1.0.12-ckpmw81j.mjs +0 -2
  591. package/dist/chunks/cli-1.0.12-crspnn4b.mjs +0 -6
  592. package/dist/chunks/cli-1.0.12-cveh4gy6.mjs +0 -34
  593. package/dist/chunks/cli-1.0.12-dcw582gx.mjs +0 -15
  594. package/dist/chunks/cli-1.0.12-ehp5ev2y.mjs +0 -2
  595. package/dist/chunks/cli-1.0.12-eptxz5fr.mjs +0 -2
  596. package/dist/chunks/cli-1.0.12-ets3kmf3.mjs +0 -2
  597. package/dist/chunks/cli-1.0.12-ev21p7g7.mjs +0 -1
  598. package/dist/chunks/cli-1.0.12-evtxsq88.mjs +0 -2
  599. package/dist/chunks/cli-1.0.12-f7s9vrvb.mjs +0 -2
  600. package/dist/chunks/cli-1.0.12-fc7czhyd.mjs +0 -2
  601. package/dist/chunks/cli-1.0.12-fr4x7p5q.mjs +0 -3
  602. package/dist/chunks/cli-1.0.12-fs27jw81.mjs +0 -59
  603. package/dist/chunks/cli-1.0.12-fs365rj0.mjs +0 -2
  604. package/dist/chunks/cli-1.0.12-fsgbmjzn.mjs +0 -2
  605. package/dist/chunks/cli-1.0.12-fttry6vt.mjs +0 -2
  606. package/dist/chunks/cli-1.0.12-g2qcnx8m.mjs +0 -2
  607. package/dist/chunks/cli-1.0.12-g2qsv3tc.mjs +0 -5494
  608. package/dist/chunks/cli-1.0.12-g6jjrjcj.mjs +0 -2
  609. package/dist/chunks/cli-1.0.12-gajn1gbg.mjs +0 -2
  610. package/dist/chunks/cli-1.0.12-gctwj61k.mjs +0 -4
  611. package/dist/chunks/cli-1.0.12-gd18f7hm.mjs +0 -2
  612. package/dist/chunks/cli-1.0.12-gden9vt3.mjs +0 -2
  613. package/dist/chunks/cli-1.0.12-gdjkhny3.mjs +0 -2
  614. package/dist/chunks/cli-1.0.12-geffmp8p.mjs +0 -2
  615. package/dist/chunks/cli-1.0.12-ggdecys5.mjs +0 -2
  616. package/dist/chunks/cli-1.0.12-gnjqhx0t.mjs +0 -3
  617. package/dist/chunks/cli-1.0.12-gvpmx85m.mjs +0 -58
  618. package/dist/chunks/cli-1.0.12-gz6fyqwk.mjs +0 -39
  619. package/dist/chunks/cli-1.0.12-gzdht3by.mjs +0 -2
  620. package/dist/chunks/cli-1.0.12-hcw51twk.mjs +0 -2
  621. package/dist/chunks/cli-1.0.12-hfjvcc88.mjs +0 -2
  622. package/dist/chunks/cli-1.0.12-hg7zn647.mjs +0 -2
  623. package/dist/chunks/cli-1.0.12-hhbfs4k4.mjs +0 -6
  624. package/dist/chunks/cli-1.0.12-hhr93g23.mjs +0 -2
  625. package/dist/chunks/cli-1.0.12-hkmqbg09.mjs +0 -2
  626. package/dist/chunks/cli-1.0.12-hqfw51ap.mjs +0 -4
  627. package/dist/chunks/cli-1.0.12-hs1b7q69.mjs +0 -2
  628. package/dist/chunks/cli-1.0.12-hxmg9ymn.mjs +0 -67
  629. package/dist/chunks/cli-1.0.12-j6jbtppw.mjs +0 -50
  630. package/dist/chunks/cli-1.0.12-jcpeegj0.mjs +0 -2
  631. package/dist/chunks/cli-1.0.12-jfhjds03.mjs +0 -2
  632. package/dist/chunks/cli-1.0.12-jfsy9ha5.mjs +0 -2
  633. package/dist/chunks/cli-1.0.12-jk3cz5bk.mjs +0 -2
  634. package/dist/chunks/cli-1.0.12-jv9bdyr3.mjs +0 -4
  635. package/dist/chunks/cli-1.0.12-jx132j1k.mjs +0 -25
  636. package/dist/chunks/cli-1.0.12-k1be9914.mjs +0 -12
  637. package/dist/chunks/cli-1.0.12-kamdx1jw.mjs +0 -2
  638. package/dist/chunks/cli-1.0.12-krksdpwy.mjs +0 -2
  639. package/dist/chunks/cli-1.0.12-krtzqxr0.mjs +0 -2
  640. package/dist/chunks/cli-1.0.12-kvbcb0np.mjs +0 -2
  641. package/dist/chunks/cli-1.0.12-kyxqyb1j.mjs +0 -2
  642. package/dist/chunks/cli-1.0.12-m46zb45g.mjs +0 -2
  643. package/dist/chunks/cli-1.0.12-m4ayadmp.mjs +0 -12
  644. package/dist/chunks/cli-1.0.12-mg5ma9ym.mjs +0 -15
  645. package/dist/chunks/cli-1.0.12-mx2xvdp9.mjs +0 -2
  646. package/dist/chunks/cli-1.0.12-n1m3pwwf.mjs +0 -2
  647. package/dist/chunks/cli-1.0.12-nanfnkp2.mjs +0 -2
  648. package/dist/chunks/cli-1.0.12-nn3vf2hn.mjs +0 -2
  649. package/dist/chunks/cli-1.0.12-nqhqcsq6.mjs +0 -2
  650. package/dist/chunks/cli-1.0.12-nvvpna9m.mjs +0 -3
  651. package/dist/chunks/cli-1.0.12-p4ezzhhd.mjs +0 -8
  652. package/dist/chunks/cli-1.0.12-pp2g923k.mjs +0 -2
  653. package/dist/chunks/cli-1.0.12-pp47fwxq.mjs +0 -2
  654. package/dist/chunks/cli-1.0.12-pr30kcgz.mjs +0 -2
  655. package/dist/chunks/cli-1.0.12-q0r16q04.mjs +0 -2
  656. package/dist/chunks/cli-1.0.12-q5pm96yt.mjs +0 -2
  657. package/dist/chunks/cli-1.0.12-q6d6aqp0.mjs +0 -2
  658. package/dist/chunks/cli-1.0.12-q6k5vz5c.mjs +0 -15
  659. package/dist/chunks/cli-1.0.12-qawr9s3v.mjs +0 -2
  660. package/dist/chunks/cli-1.0.12-qdw94y1a.mjs +0 -2
  661. package/dist/chunks/cli-1.0.12-r0h1nfgc.mjs +0 -2
  662. package/dist/chunks/cli-1.0.12-r5xssak6.mjs +0 -3
  663. package/dist/chunks/cli-1.0.12-rkm9m5nr.mjs +0 -4
  664. package/dist/chunks/cli-1.0.12-rndzs6hs.mjs +0 -3
  665. package/dist/chunks/cli-1.0.12-rx65fdkz.mjs +0 -2
  666. package/dist/chunks/cli-1.0.12-s5nznhbh.mjs +0 -3
  667. package/dist/chunks/cli-1.0.12-s6we79nr.mjs +0 -17
  668. package/dist/chunks/cli-1.0.12-samztxet.mjs +0 -2
  669. package/dist/chunks/cli-1.0.12-sav2q0qa.mjs +0 -42
  670. package/dist/chunks/cli-1.0.12-t40ecqfd.mjs +0 -2
  671. package/dist/chunks/cli-1.0.12-tj9ktjsh.mjs +0 -24
  672. package/dist/chunks/cli-1.0.12-tj9rj5jy.mjs +0 -2
  673. package/dist/chunks/cli-1.0.12-tjbtefn3.mjs +0 -2
  674. package/dist/chunks/cli-1.0.12-trd4dn34.mjs +0 -2
  675. package/dist/chunks/cli-1.0.12-tv0c63rt.mjs +0 -2
  676. package/dist/chunks/cli-1.0.12-tz4cb805.mjs +0 -2
  677. package/dist/chunks/cli-1.0.12-v4dwzr3x.mjs +0 -17
  678. package/dist/chunks/cli-1.0.12-vaj96q9j.mjs +0 -2
  679. package/dist/chunks/cli-1.0.12-vr2x1cvb.mjs +0 -2
  680. package/dist/chunks/cli-1.0.12-w1kw41q7.mjs +0 -2
  681. package/dist/chunks/cli-1.0.12-w7rfasq3.mjs +0 -9
  682. package/dist/chunks/cli-1.0.12-w8y086m4.mjs +0 -25
  683. package/dist/chunks/cli-1.0.12-wex4dg02.mjs +0 -4
  684. package/dist/chunks/cli-1.0.12-wg1cqvtp.mjs +0 -2
  685. package/dist/chunks/cli-1.0.12-wjsws708.mjs +0 -2
  686. package/dist/chunks/cli-1.0.12-wk1q0n53.mjs +0 -2
  687. package/dist/chunks/cli-1.0.12-wrzpekwj.mjs +0 -2
  688. package/dist/chunks/cli-1.0.12-wvndtz51.mjs +0 -24
  689. package/dist/chunks/cli-1.0.12-wz7n2nsd.mjs +0 -2
  690. package/dist/chunks/cli-1.0.12-x10h3tbg.mjs +0 -2
  691. package/dist/chunks/cli-1.0.12-x4ep25h9.mjs +0 -4
  692. package/dist/chunks/cli-1.0.12-xkytf9yh.mjs +0 -2
  693. package/dist/chunks/cli-1.0.12-xttdsx6k.mjs +0 -2
  694. package/dist/chunks/cli-1.0.12-y1c7c1a1.mjs +0 -2
  695. package/dist/chunks/cli-1.0.12-y84rjfz7.mjs +0 -2
  696. package/dist/chunks/cli-1.0.12-yhv467zj.mjs +0 -2
  697. package/dist/chunks/cli-1.0.12-ynve21xv.mjs +0 -2
  698. package/dist/chunks/cli-1.0.12-ys1t2bxz.mjs +0 -2
  699. package/dist/chunks/cli-1.0.12-yxtwvta2.mjs +0 -2
  700. package/dist/chunks/cli-1.0.12-z3a8jcm9.mjs +0 -3
  701. package/dist/chunks/cli-1.0.12-z3c340m4.mjs +0 -2
  702. package/dist/chunks/cli-1.0.12-z623f1kc.mjs +0 -2
  703. package/dist/chunks/cli-1.0.12-z9h568zf.mjs +0 -2
  704. package/dist/chunks/cli-1.0.12-z9sfhfkz.mjs +0 -2
  705. package/dist/chunks/cli-1.0.12-zeamr7yd.mjs +0 -2
  706. package/dist/chunks/cli-1.0.12-zeyjdjny.mjs +0 -2
  707. package/dist/chunks/cli-1.0.12-zfc8ad9g.mjs +0 -2
  708. package/dist/chunks/cli-1.0.12-zh892bg0.mjs +0 -2
  709. package/dist/chunks/cli-1.0.12-zjxsxtgp.mjs +0 -2
  710. package/dist/chunks/client-1.0.12-byhwssfy.mjs +0 -1
  711. package/dist/chunks/color-1.0.12-r9qemzca.mjs +0 -1
  712. package/dist/chunks/compact-1.0.12-e026vahr.mjs +0 -3
  713. package/dist/chunks/config-1.0.12-bzczt66c.mjs +0 -1
  714. package/dist/chunks/config-1.0.12-spq7sz3g.mjs +0 -1
  715. package/dist/chunks/constants-1.0.12-wfre6b4q.mjs +0 -1
  716. package/dist/chunks/context-1.0.12-062jh3t1.mjs +0 -1
  717. package/dist/chunks/context-noninteractive-1.0.12-2a33mwts.mjs +0 -1
  718. package/dist/chunks/conversation-1.0.12-84yx1v9g.mjs +0 -1
  719. package/dist/chunks/copilotHeaders-1.0.12-9p7nbsej.mjs +0 -1
  720. package/dist/chunks/copy-1.0.12-p0ehh4km.mjs +0 -9
  721. package/dist/chunks/cost-1.0.12-rp0mbkmr.mjs +0 -1
  722. package/dist/chunks/createSSHSession-1.0.12-wxq374vh.mjs +0 -1
  723. package/dist/chunks/createSession-1.0.12-1xvzax9p.mjs +0 -1
  724. package/dist/chunks/debug-1.0.12-94hz3csj.mjs +0 -1
  725. package/dist/chunks/defaultActionDeps-1.0.12-xampkk9g.mjs +0 -1446
  726. package/dist/chunks/desktop-1.0.12-sjnz496g.mjs +0 -1
  727. package/dist/chunks/detectRepository-1.0.12-ba7p74yk.mjs +0 -1
  728. package/dist/chunks/detection-1.0.12-a5q568s6.mjs +0 -1
  729. package/dist/chunks/diff-1.0.12-ndfx6mw0.mjs +0 -1
  730. package/dist/chunks/doctor-1.0.12-n0w9na8y.mjs +0 -1
  731. package/dist/chunks/doctorDiagnostic-1.0.12-9s7nqv0g.mjs +0 -1
  732. package/dist/chunks/earlyInput-1.0.12-zysskqm6.mjs +0 -1
  733. package/dist/chunks/effort-1.0.12-fv5hhe7x.mjs +0 -10
  734. package/dist/chunks/engine-1.0.12-h8g4mgyb.mjs +0 -1
  735. package/dist/chunks/envLessBridgeConfig-1.0.12-dgzmkpm2.mjs +0 -1
  736. package/dist/chunks/envUtils-1.0.12-sdf1kcja.mjs +0 -1
  737. package/dist/chunks/environmentSelection-1.0.12-8q9ret6b.mjs +0 -1
  738. package/dist/chunks/environments-1.0.12-a3zhfbhz.mjs +0 -1
  739. package/dist/chunks/errors-1.0.12-ct15bef4.mjs +0 -1
  740. package/dist/chunks/exampleCommands-1.0.12-df1dw74e.mjs +0 -1
  741. package/dist/chunks/execFileNoThrow-1.0.12-xfr44c3a.mjs +0 -1
  742. package/dist/chunks/exit-1.0.12-zvdfr5b8.mjs +0 -1
  743. package/dist/chunks/explorer-1.0.12-6y9xjy1q.mjs +0 -1
  744. package/dist/chunks/export-1.0.12-skd48sxc.mjs +0 -2
  745. package/dist/chunks/extra-usage-1.0.12-xfmqjtpj.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-1.0.12-t1hm20j5.mjs +0 -1
  747. package/dist/chunks/fast-1.0.12-fhft5ey6.mjs +0 -1
  748. package/dist/chunks/feedback-1.0.12-3nxarzk5.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-1.0.12-wd3zscn0.mjs +0 -1
  750. package/dist/chunks/git-1.0.12-vdgymgzx.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-1.0.12-4srnyf9v.mjs +0 -1
  752. package/dist/chunks/goal-1.0.12-h2359pb4.mjs +0 -4
  753. package/dist/chunks/grove-1.0.12-77sjjjn3.mjs +0 -1
  754. package/dist/chunks/growthbook-1.0.12-3n3fqtkt.mjs +0 -1
  755. package/dist/chunks/headless-1.0.12-yp3kbbxc.mjs +0 -2
  756. package/dist/chunks/heapdump-1.0.12-s91zbazj.mjs +0 -6
  757. package/dist/chunks/help-1.0.12-0xjr189z.mjs +0 -1
  758. package/dist/chunks/hookChains-1.0.12-ct9k5n1p.mjs +0 -3
  759. package/dist/chunks/hooks-1.0.12-3j1z9nnx.mjs +0 -79
  760. package/dist/chunks/hooks-1.0.12-70mxcsxh.mjs +0 -1
  761. package/dist/chunks/ide-1.0.12-28njrjbk.mjs +0 -3
  762. package/dist/chunks/image-processor-napi-1.0.12-6wgz5kvw.mjs +0 -1
  763. package/dist/chunks/inboundAttachments-1.0.12-jvjez1dn.mjs +0 -1
  764. package/dist/chunks/index-1.0.12-0da1bb49.mjs +0 -9
  765. package/dist/chunks/index-1.0.12-1e9j7vzg.mjs +0 -5
  766. package/dist/chunks/index-1.0.12-1mdaerd8.mjs +0 -1
  767. package/dist/chunks/index-1.0.12-24pswrth.mjs +0 -1
  768. package/dist/chunks/index-1.0.12-2v2em96v.mjs +0 -2
  769. package/dist/chunks/index-1.0.12-474c1qt4.mjs +0 -1
  770. package/dist/chunks/index-1.0.12-6mn5222v.mjs +0 -1
  771. package/dist/chunks/index-1.0.12-742qmav9.mjs +0 -1
  772. package/dist/chunks/index-1.0.12-7k7nz3zd.mjs +0 -1
  773. package/dist/chunks/index-1.0.12-9j0r9hj8.mjs +0 -1
  774. package/dist/chunks/index-1.0.12-b9j27arj.mjs +0 -1
  775. package/dist/chunks/index-1.0.12-bpttwsys.mjs +0 -9
  776. package/dist/chunks/index-1.0.12-c5e33bnp.mjs +0 -1
  777. package/dist/chunks/index-1.0.12-cqq21e0m.mjs +0 -2
  778. package/dist/chunks/index-1.0.12-cr5bmztw.mjs +0 -1
  779. package/dist/chunks/index-1.0.12-fmffckpa.mjs +0 -1
  780. package/dist/chunks/index-1.0.12-gq7wdwne.mjs +0 -1
  781. package/dist/chunks/index-1.0.12-hdkwtv7r.mjs +0 -30
  782. package/dist/chunks/index-1.0.12-hdncwsmp.mjs +0 -17
  783. package/dist/chunks/index-1.0.12-p087je6g.mjs +0 -1
  784. package/dist/chunks/index-1.0.12-v4fg3ddh.mjs +0 -1
  785. package/dist/chunks/index-1.0.12-vx8y4eyw.mjs +0 -1
  786. package/dist/chunks/index-1.0.12-wbyw0qj6.mjs +0 -1
  787. package/dist/chunks/init-1.0.12-z61mf946.mjs +0 -1
  788. package/dist/chunks/initReplBridge-1.0.12-x85m2bm7.mjs +0 -1
  789. package/dist/chunks/ink-1.0.12-zmy65h90.mjs +0 -1
  790. package/dist/chunks/insights-1.0.12-hmmb2hfq.mjs +0 -870
  791. package/dist/chunks/install-1.0.12-ayp0wk5h.mjs +0 -1
  792. package/dist/chunks/install-github-app-1.0.12-gp77dd3x.mjs +0 -149
  793. package/dist/chunks/install-slack-app-1.0.12-r3sn5vy9.mjs +0 -1
  794. package/dist/chunks/instrumentation-1.0.12-p992hkry.mjs +0 -1
  795. package/dist/chunks/interactiveHelpers-1.0.12-bpa40yg2.mjs +0 -1
  796. package/dist/chunks/keybindings-1.0.12-tzqxhe4y.mjs +0 -2
  797. package/dist/chunks/knowledge-1.0.12-4z117jz8.mjs +0 -2
  798. package/dist/chunks/latestVersionCache-1.0.12-v4exfmej.mjs +0 -1
  799. package/dist/chunks/loadAgentsDir-1.0.12-33qj54es.mjs +0 -1
  800. package/dist/chunks/loadPluginHooks-1.0.12-3e1ay1bg.mjs +0 -1
  801. package/dist/chunks/loadPluginHooks-1.0.12-s7htccwt.mjs +0 -1
  802. package/dist/chunks/log-1.0.12-qerp8m38.mjs +0 -1
  803. package/dist/chunks/main-1.0.12-eegz9vfx.mjs +0 -1
  804. package/dist/chunks/managedEnv-1.0.12-dsdjxx30.mjs +0 -1
  805. package/dist/chunks/mcp-1.0.12-6dgfh9jp.mjs +0 -17
  806. package/dist/chunks/mcp-1.0.12-j2h3k7hg.mjs +0 -4
  807. package/dist/chunks/mcp-1.0.12-kp37svg1.mjs +0 -1
  808. package/dist/chunks/mcpb-1.0.12-ca16ddb6.mjs +0 -1
  809. package/dist/chunks/memory-1.0.12-0k08f6b4.mjs +0 -72
  810. package/dist/chunks/model-1.0.12-2z9t0e24.mjs +0 -2
  811. package/dist/chunks/model-1.0.12-avtsadm7.mjs +0 -1
  812. package/dist/chunks/node-1.0.12-5zcm6b49.mjs +0 -12
  813. package/dist/chunks/oauth-1.0.12-t7s3r4ha.mjs +0 -1
  814. package/dist/chunks/openaiShim-1.0.12-y35cxvtm.mjs +0 -14
  815. package/dist/chunks/output-style-1.0.12-hwh89yg3.mjs +0 -1
  816. package/dist/chunks/package-ZZWOLTXM-1.0.12-jrq6q5gh.mjs +0 -1
  817. package/dist/chunks/parseConnectUrl-1.0.12-1ajk88cn.mjs +0 -1
  818. package/dist/chunks/parser-1.0.12-mnazf4dy.mjs +0 -1
  819. package/dist/chunks/passes-1.0.12-hvk4mc22.mjs +0 -1
  820. package/dist/chunks/permissions-1.0.12-8mr0v1ms.mjs +0 -1
  821. package/dist/chunks/permissions-1.0.12-bhr0jwb3.mjs +0 -3
  822. package/dist/chunks/plan-1.0.12-5bjaadcz.mjs +0 -1
  823. package/dist/chunks/plist-1.0.12-rkjbgan4.mjs +0 -1
  824. package/dist/chunks/plugin-1.0.12-pxgt2afc.mjs +0 -29
  825. package/dist/chunks/pluginStartupCheck-1.0.12-6gcazre9.mjs +0 -1
  826. package/dist/chunks/plugins-1.0.12-m5w6j4w1.mjs +0 -9
  827. package/dist/chunks/preActionHook-1.0.12-mf4w1185.mjs +0 -2
  828. package/dist/chunks/print-1.0.12-t6h31xzw.mjs +0 -57
  829. package/dist/chunks/privacy-settings-1.0.12-p99c9mr9.mjs +0 -1
  830. package/dist/chunks/process-1.0.12-514yxzk8.mjs +0 -1
  831. package/dist/chunks/processBashCommand-1.0.12-sg75g2bj.mjs +0 -1
  832. package/dist/chunks/processSlashCommand-1.0.12-yc9eq6vv.mjs +0 -9
  833. package/dist/chunks/prompt-1.0.12-0s0zhnqk.mjs +0 -1
  834. package/dist/chunks/prompt-1.0.12-yxsmhgt0.mjs +0 -1
  835. package/dist/chunks/prompts-1.0.12-0hkf5v5d.mjs +0 -1
  836. package/dist/chunks/protocolHandler-1.0.12-2s1b0744.mjs +0 -13
  837. package/dist/chunks/provider-1.0.12-br1hwfjc.mjs +0 -2
  838. package/dist/chunks/providerProfiles-1.0.12-1cvn3gk3.mjs +0 -1
  839. package/dist/chunks/providerValidation-1.0.12-e5hn1s9f.mjs +0 -6
  840. package/dist/chunks/rate-limit-options-1.0.12-2b1eehxk.mjs +0 -1
  841. package/dist/chunks/registerSubcommands-1.0.12-3w6n3hvp.mjs +0 -34
  842. package/dist/chunks/registry-1.0.12-416j15rh.mjs +0 -1
  843. package/dist/chunks/release-notes-1.0.12-cjkaspwe.mjs +0 -5
  844. package/dist/chunks/reload-plugins-1.0.12-kn31ddrr.mjs +0 -2
  845. package/dist/chunks/remote-env-1.0.12-wgzde32c.mjs +0 -1
  846. package/dist/chunks/remoteBridgeCore-1.0.12-0c89q3s7.mjs +0 -1
  847. package/dist/chunks/remoteSession-1.0.12-cs8aksk2.mjs +0 -1
  848. package/dist/chunks/rename-1.0.12-2a5n1bm7.mjs +0 -1
  849. package/dist/chunks/replBridgeHandle-1.0.12-1sgqwxsb.mjs +0 -1
  850. package/dist/chunks/replLauncher-1.0.12-380zfnph.mjs +0 -1
  851. package/dist/chunks/resume-1.0.12-xfc2cbkb.mjs +0 -2
  852. package/dist/chunks/rewind-1.0.12-r3d180dy.mjs +0 -1
  853. package/dist/chunks/rootOptions-1.0.12-pfhteve9.mjs +0 -1
  854. package/dist/chunks/runWorkflowHeadless-1.0.12-05semed9.mjs +0 -10
  855. package/dist/chunks/sandbox-adapter-1.0.12-6ty9e1sb.mjs +0 -1
  856. package/dist/chunks/sandbox-toggle-1.0.12-3s3mg79e.mjs +0 -1
  857. package/dist/chunks/session-1.0.12-xx9k18d5.mjs +0 -2
  858. package/dist/chunks/sessionDiscovery-1.0.12-k0eh44q5.mjs +0 -1
  859. package/dist/chunks/sessionFileAccessHooks-1.0.12-289cp1d9.mjs +0 -1
  860. package/dist/chunks/sessionStorage-1.0.12-af0sp63e.mjs +0 -1
  861. package/dist/chunks/settings-1.0.12-1kn5k4w3.mjs +0 -1
  862. package/dist/chunks/setup-1.0.12-sjx27cy2.mjs +0 -5
  863. package/dist/chunks/sinks-1.0.12-s5jc7mhb.mjs +0 -1
  864. package/dist/chunks/skills-1.0.12-rz6jxa0g.mjs +0 -1
  865. package/dist/chunks/startupProfiler-1.0.12-p1sagjpt.mjs +0 -1
  866. package/dist/chunks/startupUpdateCheck-1.0.12-0rynn7sy.mjs +0 -1
  867. package/dist/chunks/state-1.0.12-scv8d1ss.mjs +0 -1
  868. package/dist/chunks/stats-1.0.12-h73ksepe.mjs +0 -6
  869. package/dist/chunks/status-1.0.12-w3s8s4n7.mjs +0 -1
  870. package/dist/chunks/stickers-1.0.12-tytep2cy.mjs +0 -1
  871. package/dist/chunks/subprocessEnv-1.0.12-6kt4e9mh.mjs +0 -1
  872. package/dist/chunks/tasks-1.0.12-ezrpv3cr.mjs +0 -1
  873. package/dist/chunks/teamHelpers-1.0.12-yg34czgd.mjs +0 -1
  874. package/dist/chunks/teammateModeSnapshot-1.0.12-0b71sedv.mjs +0 -1
  875. package/dist/chunks/teleport-1.0.12-zq525vyn.mjs +0 -1
  876. package/dist/chunks/terminalSetup-1.0.12-z82kcb7p.mjs +0 -1
  877. package/dist/chunks/theme-1.0.12-1n4zhmvg.mjs +0 -1
  878. package/dist/chunks/thinkback-1.0.12-vegbsqqh.mjs +0 -1
  879. package/dist/chunks/thinkback-play-1.0.12-m2re0ysp.mjs +0 -1
  880. package/dist/chunks/toolPool-1.0.12-7k896ktz.mjs +0 -1
  881. package/dist/chunks/toolSearch-1.0.12-1t7z9s8n.mjs +0 -1
  882. package/dist/chunks/tools-1.0.12-m1q30sx2.mjs +0 -1
  883. package/dist/chunks/trustedDevice-1.0.12-d1ec8tgn.mjs +0 -1
  884. package/dist/chunks/turndown.cjs-1.0.12-gd906rm3.mjs +0 -69
  885. package/dist/chunks/types-1.0.12-bnkcne53.mjs +0 -1
  886. package/dist/chunks/ultrareviewCommand-1.0.12-d94wevag.mjs +0 -4
  887. package/dist/chunks/update-1.0.12-42sky6mj.mjs +0 -88
  888. package/dist/chunks/upgrade-1.0.12-dmpc55bj.mjs +0 -1
  889. package/dist/chunks/upload-1.0.12-nmk9n704.mjs +0 -7
  890. package/dist/chunks/upstreamproxy-1.0.12-91ksccx0.mjs +0 -14
  891. package/dist/chunks/url-handler-napi-1.0.12-dmb5xjpf.mjs +0 -1
  892. package/dist/chunks/usage-1.0.12-tjapt84n.mjs +0 -1
  893. package/dist/chunks/util-1.0.12-10z43mt9.mjs +0 -1
  894. package/dist/chunks/utils-1.0.12-w32argrx.mjs +0 -1
  895. package/dist/chunks/vim-1.0.12-wf8sb0mt.mjs +0 -1
  896. package/dist/chunks/watchLoop-1.0.12-3dxe0717.mjs +0 -13
  897. package/dist/chunks/watcher-1.0.12-7p840es5.mjs +0 -1
  898. package/dist/chunks/wiki-1.0.12-0ym9ejj5.mjs +0 -132
  899. package/dist/chunks/workflows-1.0.12-c270z4b2.mjs +0 -1
  900. package/dist/chunks/worktree-1.0.12-zeqk2tcs.mjs +0 -1
  901. package/dist/chunks/worktreeModeEnabled-1.0.12-kmtt3k2w.mjs +0 -1
  902. package/dist/chunks/wrapper-1.0.12-wzaxf903.mjs +0 -7
  903. /package/dist/chunks/{cli-1.0.12-w5g65qpt.mjs → cli-1.0.13-4z6c4gzk.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.12-v6h16sq3.mjs → cli-1.0.13-ap2xrh2s.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.0.12-ecf1es2x.mjs → cli-1.0.13-d9nvpqpw.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.0.12-2sf9ww39.mjs → cli-1.0.13-n6bzzv7p.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.0.12-h16hfwe6.mjs → cli-1.0.13-q9et56bj.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.0.12-xya69wfx.mjs → cli-1.0.13-tzenmc0b.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.0.12-8yzsm0t1.mjs → cli-1.0.13-v34fp7gq.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.0.12-c9kgj61k.mjs → cli-1.0.13-wv7skbb9.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{qga as C,w_ as z,y_ as H,yga as J}from"./cli-1.0.13-p1nsb8ay.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
2
+ export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
@@ -0,0 +1,2 @@
1
+ import{I0 as K,kZ as Z,l1 as k}from"./cli-1.0.13-mv57kk3c.mjs";import{V3 as J,W3 as H}from"./cli-1.0.13-afdk25h0.mjs";import{f_ as v,g_ as Y}from"./cli-1.0.13-p1nsb8ay.mjs";import{dsa as V,hsa as X}from"./cli-1.0.13-d9nvpqpw.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
+ export{N as th,C as uh};
@@ -0,0 +1,2 @@
1
+ import{hsa as K}from"./cli-1.0.13-d9nvpqpw.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
2
+ export{M as cka,N as dka,Q as eka,R as fka,S as gka,L as hka};
@@ -0,0 +1,2 @@
1
+ import{hsa as B}from"./cli-1.0.13-d9nvpqpw.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
2
+ export{F as Vi,C as Wi};
@@ -0,0 +1,2 @@
1
+ import{Kha as K,zha as G}from"./cli-1.0.13-k4znag0a.mjs";import{bia as j,dia as M,eia as J,fia as N}from"./cli-1.0.13-fb695nhr.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
2
+ export{q as Ib,$ as Jb};
@@ -0,0 +1,8 @@
1
+ import{gb as b}from"./cli-1.0.13-n6bzzv7p.mjs";import{of as zK,tf as dK}from"./cli-1.0.13-57ez593b.mjs";import{$A as sz,$I as hK,LK as wz,Sm as rz,TK as MK,Um as bK,VT as j,Vo as M,Wo as vK,XT as uK,Yo as iz,ZA as oz,Zu as Cz,aB as fK,aJ as mK,ap as SK,cM as tz,dM as pK,ev as xK,kQ as Ez,sM as ez,tQ as FK,uM as cK}from"./cli-1.0.13-kr3d94dn.mjs";import{$Y as GK,UY as Kz,ZY as AK,_Y as Qz}from"./cli-1.0.13-mv57kk3c.mjs";import{C6 as Uz,D6 as lz,E8 as xz,J6 as Dz,M4 as U,O6 as I,Q6 as _z,S4 as O,V6 as k,g7 as nz,k7 as jK,q8 as Tz,s8 as Mz,u8 as R}from"./cli-1.0.13-h5mwwv8w.mjs";import{$8 as _K,_8 as G}from"./cli-1.0.13-y20sjx5k.mjs";import{$aa as zz,Bda as Jz,Eea as Wz,Faa as t,Fea as Bz,Gea as az,Hda as _,Kaa as LK,Q_ as $z,Qaa as e,S_ as TK,Tea as L,Uaa as UK,Z_ as cz,bba as DK,j_ as Zz,k_ as RK,n$ as dz,pea as gz,qga as V,r_ as T,sda as q,t_ as CK,u$ as EK,uda as H,vea as $,wda as uz,xda as S,yda as kz,yea as W,yga as A}from"./cli-1.0.13-p1nsb8ay.mjs";import{_ga as E,dha as kK}from"./cli-1.0.13-x4xwa6y3.mjs";import{iia as pz,jia as PK}from"./cli-1.0.13-kq0mvqax.mjs";import{Xia as Z,_ia as N}from"./cli-1.0.13-vbby2x4m.mjs";import{Gja as r,Ija as WK,Jja as i,Mja as o,Qja as BK}from"./cli-1.0.13-4dp5a597.mjs";import{gka as s,hka as NK}from"./cli-1.0.13-frs40s6h.mjs";import{Aka as n,Fka as VK,yka as y}from"./cli-1.0.13-mazxedqg.mjs";import{Kka as C,Lka as v,Nka as hz,Tka as mz,Vka as yK}from"./cli-1.0.13-6b6kn6sd.mjs";import{Aoa as fz,Hoa as a,Mna as Iz,Nna as bz,Ona as Oz,Qna as vz,_oa as l,ooa as Sz,qma as F,uma as JK,yqa as w}from"./cli-1.0.13-vwmq6bde.mjs";import{esa as wK}from"./cli-1.0.13-d9nvpqpw.mjs";_K();AK();w();DK();VK();BK();LK();A();NK();UK();JK();WK();GK();import{readFileSync as IK}from"node:fs";var OK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function ZQ(){let z=zz()?OK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function $Q(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function qQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
2
+ `)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{IK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
3
+ `)),process.exit(1);throw J}X=Y}a(X),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing settings: ${y(z)}
4
+ `)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing --setting-sources: ${y(z)}
5
+ `)),process.exit(1)}}async function HQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
6
+ `);return[K,Q].filter(Boolean).join(`
7
+ `)}return K}kK();uK();N();bK();L();jK();CK();yK();EK();RK();TK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}A();k();pK();SK();cK();N();L();A();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}N();L();A();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}N();L();A();_();function Nz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let D=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...D,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let D=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...D,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((D)=>{let{enableAllProjectMcpServers:f,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...x}=D;return x});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}N();L();k();O();_();function Lz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}N();k();_();function Az(){if(!Dz())return;if(q("userSettings")?.model!=="opus")return;let z="opus[1m]",Q=I(z)===I(Uz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}L();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}w();L();O();_();function Rz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Iz()==="sonnet[1m]")Oz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}N();xz();L();O();_();function Fz(){if(U()!=="firstParty")return;if(!R()&&!Tz()&&!Mz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}N();L();A();MK();_();function yz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(wz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}N();xz();L();O();_();function Pz(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(kz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}dK();vK();w();PK();_();FK();N();xK();async function jz(K,z){let Q=await Ez(K),X=Cz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}fK();function nX(){try{let K=q("policySettings");if(K){let z=uz(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function rX(){let K=I(bz()??lz());jz(pz(),nz(K,vz())),ez().then(({enabled:z,errors:Q})=>{let X=tz();oz(z,X,iz()),sz(Q,X)}).catch((z)=>V(z))}function gK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function iX(){if(rz())return;let[K,z,Q]=await Promise.all([cz(),dz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:M.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:az(),prefers_reduced_motion:S().prefersReducedMotion??!1,...gK()})}var P=11;function oX(){if(W().migrationVersion!==P)Hz(),Vz(),Nz(),Pz(),Rz(),Lz(),Fz(),Az(),Gz(),yz(),$((K)=>K.migrationVersion===P?K:{...K,migrationVersion:P});zK().catch(()=>{})}function sX(){if(Sz()){T("info","prefetch_system_context_non_interactive"),j();return}if(gz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function tX(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function eX(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function zY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:x,skipWebFetchPreflight:KK,githubActionInputs:p,dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,allowDangerouslySkipPermissionsPassed:ZK,systemPromptFlag:c,appendSystemPromptFlag:d,thinkingConfig:$K,assistantActivationPath:u,isCoordinator:qK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktree:x,skipWebFetchPreflight:KK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,inProtectedNamespace:mz(),allowDangerouslySkipPermissionsPassed:ZK,thinkingType:$K.type,...c&&{systemPromptFlag:c},...d&&{appendSystemPromptFlag:d},is_simple:hz()||void 0,is_coordinator:qK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:S().autoUpdatesChannel??"latest"})}catch(HK){V(HK)}}function KY(K){}function QY(K){return}
8
+ export{ZQ as N,$Q as O,qQ as P,HQ as Q,nX as R,rX as S,iX as T,oX as U,sX as V,tX as W,eX as X,zY as Y,KY as Z,QY as _};
@@ -0,0 +1,3 @@
1
+ import{K as G0}from"./cli-1.0.13-6xkw8tq6.mjs";import{aa as p0}from"./cli-1.0.13-zgdatr3s.mjs";import{lb as E0}from"./cli-1.0.13-bj2neb84.mjs";import{qb as k0}from"./cli-1.0.13-v38n7n4p.mjs";import{Kc as P0,Mc as Fc}from"./cli-1.0.13-z8vs7cc1.mjs";import{Pc as N,Qc as uc}from"./cli-1.0.13-a8t9066b.mjs";import{Sc as Q0,Tc as hc}from"./cli-1.0.13-5sc2h2hm.mjs";import{md as n0,nd as x0}from"./cli-1.0.13-j3gww2v8.mjs";import{$n as W,DT as O0,EM as _0,NT as b0,OM as j0,PT as B0,ST as ac,Tn as p,Un as K0,VT as D0,Vn as f0,Wn as N0,XT as Tc,Xn as i0,YG as y0,Yn as d0,Yx as X,ZG as _c,aN as u0,ao as j,ay as l0,cN as r0,eG as m0,fF as Y0,fG as g0,gG as r,iG as A0,jF as lc,nG as Y,oG as M0,pG as Z0,qG as Mc,sS as d,uS as W0,wS as Ic}from"./cli-1.0.13-kr3d94dn.mjs";import{CZ as X0,G0 as c0,GZ as oc,I0 as y,M0 as g,kZ as G,l1 as x}from"./cli-1.0.13-mv57kk3c.mjs";import{T3 as e,U3 as m,V3 as U,W3 as C}from"./cli-1.0.13-afdk25h0.mjs";import{N4 as H0,S4 as mc,u5 as J0,v5 as nc}from"./cli-1.0.13-h5mwwv8w.mjs";import{Aea as q0,Bda as w0,Dda as U0,Hda as k,Tea as I0,bga as z0,ega as ic,pea as V0,uda as V,vea as s,yda as J,yea as t}from"./cli-1.0.13-p1nsb8ay.mjs";import{_ga as R,dha as cc}from"./cli-1.0.13-x4xwa6y3.mjs";import{Eha as L0,Kha as fc,wha as C0}from"./cli-1.0.13-k4znag0a.mjs";import{Xia as q,_ia as E}from"./cli-1.0.13-vbby2x4m.mjs";import{bka as $0}from"./cli-1.0.13-4dp5a597.mjs";import{Lka as K,Ska as R0,Vka as e0}from"./cli-1.0.13-6b6kn6sd.mjs";import{ina as a0,opa as T0,yqa as v0}from"./cli-1.0.13-vwmq6bde.mjs";import{dsa as D,isa as L}from"./cli-1.0.13-d9nvpqpw.mjs";E();Ic();v0();import{appendFileSync as Rc}from"fs";Tc();oc();M0();fc();ic();lc();E();k();A0();j();var $=D(G(),1);x();C();var S=D(G(),1);function P(){let f=S.c(1),c;if(f[0]===Symbol.for("react.memo_cache_sentinel"))c=U(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",m(g,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),f[0]=c;else c=f[0];return c}C();function v(f){let c=$.c(13),{serverName:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(T){q("tengu_mcp_dialog_choice",{choice:T});c:switch(T){case"yes":case"yes_all":{let H=(J()||{}).enabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{enabledMcpjsonServers:[...H,i]});if(T==="yes_all")V("localSettings",{enableAllProjectMcpServers:!0});n();break c}case"no":{let H=(J()||{}).disabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{disabledMcpjsonServers:[...H,i]});n()}}},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u=`New MCP server found in .mcp.json: ${i}`,M;if(c[3]!==l)M=()=>l("no"),c[3]=l,c[4]=M;else M=c[4];let I;if(c[5]===Symbol.for("react.memo_cache_sentinel"))I=m(P,{}),c[5]=I;else I=c[5];let o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],c[6]=o;else o=c[6];let h;if(c[7]!==l)h=m(r,{options:o,onChange:(a)=>l(a),onCancel:()=>l("no")}),c[7]=l,c[8]=h;else h=c[8];let F;if(c[9]!==u||c[10]!==M||c[11]!==h)F=U(W,{title:u,color:"warning",onCancel:M,children:[I,h]}),c[9]=u,c[10]=M,c[11]=h,c[12]=F;else F=c[12];return F}x0();E();x();k();N0();g0();d0();j();K0();var h0=D(G(),1);C();function o0(f){let c=h0.c(21),{serverNames:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(O){let Z=J()||{},s0=Z.enabledMcpjsonServers||[],t0=Z.disabledMcpjsonServers||[],[b,B]=n0(i,(Q)=>O.includes(Q));if(q("tengu_mcp_multidialog_choice",{approved:b.length,rejected:B.length}),b.length>0){let Q=[...new Set([...s0,...b])];V("localSettings",{enabledMcpjsonServers:Q})}if(B.length>0){let Q=[...new Set([...t0,...B])];V("localSettings",{disabledMcpjsonServers:Q})}n()},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u;if(c[3]!==n||c[4]!==i)u=()=>{let O=(J()||{}).disabledMcpjsonServers||[],Z=[...new Set([...O,...i])];V("localSettings",{disabledMcpjsonServers:Z}),n()},c[3]=n,c[4]=i,c[5]=u;else u=c[5];let M=u,I=`${i.length} new MCP servers found in .mcp.json`,o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=m(P,{}),c[6]=o;else o=c[6];let h;if(c[7]!==i)h=i.map(S0),c[7]=i,c[8]=h;else h=c[8];let F;if(c[9]!==M||c[10]!==l||c[11]!==i||c[12]!==h)F=m(m0,{options:h,defaultValue:i,onSubmit:l,onCancel:M,hideIndexes:!0}),c[9]=M,c[10]=l,c[11]=i,c[12]=h,c[13]=F;else F=c[13];let a;if(c[14]!==M||c[15]!==I||c[16]!==F)a=U(W,{title:I,subtitle:"Select any you wish to enable.",color:"warning",onCancel:M,hideInputGuide:!0,children:[o,F]}),c[14]=M,c[15]=I,c[16]=F,c[17]=a;else a=c[17];let T;if(c[18]===Symbol.for("react.memo_cache_sentinel"))T=m(c0,{paddingX:1,children:m(y,{dimColor:!0,italic:!0,children:U(i0,{children:[m(p,{shortcut:"Space",action:"select"}),m(p,{shortcut:"Enter",action:"confirm"}),m(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),c[18]=T;else T=c[18];let w;if(c[19]!==a)w=U(e,{children:[a,T]}),c[19]=a,c[20]=w;else w=c[20];return w}function S0(f){return{label:f,value:f}}M0();l0();j0();r0();C();async function F0(f){let{servers:c}=_0("project"),i=Object.keys(c).filter((n)=>u0(n)==="pending");if(i.length===0)return;await new Promise((n)=>{let _=()=>void n();if(i.length===1&&i[0]!==void 0){let l=i[0];f.render(m(X,{children:m(Y,{children:m(v,{serverName:l,onDone:_})})}))}else f.render(m(X,{children:m(Y,{children:m(o0,{serverNames:i,onDone:_})})}))})}l0();uc();nc();ac();I0();Fc();I0();$0();e0();class A{frameDurations=[];firstRenderTime;lastRenderTime;record(f){let c=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=c;this.lastRenderTime=c,this.frameDurations.push(f)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let f=this.lastRenderTime-this.firstRenderTime;if(f<=0)return;let i=this.frameDurations.length/(f/1000),n=this.frameDurations.slice().sort((M,I)=>I-M),_=Math.max(0,Math.ceil(n.length*0.01)-1),l=n[_],u=l>0?1000/l:0;return{averageFps:Math.round(i*100)/100,low1PctFps:Math.round(u*100)/100}}}hc();mc();Mc();_c();k();cc();C();function Cc(){s((f)=>({...f,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function Lc(f,c){return new Promise((i)=>{let n=(_)=>void i(_);f.render(c(n))})}async function Gf(f,c,i){return wc(f,c,{color:"error",beforeExit:i})}async function wc(f,c,i){let{Text:n}=await import("./ink-1.0.13-4ks3vqg1.mjs"),_=i?.color,l=i?.exitCode??1;f.render(_?m(n,{color:_,children:c}):m(n,{children:c})),f.unmount(),await i?.beforeExit?.(),process.exit(l)}function z(f,c,i){return Lc(f,(n)=>m(X,{onChangeAppState:i?.onChangeAppState,children:m(Y,{children:c(n)})}))}async function Ef(f,c){f.render(c),G0(),await f.waitUntilExit(),await W0(0)}async function kf(f,c,i,n,_){if(K(!1)||process.env.IS_DEMO)return!1;R("setupScreens_start");let l=H0(),u=!1;if(P0()){let{MigrationDialog:o}=await import("./MigrationDialog-1.0.13-hhrgw5xc.mjs");await z(f,(h)=>m(o,{onDone:()=>void h()}))}let M=t();if(l&&(!M.theme||!M.hasCompletedOnboarding)){u=!0;let{Onboarding:o}=await import("./Onboarding-1.0.13-byv83gyv.mjs");await z(f,(h)=>m(o,{onDone:()=>{Cc(),h()}}),{onChangeAppState:N})}if(!K(process.env.CLAUBBIT)){if(l&&!V0()){let{TrustDialog:o}=await import("./TrustDialog-1.0.13-xdkp37x2.mjs");await z(f,(h)=>m(o,{commands:n,onDone:h}))}if(T0(!0),R("setupScreens_after_trust_accepted"),L0(),C0(),D0(),R("setupScreens_after_growthbook_kick"),l){let{errors:o}=y0();if(o.length===0)await F0(f);R("setupScreens_after_mcp_approvals");let h=await B0();if(R("setupScreens_after_claudemd_check"),h){let F=b0(await O0(!0)),{ClaudeMdExternalIncludesDialog:a}=await import("./ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs");await z(f,(T)=>m(a,{onDone:T,isStandaloneDialog:!0,externalIncludes:F}))}}}E0(),Q0(),R("setupScreens_after_env_applied"),setImmediate(()=>p0());let I=await Y0();if(R("setupScreens_after_grove_check"),I){R("setupScreens_grove_block_enter");let{GroveDialog:o}=await import("./Grove-1.0.13-hdw88war.mjs");if(await z(f,(F)=>m(o,{showIfAlreadyViewed:!1,location:u?"onboarding":"policy_update_modal",onDone:F}))==="escape")return q("tengu_grove_policy_exited",{}),d(0),!1}{let o=z0();R("setupScreens_after_tryGetActiveProvider");let h=o?.transport==="anthropic"?o.apiKey?.trim():void 0;if(h&&!R0()){let F=J0(h),a=q0(F);if(R("setupScreens_after_keyStatus"),a==="new"){let{ApproveApiKey:T}=await import("./ApproveApiKey-1.0.13-f6p2r5kq.mjs");await z(f,(w)=>m(T,{customApiKeyTruncated:F,onDone:w}),{onChangeAppState:N})}}}if(R("setupScreens_after_custom_api_key"),(c==="bypassPermissions"||i)&&!w0()){let{BypassPermissionsModeDialog:o}=await import("./BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-1.0.13-5b244jsj.mjs");await z(f,(h)=>m(o,{onAccept:h,onDecline:()=>d(1),declineExits:!0}))}return R("setupScreens_end"),u}function pf(f){let c=0,i=Z0(f);if(i.stdin)q("tengu_stdin_interactive",{});let n=new A,_=k0();a0(_);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>n.getMetrics(),stats:_,renderOptions:{...i,onFrame:(u)=>{if(n.record(u.durationMs),_.observe("frame_duration_ms",u.durationMs),l&&u.phases){let M=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
2
+ `;Rc(l,M)}if(X0())return;for(let M of u.flickers){if(M.reason==="resize")continue;let I=Date.now();if(I-c<1000)q("tengu_flicker",{desiredHeight:M.desiredHeight,actualHeight:M.availableHeight,reason:M.reason});c=I}}}}}
3
+ export{Cc as C,Lc as D,Gf as E,wc as F,z as G,Ef as H,kf as I,pf as J};
@@ -0,0 +1,2 @@
1
+ import{md as K,nd as Y}from"./cli-1.0.13-j3gww2v8.mjs";import{Al as U,Bl as V,Gp as H,Hp as W,WM as J,cN as X,vl as G,wl as B}from"./cli-1.0.13-kr3d94dn.mjs";import{esa as q,hsa as v}from"./cli-1.0.13-d9nvpqpw.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
2
+ export{P as id,C as jd,A as kd,D as ld};
@@ -0,0 +1,2 @@
1
+ import{fsa as j}from"./cli-1.0.13-d9nvpqpw.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.7"});
2
+ export{Lt as X3};
@@ -0,0 +1,16 @@
1
+ import{W8 as E2,Y8 as w8}from"./cli-1.0.13-jdxaky02.mjs";import{$8 as eZ,_8 as h}from"./cli-1.0.13-y20sjx5k.mjs";import{k9 as n5,m9 as N8}from"./cli-1.0.13-t1z10ay5.mjs";import{$9 as h4,Eea as e1,Fba as HZ,Hda as B0,L_ as U5,N_ as $$,Oca as r1,Qda as s4,Sda as J$,Sfa as c5,Tda as T1,Tea as i,Uda as d8,Ufa as j4,Vea as Z4,Wea as wZ,Xca as RZ,_ea as $4,_fa as d5,a_ as a,aba as y1,b_ as L2,bba as c8,bga as L,c_ as b0,d_ as f4,e_ as s2,ega as $0,j_ as R0,k_ as x1,nfa as B4,oba as o1,pea as d,pfa as J4,qga as N,sda as O,sfa as k2,tfa as Q$,uda as j2,uea as m5,v_ as N5,vea as C,xda as Q0,y_ as Z$,yda as S,yea as K,yga as a0}from"./cli-1.0.13-p1nsb8ay.mjs";import{Aha as y4,Kha as I1,yha as A0}from"./cli-1.0.13-k4znag0a.mjs";import{Oia as T5,Pia as a4,Qia as j0,Sia as H8,Tia as R8,Via as b,Wia as S0}from"./cli-1.0.13-y6y32j2s.mjs";import{Xia as x,_ia as B2}from"./cli-1.0.13-vbby2x4m.mjs";import{Eja as D5,Ija as rZ,Mja as t2,Qja as h8,_ja as z,aka as d0,bka as Z0}from"./cli-1.0.13-4dp5a597.mjs";import{Aka as V1,Fka as W1,yka as p}from"./cli-1.0.13-mazxedqg.mjs";import{Ika as L5,Lka as F,Nka as u,Pka as O2,Ska as t4,Vka as g}from"./cli-1.0.13-6b6kn6sd.mjs";import{$oa as x2,Mna as s1,Moa as Q1,Noa as Y1,Ooa as X1,Poa as q1,Qna as I4,Vna as y0,Wna as J2,ooa as f,vma as X0,voa as _1,wma as F1,yna as m1,yqa as J0}from"./cli-1.0.13-vwmq6bde.mjs";import{Xqa as y,Yqa as t0}from"./cli-1.0.13-thxvtvt4.mjs";import{Kra as q2,sra as P}from"./cli-1.0.13-696y87my.mjs";import{esa as I0,gsa as d2,hsa as R,isa as e}from"./cli-1.0.13-d9nvpqpw.mjs";function S5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:q,context:V}=$.shift();try{let G=await Z.apply(V,Y);X(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,q)=>{$.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var M5=()=>{};function A5(Z,$){return Z.find((J)=>J.includes($))??null}async function h5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=O2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-1.0.13-rrm8s54m.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.13-4p1eb2pq.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function o$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=O2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-1.0.13-rrm8s54m.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.13-4p1eb2pq.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function F8(Z){return Z.startsWith("anthropic.")}function L8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function D8(Z){let $=L8(Z);for(let J of K8)if($.startsWith(`${J}.anthropic.`))return J;return}function e$(Z,$){let J=D8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(F8(Z))return`${$}.${Z}`;return Z}var C5,r$,K8;var f5=R(()=>{t0();n();g();a0();w8();C5=y(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([h5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw N(Y),Y}});r$=y(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([h5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch($){return N($),null}});K8=["us","eu","apac","global"]});var v2,_2,I2,y2,T2,S2,M2,C2,A2,s0,o0,r0,h2,f2,u2,G0,$J,u5;var g2=R(()=>{v2={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"},I2={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"},T2={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"},S2={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"},C2={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"},A2={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"},h2={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"},f2={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"},u2={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:I2,haiku45:y2,sonnet35:_2,sonnet37:v2,sonnet40:T2,sonnet45:S2,sonnet46:f2,sonnet5:u2,opus40:M2,opus41:C2,opus45:A2,opus46:s0,opus47:o0,opus48:r0,fable5:h2},$J=Object.values(G0).map((Z)=>Z.firstParty),u5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function g5(){return Object.values(e0)}var e0,p2;var m2=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}}},p2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var v0={};d2(v0,{prefetchCopilotModelCatalog:()=>l2,normalizeBareCopilotModelId:()=>n2,getEffectiveCopilotModels:()=>E8,getCopilotDisplayName:()=>v8,getCatalogCopilotMaxOutputTokens:()=>y8,getCatalogCopilotContextWindow:()=>I8,getCachedCopilotCatalog:()=>O8,fetchCopilotModelCatalog:()=>i5,copilotModelSupportsAnthropicMessages:()=>_8,_setCopilotCatalogForTesting:()=>T8});function E0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function l5(){if(!l)return!1;let Z=E0();return Z!==null&&x0===Z}function b8(){if(p5)return;p5=!0,m5(()=>{let Z=E0();if(Z&&x0!==Z)l2()})}function n2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function k8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function P8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},X=Y.vision===!0||Boolean(Q.vision),q=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:k8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function i5(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(c5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),U8);try{let X=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...n5},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,G=[];for(let B of q.data){let H=P8(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(Y)}}function l2(){b8();let Z=E0();if(!Z)return;if(l&&x0!==Z)l=null,x0=null;if(Z2){if(c2===Z)return;Z2.finally(()=>l2());return}c2=Z,Z2=i5().then(($)=>{if($&&E0()===Z)l=$,x0=Z}).finally(()=>{Z2=null,c2=null})}function O8(){return l}function E8(){if(l5()){let Z=l?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return g5()}function $2(Z){if(!l5())return;let $=n2(Z);return l.find((J)=>J.model.id===$)}function v8(Z){let $=n2(Z);return $2($)?.model.name??e0[$]?.name}function _8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function I8(Z){return $2(Z)?.model.limit.context}function y8(Z){return $2(Z)?.model.limit.output}function T8(Z){l=Z,x0=Z?E0():null}var U8=5000,l=null,x0=null,Z2=null,c2=null,p5=!1;var _0=R(()=>{$0();N8();d5();i();Z0();m2()});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 xJ(){return W()==="firstParty"}function S8(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}=(_0(),I0(v0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function BJ(Z){let $=L()?.transport??"anthropic";if(!M8.has($))return!1;if($==="github_copilot"&&S8(Z))return!1;return!0}function jJ(){return W()}function HJ(){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 M8;var t=R(()=>{$0();M8=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 a5)J[Q]=G0[Q][$];return J}async function C8(){let Z=Q2("bedrock"),$;try{$=await C5()}catch(Q){return N(Q),Z}if(!$?.length)return Z;let J={};for(let Q of a5){let Y=G0[Q].firstParty;J[Q]=A5($,Y)||Z[Q]}return J}function t5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=u5[Q];if(X&&Y)J[X]=Y}return J}function Y2(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 A8(){if(y0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}s5()}function j(){let Z=y0();if(Z===null)return A8(),t5(Q2(W()));return t5(Z)}async function bJ(){if(y0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}await s5()}var a5,s5;var X2=R(()=>{J0();a0();M5();B0();f5();g2();t();a5=Object.keys(G0);s5=S5(async()=>{if(y0()!==null)return;try{let Z=await C8();J2(Z)}catch(Z){N(Z)}})});function vJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(k())return!1;let $=T0(),J=Y0()!==null;if(!$.hasToken&&!J)return!1;let Q=K(),Y=Q.oauthAccount?.organizationRole,X=Q.oauthAccount?.workspaceRole;if(!Y||!X)return!1;return["admin","billing"].includes(Y)||["workspace_admin","workspace_billing"].includes(X)}function _J(){if(o5!==null)return o5;if(!k())return!1;let Z=_();if(Z==="max"||Z==="pro")return!0;let J=K().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var o5=null;var r5=R(()=>{n();i();g()});function SJ(Z){return Z}function MJ(){return!1}function e5(){return null}function Z1(){return!1}var $1=R(()=>{r5()});async function pJ(){let $=K().oauthAccount?.accountUuid,J=Y0();if(!$||!J)return;let Q=`${b().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":j0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){N(Y)}}async function H0(Z){let $=`${b().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){N(J)}}var i2=R(()=>{q2();S0();n();i();a0()});import{mkdirSync as f8,writeFileSync as u8}from"fs";function m8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{f8(V2,{recursive:!0,mode:448}),u8(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 J1(Z,$){try{let Q=t2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!V1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function z1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[Z];if(!q){let G=J1($,J);return Y(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"}),Y(null),null;try{let G=t2(),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"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),m8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${V}: ${p(G)}`,{level:"error"});let B=J1($,J);return Y(B),B}}function W2(){return z1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:g8,label:"OAuth token",getCached:Q1,setCached:Y1})}function a2(){return z1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:p8,label:"API key",getCached:X1,setCached:q1})}var V2="/home/claude/.claude/remote",g8,p8,aJ;var G1=R(()=>{J0();Z0();g();W1();h8();g8=`${V2}/.oauth_token`,p8=`${V2}/.api_key`,aJ=`${V2}/.session_ingress_token`});async function B1(){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 j1=R(()=>{x1();s2()});function $3(Z){return Z?.name==="CredentialsProviderError"}function H1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function o2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function R1(){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 w1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=X0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var K1=R(()=>{F1()});var G2="claude-code-20250219",L1="interleaved-thinking-2025-05-14",M0="context-1m-2025-08-07",D1="context-management-2025-06-27",N1="structured-outputs-2025-12-15",r2="web-search-2025-03-05",U1="advanced-tool-use-2025-11-20",b1="tool-search-tool-2025-10-19",X3="effort-2025-11-24",q3="task-budgets-2026-03-13",k1="prompt-caching-scope-2026-01-05",V3="extended-cache-ttl-2025-04-11",W3="fast-mode-2026-02-01",P1="redact-thinking-2026-02-12",O1="thinking-token-count-2026-05-13",E1="token-efficient-tools-2026-03-28",z3="afk-mode-2026-01-31",G3="advisor-tool-2026-03-01",e2,x3;var Z5=R(()=>{e2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),x3=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 S1(){if(!A())return!1;return l8()===null}function n8(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 l8(){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(!O("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(v.status==="disabled"){if(v.reason==="network_error"||v.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=n8(v.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function _3(){return"opus"+(f0()?"[1m]":"")}function I3(Z){if(!A())return!1;if(!S1())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 i8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!$5)z("Fast mode cooldown expired, re-enabling fast mode"),$5=!0,A1.emit();w0={status:"active"}}return w0}function S3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},$5=!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:$}),C1.emit(Z,$)}function M3(){w0={status:"active"}}function C3(){if(v.status==="disabled")return;v={status:"disabled",reason:"preference"},j2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),J5.emit(!1)}function t8(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 a8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function h3(Z){let $=t8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!a8(Z))j2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));h1.emit($)}function s8(){return i8().status==="cooldown"}function f3(Z,$){let J=A()&&S1()&&!!$&&M1(Z);if(J&&s8())return"cooldown";if(J)return"on";return"off"}async function o8(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 P.get($,{headers:J})).data}function g3(){if(!A())return;if(v.status!=="pending")return;v=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function p3(){if(T1())return;if(!A())return;if(C0)return z("Fast mode prefetch in progress, returning in-flight promise"),C0;let Z=Y0();if(!(w()?.accessToken&&q0())&&!Z){v=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-v1<r8){z("Skipping fast mode prefetch, fetched recently");return}v1=J;let Q=async()=>{let X=w(),q=X?.accessToken&&q0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return o8(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(P.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await Q5(B),X=await Q();else throw V}else throw V}let q=v.status!=="pending"?v.status==="enabled":K().penguinModeOrgEnabled;if(v=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)j2("userSettings",{fastMode:void 0});C((V)=>({...V,penguinModeOrgEnabled:X.enabled})),J5.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){v=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${v.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{C0=null}}return C0=Y(),C0}var v3="Opus 4.7",w0,$5=!1,C1,A1,y3,T3,h1,A3,v,J5,u3,r8=30000,v1=0,C0=null;var f1=R(()=>{q2();S0();I1();J0();B2();n();c8();i();Z0();g();F0();t();d8();B0();F1();w0={status:"active"},C1=X0(),A1=X0(),y3=C1.subscribe,T3=A1.subscribe;h1=X0(),A3=h1.subscribe;v={status:"pending"},J5=X0(),u3=J5.subscribe});function XZ(Z){for(let $ of YZ)if($.pattern.test(Z))return $.cost;return}function Y5(Z){if(A()&&Z)return ZZ;return L0}function qZ(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function VZ(Z,$){let J=U(Z);if(J===D(s0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let Y=$.speed==="fast";return Y5(Y)}let Q=g1[J];if(!Q){let Y=XZ(Z);if(Y)return Y;return WZ(Z,J),g1[U(h0())]??QZ}return Q}function WZ(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),m1()}function zZ(Z,$){let J=VZ(Z,$);return qZ(J,$)}function t3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return zZ(Z,J)}function p1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function c1(Z){return`${p1(Z.inputTokens)}/${p1(Z.outputTokens)} per Mtok`}var K0,u1,L0,e8,ZZ,$Z,JZ,QZ,YZ,g1;var d1=R(()=>{B2();J0();f1();g2();F0();K0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},u1={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},e8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},ZZ={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},$Z={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},JZ={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},QZ=L0,YZ=[{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}}];g1={[D(I2.firstParty)]:$Z,[D(y2.firstParty)]:JZ,[D(_2.firstParty)]:K0,[D(v2.firstParty)]:K0,[D(T2.firstParty)]:K0,[D(S2.firstParty)]:K0,[D(f2.firstParty)]:K0,[D(u2.firstParty)]:K0,[D(M2.firstParty)]:u1,[D(C2.firstParty)]:u1,[D(A2.firstParty)]:L0,[D(s0.firstParty)]:L0,[D(o0.firstParty)]:L0,[D(r0.firstParty)]:L0,[D(h2.firstParty)]:e8}});function m(Z){return GZ.includes(Z)}function D0(Z){return xZ.includes(Z)}var GZ,xZ;var X5=R(()=>{GZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];xZ=["sonnet","opus","haiku"]});function BZ(Z,$){if(Z.includes($))return!0;if(m(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function jZ(Z,$){let J=m(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(D0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function i1(Z){let $=S()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=Y2(Z).trim().toLowerCase(),X=J.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!D0(Y)||!l1(Y,X))return!0}for(let q of X)if(D0(q)&&!l1(q,X)&&BZ(Y,q))return!0;if(m(Y)){let q=T(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!D0(q)&&m(q)){if(T(q).toLowerCase()===Y)return!0}for(let q of X)if(!D0(q)&&!m(q)){if(jZ(Y,q))return!0}return!1}var t1=R(()=>{B0();X5();F0();X2()});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 Z4(Z.model)}function L9(){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 Q4()}function D9(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function q5(){let Z,$=s1();if($!==void 0)Z=$;else{let J=S()||{},Q=H2(J.model),X=U0()||Q||void 0,q=e1(),V=H2(q.activeModelForProject);if(V){let G=$4()?.id,B=q.activeModelForProjectProfileId;Z=B===void 0||B===G?V:X}else Z=X}if(Z&&!i1(Z))return;return Z}function N9(){let Z=q5();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function FZ(){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 Q4(){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 U9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(q5()==="opusplan"&&$==="plan"&&!Q)return N0();if(q5()==="haiku"&&$==="plan")return u0();return J}function h0(){let Z=U0();if(W()==="github"){let $=S()||{};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 Y4(){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(Y2(Z))}function KZ(Z=!1){if(R2()||w2()){if(f0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?a1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?a1(!0):""}`}return"Sonnet 5 · Best for everyday tasks"}function b9(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return q4(T(Z))}function a1(Z){if(W()!=="firstParty")return"";let $=c1(Y5(Z));return` ·${Z?` (${o1})`:""} ${$}`}function f0(){if(V0()||z5()||W()!=="firstParty")return!1;if(k()&&_()===null)return!1;return!0}function k9(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 r1(Z);return q4(Z)}function X4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(p2[Z])return p2[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(_0(),I0(v0));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 q4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function P9(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),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y))switch(Y){case"opusplan":return u0()+(Q?"[1m]":"");case"sonnet":return u0()+(Q?"[1m]":"");case"haiku":return Q4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return FZ();default:}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return j().fable5;if(W()==="firstParty"&&DZ(Y)&&NZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function O9(Z,$){if(s(Z)||!s($))return Z;if(V5(T(Z)))return Z+"[1m]";return Z}function DZ(Z){return LZ.includes(Z)}function NZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function E9(Z){if(Z===null){if(k())return`Default (${KZ()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function v9(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 _9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function I9(Z){let $=U(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var LZ;var F0=R(()=>{J0();$0();i();J4();n();W5();g();wZ();X2();d1();B0();t();HZ();t1();X5();RZ();m2();LZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function G5(Z){return}async function T9(){}var V4=()=>{};function PZ(Z,$={}){if($.isPro??(kZ.test(Z)||W4.has(Z)))return!1;if(UZ.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(bZ);return Q?Number.parseFloat(Q[1])>5.4:!1}function M9(){return F2.filter((Z)=>PZ(Z.id,{isPro:Z.isPro}))}var F2,UZ,W4,bZ,kZ,z4,G4;var x4=R(()=>{F2=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],UZ=new Set(F2.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),bZ=/^gpt-(\d+\.\d+)/,kZ=/-pro$/;z4=Object.fromEntries(F2.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),G4=Object.fromEntries(F2.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};d2(K4,{prefetchOpenAICompatibleModels:()=>CZ,getDiscoveredContextWindow:()=>OZ,discoverOpenAICompatibleModelOptions:()=>F4});function OZ(Z){return R4.get(Z)}function EZ(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function vZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function _Z(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(vZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function IZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function yZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function TZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function SZ(Z,$){let J=new Set;for(let Q of Z)try{let Y=await P.get(Q,{headers:$,timeout:H4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let G=q.name?.trim()||V,B=q.context_length??null;if(B&&B>0)R4.set(V,B);let H=B?` · ${TZ(B)}`:"";X.push({value:V,label:G,description:`${V}${H}`})}if(X.length>0)return X.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))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function MZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=EZ(),$=_Z(Z),J=await SZ(IZ(Z),$);if(J.length>0)return J;let Q=yZ(Z);if(Q)return MZ(Q,$);return[]}function CZ(){if(g0)return g0;return g0=(async()=>{if(!j4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{g0=null}})(),g0}var H4=5000,R4,g0=null;var L4=R(()=>{q2();$0();d5();Z0();t();J4();R4=new Map});function N4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function U4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),I0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=N4(AZ,fZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(_0(),I0(v0));return J(Z)}catch{return}}function b4(Z){let $=N4(hZ,uZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(_0(),I0(v0));return J(Z)}catch{return}}var AZ,hZ,fZ,uZ;var k4=R(()=>{$0();x4();AZ={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...z4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},hZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...G4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},fZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),uZ=(()=>{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 P4(){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 V5(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 $Q(Z,$){if(s(Z))return 1e6;if(P4()){let Q=U4(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."),gZ}let J=G5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>x5&&V0())return x5;return J.max_input_tokens}if(!V0()&&(U(Z).includes("fable-5")||U(Z).includes("sonnet-5")))return 1e6;if($?.includes(M0)&&V5(Z))return 1e6;if(cZ(Z))return 1e6;return x5}function cZ(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 JQ(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function QQ(Z){let $,J;if(P4()){let X=b4(Z);if(X!==void 0)return{default:X,upperLimit:X}}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 $=pZ,J=mZ;let Y=G5(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var x5=200000,gZ,r9=20000,pZ=32000,mZ=64000,e9=8000,ZQ=64000;var W5=R(()=>{Z5();$0();i();g();F0();V4();k4();gZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var dZ,O4;var E4=R(()=>{t0();t();dZ=[{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"}],O4=y((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of dZ){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function nZ(Z){let $=[],J=[];for(let Q of Z)if(T4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function NQ(Z){if(!Z||Z.length===0)return;if(k()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=nZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${T4.join(", ")}`);return $.length>0?$:void 0}function v4(Z){let $=O4(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 lZ(Z){let $=U(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function iZ(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 tZ(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 UQ(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 bQ(){let Z=W();if(Z==="vertex"||Z==="bedrock")return b1;return U1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function kQ(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function PQ(Z,$){let J=[...S4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=I4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){B5.cache?.clear?.(),S4.cache?.clear?.(),aZ.cache?.clear?.()}var T4,B5,S4,aZ;var C4=R(()=>{t0();I1();J0();Z5();S0();n();W5();g();F0();E4();t();B0();T4=[M0];B5=y((Z)=>{let $=[],J=U(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(G2);if(k())$.push(j0);if(s(Z))$.push(M0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&v4(Z))$.push(L1);if(Y&&v4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(P1),$.push(O1);let X=iZ(Z);if(_4()&&X)$.push(D1);let q=y4("tengu_tool_pear"),V=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(Y&&tZ(Z)&&q)$.push(N1);if(Y&&V)$.push(E1);if(Q==="vertex"&&lZ(Z))$.push(r2);if(Q==="foundry")$.push(r2);if(Y)$.push(k1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),S4=y((Z)=>{let $=B5(Z);if(W()==="bedrock")return $.filter((J)=>!e2.has(J));return $}),aZ=y((Z)=>{return B5(Z).filter((J)=>e2.has(J))})});import{execFile as sZ}from"child_process";function A4(Z){return new Promise(($)=>{sZ("security",["find-generic-password","-a",L2(),"-w","-s",Z],{encoding:"utf-8",timeout:oZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function IQ(){if(process.platform!=="darwin"||K2||u())return;let Z=A4(a(h4)),$=A4(a());K2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)f4(J.stdout);if(!Q.timedOut)j5={stdout:Q.stdout}})}async function yQ(){if(K2)await K2}function u4(){return j5}function H5(){j5=null}var oZ=1e4,j5=null,K2=null;var g4=R(()=>{g();s2()});function R5(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((V,G,B)=>{V?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)X.unref()})}var p4=()=>{};function MQ(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var p$={};d2(p$,{validateForceLoginOrg:()=>g$,saveOAuthTokensIfNeeded:()=>V8,saveApiKey:()=>I5,removeApiKey:()=>E$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>X8,refreshAwsAuth:()=>Q8,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>b$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>k$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>B$,isUsing3PServices:()=>b2,isTeamSubscriber:()=>S$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>z5,isOverageProvisioningAllowed:()=>y$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>x8,isMaxSubscriber:()=>R2,isGcpAuthRefreshFromProjectSettings:()=>v5,isEnterpriseSubscriber:()=>M$,isCustomApiKeyApproved:()=>O$,isConsumerSubscriber:()=>f$,isClaudeAISubscriber:()=>k,isAwsCredentialExportFromProjectSettings:()=>O5,isAwsAuthRefreshFromProjectSettings:()=>k5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>I$,hasProfileScope:()=>q0,hasOpusAccess:()=>T$,hasAnthropicApiKeyAuth:()=>W$,handleOAuth401Error:()=>Q5,getSubscriptionType:()=>_,getSubscriptionName:()=>z8,getRateLimitTier:()=>W8,getOtelHeadersFromHelper:()=>A$,getOauthAccountInfo:()=>U2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>T0,getApiKeyHelperElapsedMs:()=>z$,getApiKeyFromConfigOrMacOSKeychain:()=>P2,getApiKeyFromApiKeyHelperCached:()=>F5,getApiKeyFromApiKeyHelper:()=>J8,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>Y0,getAccountInformation:()=>u$,clearOAuthTokenCache:()=>y5,clearGcpCredentialsCache:()=>U$,clearAwsCredentialsCache:()=>F$,clearApiKeyHelperCache:()=>x$,checkGcpCredentialsValid:()=>Y8,checkAndRefreshOAuthTokenIfNeeded:()=>l0,calculateApiKeyHelperTTL:()=>$8});import{exec as e4}from"child_process";import{mkdir as Y$,stat as X$}from"fs/promises";import{join as q$}from"path";function N2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=b2(),J=(S()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!N2()||X&&!N2())}function T0(){if(u()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!N2())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()&&!N2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(P0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function Y0(){let{key:Z}=n0();return Z}function W$(){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:F5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=t4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=a2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!b2()&&!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&&!b2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&K().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=a2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:F5(),source:"apiKeyHelper"}}let X=P2();if(X)return X;return{key:null,source:"none"}}function o(){if(u())return O("flagSettings")?.apiKeyHelper;return(S()||{}).apiKeyHelper}function Z8(){let Z=o();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function b5(){return(S()||{}).awsAuthRefresh}function k5(){let Z=b5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function P5(){return(S()||{}).awsCredentialExport}function O5(){let Z=P5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function $8(){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 V$}function z$(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function J8(Z){if(!o())return null;let $=$8();if(I){if(Date.now()-I.timestamp<$)return I.value;if(!c)c={promise:n4(Z,!1,k0),startedAt:null};return I.value}if(c)return c.promise;return c={promise:n4(Z,!0,k0),startedAt:Date.now()},c.promise}async function n4(Z,$,J){try{let Q=await G$(Z);if(J!==k0)return Q;if(Q!==null)I={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==k0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&I&&I.value!==" ")return I={...I,timestamp:Date.now()},I.value;return I={value:" ",timestamp:Date.now()}," "}finally{if(J===k0)c=null}}async function G$(Z){let $=o();if(!$)return null;if(Z8()){if(!d()&&!Z){let X=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",X),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await R0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function F5(){return I?.value??null}function x$(){k0++,I=null,c=null}function B$(Z){if(Z8()&&!d())return;J8(Z)}async function H$(){let Z=b5();if(!Z)return!1;if(k5()){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 o2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return Q8(Z)}}function Q8(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:R$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?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 w$(){let Z=P5();if(!Z)return null;if(O5()){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 o2(),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=D5($.stdout.trim());if(!H1(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 F$(){z0.cache.clear()}function E5(){return(S()||{}).gcpAuthRefresh}function v5(){let Z=E5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Y8(){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=R5(K$).then(()=>{throw new B8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function D$(){let Z=E5();if(!Z)return!1;if(v5()){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 Y8())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return X8(Z)}function X8(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:N$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?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 U$(){_5.cache.clear()}function b$(){if(!E5())return;if(v5()){if(!d()&&!f())return}_5()}function k$(){let Z=b5(),$=P5();if(!Z&&!$)return;if(k5()||O5()){if(!d()&&!f())return}z0(),j()}function P$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function I5(Z){if(!P$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q8();let $=!1;if(process.platform==="darwin")try{let Q=a(),Y=L2(),X=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
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 Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),P2.cache.clear?.(),H5()}function O$(Z){let $=K(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function E$(){await q8(),C((Z)=>({...Z,primaryApiKey:void 0})),P2.cache.clear?.(),H5()}async function q8(){try{await B1()}catch(Z){N(Z)}}function V8(Z){if(!P0(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 $=k2(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),X}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 v$(){try{let{mtimeMs:Z}=await X$(q$(L5(),".credentials.json"));if(Z!==l4)l4=Z,y5()}catch{w.cache?.clear?.()}}function Q5(Z){let $=w5.get(Z);if($)return $;let J=_$(Z).finally(()=>{w5.delete(Z)});return w5.set(Z,J),J}async function _$(Z){y5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return l0(0,!0)}async function c0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await k2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return N(Z),null}}function l0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=K5(Z,$).finally(()=>{p0=null}),p0}return K5(Z,$)}async function K5(Z,$){await v$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!P0(Q.scopes))return!1;w.cache?.clear?.(),b0();let Y=await c0();if(!Y?.refreshToken||!m0(Y.expiresAt))return!1;let X=L5();await Y$(X,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await s4(X),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 R5(1000+Math.random()*1000),K5(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 o4(V.refreshToken,{scopes:P0(V.scopes)?void 0:V.scopes});return V8(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 k(){if(!O0())return!1;return P0(w()?.scopes)}function q0(){return w()?.scopes?.includes(a4)??!1}function I$(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(k())return!1;return!0}function U2(){return O0()?K().oauthAccount:void 0}function y$(){let $=U2()?.billingType;if(!k()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function T$(){let Z=_();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function _(){if(Z1())return e5();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function R2(){return _()==="max"}function S$(){return _()==="team"}function w2(){return _()==="team"&&W8()==="default_claude_max_5x"}function M$(){return _()==="enterprise"}function z5(){return _()==="pro"}function W8(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function z8(){switch(_()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function b2(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function G8(){return(S()||{}).otelHeadersHelper}function x8(){let Z=G8();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function A$(){let Z=G8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||C$.toString());if(D2&&Date.now()-i4<$)return D2;if(x8()){if(!d())return{}}try{let J=N5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=D5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return D2=Q,i4=Date.now(),D2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function h$(Z){return Z==="max"||Z==="pro"}function f$(){let Z=_();return k()&&Z!==null&&h$(Z)}function u$(){if(W()!=="firstParty")return;let{source:$}=T0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(k())J.subscription=z8();else J.tokenSource=$;let{key:Q,source:Y}=n0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let q=U2()?.organizationName;if(q)J.organization=q}let X=U2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function g$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=O("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await l0();let $=w();if(!$)return{valid:!0};let{source:J}=T0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await H0($.accessToken);if(!Y)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
+ This machine requires organization ${Z} but the profile could not be fetched.
4
+ This may be a network error, or the token may lack the user:profile scope required for
5
+ verification (tokens from 'claude setup-token' do not include this scope).
6
+ Try again, or obtain a full-scope token via 'claude auth login'.`};let X=Y.organization.uuid;if(X===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
+ different organization than required by this machine's managed settings.
8
+
9
+ Required organization: ${Z}
10
+ Token organization: ${X}
11
+
12
+ Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
13
+ but this machine requires organization ${Z}.
14
+
15
+ Please log in with the correct organization: claude auth login`}}var V$=300000,I=null,c=null,k0=0,j$=3600000,R$=180000,z0,K$=5000,L$=3600000,N$=180000,_5,P2,w,l4=0,w5,p0=null,D2=null,i4=0,C$=1740000,B8;var n=R(()=>{eZ();x1();t0();S0();B2();X2();t();J0();$0();$1();r4();i2();G1();j1();w1();K1();C4();i();Z0();g();W1();Z$();J$();a0();$$();Q$();g4();s2();B0();p4();rZ();d4();z0=U5(async()=>{let Z=await H$(),$=await w$();if(Z||$)await R1();return $},j$);_5=U5(async()=>{return await D$()},L$);P2=y(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=a();try{let Q=N5(`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=y(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=k2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});w5=new Map;B8=class B8 extends Error{}});function P0(Z){return Boolean(Z?.includes(T5))}function m$(Z){return Z?.split(" ").filter(Boolean)??[]}function k7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:G}){let B=Y?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=X?[T5]:R8;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 P7(Z,$,J,Q,Y=!1,X){let q={grant_type:"authorization_code",code:Z,redirect_uri:Y?b().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:b().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)q.expires_in=X;let V=await P.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 o4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:b().CLIENT_ID,scope:(($?.length)?$:H8).join(" ")};try{let Q=await P.post(b().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:q=Z,expires_in:V}=Y,G=Date.now()+V*1000,B=m$(Y.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 c$(X);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:X,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??W0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function O7(Z){let $=await P.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((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function E7(Z){try{let $=await P.post(b().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await I5(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 c$(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 Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function v7(){let $=K().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await H0(J))?.organization?.uuid;if(!Y)return null;return Y}async function _7(){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)j8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await l0();let Y=K();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!k()||!q0())return!1;let X=w();if(X?.accessToken){let q=await H0(X.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return j8({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 j8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,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 r4=R(()=>{q2();B2();S0();n();i();Z0();i2()});
16
+ export{IQ as u4,yQ as v4,g4 as w4,S5 as x4,M5 as y4,o$ as z4,r$ as A4,F8 as B4,D8 as C4,e$ as D4,f5 as E4,s0 as F4,o0 as G4,G0 as H4,g2 as I4,l2 as J4,E8 as K4,_0 as L4,W as M4,xJ as N4,S8 as O4,BJ as P4,jJ as Q4,HJ as R4,t as S4,j as T4,bJ as U4,X2 as V4,vJ as W4,_J as X4,r5 as Y4,SJ as Z4,MJ as _4,$1 as $4,pJ as a5,H0 as b5,i2 as c5,P0 as d5,m$ as e5,k7 as f5,P7 as g5,o4 as h5,O7 as i5,E7 as j5,m0 as k5,c$ as l5,v7 as m5,_7 as n5,j8 as o5,r4 as p5,aJ as q5,m8 as r5,J1 as s5,G1 as t5,z2 as u5,j1 as v5,$3 as w5,w1 as x5,M as y5,K1 as z5,M0 as A5,D1 as B5,N1 as C5,X3 as D5,q3 as E5,k1 as F5,V3 as G5,W3 as H5,P1 as I5,z3 as J5,G3 as K5,x3 as L5,Z5 as M5,A as N5,S1 as O5,l8 as P5,v3 as Q5,_3 as R5,I3 as S5,M1 as T5,y3 as U5,T3 as V5,i8 as W5,S3 as X5,M3 as Y5,C3 as Z5,A3 as _5,h3 as $5,s8 as a6,f3 as b6,u3 as c6,g3 as d6,p3 as e6,f1 as f6,K0 as g6,e8 as h6,$Z as i6,JZ as j6,Y5 as k6,zZ as l6,t3 as m6,c1 as n6,d1 as o6,GZ as p6,X5 as q6,i1 as r6,t1 as s6,L9 as t6,D9 as u6,q5 as v6,N9 as w6,FZ as x6,N0 as y6,u0 as z6,Q4 as A6,U9 as B6,h0 as C6,Y4 as D6,D as E6,U as F6,KZ as G6,b9 as H6,a1 as I6,f0 as J6,k9 as K6,X4 as L6,q4 as M6,P9 as N6,T as O6,O9 as P6,NZ as Q6,E9 as R6,v9 as S6,_9 as T6,I9 as U6,F0 as V6,T9 as W6,V4 as X6,M9 as Y6,x4 as Z6,F4 as _6,CZ as $6,L4 as a7,r9 as b7,e9 as c7,ZQ as d7,V0 as e7,s as f7,$Q as g7,cZ as h7,JQ as i7,QQ as j7,W5 as k7,O4 as l7,E4 as m7,NQ as n7,tZ as o7,UQ as p7,bQ as q7,_4 as r7,kQ as s7,S4 as t7,aZ as u7,PQ as v7,M4 as w7,C4 as x7,R5 as y7,p4 as z7,MQ as A7,c4 as B7,d4 as C7,O0 as D7,T0 as E7,Y0 as F7,W$ as G7,n0 as H7,o as I7,k5 as J7,O5 as K7,$8 as L7,z$ as M7,J8 as N7,F5 as O7,x$ as P7,B$ as Q7,Q8 as R7,z0 as S7,F$ as T7,v5 as U7,Y8 as V7,X8 as W7,_5 as X7,U$ as Y7,b$ as Z7,k$ as _7,P2 as $7,I5 as a8,O$ as b8,E$ as c8,V8 as d8,w as e8,y5 as f8,Q5 as g8,c0 as h8,l0 as i8,k as j8,q0 as k8,I$ as l8,U2 as m8,y$ as n8,T$ as o8,_ as p8,R2 as q8,S$ as r8,w2 as s8,M$ as t8,z5 as u8,W8 as v8,z8 as w8,b2 as x8,x8 as y8,A$ as z8,f$ as A8,u$ as B8,g$ as C8,p$ as D8,n as E8};
@@ -0,0 +1,2 @@
1
+ import{$n as y,ao as p,gG as O,iG as j}from"./cli-1.0.13-kr3d94dn.mjs";import{G0 as F,I0 as I,M0 as R,kZ as S,l1 as v}from"./cli-1.0.13-mv57kk3c.mjs";import{U3 as Z,V3 as N,W3 as U}from"./cli-1.0.13-afdk25h0.mjs";import{X3 as d}from"./cli-1.0.13-gsz0cygn.mjs";import{Hda as E,uda as M}from"./cli-1.0.13-p1nsb8ay.mjs";import{Xia as H,_ia as b}from"./cli-1.0.13-vbby2x4m.mjs";import{dsa as k}from"./cli-1.0.13-d9nvpqpw.mjs";b();v();E();j();p();U();var T=k(S(),1),h=k(d(),1),x="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function l(A){let f=T.c(18),{onAccept:J,onDecline:q,declineExits:C}=A,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];h.default.useEffect(_,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(m){f:switch(m){case"accept":{H("tengu_auto_mode_opt_in_dialog_accept",{}),M("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("tengu_auto_mode_opt_in_dialog_accept_default",{}),M("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("tengu_auto_mode_opt_in_dialog_decline",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let B=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=N(F,{flexDirection:"column",gap:1,children:[Z(I,{children:x}),Z(R,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let L=C?"No, exit":"No, go back",w;if(f[7]!==L)w=[...W,X,{label:L,value:"decline"}],f[7]=L,f[8]=w;else w=f[8];let z;if(f[9]!==B)z=(P)=>B(P),f[9]=B,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(O,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=N(y,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function _(){H("tengu_auto_mode_opt_in_dialog_shown",{})}
2
+ export{x as ab,l as bb};
@@ -0,0 +1,39 @@
1
+ import{BR as N,MQ as L,NQ as w,PR as d,ax as B,cx as U}from"./cli-1.0.13-kr3d94dn.mjs";import{Naa as z,Uaa as F,Xca as P}from"./cli-1.0.13-p1nsb8ay.mjs";import{Pga as H,Vga as v}from"./cli-1.0.13-x4xwa6y3.mjs";import{hsa as j}from"./cli-1.0.13-d9nvpqpw.mjs";async function V(R){let{messages:I,getAppState:O,options:{mainLoopModel:J,tools:Y,agentDefinitions:Z,customSystemPrompt:W,appendSystemPrompt:X}}=R,Q=N(I),{messages:K}=await B(Q),h=O();return L(K,J,async()=>h.toolPermissionContext,Y,Z,void 0,{options:{customSystemPrompt:W,appendSystemPrompt:X}},void 0,Q)}async function g(R,I){let O=await V(I);return{type:"text",value:b(O)}}function b(R){let{categories:I,totalTokens:O,rawMaxTokens:J,percentage:Y,model:Z,memoryFiles:W,mcpTools:X,agents:Q,skills:K}=R,h=`## Context Usage
2
+
3
+ `;h+=`**Model:** ${Z}
4
+ `,h+=`**Tokens:** ${H(O)} / ${H(J)} (${Y}%)
5
+ `,h+=`
6
+ `;let _=I.filter((q)=>q.tokens>0&&q.name!=="Free space"&&q.name!=="Autocompact buffer");if(_.length>0){h+=`### Estimated usage by category
7
+
8
+ `,h+=`| Category | Tokens | Percentage |
9
+ `,h+=`|----------|--------|------------|
10
+ `;for(let G of _){let $=(G.tokens/J*100).toFixed(1);h+=`| ${G.name} | ${H(G.tokens)} | ${$}% |
11
+ `}let q=I.find((G)=>G.name==="Free space");if(q&&q.tokens>0){let G=(q.tokens/J*100).toFixed(1);h+=`| Free space | ${H(q.tokens)} | ${G}% |
12
+ `}let E=I.find((G)=>G.name==="Autocompact buffer");if(E&&E.tokens>0){let G=(E.tokens/J*100).toFixed(1);h+=`| Autocompact buffer | ${H(E.tokens)} | ${G}% |
13
+ `}h+=`
14
+ `}if(X.length>0){h+=`### MCP Tools
15
+
16
+ `,h+=`| Tool | Server | Tokens |
17
+ `,h+=`|------|--------|--------|
18
+ `;for(let q of X)h+=`| ${q.name} | ${q.serverName} | ${H(q.tokens)} |
19
+ `;h+=`
20
+ `}if(Q.length>0){h+=`### Custom Agents
21
+
22
+ `,h+=`| Agent Type | Source | Tokens |
23
+ `,h+=`|------------|--------|--------|
24
+ `;for(let q of Q){let E;switch(q.source){case"projectSettings":E="Project";break;case"userSettings":E="User";break;case"localSettings":E="Local";break;case"flagSettings":E="Flag";break;case"policySettings":E="Policy";break;case"plugin":E="Plugin";break;case"built-in":E="Built-in";break;default:E=String(q.source)}h+=`| ${q.agentType} | ${E} | ${H(q.tokens)} |
25
+ `}h+=`
26
+ `}if(W.length>0){h+=`### Memory Files
27
+
28
+ `,h+=`| Type | Path | Tokens |
29
+ `,h+=`|------|------|--------|
30
+ `;for(let q of W)h+=`| ${q.type} | ${q.path} | ${H(q.tokens)} |
31
+ `;h+=`
32
+ `}if(K&&K.tokens>0&&K.skillFrontmatter.length>0){h+=`### Skills
33
+
34
+ `,h+=`| Skill | Source | Tokens |
35
+ `,h+=`|-------|--------|--------|
36
+ `;for(let q of K.skillFrontmatter)h+=`| ${q.name} | ${z(q.source)} | ${H(q.tokens)} |
37
+ `;h+=`
38
+ `}return h}var A=j(()=>{U();w();v();d();F();P()});
39
+ export{V as vh,g as wh,A as xh};
@@ -0,0 +1,2 @@
1
+ import{iN as Q,jN as $}from"./cli-1.0.13-kr3d94dn.mjs";import{gla as V,hla as P,ima as W,jma as E}from"./cli-1.0.13-vwmq6bde.mjs";import{hsa as L}from"./cli-1.0.13-d9nvpqpw.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
+ export{v as md,C as nd};
@@ -0,0 +1,12 @@
1
+ import{a9 as D}from"./cli-1.0.13-f4dfekwp.mjs";import{Mja as L,Qja as JG,_ja as W,bka as a}from"./cli-1.0.13-4dp5a597.mjs";import{Kka as c,Lka as jG,Vka as GG}from"./cli-1.0.13-6b6kn6sd.mjs";import{Xqa as U,Yqa as g}from"./cli-1.0.13-thxvtvt4.mjs";import{Kra as RG,sra as H}from"./cli-1.0.13-696y87my.mjs";import{Ora as wG}from"./cli-1.0.13-kg25kqz0.mjs";import{dsa as WG,hsa as j,isa as e}from"./cli-1.0.13-d9nvpqpw.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
+ `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
+ \r
4
+ `);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
+ `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
+ `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
7
+ `;let $=n(K);K.write(`${w}\r
8
+ `);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
9
+ `;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
10
+ `;let V=n(Y);Y.write(`${$}\r
11
+ `);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.0.13-rrm8s54m.mjs"),import("./index-1.0.13-kfmh713v.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
+ export{hG as F8,p as G8,F as H8,gG as I8,aG as J8,pG as K8,KG as L8,MJ as M8,HJ as N8,OG as O8,I as P8,h as Q8,qJ as R8,jJ as S8,UJ as T8,_J as U8,FJ as V8,NJ as W8,TJ as X8,vG as Y8};